]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/msw/controls2.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initcontrols2c | |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
59 | #ifdef __WXMSW__ | |
60 | #include <windows.h> | |
61 | #endif | |
62 | #include <wx/listctrl.h> | |
63 | #include <wx/treectrl.h> | |
64 | #include <wx/imaglist.h> | |
65 | ||
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 is required for parameter"; | |
97 | #endif | |
98 | ||
99 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
100 | int retval = 0; | |
101 | PyObject* func = (PyObject*)funcPtr; | |
102 | bool doSave = wxPyRestoreThread(); | |
103 | ||
104 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
105 | PyObject* result = PyEval_CallObject(func, args); | |
106 | Py_DECREF(args); | |
107 | if (result) { | |
108 | retval = PyInt_AsLong(result); | |
109 | Py_DECREF(result); | |
110 | } | |
111 | ||
112 | wxPySaveThread(doSave); | |
113 | return retval; | |
114 | } | |
115 | ||
116 | ||
117 | class wxPyTreeItemData : public wxTreeItemData { | |
118 | public: | |
119 | wxPyTreeItemData(PyObject* obj = NULL) { | |
120 | if (obj == NULL) | |
121 | obj = Py_None; | |
122 | Py_INCREF(obj); | |
123 | m_obj = obj; | |
124 | } | |
125 | ||
126 | ~wxPyTreeItemData() { | |
127 | bool doSave = wxPyRestoreThread(); | |
128 | Py_DECREF(m_obj); | |
129 | wxPySaveThread(doSave); | |
130 | } | |
131 | ||
132 | PyObject* GetData() { | |
133 | Py_INCREF(m_obj); | |
134 | return m_obj; | |
135 | } | |
136 | ||
137 | void SetData(PyObject* obj) { | |
138 | bool doSave = wxPyRestoreThread(); | |
139 | Py_DECREF(m_obj); | |
140 | wxPySaveThread(doSave); | |
141 | m_obj = obj; | |
142 | Py_INCREF(obj); | |
143 | } | |
144 | ||
145 | PyObject* m_obj; | |
146 | }; | |
147 | ||
148 | class wxPyTreeCtrl : public wxTreeCtrl { | |
149 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
150 | public: | |
151 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
152 | const wxPoint& pos, | |
153 | const wxSize& size, | |
154 | long style, | |
155 | const wxValidator& validator, | |
156 | char* name) : | |
157 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
158 | ||
159 | int OnCompareItems(const wxTreeItemId& item1, | |
160 | const wxTreeItemId& item2) { | |
161 | int rval = 0; | |
162 | bool doSave = wxPyRestoreThread(); | |
163 | if (m_myInst.findCallback("OnCompareItems")) | |
164 | rval = m_myInst.callCallback(Py_BuildValue( | |
165 | "(OO)", | |
166 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
167 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
168 | else | |
169 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
170 | wxPySaveThread(doSave); | |
171 | return rval; | |
172 | } | |
173 | PYPRIVATE; | |
174 | }; | |
175 | ||
176 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
177 | ||
178 | #ifdef __cplusplus | |
179 | extern "C" { | |
180 | #endif | |
181 | #define new_wxListItemAttr() (new wxListItemAttr()) | |
182 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
183 | PyObject * _resultobj; | |
184 | wxListItemAttr * _result; | |
185 | char *_kwnames[] = { NULL }; | |
186 | char _ptemp[128]; | |
187 | ||
188 | self = self; | |
189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItemAttr",_kwnames)) | |
190 | return NULL; | |
191 | { | |
192 | wxPy_BEGIN_ALLOW_THREADS; | |
193 | _result = (wxListItemAttr *)new_wxListItemAttr(); | |
194 | ||
195 | wxPy_END_ALLOW_THREADS; | |
196 | if (PyErr_Occurred()) return NULL; | |
197 | } if (_result) { | |
198 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
199 | _resultobj = Py_BuildValue("s",_ptemp); | |
200 | } else { | |
201 | Py_INCREF(Py_None); | |
202 | _resultobj = Py_None; | |
203 | } | |
204 | return _resultobj; | |
205 | } | |
206 | ||
207 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
208 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
209 | PyObject * _resultobj; | |
210 | wxListItemAttr * _arg0; | |
211 | wxColour * _arg1; | |
212 | PyObject * _argo0 = 0; | |
213 | wxColour temp; | |
214 | PyObject * _obj1 = 0; | |
215 | char *_kwnames[] = { "self","colText", NULL }; | |
216 | ||
217 | self = self; | |
218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
219 | return NULL; | |
220 | if (_argo0) { | |
221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
224 | return NULL; | |
225 | } | |
226 | } | |
227 | { | |
228 | _arg1 = &temp; | |
229 | if (! wxColour_helper(_obj1, &_arg1)) | |
230 | return NULL; | |
231 | } | |
232 | { | |
233 | wxPy_BEGIN_ALLOW_THREADS; | |
234 | wxListItemAttr_SetTextColour(_arg0,*_arg1); | |
235 | ||
236 | wxPy_END_ALLOW_THREADS; | |
237 | if (PyErr_Occurred()) return NULL; | |
238 | } Py_INCREF(Py_None); | |
239 | _resultobj = Py_None; | |
240 | return _resultobj; | |
241 | } | |
242 | ||
243 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
244 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
245 | PyObject * _resultobj; | |
246 | wxListItemAttr * _arg0; | |
247 | wxColour * _arg1; | |
248 | PyObject * _argo0 = 0; | |
249 | wxColour temp; | |
250 | PyObject * _obj1 = 0; | |
251 | char *_kwnames[] = { "self","colBack", NULL }; | |
252 | ||
253 | self = self; | |
254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
255 | return NULL; | |
256 | if (_argo0) { | |
257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
260 | return NULL; | |
261 | } | |
262 | } | |
263 | { | |
264 | _arg1 = &temp; | |
265 | if (! wxColour_helper(_obj1, &_arg1)) | |
266 | return NULL; | |
267 | } | |
268 | { | |
269 | wxPy_BEGIN_ALLOW_THREADS; | |
270 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
271 | ||
272 | wxPy_END_ALLOW_THREADS; | |
273 | if (PyErr_Occurred()) return NULL; | |
274 | } Py_INCREF(Py_None); | |
275 | _resultobj = Py_None; | |
276 | return _resultobj; | |
277 | } | |
278 | ||
279 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
280 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
281 | PyObject * _resultobj; | |
282 | wxListItemAttr * _arg0; | |
283 | wxFont * _arg1; | |
284 | PyObject * _argo0 = 0; | |
285 | PyObject * _argo1 = 0; | |
286 | char *_kwnames[] = { "self","font", NULL }; | |
287 | ||
288 | self = self; | |
289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
290 | return NULL; | |
291 | if (_argo0) { | |
292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
295 | return NULL; | |
296 | } | |
297 | } | |
298 | if (_argo1) { | |
299 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
300 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
302 | return NULL; | |
303 | } | |
304 | } | |
305 | { | |
306 | wxPy_BEGIN_ALLOW_THREADS; | |
307 | wxListItemAttr_SetFont(_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_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
317 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
318 | PyObject * _resultobj; | |
319 | bool _result; | |
320 | wxListItemAttr * _arg0; | |
321 | PyObject * _argo0 = 0; | |
322 | char *_kwnames[] = { "self", NULL }; | |
323 | ||
324 | self = self; | |
325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
326 | return NULL; | |
327 | if (_argo0) { | |
328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
331 | return NULL; | |
332 | } | |
333 | } | |
334 | { | |
335 | wxPy_BEGIN_ALLOW_THREADS; | |
336 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); | |
337 | ||
338 | wxPy_END_ALLOW_THREADS; | |
339 | if (PyErr_Occurred()) return NULL; | |
340 | } _resultobj = Py_BuildValue("i",_result); | |
341 | return _resultobj; | |
342 | } | |
343 | ||
344 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
345 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
346 | PyObject * _resultobj; | |
347 | bool _result; | |
348 | wxListItemAttr * _arg0; | |
349 | PyObject * _argo0 = 0; | |
350 | char *_kwnames[] = { "self", NULL }; | |
351 | ||
352 | self = self; | |
353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
354 | return NULL; | |
355 | if (_argo0) { | |
356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
359 | return NULL; | |
360 | } | |
361 | } | |
362 | { | |
363 | wxPy_BEGIN_ALLOW_THREADS; | |
364 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); | |
365 | ||
366 | wxPy_END_ALLOW_THREADS; | |
367 | if (PyErr_Occurred()) return NULL; | |
368 | } _resultobj = Py_BuildValue("i",_result); | |
369 | return _resultobj; | |
370 | } | |
371 | ||
372 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
373 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
374 | PyObject * _resultobj; | |
375 | bool _result; | |
376 | wxListItemAttr * _arg0; | |
377 | PyObject * _argo0 = 0; | |
378 | char *_kwnames[] = { "self", NULL }; | |
379 | ||
380 | self = self; | |
381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
382 | return NULL; | |
383 | if (_argo0) { | |
384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
387 | return NULL; | |
388 | } | |
389 | } | |
390 | { | |
391 | wxPy_BEGIN_ALLOW_THREADS; | |
392 | _result = (bool )wxListItemAttr_HasFont(_arg0); | |
393 | ||
394 | wxPy_END_ALLOW_THREADS; | |
395 | if (PyErr_Occurred()) return NULL; | |
396 | } _resultobj = Py_BuildValue("i",_result); | |
397 | return _resultobj; | |
398 | } | |
399 | ||
400 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
401 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
402 | PyObject * _resultobj; | |
403 | wxColour * _result; | |
404 | wxListItemAttr * _arg0; | |
405 | PyObject * _argo0 = 0; | |
406 | char *_kwnames[] = { "self", NULL }; | |
407 | char _ptemp[128]; | |
408 | ||
409 | self = self; | |
410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
411 | return NULL; | |
412 | if (_argo0) { | |
413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
416 | return NULL; | |
417 | } | |
418 | } | |
419 | { | |
420 | wxPy_BEGIN_ALLOW_THREADS; | |
421 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); | |
422 | _result = (wxColour *) &_result_ref; | |
423 | ||
424 | wxPy_END_ALLOW_THREADS; | |
425 | if (PyErr_Occurred()) return NULL; | |
426 | } if (_result) { | |
427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
428 | _resultobj = Py_BuildValue("s",_ptemp); | |
429 | } else { | |
430 | Py_INCREF(Py_None); | |
431 | _resultobj = Py_None; | |
432 | } | |
433 | return _resultobj; | |
434 | } | |
435 | ||
436 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
437 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
438 | PyObject * _resultobj; | |
439 | wxColour * _result; | |
440 | wxListItemAttr * _arg0; | |
441 | PyObject * _argo0 = 0; | |
442 | char *_kwnames[] = { "self", NULL }; | |
443 | char _ptemp[128]; | |
444 | ||
445 | self = self; | |
446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
447 | return NULL; | |
448 | if (_argo0) { | |
449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
452 | return NULL; | |
453 | } | |
454 | } | |
455 | { | |
456 | wxPy_BEGIN_ALLOW_THREADS; | |
457 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); | |
458 | _result = (wxColour *) &_result_ref; | |
459 | ||
460 | wxPy_END_ALLOW_THREADS; | |
461 | if (PyErr_Occurred()) return NULL; | |
462 | } if (_result) { | |
463 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
464 | _resultobj = Py_BuildValue("s",_ptemp); | |
465 | } else { | |
466 | Py_INCREF(Py_None); | |
467 | _resultobj = Py_None; | |
468 | } | |
469 | return _resultobj; | |
470 | } | |
471 | ||
472 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
473 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
474 | PyObject * _resultobj; | |
475 | wxFont * _result; | |
476 | wxListItemAttr * _arg0; | |
477 | PyObject * _argo0 = 0; | |
478 | char *_kwnames[] = { "self", NULL }; | |
479 | char _ptemp[128]; | |
480 | ||
481 | self = self; | |
482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
483 | return NULL; | |
484 | if (_argo0) { | |
485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
488 | return NULL; | |
489 | } | |
490 | } | |
491 | { | |
492 | wxPy_BEGIN_ALLOW_THREADS; | |
493 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); | |
494 | _result = (wxFont *) &_result_ref; | |
495 | ||
496 | wxPy_END_ALLOW_THREADS; | |
497 | if (PyErr_Occurred()) return NULL; | |
498 | } if (_result) { | |
499 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
500 | _resultobj = Py_BuildValue("s",_ptemp); | |
501 | } else { | |
502 | Py_INCREF(Py_None); | |
503 | _resultobj = Py_None; | |
504 | } | |
505 | return _resultobj; | |
506 | } | |
507 | ||
508 | static void *SwigwxListItemTowxObject(void *ptr) { | |
509 | wxListItem *src; | |
510 | wxObject *dest; | |
511 | src = (wxListItem *) ptr; | |
512 | dest = (wxObject *) src; | |
513 | return (void *) dest; | |
514 | } | |
515 | ||
516 | #define new_wxListItem() (new wxListItem()) | |
517 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
518 | PyObject * _resultobj; | |
519 | wxListItem * _result; | |
520 | char *_kwnames[] = { NULL }; | |
521 | char _ptemp[128]; | |
522 | ||
523 | self = self; | |
524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
525 | return NULL; | |
526 | { | |
527 | wxPy_BEGIN_ALLOW_THREADS; | |
528 | _result = (wxListItem *)new_wxListItem(); | |
529 | ||
530 | wxPy_END_ALLOW_THREADS; | |
531 | if (PyErr_Occurred()) return NULL; | |
532 | } if (_result) { | |
533 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
534 | _resultobj = Py_BuildValue("s",_ptemp); | |
535 | } else { | |
536 | Py_INCREF(Py_None); | |
537 | _resultobj = Py_None; | |
538 | } | |
539 | return _resultobj; | |
540 | } | |
541 | ||
542 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
543 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
544 | PyObject * _resultobj; | |
545 | wxListItem * _arg0; | |
546 | PyObject * _argo0 = 0; | |
547 | char *_kwnames[] = { "self", NULL }; | |
548 | ||
549 | self = self; | |
550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
551 | return NULL; | |
552 | if (_argo0) { | |
553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
556 | return NULL; | |
557 | } | |
558 | } | |
559 | { | |
560 | wxPy_BEGIN_ALLOW_THREADS; | |
561 | delete_wxListItem(_arg0); | |
562 | ||
563 | wxPy_END_ALLOW_THREADS; | |
564 | if (PyErr_Occurred()) return NULL; | |
565 | } Py_INCREF(Py_None); | |
566 | _resultobj = Py_None; | |
567 | return _resultobj; | |
568 | } | |
569 | ||
570 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
571 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
572 | PyObject * _resultobj; | |
573 | wxListItem * _arg0; | |
574 | PyObject * _argo0 = 0; | |
575 | char *_kwnames[] = { "self", NULL }; | |
576 | ||
577 | self = self; | |
578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
579 | return NULL; | |
580 | if (_argo0) { | |
581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
584 | return NULL; | |
585 | } | |
586 | } | |
587 | { | |
588 | wxPy_BEGIN_ALLOW_THREADS; | |
589 | wxListItem_Clear(_arg0); | |
590 | ||
591 | wxPy_END_ALLOW_THREADS; | |
592 | if (PyErr_Occurred()) return NULL; | |
593 | } Py_INCREF(Py_None); | |
594 | _resultobj = Py_None; | |
595 | return _resultobj; | |
596 | } | |
597 | ||
598 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
599 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
600 | PyObject * _resultobj; | |
601 | wxListItem * _arg0; | |
602 | PyObject * _argo0 = 0; | |
603 | char *_kwnames[] = { "self", NULL }; | |
604 | ||
605 | self = self; | |
606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
607 | return NULL; | |
608 | if (_argo0) { | |
609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
612 | return NULL; | |
613 | } | |
614 | } | |
615 | { | |
616 | wxPy_BEGIN_ALLOW_THREADS; | |
617 | wxListItem_ClearAttributes(_arg0); | |
618 | ||
619 | wxPy_END_ALLOW_THREADS; | |
620 | if (PyErr_Occurred()) return NULL; | |
621 | } Py_INCREF(Py_None); | |
622 | _resultobj = Py_None; | |
623 | return _resultobj; | |
624 | } | |
625 | ||
626 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
627 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
628 | PyObject * _resultobj; | |
629 | wxListItem * _arg0; | |
630 | long _arg1; | |
631 | PyObject * _argo0 = 0; | |
632 | char *_kwnames[] = { "self","mask", NULL }; | |
633 | ||
634 | self = self; | |
635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
636 | return NULL; | |
637 | if (_argo0) { | |
638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
641 | return NULL; | |
642 | } | |
643 | } | |
644 | { | |
645 | wxPy_BEGIN_ALLOW_THREADS; | |
646 | wxListItem_SetMask(_arg0,_arg1); | |
647 | ||
648 | wxPy_END_ALLOW_THREADS; | |
649 | if (PyErr_Occurred()) return NULL; | |
650 | } Py_INCREF(Py_None); | |
651 | _resultobj = Py_None; | |
652 | return _resultobj; | |
653 | } | |
654 | ||
655 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
656 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
657 | PyObject * _resultobj; | |
658 | wxListItem * _arg0; | |
659 | long _arg1; | |
660 | PyObject * _argo0 = 0; | |
661 | char *_kwnames[] = { "self","id", NULL }; | |
662 | ||
663 | self = self; | |
664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
665 | return NULL; | |
666 | if (_argo0) { | |
667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
670 | return NULL; | |
671 | } | |
672 | } | |
673 | { | |
674 | wxPy_BEGIN_ALLOW_THREADS; | |
675 | wxListItem_SetId(_arg0,_arg1); | |
676 | ||
677 | wxPy_END_ALLOW_THREADS; | |
678 | if (PyErr_Occurred()) return NULL; | |
679 | } Py_INCREF(Py_None); | |
680 | _resultobj = Py_None; | |
681 | return _resultobj; | |
682 | } | |
683 | ||
684 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
685 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
686 | PyObject * _resultobj; | |
687 | wxListItem * _arg0; | |
688 | int _arg1; | |
689 | PyObject * _argo0 = 0; | |
690 | char *_kwnames[] = { "self","col", NULL }; | |
691 | ||
692 | self = self; | |
693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
694 | return NULL; | |
695 | if (_argo0) { | |
696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
699 | return NULL; | |
700 | } | |
701 | } | |
702 | { | |
703 | wxPy_BEGIN_ALLOW_THREADS; | |
704 | wxListItem_SetColumn(_arg0,_arg1); | |
705 | ||
706 | wxPy_END_ALLOW_THREADS; | |
707 | if (PyErr_Occurred()) return NULL; | |
708 | } Py_INCREF(Py_None); | |
709 | _resultobj = Py_None; | |
710 | return _resultobj; | |
711 | } | |
712 | ||
713 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
714 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
715 | PyObject * _resultobj; | |
716 | wxListItem * _arg0; | |
717 | long _arg1; | |
718 | PyObject * _argo0 = 0; | |
719 | char *_kwnames[] = { "self","state", NULL }; | |
720 | ||
721 | self = self; | |
722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
723 | return NULL; | |
724 | if (_argo0) { | |
725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
728 | return NULL; | |
729 | } | |
730 | } | |
731 | { | |
732 | wxPy_BEGIN_ALLOW_THREADS; | |
733 | wxListItem_SetState(_arg0,_arg1); | |
734 | ||
735 | wxPy_END_ALLOW_THREADS; | |
736 | if (PyErr_Occurred()) return NULL; | |
737 | } Py_INCREF(Py_None); | |
738 | _resultobj = Py_None; | |
739 | return _resultobj; | |
740 | } | |
741 | ||
742 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
743 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
744 | PyObject * _resultobj; | |
745 | wxListItem * _arg0; | |
746 | long _arg1; | |
747 | PyObject * _argo0 = 0; | |
748 | char *_kwnames[] = { "self","stateMask", NULL }; | |
749 | ||
750 | self = self; | |
751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
752 | return NULL; | |
753 | if (_argo0) { | |
754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
757 | return NULL; | |
758 | } | |
759 | } | |
760 | { | |
761 | wxPy_BEGIN_ALLOW_THREADS; | |
762 | wxListItem_SetStateMask(_arg0,_arg1); | |
763 | ||
764 | wxPy_END_ALLOW_THREADS; | |
765 | if (PyErr_Occurred()) return NULL; | |
766 | } Py_INCREF(Py_None); | |
767 | _resultobj = Py_None; | |
768 | return _resultobj; | |
769 | } | |
770 | ||
771 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
772 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
773 | PyObject * _resultobj; | |
774 | wxListItem * _arg0; | |
775 | wxString * _arg1; | |
776 | PyObject * _argo0 = 0; | |
777 | PyObject * _obj1 = 0; | |
778 | char *_kwnames[] = { "self","text", NULL }; | |
779 | ||
780 | self = self; | |
781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
782 | return NULL; | |
783 | if (_argo0) { | |
784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
787 | return NULL; | |
788 | } | |
789 | } | |
790 | { | |
791 | #if PYTHON_API_VERSION >= 1009 | |
792 | char* tmpPtr; int tmpSize; | |
793 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
795 | return NULL; | |
796 | } | |
797 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
798 | return NULL; | |
799 | _arg1 = new wxString(tmpPtr, tmpSize); | |
800 | #else | |
801 | if (!PyString_Check(_obj1)) { | |
802 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
803 | return NULL; | |
804 | } | |
805 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
806 | #endif | |
807 | } | |
808 | { | |
809 | wxPy_BEGIN_ALLOW_THREADS; | |
810 | wxListItem_SetText(_arg0,*_arg1); | |
811 | ||
812 | wxPy_END_ALLOW_THREADS; | |
813 | if (PyErr_Occurred()) return NULL; | |
814 | } Py_INCREF(Py_None); | |
815 | _resultobj = Py_None; | |
816 | { | |
817 | if (_obj1) | |
818 | delete _arg1; | |
819 | } | |
820 | return _resultobj; | |
821 | } | |
822 | ||
823 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
824 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
825 | PyObject * _resultobj; | |
826 | wxListItem * _arg0; | |
827 | int _arg1; | |
828 | PyObject * _argo0 = 0; | |
829 | char *_kwnames[] = { "self","image", NULL }; | |
830 | ||
831 | self = self; | |
832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
833 | return NULL; | |
834 | if (_argo0) { | |
835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
838 | return NULL; | |
839 | } | |
840 | } | |
841 | { | |
842 | wxPy_BEGIN_ALLOW_THREADS; | |
843 | wxListItem_SetImage(_arg0,_arg1); | |
844 | ||
845 | wxPy_END_ALLOW_THREADS; | |
846 | if (PyErr_Occurred()) return NULL; | |
847 | } Py_INCREF(Py_None); | |
848 | _resultobj = Py_None; | |
849 | return _resultobj; | |
850 | } | |
851 | ||
852 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
853 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
854 | PyObject * _resultobj; | |
855 | wxListItem * _arg0; | |
856 | long _arg1; | |
857 | PyObject * _argo0 = 0; | |
858 | char *_kwnames[] = { "self","data", NULL }; | |
859 | ||
860 | self = self; | |
861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
862 | return NULL; | |
863 | if (_argo0) { | |
864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
867 | return NULL; | |
868 | } | |
869 | } | |
870 | { | |
871 | wxPy_BEGIN_ALLOW_THREADS; | |
872 | wxListItem_SetData(_arg0,_arg1); | |
873 | ||
874 | wxPy_END_ALLOW_THREADS; | |
875 | if (PyErr_Occurred()) return NULL; | |
876 | } Py_INCREF(Py_None); | |
877 | _resultobj = Py_None; | |
878 | return _resultobj; | |
879 | } | |
880 | ||
881 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
882 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
883 | PyObject * _resultobj; | |
884 | wxListItem * _arg0; | |
885 | int _arg1; | |
886 | PyObject * _argo0 = 0; | |
887 | char *_kwnames[] = { "self","width", NULL }; | |
888 | ||
889 | self = self; | |
890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
891 | return NULL; | |
892 | if (_argo0) { | |
893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
896 | return NULL; | |
897 | } | |
898 | } | |
899 | { | |
900 | wxPy_BEGIN_ALLOW_THREADS; | |
901 | wxListItem_SetWidth(_arg0,_arg1); | |
902 | ||
903 | wxPy_END_ALLOW_THREADS; | |
904 | if (PyErr_Occurred()) return NULL; | |
905 | } Py_INCREF(Py_None); | |
906 | _resultobj = Py_None; | |
907 | return _resultobj; | |
908 | } | |
909 | ||
910 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
911 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
912 | PyObject * _resultobj; | |
913 | wxListItem * _arg0; | |
914 | wxListColumnFormat _arg1; | |
915 | PyObject * _argo0 = 0; | |
916 | char *_kwnames[] = { "self","align", NULL }; | |
917 | ||
918 | self = self; | |
919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
920 | return NULL; | |
921 | if (_argo0) { | |
922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
925 | return NULL; | |
926 | } | |
927 | } | |
928 | { | |
929 | wxPy_BEGIN_ALLOW_THREADS; | |
930 | wxListItem_SetAlign(_arg0,_arg1); | |
931 | ||
932 | wxPy_END_ALLOW_THREADS; | |
933 | if (PyErr_Occurred()) return NULL; | |
934 | } Py_INCREF(Py_None); | |
935 | _resultobj = Py_None; | |
936 | return _resultobj; | |
937 | } | |
938 | ||
939 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
940 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
941 | PyObject * _resultobj; | |
942 | wxListItem * _arg0; | |
943 | wxColour * _arg1; | |
944 | PyObject * _argo0 = 0; | |
945 | wxColour temp; | |
946 | PyObject * _obj1 = 0; | |
947 | char *_kwnames[] = { "self","colText", NULL }; | |
948 | ||
949 | self = self; | |
950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
951 | return NULL; | |
952 | if (_argo0) { | |
953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
956 | return NULL; | |
957 | } | |
958 | } | |
959 | { | |
960 | _arg1 = &temp; | |
961 | if (! wxColour_helper(_obj1, &_arg1)) | |
962 | return NULL; | |
963 | } | |
964 | { | |
965 | wxPy_BEGIN_ALLOW_THREADS; | |
966 | wxListItem_SetTextColour(_arg0,*_arg1); | |
967 | ||
968 | wxPy_END_ALLOW_THREADS; | |
969 | if (PyErr_Occurred()) return NULL; | |
970 | } Py_INCREF(Py_None); | |
971 | _resultobj = Py_None; | |
972 | return _resultobj; | |
973 | } | |
974 | ||
975 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
976 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
977 | PyObject * _resultobj; | |
978 | wxListItem * _arg0; | |
979 | wxColour * _arg1; | |
980 | PyObject * _argo0 = 0; | |
981 | wxColour temp; | |
982 | PyObject * _obj1 = 0; | |
983 | char *_kwnames[] = { "self","colBack", NULL }; | |
984 | ||
985 | self = self; | |
986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
987 | return NULL; | |
988 | if (_argo0) { | |
989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
992 | return NULL; | |
993 | } | |
994 | } | |
995 | { | |
996 | _arg1 = &temp; | |
997 | if (! wxColour_helper(_obj1, &_arg1)) | |
998 | return NULL; | |
999 | } | |
1000 | { | |
1001 | wxPy_BEGIN_ALLOW_THREADS; | |
1002 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
1003 | ||
1004 | wxPy_END_ALLOW_THREADS; | |
1005 | if (PyErr_Occurred()) return NULL; | |
1006 | } Py_INCREF(Py_None); | |
1007 | _resultobj = Py_None; | |
1008 | return _resultobj; | |
1009 | } | |
1010 | ||
1011 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1012 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1013 | PyObject * _resultobj; | |
1014 | wxListItem * _arg0; | |
1015 | wxFont * _arg1; | |
1016 | PyObject * _argo0 = 0; | |
1017 | PyObject * _argo1 = 0; | |
1018 | char *_kwnames[] = { "self","font", NULL }; | |
1019 | ||
1020 | self = self; | |
1021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1022 | return NULL; | |
1023 | if (_argo0) { | |
1024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1027 | return NULL; | |
1028 | } | |
1029 | } | |
1030 | if (_argo1) { | |
1031 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1032 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1034 | return NULL; | |
1035 | } | |
1036 | } | |
1037 | { | |
1038 | wxPy_BEGIN_ALLOW_THREADS; | |
1039 | wxListItem_SetFont(_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_GetMask(_swigobj) (_swigobj->GetMask()) | |
1049 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1050 | PyObject * _resultobj; | |
1051 | long _result; | |
1052 | wxListItem * _arg0; | |
1053 | PyObject * _argo0 = 0; | |
1054 | char *_kwnames[] = { "self", NULL }; | |
1055 | ||
1056 | self = self; | |
1057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1058 | return NULL; | |
1059 | if (_argo0) { | |
1060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1063 | return NULL; | |
1064 | } | |
1065 | } | |
1066 | { | |
1067 | wxPy_BEGIN_ALLOW_THREADS; | |
1068 | _result = (long )wxListItem_GetMask(_arg0); | |
1069 | ||
1070 | wxPy_END_ALLOW_THREADS; | |
1071 | if (PyErr_Occurred()) return NULL; | |
1072 | } _resultobj = Py_BuildValue("l",_result); | |
1073 | return _resultobj; | |
1074 | } | |
1075 | ||
1076 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1077 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1078 | PyObject * _resultobj; | |
1079 | long _result; | |
1080 | wxListItem * _arg0; | |
1081 | PyObject * _argo0 = 0; | |
1082 | char *_kwnames[] = { "self", NULL }; | |
1083 | ||
1084 | self = self; | |
1085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1086 | return NULL; | |
1087 | if (_argo0) { | |
1088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1091 | return NULL; | |
1092 | } | |
1093 | } | |
1094 | { | |
1095 | wxPy_BEGIN_ALLOW_THREADS; | |
1096 | _result = (long )wxListItem_GetId(_arg0); | |
1097 | ||
1098 | wxPy_END_ALLOW_THREADS; | |
1099 | if (PyErr_Occurred()) return NULL; | |
1100 | } _resultobj = Py_BuildValue("l",_result); | |
1101 | return _resultobj; | |
1102 | } | |
1103 | ||
1104 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1105 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1106 | PyObject * _resultobj; | |
1107 | int _result; | |
1108 | wxListItem * _arg0; | |
1109 | PyObject * _argo0 = 0; | |
1110 | char *_kwnames[] = { "self", NULL }; | |
1111 | ||
1112 | self = self; | |
1113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1114 | return NULL; | |
1115 | if (_argo0) { | |
1116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1119 | return NULL; | |
1120 | } | |
1121 | } | |
1122 | { | |
1123 | wxPy_BEGIN_ALLOW_THREADS; | |
1124 | _result = (int )wxListItem_GetColumn(_arg0); | |
1125 | ||
1126 | wxPy_END_ALLOW_THREADS; | |
1127 | if (PyErr_Occurred()) return NULL; | |
1128 | } _resultobj = Py_BuildValue("i",_result); | |
1129 | return _resultobj; | |
1130 | } | |
1131 | ||
1132 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1133 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1134 | PyObject * _resultobj; | |
1135 | long _result; | |
1136 | wxListItem * _arg0; | |
1137 | PyObject * _argo0 = 0; | |
1138 | char *_kwnames[] = { "self", NULL }; | |
1139 | ||
1140 | self = self; | |
1141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1142 | return NULL; | |
1143 | if (_argo0) { | |
1144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1147 | return NULL; | |
1148 | } | |
1149 | } | |
1150 | { | |
1151 | wxPy_BEGIN_ALLOW_THREADS; | |
1152 | _result = (long )wxListItem_GetState(_arg0); | |
1153 | ||
1154 | wxPy_END_ALLOW_THREADS; | |
1155 | if (PyErr_Occurred()) return NULL; | |
1156 | } _resultobj = Py_BuildValue("l",_result); | |
1157 | return _resultobj; | |
1158 | } | |
1159 | ||
1160 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1161 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1162 | PyObject * _resultobj; | |
1163 | wxString * _result; | |
1164 | wxListItem * _arg0; | |
1165 | PyObject * _argo0 = 0; | |
1166 | char *_kwnames[] = { "self", NULL }; | |
1167 | ||
1168 | self = self; | |
1169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1170 | return NULL; | |
1171 | if (_argo0) { | |
1172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1175 | return NULL; | |
1176 | } | |
1177 | } | |
1178 | { | |
1179 | wxPy_BEGIN_ALLOW_THREADS; | |
1180 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1181 | _result = (wxString *) &_result_ref; | |
1182 | ||
1183 | wxPy_END_ALLOW_THREADS; | |
1184 | if (PyErr_Occurred()) return NULL; | |
1185 | }{ | |
1186 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1187 | } | |
1188 | return _resultobj; | |
1189 | } | |
1190 | ||
1191 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1192 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1193 | PyObject * _resultobj; | |
1194 | int _result; | |
1195 | wxListItem * _arg0; | |
1196 | PyObject * _argo0 = 0; | |
1197 | char *_kwnames[] = { "self", NULL }; | |
1198 | ||
1199 | self = self; | |
1200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1201 | return NULL; | |
1202 | if (_argo0) { | |
1203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1206 | return NULL; | |
1207 | } | |
1208 | } | |
1209 | { | |
1210 | wxPy_BEGIN_ALLOW_THREADS; | |
1211 | _result = (int )wxListItem_GetImage(_arg0); | |
1212 | ||
1213 | wxPy_END_ALLOW_THREADS; | |
1214 | if (PyErr_Occurred()) return NULL; | |
1215 | } _resultobj = Py_BuildValue("i",_result); | |
1216 | return _resultobj; | |
1217 | } | |
1218 | ||
1219 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1220 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1221 | PyObject * _resultobj; | |
1222 | long _result; | |
1223 | wxListItem * _arg0; | |
1224 | PyObject * _argo0 = 0; | |
1225 | char *_kwnames[] = { "self", NULL }; | |
1226 | ||
1227 | self = self; | |
1228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1229 | return NULL; | |
1230 | if (_argo0) { | |
1231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1234 | return NULL; | |
1235 | } | |
1236 | } | |
1237 | { | |
1238 | wxPy_BEGIN_ALLOW_THREADS; | |
1239 | _result = (long )wxListItem_GetData(_arg0); | |
1240 | ||
1241 | wxPy_END_ALLOW_THREADS; | |
1242 | if (PyErr_Occurred()) return NULL; | |
1243 | } _resultobj = Py_BuildValue("l",_result); | |
1244 | return _resultobj; | |
1245 | } | |
1246 | ||
1247 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1248 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1249 | PyObject * _resultobj; | |
1250 | int _result; | |
1251 | wxListItem * _arg0; | |
1252 | PyObject * _argo0 = 0; | |
1253 | char *_kwnames[] = { "self", NULL }; | |
1254 | ||
1255 | self = self; | |
1256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1257 | return NULL; | |
1258 | if (_argo0) { | |
1259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1262 | return NULL; | |
1263 | } | |
1264 | } | |
1265 | { | |
1266 | wxPy_BEGIN_ALLOW_THREADS; | |
1267 | _result = (int )wxListItem_GetWidth(_arg0); | |
1268 | ||
1269 | wxPy_END_ALLOW_THREADS; | |
1270 | if (PyErr_Occurred()) return NULL; | |
1271 | } _resultobj = Py_BuildValue("i",_result); | |
1272 | return _resultobj; | |
1273 | } | |
1274 | ||
1275 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1276 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1277 | PyObject * _resultobj; | |
1278 | wxListColumnFormat _result; | |
1279 | wxListItem * _arg0; | |
1280 | PyObject * _argo0 = 0; | |
1281 | char *_kwnames[] = { "self", NULL }; | |
1282 | ||
1283 | self = self; | |
1284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1285 | return NULL; | |
1286 | if (_argo0) { | |
1287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1290 | return NULL; | |
1291 | } | |
1292 | } | |
1293 | { | |
1294 | wxPy_BEGIN_ALLOW_THREADS; | |
1295 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1296 | ||
1297 | wxPy_END_ALLOW_THREADS; | |
1298 | if (PyErr_Occurred()) return NULL; | |
1299 | } _resultobj = Py_BuildValue("i",_result); | |
1300 | return _resultobj; | |
1301 | } | |
1302 | ||
1303 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1304 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1305 | PyObject * _resultobj; | |
1306 | wxListItemAttr * _result; | |
1307 | wxListItem * _arg0; | |
1308 | PyObject * _argo0 = 0; | |
1309 | char *_kwnames[] = { "self", NULL }; | |
1310 | char _ptemp[128]; | |
1311 | ||
1312 | self = self; | |
1313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1314 | return NULL; | |
1315 | if (_argo0) { | |
1316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1319 | return NULL; | |
1320 | } | |
1321 | } | |
1322 | { | |
1323 | wxPy_BEGIN_ALLOW_THREADS; | |
1324 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1325 | ||
1326 | wxPy_END_ALLOW_THREADS; | |
1327 | if (PyErr_Occurred()) return NULL; | |
1328 | } if (_result) { | |
1329 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1330 | _resultobj = Py_BuildValue("s",_ptemp); | |
1331 | } else { | |
1332 | Py_INCREF(Py_None); | |
1333 | _resultobj = Py_None; | |
1334 | } | |
1335 | return _resultobj; | |
1336 | } | |
1337 | ||
1338 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1339 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1340 | PyObject * _resultobj; | |
1341 | bool _result; | |
1342 | wxListItem * _arg0; | |
1343 | PyObject * _argo0 = 0; | |
1344 | char *_kwnames[] = { "self", NULL }; | |
1345 | ||
1346 | self = self; | |
1347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1348 | return NULL; | |
1349 | if (_argo0) { | |
1350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1353 | return NULL; | |
1354 | } | |
1355 | } | |
1356 | { | |
1357 | wxPy_BEGIN_ALLOW_THREADS; | |
1358 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1359 | ||
1360 | wxPy_END_ALLOW_THREADS; | |
1361 | if (PyErr_Occurred()) return NULL; | |
1362 | } _resultobj = Py_BuildValue("i",_result); | |
1363 | return _resultobj; | |
1364 | } | |
1365 | ||
1366 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1367 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1368 | PyObject * _resultobj; | |
1369 | wxColour * _result; | |
1370 | wxListItem * _arg0; | |
1371 | PyObject * _argo0 = 0; | |
1372 | char *_kwnames[] = { "self", NULL }; | |
1373 | char _ptemp[128]; | |
1374 | ||
1375 | self = self; | |
1376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1377 | return NULL; | |
1378 | if (_argo0) { | |
1379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1382 | return NULL; | |
1383 | } | |
1384 | } | |
1385 | { | |
1386 | wxPy_BEGIN_ALLOW_THREADS; | |
1387 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1388 | ||
1389 | wxPy_END_ALLOW_THREADS; | |
1390 | if (PyErr_Occurred()) return NULL; | |
1391 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1392 | _resultobj = Py_BuildValue("s",_ptemp); | |
1393 | return _resultobj; | |
1394 | } | |
1395 | ||
1396 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1397 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1398 | PyObject * _resultobj; | |
1399 | wxColour * _result; | |
1400 | wxListItem * _arg0; | |
1401 | PyObject * _argo0 = 0; | |
1402 | char *_kwnames[] = { "self", NULL }; | |
1403 | char _ptemp[128]; | |
1404 | ||
1405 | self = self; | |
1406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1407 | return NULL; | |
1408 | if (_argo0) { | |
1409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1412 | return NULL; | |
1413 | } | |
1414 | } | |
1415 | { | |
1416 | wxPy_BEGIN_ALLOW_THREADS; | |
1417 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1418 | ||
1419 | wxPy_END_ALLOW_THREADS; | |
1420 | if (PyErr_Occurred()) return NULL; | |
1421 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1422 | _resultobj = Py_BuildValue("s",_ptemp); | |
1423 | return _resultobj; | |
1424 | } | |
1425 | ||
1426 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1427 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1428 | PyObject * _resultobj; | |
1429 | wxFont * _result; | |
1430 | wxListItem * _arg0; | |
1431 | PyObject * _argo0 = 0; | |
1432 | char *_kwnames[] = { "self", NULL }; | |
1433 | char _ptemp[128]; | |
1434 | ||
1435 | self = self; | |
1436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1437 | return NULL; | |
1438 | if (_argo0) { | |
1439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1442 | return NULL; | |
1443 | } | |
1444 | } | |
1445 | { | |
1446 | wxPy_BEGIN_ALLOW_THREADS; | |
1447 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1448 | ||
1449 | wxPy_END_ALLOW_THREADS; | |
1450 | if (PyErr_Occurred()) return NULL; | |
1451 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1452 | _resultobj = Py_BuildValue("s",_ptemp); | |
1453 | return _resultobj; | |
1454 | } | |
1455 | ||
1456 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1457 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1458 | PyObject * _resultobj; | |
1459 | long _result; | |
1460 | wxListItem * _arg0; | |
1461 | long _arg1; | |
1462 | PyObject * _argo0 = 0; | |
1463 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1464 | ||
1465 | self = self; | |
1466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1467 | return NULL; | |
1468 | if (_argo0) { | |
1469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1472 | return NULL; | |
1473 | } | |
1474 | } | |
1475 | { | |
1476 | wxPy_BEGIN_ALLOW_THREADS; | |
1477 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1478 | ||
1479 | wxPy_END_ALLOW_THREADS; | |
1480 | if (PyErr_Occurred()) return NULL; | |
1481 | } _resultobj = Py_BuildValue("l",_result); | |
1482 | return _resultobj; | |
1483 | } | |
1484 | ||
1485 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1486 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1487 | PyObject * _resultobj; | |
1488 | long _result; | |
1489 | wxListItem * _arg0; | |
1490 | PyObject * _argo0 = 0; | |
1491 | char *_kwnames[] = { "self", NULL }; | |
1492 | ||
1493 | self = self; | |
1494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1495 | return NULL; | |
1496 | if (_argo0) { | |
1497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1500 | return NULL; | |
1501 | } | |
1502 | } | |
1503 | { | |
1504 | wxPy_BEGIN_ALLOW_THREADS; | |
1505 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1506 | ||
1507 | wxPy_END_ALLOW_THREADS; | |
1508 | if (PyErr_Occurred()) return NULL; | |
1509 | } _resultobj = Py_BuildValue("l",_result); | |
1510 | return _resultobj; | |
1511 | } | |
1512 | ||
1513 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1514 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1515 | PyObject * _resultobj; | |
1516 | long _result; | |
1517 | wxListItem * _arg0; | |
1518 | long _arg1; | |
1519 | PyObject * _argo0 = 0; | |
1520 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1521 | ||
1522 | self = self; | |
1523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1524 | return NULL; | |
1525 | if (_argo0) { | |
1526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1529 | return NULL; | |
1530 | } | |
1531 | } | |
1532 | { | |
1533 | wxPy_BEGIN_ALLOW_THREADS; | |
1534 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); | |
1535 | ||
1536 | wxPy_END_ALLOW_THREADS; | |
1537 | if (PyErr_Occurred()) return NULL; | |
1538 | } _resultobj = Py_BuildValue("l",_result); | |
1539 | return _resultobj; | |
1540 | } | |
1541 | ||
1542 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1543 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1544 | PyObject * _resultobj; | |
1545 | long _result; | |
1546 | wxListItem * _arg0; | |
1547 | PyObject * _argo0 = 0; | |
1548 | char *_kwnames[] = { "self", NULL }; | |
1549 | ||
1550 | self = self; | |
1551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1552 | return NULL; | |
1553 | if (_argo0) { | |
1554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1557 | return NULL; | |
1558 | } | |
1559 | } | |
1560 | { | |
1561 | wxPy_BEGIN_ALLOW_THREADS; | |
1562 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1563 | ||
1564 | wxPy_END_ALLOW_THREADS; | |
1565 | if (PyErr_Occurred()) return NULL; | |
1566 | } _resultobj = Py_BuildValue("l",_result); | |
1567 | return _resultobj; | |
1568 | } | |
1569 | ||
1570 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1571 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1572 | PyObject * _resultobj; | |
1573 | int _result; | |
1574 | wxListItem * _arg0; | |
1575 | int _arg1; | |
1576 | PyObject * _argo0 = 0; | |
1577 | char *_kwnames[] = { "self","m_col", NULL }; | |
1578 | ||
1579 | self = self; | |
1580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1581 | return NULL; | |
1582 | if (_argo0) { | |
1583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1586 | return NULL; | |
1587 | } | |
1588 | } | |
1589 | { | |
1590 | wxPy_BEGIN_ALLOW_THREADS; | |
1591 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1592 | ||
1593 | wxPy_END_ALLOW_THREADS; | |
1594 | if (PyErr_Occurred()) return NULL; | |
1595 | } _resultobj = Py_BuildValue("i",_result); | |
1596 | return _resultobj; | |
1597 | } | |
1598 | ||
1599 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1600 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1601 | PyObject * _resultobj; | |
1602 | int _result; | |
1603 | wxListItem * _arg0; | |
1604 | PyObject * _argo0 = 0; | |
1605 | char *_kwnames[] = { "self", NULL }; | |
1606 | ||
1607 | self = self; | |
1608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1609 | return NULL; | |
1610 | if (_argo0) { | |
1611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1614 | return NULL; | |
1615 | } | |
1616 | } | |
1617 | { | |
1618 | wxPy_BEGIN_ALLOW_THREADS; | |
1619 | _result = (int )wxListItem_m_col_get(_arg0); | |
1620 | ||
1621 | wxPy_END_ALLOW_THREADS; | |
1622 | if (PyErr_Occurred()) return NULL; | |
1623 | } _resultobj = Py_BuildValue("i",_result); | |
1624 | return _resultobj; | |
1625 | } | |
1626 | ||
1627 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1628 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject * _resultobj; | |
1630 | long _result; | |
1631 | wxListItem * _arg0; | |
1632 | long _arg1; | |
1633 | PyObject * _argo0 = 0; | |
1634 | char *_kwnames[] = { "self","m_state", NULL }; | |
1635 | ||
1636 | self = self; | |
1637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1638 | return NULL; | |
1639 | if (_argo0) { | |
1640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1643 | return NULL; | |
1644 | } | |
1645 | } | |
1646 | { | |
1647 | wxPy_BEGIN_ALLOW_THREADS; | |
1648 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1649 | ||
1650 | wxPy_END_ALLOW_THREADS; | |
1651 | if (PyErr_Occurred()) return NULL; | |
1652 | } _resultobj = Py_BuildValue("l",_result); | |
1653 | return _resultobj; | |
1654 | } | |
1655 | ||
1656 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1657 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1658 | PyObject * _resultobj; | |
1659 | long _result; | |
1660 | wxListItem * _arg0; | |
1661 | PyObject * _argo0 = 0; | |
1662 | char *_kwnames[] = { "self", NULL }; | |
1663 | ||
1664 | self = self; | |
1665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1666 | return NULL; | |
1667 | if (_argo0) { | |
1668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1671 | return NULL; | |
1672 | } | |
1673 | } | |
1674 | { | |
1675 | wxPy_BEGIN_ALLOW_THREADS; | |
1676 | _result = (long )wxListItem_m_state_get(_arg0); | |
1677 | ||
1678 | wxPy_END_ALLOW_THREADS; | |
1679 | if (PyErr_Occurred()) return NULL; | |
1680 | } _resultobj = Py_BuildValue("l",_result); | |
1681 | return _resultobj; | |
1682 | } | |
1683 | ||
1684 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1685 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1686 | PyObject * _resultobj; | |
1687 | long _result; | |
1688 | wxListItem * _arg0; | |
1689 | long _arg1; | |
1690 | PyObject * _argo0 = 0; | |
1691 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1692 | ||
1693 | self = self; | |
1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1695 | return NULL; | |
1696 | if (_argo0) { | |
1697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1700 | return NULL; | |
1701 | } | |
1702 | } | |
1703 | { | |
1704 | wxPy_BEGIN_ALLOW_THREADS; | |
1705 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1706 | ||
1707 | wxPy_END_ALLOW_THREADS; | |
1708 | if (PyErr_Occurred()) return NULL; | |
1709 | } _resultobj = Py_BuildValue("l",_result); | |
1710 | return _resultobj; | |
1711 | } | |
1712 | ||
1713 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1714 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1715 | PyObject * _resultobj; | |
1716 | long _result; | |
1717 | wxListItem * _arg0; | |
1718 | PyObject * _argo0 = 0; | |
1719 | char *_kwnames[] = { "self", NULL }; | |
1720 | ||
1721 | self = self; | |
1722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1723 | return NULL; | |
1724 | if (_argo0) { | |
1725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1728 | return NULL; | |
1729 | } | |
1730 | } | |
1731 | { | |
1732 | wxPy_BEGIN_ALLOW_THREADS; | |
1733 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
1734 | ||
1735 | wxPy_END_ALLOW_THREADS; | |
1736 | if (PyErr_Occurred()) return NULL; | |
1737 | } _resultobj = Py_BuildValue("l",_result); | |
1738 | return _resultobj; | |
1739 | } | |
1740 | ||
1741 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1742 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1743 | PyObject * _resultobj; | |
1744 | wxString * _result; | |
1745 | wxListItem * _arg0; | |
1746 | wxString * _arg1; | |
1747 | PyObject * _argo0 = 0; | |
1748 | PyObject * _obj1 = 0; | |
1749 | char *_kwnames[] = { "self","m_text", NULL }; | |
1750 | ||
1751 | self = self; | |
1752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1753 | return NULL; | |
1754 | if (_argo0) { | |
1755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1758 | return NULL; | |
1759 | } | |
1760 | } | |
1761 | { | |
1762 | #if PYTHON_API_VERSION >= 1009 | |
1763 | char* tmpPtr; int tmpSize; | |
1764 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1765 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1766 | return NULL; | |
1767 | } | |
1768 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1769 | return NULL; | |
1770 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1771 | #else | |
1772 | if (!PyString_Check(_obj1)) { | |
1773 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1774 | return NULL; | |
1775 | } | |
1776 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1777 | #endif | |
1778 | } | |
1779 | { | |
1780 | wxPy_BEGIN_ALLOW_THREADS; | |
1781 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1782 | ||
1783 | wxPy_END_ALLOW_THREADS; | |
1784 | if (PyErr_Occurred()) return NULL; | |
1785 | }{ | |
1786 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1787 | } | |
1788 | { | |
1789 | if (_obj1) | |
1790 | delete _arg1; | |
1791 | } | |
1792 | return _resultobj; | |
1793 | } | |
1794 | ||
1795 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1796 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1797 | PyObject * _resultobj; | |
1798 | wxString * _result; | |
1799 | wxListItem * _arg0; | |
1800 | PyObject * _argo0 = 0; | |
1801 | char *_kwnames[] = { "self", NULL }; | |
1802 | ||
1803 | self = self; | |
1804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1805 | return NULL; | |
1806 | if (_argo0) { | |
1807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1810 | return NULL; | |
1811 | } | |
1812 | } | |
1813 | { | |
1814 | wxPy_BEGIN_ALLOW_THREADS; | |
1815 | _result = (wxString *)wxListItem_m_text_get(_arg0); | |
1816 | ||
1817 | wxPy_END_ALLOW_THREADS; | |
1818 | if (PyErr_Occurred()) return NULL; | |
1819 | }{ | |
1820 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1821 | } | |
1822 | return _resultobj; | |
1823 | } | |
1824 | ||
1825 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1826 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1827 | PyObject * _resultobj; | |
1828 | int _result; | |
1829 | wxListItem * _arg0; | |
1830 | int _arg1; | |
1831 | PyObject * _argo0 = 0; | |
1832 | char *_kwnames[] = { "self","m_image", NULL }; | |
1833 | ||
1834 | self = self; | |
1835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1836 | return NULL; | |
1837 | if (_argo0) { | |
1838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1841 | return NULL; | |
1842 | } | |
1843 | } | |
1844 | { | |
1845 | wxPy_BEGIN_ALLOW_THREADS; | |
1846 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); | |
1847 | ||
1848 | wxPy_END_ALLOW_THREADS; | |
1849 | if (PyErr_Occurred()) return NULL; | |
1850 | } _resultobj = Py_BuildValue("i",_result); | |
1851 | return _resultobj; | |
1852 | } | |
1853 | ||
1854 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1855 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1856 | PyObject * _resultobj; | |
1857 | int _result; | |
1858 | wxListItem * _arg0; | |
1859 | PyObject * _argo0 = 0; | |
1860 | char *_kwnames[] = { "self", NULL }; | |
1861 | ||
1862 | self = self; | |
1863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1864 | return NULL; | |
1865 | if (_argo0) { | |
1866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1869 | return NULL; | |
1870 | } | |
1871 | } | |
1872 | { | |
1873 | wxPy_BEGIN_ALLOW_THREADS; | |
1874 | _result = (int )wxListItem_m_image_get(_arg0); | |
1875 | ||
1876 | wxPy_END_ALLOW_THREADS; | |
1877 | if (PyErr_Occurred()) return NULL; | |
1878 | } _resultobj = Py_BuildValue("i",_result); | |
1879 | return _resultobj; | |
1880 | } | |
1881 | ||
1882 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1883 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1884 | PyObject * _resultobj; | |
1885 | long _result; | |
1886 | wxListItem * _arg0; | |
1887 | long _arg1; | |
1888 | PyObject * _argo0 = 0; | |
1889 | char *_kwnames[] = { "self","m_data", NULL }; | |
1890 | ||
1891 | self = self; | |
1892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1893 | return NULL; | |
1894 | if (_argo0) { | |
1895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1898 | return NULL; | |
1899 | } | |
1900 | } | |
1901 | { | |
1902 | wxPy_BEGIN_ALLOW_THREADS; | |
1903 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); | |
1904 | ||
1905 | wxPy_END_ALLOW_THREADS; | |
1906 | if (PyErr_Occurred()) return NULL; | |
1907 | } _resultobj = Py_BuildValue("l",_result); | |
1908 | return _resultobj; | |
1909 | } | |
1910 | ||
1911 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1912 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1913 | PyObject * _resultobj; | |
1914 | long _result; | |
1915 | wxListItem * _arg0; | |
1916 | PyObject * _argo0 = 0; | |
1917 | char *_kwnames[] = { "self", NULL }; | |
1918 | ||
1919 | self = self; | |
1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1921 | return NULL; | |
1922 | if (_argo0) { | |
1923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1926 | return NULL; | |
1927 | } | |
1928 | } | |
1929 | { | |
1930 | wxPy_BEGIN_ALLOW_THREADS; | |
1931 | _result = (long )wxListItem_m_data_get(_arg0); | |
1932 | ||
1933 | wxPy_END_ALLOW_THREADS; | |
1934 | if (PyErr_Occurred()) return NULL; | |
1935 | } _resultobj = Py_BuildValue("l",_result); | |
1936 | return _resultobj; | |
1937 | } | |
1938 | ||
1939 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1940 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1941 | PyObject * _resultobj; | |
1942 | int _result; | |
1943 | wxListItem * _arg0; | |
1944 | int _arg1; | |
1945 | PyObject * _argo0 = 0; | |
1946 | char *_kwnames[] = { "self","m_format", NULL }; | |
1947 | ||
1948 | self = self; | |
1949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
1950 | return NULL; | |
1951 | if (_argo0) { | |
1952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
1955 | return NULL; | |
1956 | } | |
1957 | } | |
1958 | { | |
1959 | wxPy_BEGIN_ALLOW_THREADS; | |
1960 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); | |
1961 | ||
1962 | wxPy_END_ALLOW_THREADS; | |
1963 | if (PyErr_Occurred()) return NULL; | |
1964 | } _resultobj = Py_BuildValue("i",_result); | |
1965 | return _resultobj; | |
1966 | } | |
1967 | ||
1968 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
1969 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1970 | PyObject * _resultobj; | |
1971 | int _result; | |
1972 | wxListItem * _arg0; | |
1973 | PyObject * _argo0 = 0; | |
1974 | char *_kwnames[] = { "self", NULL }; | |
1975 | ||
1976 | self = self; | |
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
1978 | return NULL; | |
1979 | if (_argo0) { | |
1980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
1983 | return NULL; | |
1984 | } | |
1985 | } | |
1986 | { | |
1987 | wxPy_BEGIN_ALLOW_THREADS; | |
1988 | _result = (int )wxListItem_m_format_get(_arg0); | |
1989 | ||
1990 | wxPy_END_ALLOW_THREADS; | |
1991 | if (PyErr_Occurred()) return NULL; | |
1992 | } _resultobj = Py_BuildValue("i",_result); | |
1993 | return _resultobj; | |
1994 | } | |
1995 | ||
1996 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) | |
1997 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1998 | PyObject * _resultobj; | |
1999 | int _result; | |
2000 | wxListItem * _arg0; | |
2001 | int _arg1; | |
2002 | PyObject * _argo0 = 0; | |
2003 | char *_kwnames[] = { "self","m_width", NULL }; | |
2004 | ||
2005 | self = self; | |
2006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) | |
2007 | return NULL; | |
2008 | if (_argo0) { | |
2009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); | |
2012 | return NULL; | |
2013 | } | |
2014 | } | |
2015 | { | |
2016 | wxPy_BEGIN_ALLOW_THREADS; | |
2017 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); | |
2018 | ||
2019 | wxPy_END_ALLOW_THREADS; | |
2020 | if (PyErr_Occurred()) return NULL; | |
2021 | } _resultobj = Py_BuildValue("i",_result); | |
2022 | return _resultobj; | |
2023 | } | |
2024 | ||
2025 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) | |
2026 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2027 | PyObject * _resultobj; | |
2028 | int _result; | |
2029 | wxListItem * _arg0; | |
2030 | PyObject * _argo0 = 0; | |
2031 | char *_kwnames[] = { "self", NULL }; | |
2032 | ||
2033 | self = self; | |
2034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) | |
2035 | return NULL; | |
2036 | if (_argo0) { | |
2037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); | |
2040 | return NULL; | |
2041 | } | |
2042 | } | |
2043 | { | |
2044 | wxPy_BEGIN_ALLOW_THREADS; | |
2045 | _result = (int )wxListItem_m_width_get(_arg0); | |
2046 | ||
2047 | wxPy_END_ALLOW_THREADS; | |
2048 | if (PyErr_Occurred()) return NULL; | |
2049 | } _resultobj = Py_BuildValue("i",_result); | |
2050 | return _resultobj; | |
2051 | } | |
2052 | ||
2053 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { | |
2054 | wxListEvent *src; | |
2055 | wxNotifyEvent *dest; | |
2056 | src = (wxListEvent *) ptr; | |
2057 | dest = (wxNotifyEvent *) src; | |
2058 | return (void *) dest; | |
2059 | } | |
2060 | ||
2061 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { | |
2062 | wxListEvent *src; | |
2063 | wxCommandEvent *dest; | |
2064 | src = (wxListEvent *) ptr; | |
2065 | dest = (wxCommandEvent *) src; | |
2066 | return (void *) dest; | |
2067 | } | |
2068 | ||
2069 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2070 | wxListEvent *src; | |
2071 | wxEvent *dest; | |
2072 | src = (wxListEvent *) ptr; | |
2073 | dest = (wxEvent *) src; | |
2074 | return (void *) dest; | |
2075 | } | |
2076 | ||
2077 | static void *SwigwxListEventTowxObject(void *ptr) { | |
2078 | wxListEvent *src; | |
2079 | wxObject *dest; | |
2080 | src = (wxListEvent *) ptr; | |
2081 | dest = (wxObject *) src; | |
2082 | return (void *) dest; | |
2083 | } | |
2084 | ||
2085 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) | |
2086 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2087 | PyObject * _resultobj; | |
2088 | int _result; | |
2089 | wxListEvent * _arg0; | |
2090 | int _arg1; | |
2091 | PyObject * _argo0 = 0; | |
2092 | char *_kwnames[] = { "self","m_code", NULL }; | |
2093 | ||
2094 | self = self; | |
2095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) | |
2096 | return NULL; | |
2097 | if (_argo0) { | |
2098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
2101 | return NULL; | |
2102 | } | |
2103 | } | |
2104 | { | |
2105 | wxPy_BEGIN_ALLOW_THREADS; | |
2106 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); | |
2107 | ||
2108 | wxPy_END_ALLOW_THREADS; | |
2109 | if (PyErr_Occurred()) return NULL; | |
2110 | } _resultobj = Py_BuildValue("i",_result); | |
2111 | return _resultobj; | |
2112 | } | |
2113 | ||
2114 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) | |
2115 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2116 | PyObject * _resultobj; | |
2117 | int _result; | |
2118 | wxListEvent * _arg0; | |
2119 | PyObject * _argo0 = 0; | |
2120 | char *_kwnames[] = { "self", NULL }; | |
2121 | ||
2122 | self = self; | |
2123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2124 | return NULL; | |
2125 | if (_argo0) { | |
2126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2129 | return NULL; | |
2130 | } | |
2131 | } | |
2132 | { | |
2133 | wxPy_BEGIN_ALLOW_THREADS; | |
2134 | _result = (int )wxListEvent_m_code_get(_arg0); | |
2135 | ||
2136 | wxPy_END_ALLOW_THREADS; | |
2137 | if (PyErr_Occurred()) return NULL; | |
2138 | } _resultobj = Py_BuildValue("i",_result); | |
2139 | return _resultobj; | |
2140 | } | |
2141 | ||
2142 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) | |
2143 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2144 | PyObject * _resultobj; | |
2145 | long _result; | |
2146 | wxListEvent * _arg0; | |
2147 | long _arg1; | |
2148 | PyObject * _argo0 = 0; | |
2149 | char *_kwnames[] = { "self","m_itemIndex", NULL }; | |
2150 | ||
2151 | self = self; | |
2152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2153 | return NULL; | |
2154 | if (_argo0) { | |
2155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
2158 | return NULL; | |
2159 | } | |
2160 | } | |
2161 | { | |
2162 | wxPy_BEGIN_ALLOW_THREADS; | |
2163 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); | |
2164 | ||
2165 | wxPy_END_ALLOW_THREADS; | |
2166 | if (PyErr_Occurred()) return NULL; | |
2167 | } _resultobj = Py_BuildValue("l",_result); | |
2168 | return _resultobj; | |
2169 | } | |
2170 | ||
2171 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) | |
2172 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2173 | PyObject * _resultobj; | |
2174 | long _result; | |
2175 | wxListEvent * _arg0; | |
2176 | PyObject * _argo0 = 0; | |
2177 | char *_kwnames[] = { "self", NULL }; | |
2178 | ||
2179 | self = self; | |
2180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) | |
2181 | return NULL; | |
2182 | if (_argo0) { | |
2183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
2186 | return NULL; | |
2187 | } | |
2188 | } | |
2189 | { | |
2190 | wxPy_BEGIN_ALLOW_THREADS; | |
2191 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); | |
2192 | ||
2193 | wxPy_END_ALLOW_THREADS; | |
2194 | if (PyErr_Occurred()) return NULL; | |
2195 | } _resultobj = Py_BuildValue("l",_result); | |
2196 | return _resultobj; | |
2197 | } | |
2198 | ||
2199 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) | |
2200 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2201 | PyObject * _resultobj; | |
2202 | long _result; | |
2203 | wxListEvent * _arg0; | |
2204 | long _arg1; | |
2205 | PyObject * _argo0 = 0; | |
2206 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; | |
2207 | ||
2208 | self = self; | |
2209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2210 | return NULL; | |
2211 | if (_argo0) { | |
2212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
2215 | return NULL; | |
2216 | } | |
2217 | } | |
2218 | { | |
2219 | wxPy_BEGIN_ALLOW_THREADS; | |
2220 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); | |
2221 | ||
2222 | wxPy_END_ALLOW_THREADS; | |
2223 | if (PyErr_Occurred()) return NULL; | |
2224 | } _resultobj = Py_BuildValue("l",_result); | |
2225 | return _resultobj; | |
2226 | } | |
2227 | ||
2228 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) | |
2229 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2230 | PyObject * _resultobj; | |
2231 | long _result; | |
2232 | wxListEvent * _arg0; | |
2233 | PyObject * _argo0 = 0; | |
2234 | char *_kwnames[] = { "self", NULL }; | |
2235 | ||
2236 | self = self; | |
2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) | |
2238 | return NULL; | |
2239 | if (_argo0) { | |
2240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
2243 | return NULL; | |
2244 | } | |
2245 | } | |
2246 | { | |
2247 | wxPy_BEGIN_ALLOW_THREADS; | |
2248 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); | |
2249 | ||
2250 | wxPy_END_ALLOW_THREADS; | |
2251 | if (PyErr_Occurred()) return NULL; | |
2252 | } _resultobj = Py_BuildValue("l",_result); | |
2253 | return _resultobj; | |
2254 | } | |
2255 | ||
2256 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
2257 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2258 | PyObject * _resultobj; | |
2259 | int _result; | |
2260 | wxListEvent * _arg0; | |
2261 | int _arg1; | |
2262 | PyObject * _argo0 = 0; | |
2263 | char *_kwnames[] = { "self","m_col", NULL }; | |
2264 | ||
2265 | self = self; | |
2266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) | |
2267 | return NULL; | |
2268 | if (_argo0) { | |
2269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
2272 | return NULL; | |
2273 | } | |
2274 | } | |
2275 | { | |
2276 | wxPy_BEGIN_ALLOW_THREADS; | |
2277 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); | |
2278 | ||
2279 | wxPy_END_ALLOW_THREADS; | |
2280 | if (PyErr_Occurred()) return NULL; | |
2281 | } _resultobj = Py_BuildValue("i",_result); | |
2282 | return _resultobj; | |
2283 | } | |
2284 | ||
2285 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
2286 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2287 | PyObject * _resultobj; | |
2288 | int _result; | |
2289 | wxListEvent * _arg0; | |
2290 | PyObject * _argo0 = 0; | |
2291 | char *_kwnames[] = { "self", NULL }; | |
2292 | ||
2293 | self = self; | |
2294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) | |
2295 | return NULL; | |
2296 | if (_argo0) { | |
2297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
2300 | return NULL; | |
2301 | } | |
2302 | } | |
2303 | { | |
2304 | wxPy_BEGIN_ALLOW_THREADS; | |
2305 | _result = (int )wxListEvent_m_col_get(_arg0); | |
2306 | ||
2307 | wxPy_END_ALLOW_THREADS; | |
2308 | if (PyErr_Occurred()) return NULL; | |
2309 | } _resultobj = Py_BuildValue("i",_result); | |
2310 | return _resultobj; | |
2311 | } | |
2312 | ||
2313 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) | |
2314 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2315 | PyObject * _resultobj; | |
2316 | bool _result; | |
2317 | wxListEvent * _arg0; | |
2318 | bool _arg1; | |
2319 | PyObject * _argo0 = 0; | |
2320 | int tempbool1; | |
2321 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
2322 | ||
2323 | self = self; | |
2324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) | |
2325 | return NULL; | |
2326 | if (_argo0) { | |
2327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
2330 | return NULL; | |
2331 | } | |
2332 | } | |
2333 | _arg1 = (bool ) tempbool1; | |
2334 | { | |
2335 | wxPy_BEGIN_ALLOW_THREADS; | |
2336 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); | |
2337 | ||
2338 | wxPy_END_ALLOW_THREADS; | |
2339 | if (PyErr_Occurred()) return NULL; | |
2340 | } _resultobj = Py_BuildValue("i",_result); | |
2341 | return _resultobj; | |
2342 | } | |
2343 | ||
2344 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) | |
2345 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2346 | PyObject * _resultobj; | |
2347 | bool _result; | |
2348 | wxListEvent * _arg0; | |
2349 | PyObject * _argo0 = 0; | |
2350 | char *_kwnames[] = { "self", NULL }; | |
2351 | ||
2352 | self = self; | |
2353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) | |
2354 | return NULL; | |
2355 | if (_argo0) { | |
2356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
2359 | return NULL; | |
2360 | } | |
2361 | } | |
2362 | { | |
2363 | wxPy_BEGIN_ALLOW_THREADS; | |
2364 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); | |
2365 | ||
2366 | wxPy_END_ALLOW_THREADS; | |
2367 | if (PyErr_Occurred()) return NULL; | |
2368 | } _resultobj = Py_BuildValue("i",_result); | |
2369 | return _resultobj; | |
2370 | } | |
2371 | ||
2372 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) | |
2373 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2374 | PyObject * _resultobj; | |
2375 | wxPoint * _result; | |
2376 | wxListEvent * _arg0; | |
2377 | wxPoint * _arg1; | |
2378 | PyObject * _argo0 = 0; | |
2379 | wxPoint temp; | |
2380 | PyObject * _obj1 = 0; | |
2381 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
2382 | char _ptemp[128]; | |
2383 | ||
2384 | self = self; | |
2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) | |
2386 | return NULL; | |
2387 | if (_argo0) { | |
2388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2391 | return NULL; | |
2392 | } | |
2393 | } | |
2394 | { | |
2395 | _arg1 = &temp; | |
2396 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2397 | return NULL; | |
2398 | } | |
2399 | { | |
2400 | wxPy_BEGIN_ALLOW_THREADS; | |
2401 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); | |
2402 | ||
2403 | wxPy_END_ALLOW_THREADS; | |
2404 | if (PyErr_Occurred()) return NULL; | |
2405 | } if (_result) { | |
2406 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2407 | _resultobj = Py_BuildValue("s",_ptemp); | |
2408 | } else { | |
2409 | Py_INCREF(Py_None); | |
2410 | _resultobj = Py_None; | |
2411 | } | |
2412 | return _resultobj; | |
2413 | } | |
2414 | ||
2415 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) | |
2416 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2417 | PyObject * _resultobj; | |
2418 | wxPoint * _result; | |
2419 | wxListEvent * _arg0; | |
2420 | PyObject * _argo0 = 0; | |
2421 | char *_kwnames[] = { "self", NULL }; | |
2422 | char _ptemp[128]; | |
2423 | ||
2424 | self = self; | |
2425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) | |
2426 | return NULL; | |
2427 | if (_argo0) { | |
2428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
2431 | return NULL; | |
2432 | } | |
2433 | } | |
2434 | { | |
2435 | wxPy_BEGIN_ALLOW_THREADS; | |
2436 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); | |
2437 | ||
2438 | wxPy_END_ALLOW_THREADS; | |
2439 | if (PyErr_Occurred()) return NULL; | |
2440 | } if (_result) { | |
2441 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2442 | _resultobj = Py_BuildValue("s",_ptemp); | |
2443 | } else { | |
2444 | Py_INCREF(Py_None); | |
2445 | _resultobj = Py_None; | |
2446 | } | |
2447 | return _resultobj; | |
2448 | } | |
2449 | ||
2450 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) | |
2451 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2452 | PyObject * _resultobj; | |
2453 | wxListItem * _result; | |
2454 | wxListEvent * _arg0; | |
2455 | wxListItem * _arg1; | |
2456 | PyObject * _argo0 = 0; | |
2457 | PyObject * _argo1 = 0; | |
2458 | char *_kwnames[] = { "self","m_item", NULL }; | |
2459 | ||
2460 | self = self; | |
2461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2462 | return NULL; | |
2463 | if (_argo0) { | |
2464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2467 | return NULL; | |
2468 | } | |
2469 | } | |
2470 | if (_argo1) { | |
2471 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2472 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2474 | return NULL; | |
2475 | } | |
2476 | } | |
2477 | { | |
2478 | wxPy_BEGIN_ALLOW_THREADS; | |
2479 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); | |
2480 | ||
2481 | wxPy_END_ALLOW_THREADS; | |
2482 | if (PyErr_Occurred()) return NULL; | |
2483 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2484 | return _resultobj; | |
2485 | } | |
2486 | ||
2487 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) | |
2488 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2489 | PyObject * _resultobj; | |
2490 | wxListItem * _result; | |
2491 | wxListEvent * _arg0; | |
2492 | PyObject * _argo0 = 0; | |
2493 | char *_kwnames[] = { "self", NULL }; | |
2494 | ||
2495 | self = self; | |
2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) | |
2497 | return NULL; | |
2498 | if (_argo0) { | |
2499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); | |
2502 | return NULL; | |
2503 | } | |
2504 | } | |
2505 | { | |
2506 | wxPy_BEGIN_ALLOW_THREADS; | |
2507 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); | |
2508 | ||
2509 | wxPy_END_ALLOW_THREADS; | |
2510 | if (PyErr_Occurred()) return NULL; | |
2511 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2512 | return _resultobj; | |
2513 | } | |
2514 | ||
2515 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) | |
2516 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2517 | PyObject * _resultobj; | |
2518 | int _result; | |
2519 | wxListEvent * _arg0; | |
2520 | PyObject * _argo0 = 0; | |
2521 | char *_kwnames[] = { "self", NULL }; | |
2522 | ||
2523 | self = self; | |
2524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) | |
2525 | return NULL; | |
2526 | if (_argo0) { | |
2527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); | |
2530 | return NULL; | |
2531 | } | |
2532 | } | |
2533 | { | |
2534 | wxPy_BEGIN_ALLOW_THREADS; | |
2535 | _result = (int )wxListEvent_GetCode(_arg0); | |
2536 | ||
2537 | wxPy_END_ALLOW_THREADS; | |
2538 | if (PyErr_Occurred()) return NULL; | |
2539 | } _resultobj = Py_BuildValue("i",_result); | |
2540 | return _resultobj; | |
2541 | } | |
2542 | ||
2543 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) | |
2544 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2545 | PyObject * _resultobj; | |
2546 | long _result; | |
2547 | wxListEvent * _arg0; | |
2548 | PyObject * _argo0 = 0; | |
2549 | char *_kwnames[] = { "self", NULL }; | |
2550 | ||
2551 | self = self; | |
2552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) | |
2553 | return NULL; | |
2554 | if (_argo0) { | |
2555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); | |
2558 | return NULL; | |
2559 | } | |
2560 | } | |
2561 | { | |
2562 | wxPy_BEGIN_ALLOW_THREADS; | |
2563 | _result = (long )wxListEvent_GetIndex(_arg0); | |
2564 | ||
2565 | wxPy_END_ALLOW_THREADS; | |
2566 | if (PyErr_Occurred()) return NULL; | |
2567 | } _resultobj = Py_BuildValue("l",_result); | |
2568 | return _resultobj; | |
2569 | } | |
2570 | ||
2571 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) | |
2572 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2573 | PyObject * _resultobj; | |
2574 | long _result; | |
2575 | wxListEvent * _arg0; | |
2576 | PyObject * _argo0 = 0; | |
2577 | char *_kwnames[] = { "self", NULL }; | |
2578 | ||
2579 | self = self; | |
2580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) | |
2581 | return NULL; | |
2582 | if (_argo0) { | |
2583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); | |
2586 | return NULL; | |
2587 | } | |
2588 | } | |
2589 | { | |
2590 | wxPy_BEGIN_ALLOW_THREADS; | |
2591 | _result = (long )wxListEvent_GetOldIndex(_arg0); | |
2592 | ||
2593 | wxPy_END_ALLOW_THREADS; | |
2594 | if (PyErr_Occurred()) return NULL; | |
2595 | } _resultobj = Py_BuildValue("l",_result); | |
2596 | return _resultobj; | |
2597 | } | |
2598 | ||
2599 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) | |
2600 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2601 | PyObject * _resultobj; | |
2602 | long _result; | |
2603 | wxListEvent * _arg0; | |
2604 | PyObject * _argo0 = 0; | |
2605 | char *_kwnames[] = { "self", NULL }; | |
2606 | ||
2607 | self = self; | |
2608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) | |
2609 | return NULL; | |
2610 | if (_argo0) { | |
2611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldItem. Expected _wxListEvent_p."); | |
2614 | return NULL; | |
2615 | } | |
2616 | } | |
2617 | { | |
2618 | wxPy_BEGIN_ALLOW_THREADS; | |
2619 | _result = (long )wxListEvent_GetOldItem(_arg0); | |
2620 | ||
2621 | wxPy_END_ALLOW_THREADS; | |
2622 | if (PyErr_Occurred()) return NULL; | |
2623 | } _resultobj = Py_BuildValue("l",_result); | |
2624 | return _resultobj; | |
2625 | } | |
2626 | ||
2627 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
2628 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2629 | PyObject * _resultobj; | |
2630 | int _result; | |
2631 | wxListEvent * _arg0; | |
2632 | PyObject * _argo0 = 0; | |
2633 | char *_kwnames[] = { "self", NULL }; | |
2634 | ||
2635 | self = self; | |
2636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) | |
2637 | return NULL; | |
2638 | if (_argo0) { | |
2639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); | |
2642 | return NULL; | |
2643 | } | |
2644 | } | |
2645 | { | |
2646 | wxPy_BEGIN_ALLOW_THREADS; | |
2647 | _result = (int )wxListEvent_GetColumn(_arg0); | |
2648 | ||
2649 | wxPy_END_ALLOW_THREADS; | |
2650 | if (PyErr_Occurred()) return NULL; | |
2651 | } _resultobj = Py_BuildValue("i",_result); | |
2652 | return _resultobj; | |
2653 | } | |
2654 | ||
2655 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) | |
2656 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2657 | PyObject * _resultobj; | |
2658 | bool _result; | |
2659 | wxListEvent * _arg0; | |
2660 | PyObject * _argo0 = 0; | |
2661 | char *_kwnames[] = { "self", NULL }; | |
2662 | ||
2663 | self = self; | |
2664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) | |
2665 | return NULL; | |
2666 | if (_argo0) { | |
2667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); | |
2670 | return NULL; | |
2671 | } | |
2672 | } | |
2673 | { | |
2674 | wxPy_BEGIN_ALLOW_THREADS; | |
2675 | _result = (bool )wxListEvent_Cancelled(_arg0); | |
2676 | ||
2677 | wxPy_END_ALLOW_THREADS; | |
2678 | if (PyErr_Occurred()) return NULL; | |
2679 | } _resultobj = Py_BuildValue("i",_result); | |
2680 | return _resultobj; | |
2681 | } | |
2682 | ||
2683 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) | |
2684 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2685 | PyObject * _resultobj; | |
2686 | wxPoint * _result; | |
2687 | wxListEvent * _arg0; | |
2688 | PyObject * _argo0 = 0; | |
2689 | char *_kwnames[] = { "self", NULL }; | |
2690 | char _ptemp[128]; | |
2691 | ||
2692 | self = self; | |
2693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) | |
2694 | return NULL; | |
2695 | if (_argo0) { | |
2696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); | |
2699 | return NULL; | |
2700 | } | |
2701 | } | |
2702 | { | |
2703 | wxPy_BEGIN_ALLOW_THREADS; | |
2704 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); | |
2705 | ||
2706 | wxPy_END_ALLOW_THREADS; | |
2707 | if (PyErr_Occurred()) return NULL; | |
2708 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2709 | _resultobj = Py_BuildValue("s",_ptemp); | |
2710 | return _resultobj; | |
2711 | } | |
2712 | ||
2713 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
2714 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2715 | PyObject * _resultobj; | |
2716 | wxString * _result; | |
2717 | wxListEvent * _arg0; | |
2718 | PyObject * _argo0 = 0; | |
2719 | char *_kwnames[] = { "self", NULL }; | |
2720 | ||
2721 | self = self; | |
2722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) | |
2723 | return NULL; | |
2724 | if (_argo0) { | |
2725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); | |
2728 | return NULL; | |
2729 | } | |
2730 | } | |
2731 | { | |
2732 | wxPy_BEGIN_ALLOW_THREADS; | |
2733 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); | |
2734 | _result = (wxString *) &_result_ref; | |
2735 | ||
2736 | wxPy_END_ALLOW_THREADS; | |
2737 | if (PyErr_Occurred()) return NULL; | |
2738 | }{ | |
2739 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2740 | } | |
2741 | return _resultobj; | |
2742 | } | |
2743 | ||
2744 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) | |
2745 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2746 | PyObject * _resultobj; | |
2747 | wxString * _result; | |
2748 | wxListEvent * _arg0; | |
2749 | PyObject * _argo0 = 0; | |
2750 | char *_kwnames[] = { "self", NULL }; | |
2751 | ||
2752 | self = self; | |
2753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) | |
2754 | return NULL; | |
2755 | if (_argo0) { | |
2756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); | |
2759 | return NULL; | |
2760 | } | |
2761 | } | |
2762 | { | |
2763 | wxPy_BEGIN_ALLOW_THREADS; | |
2764 | const wxString & _result_ref = wxListEvent_GetText(_arg0); | |
2765 | _result = (wxString *) &_result_ref; | |
2766 | ||
2767 | wxPy_END_ALLOW_THREADS; | |
2768 | if (PyErr_Occurred()) return NULL; | |
2769 | }{ | |
2770 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2771 | } | |
2772 | return _resultobj; | |
2773 | } | |
2774 | ||
2775 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) | |
2776 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2777 | PyObject * _resultobj; | |
2778 | int _result; | |
2779 | wxListEvent * _arg0; | |
2780 | PyObject * _argo0 = 0; | |
2781 | char *_kwnames[] = { "self", NULL }; | |
2782 | ||
2783 | self = self; | |
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) | |
2785 | return NULL; | |
2786 | if (_argo0) { | |
2787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); | |
2790 | return NULL; | |
2791 | } | |
2792 | } | |
2793 | { | |
2794 | wxPy_BEGIN_ALLOW_THREADS; | |
2795 | _result = (int )wxListEvent_GetImage(_arg0); | |
2796 | ||
2797 | wxPy_END_ALLOW_THREADS; | |
2798 | if (PyErr_Occurred()) return NULL; | |
2799 | } _resultobj = Py_BuildValue("i",_result); | |
2800 | return _resultobj; | |
2801 | } | |
2802 | ||
2803 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) | |
2804 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2805 | PyObject * _resultobj; | |
2806 | long _result; | |
2807 | wxListEvent * _arg0; | |
2808 | PyObject * _argo0 = 0; | |
2809 | char *_kwnames[] = { "self", NULL }; | |
2810 | ||
2811 | self = self; | |
2812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) | |
2813 | return NULL; | |
2814 | if (_argo0) { | |
2815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); | |
2818 | return NULL; | |
2819 | } | |
2820 | } | |
2821 | { | |
2822 | wxPy_BEGIN_ALLOW_THREADS; | |
2823 | _result = (long )wxListEvent_GetData(_arg0); | |
2824 | ||
2825 | wxPy_END_ALLOW_THREADS; | |
2826 | if (PyErr_Occurred()) return NULL; | |
2827 | } _resultobj = Py_BuildValue("l",_result); | |
2828 | return _resultobj; | |
2829 | } | |
2830 | ||
2831 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) | |
2832 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2833 | PyObject * _resultobj; | |
2834 | long _result; | |
2835 | wxListEvent * _arg0; | |
2836 | PyObject * _argo0 = 0; | |
2837 | char *_kwnames[] = { "self", NULL }; | |
2838 | ||
2839 | self = self; | |
2840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) | |
2841 | return NULL; | |
2842 | if (_argo0) { | |
2843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); | |
2846 | return NULL; | |
2847 | } | |
2848 | } | |
2849 | { | |
2850 | wxPy_BEGIN_ALLOW_THREADS; | |
2851 | _result = (long )wxListEvent_GetMask(_arg0); | |
2852 | ||
2853 | wxPy_END_ALLOW_THREADS; | |
2854 | if (PyErr_Occurred()) return NULL; | |
2855 | } _resultobj = Py_BuildValue("l",_result); | |
2856 | return _resultobj; | |
2857 | } | |
2858 | ||
2859 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) | |
2860 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2861 | PyObject * _resultobj; | |
2862 | wxListItem * _result; | |
2863 | wxListEvent * _arg0; | |
2864 | PyObject * _argo0 = 0; | |
2865 | char *_kwnames[] = { "self", NULL }; | |
2866 | ||
2867 | self = self; | |
2868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) | |
2869 | return NULL; | |
2870 | if (_argo0) { | |
2871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); | |
2874 | return NULL; | |
2875 | } | |
2876 | } | |
2877 | { | |
2878 | wxPy_BEGIN_ALLOW_THREADS; | |
2879 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); | |
2880 | _result = (wxListItem *) &_result_ref; | |
2881 | ||
2882 | wxPy_END_ALLOW_THREADS; | |
2883 | if (PyErr_Occurred()) return NULL; | |
2884 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2885 | return _resultobj; | |
2886 | } | |
2887 | ||
2888 | static void *SwigwxListCtrlTowxControl(void *ptr) { | |
2889 | wxListCtrl *src; | |
2890 | wxControl *dest; | |
2891 | src = (wxListCtrl *) ptr; | |
2892 | dest = (wxControl *) src; | |
2893 | return (void *) dest; | |
2894 | } | |
2895 | ||
2896 | static void *SwigwxListCtrlTowxWindow(void *ptr) { | |
2897 | wxListCtrl *src; | |
2898 | wxWindow *dest; | |
2899 | src = (wxListCtrl *) ptr; | |
2900 | dest = (wxWindow *) src; | |
2901 | return (void *) dest; | |
2902 | } | |
2903 | ||
2904 | static void *SwigwxListCtrlTowxEvtHandler(void *ptr) { | |
2905 | wxListCtrl *src; | |
2906 | wxEvtHandler *dest; | |
2907 | src = (wxListCtrl *) ptr; | |
2908 | dest = (wxEvtHandler *) src; | |
2909 | return (void *) dest; | |
2910 | } | |
2911 | ||
2912 | static void *SwigwxListCtrlTowxObject(void *ptr) { | |
2913 | wxListCtrl *src; | |
2914 | wxObject *dest; | |
2915 | src = (wxListCtrl *) ptr; | |
2916 | dest = (wxObject *) src; | |
2917 | return (void *) dest; | |
2918 | } | |
2919 | ||
2920 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2921 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2922 | PyObject * _resultobj; | |
2923 | wxListCtrl * _result; | |
2924 | wxWindow * _arg0; | |
2925 | wxWindowID _arg1; | |
2926 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2927 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2928 | long _arg4 = (long ) (wxLC_ICON); | |
2929 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
2930 | char * _arg6 = (char *) "listCtrl"; | |
2931 | PyObject * _argo0 = 0; | |
2932 | wxPoint temp; | |
2933 | PyObject * _obj2 = 0; | |
2934 | wxSize temp0; | |
2935 | PyObject * _obj3 = 0; | |
2936 | PyObject * _argo5 = 0; | |
2937 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
2938 | char _ptemp[128]; | |
2939 | ||
2940 | self = self; | |
2941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
2942 | return NULL; | |
2943 | if (_argo0) { | |
2944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); | |
2947 | return NULL; | |
2948 | } | |
2949 | } | |
2950 | if (_obj2) | |
2951 | { | |
2952 | _arg2 = &temp; | |
2953 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2954 | return NULL; | |
2955 | } | |
2956 | if (_obj3) | |
2957 | { | |
2958 | _arg3 = &temp0; | |
2959 | if (! wxSize_helper(_obj3, &_arg3)) | |
2960 | return NULL; | |
2961 | } | |
2962 | if (_argo5) { | |
2963 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2964 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
2965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); | |
2966 | return NULL; | |
2967 | } | |
2968 | } | |
2969 | { | |
2970 | wxPy_BEGIN_ALLOW_THREADS; | |
2971 | _result = (wxListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
2972 | ||
2973 | wxPy_END_ALLOW_THREADS; | |
2974 | if (PyErr_Occurred()) return NULL; | |
2975 | } if (_result) { | |
2976 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListCtrl_p"); | |
2977 | _resultobj = Py_BuildValue("s",_ptemp); | |
2978 | } else { | |
2979 | Py_INCREF(Py_None); | |
2980 | _resultobj = Py_None; | |
2981 | } | |
2982 | return _resultobj; | |
2983 | } | |
2984 | ||
2985 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
2986 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2987 | PyObject * _resultobj; | |
2988 | bool _result; | |
2989 | wxListCtrl * _arg0; | |
2990 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
2991 | PyObject * _argo0 = 0; | |
2992 | char *_kwnames[] = { "self","flag", NULL }; | |
2993 | ||
2994 | self = self; | |
2995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
2996 | return NULL; | |
2997 | if (_argo0) { | |
2998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxListCtrl_p."); | |
3001 | return NULL; | |
3002 | } | |
3003 | } | |
3004 | { | |
3005 | wxPy_BEGIN_ALLOW_THREADS; | |
3006 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); | |
3007 | ||
3008 | wxPy_END_ALLOW_THREADS; | |
3009 | if (PyErr_Occurred()) return NULL; | |
3010 | } _resultobj = Py_BuildValue("i",_result); | |
3011 | return _resultobj; | |
3012 | } | |
3013 | ||
3014 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) | |
3015 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3016 | PyObject * _resultobj; | |
3017 | wxListCtrl * _arg0; | |
3018 | wxImageList * _arg1; | |
3019 | int _arg2; | |
3020 | PyObject * _argo0 = 0; | |
3021 | PyObject * _argo1 = 0; | |
3022 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
3023 | ||
3024 | self = self; | |
3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
3026 | return NULL; | |
3027 | if (_argo0) { | |
3028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxListCtrl_p."); | |
3031 | return NULL; | |
3032 | } | |
3033 | } | |
3034 | if (_argo1) { | |
3035 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3036 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
3037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
3038 | return NULL; | |
3039 | } | |
3040 | } | |
3041 | { | |
3042 | wxPy_BEGIN_ALLOW_THREADS; | |
3043 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); | |
3044 | ||
3045 | wxPy_END_ALLOW_THREADS; | |
3046 | if (PyErr_Occurred()) return NULL; | |
3047 | } Py_INCREF(Py_None); | |
3048 | _resultobj = Py_None; | |
3049 | return _resultobj; | |
3050 | } | |
3051 | ||
3052 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) | |
3053 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3054 | PyObject * _resultobj; | |
3055 | bool _result; | |
3056 | wxListCtrl * _arg0; | |
3057 | long _arg1; | |
3058 | PyObject * _argo0 = 0; | |
3059 | char *_kwnames[] = { "self","item", NULL }; | |
3060 | ||
3061 | self = self; | |
3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) | |
3063 | return NULL; | |
3064 | if (_argo0) { | |
3065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxListCtrl_p."); | |
3068 | return NULL; | |
3069 | } | |
3070 | } | |
3071 | { | |
3072 | wxPy_BEGIN_ALLOW_THREADS; | |
3073 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
3074 | ||
3075 | wxPy_END_ALLOW_THREADS; | |
3076 | if (PyErr_Occurred()) return NULL; | |
3077 | } _resultobj = Py_BuildValue("i",_result); | |
3078 | return _resultobj; | |
3079 | } | |
3080 | ||
3081 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
3082 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3083 | PyObject * _resultobj; | |
3084 | bool _result; | |
3085 | wxListCtrl * _arg0; | |
3086 | PyObject * _argo0 = 0; | |
3087 | char *_kwnames[] = { "self", NULL }; | |
3088 | ||
3089 | self = self; | |
3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
3091 | return NULL; | |
3092 | if (_argo0) { | |
3093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxListCtrl_p."); | |
3096 | return NULL; | |
3097 | } | |
3098 | } | |
3099 | { | |
3100 | wxPy_BEGIN_ALLOW_THREADS; | |
3101 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
3102 | ||
3103 | wxPy_END_ALLOW_THREADS; | |
3104 | if (PyErr_Occurred()) return NULL; | |
3105 | } _resultobj = Py_BuildValue("i",_result); | |
3106 | return _resultobj; | |
3107 | } | |
3108 | ||
3109 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
3110 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3111 | PyObject * _resultobj; | |
3112 | bool _result; | |
3113 | wxListCtrl * _arg0; | |
3114 | int _arg1; | |
3115 | PyObject * _argo0 = 0; | |
3116 | char *_kwnames[] = { "self","col", NULL }; | |
3117 | ||
3118 | self = self; | |
3119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
3120 | return NULL; | |
3121 | if (_argo0) { | |
3122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxListCtrl_p."); | |
3125 | return NULL; | |
3126 | } | |
3127 | } | |
3128 | { | |
3129 | wxPy_BEGIN_ALLOW_THREADS; | |
3130 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
3131 | ||
3132 | wxPy_END_ALLOW_THREADS; | |
3133 | if (PyErr_Occurred()) return NULL; | |
3134 | } _resultobj = Py_BuildValue("i",_result); | |
3135 | return _resultobj; | |
3136 | } | |
3137 | ||
3138 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
3139 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3140 | PyObject * _resultobj; | |
3141 | bool _result; | |
3142 | wxListCtrl * _arg0; | |
3143 | PyObject * _argo0 = 0; | |
3144 | char *_kwnames[] = { "self", NULL }; | |
3145 | ||
3146 | self = self; | |
3147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
3148 | return NULL; | |
3149 | if (_argo0) { | |
3150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxListCtrl_p."); | |
3153 | return NULL; | |
3154 | } | |
3155 | } | |
3156 | { | |
3157 | wxPy_BEGIN_ALLOW_THREADS; | |
3158 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
3159 | ||
3160 | wxPy_END_ALLOW_THREADS; | |
3161 | if (PyErr_Occurred()) return NULL; | |
3162 | } _resultobj = Py_BuildValue("i",_result); | |
3163 | return _resultobj; | |
3164 | } | |
3165 | ||
3166 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
3167 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3168 | PyObject * _resultobj; | |
3169 | wxListCtrl * _arg0; | |
3170 | PyObject * _argo0 = 0; | |
3171 | char *_kwnames[] = { "self", NULL }; | |
3172 | ||
3173 | self = self; | |
3174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
3175 | return NULL; | |
3176 | if (_argo0) { | |
3177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxListCtrl_p."); | |
3180 | return NULL; | |
3181 | } | |
3182 | } | |
3183 | { | |
3184 | wxPy_BEGIN_ALLOW_THREADS; | |
3185 | wxListCtrl_ClearAll(_arg0); | |
3186 | ||
3187 | wxPy_END_ALLOW_THREADS; | |
3188 | if (PyErr_Occurred()) return NULL; | |
3189 | } Py_INCREF(Py_None); | |
3190 | _resultobj = Py_None; | |
3191 | return _resultobj; | |
3192 | } | |
3193 | ||
3194 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
3195 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3196 | PyObject * _resultobj; | |
3197 | wxTextCtrl * _result; | |
3198 | wxListCtrl * _arg0; | |
3199 | long _arg1; | |
3200 | PyObject * _argo0 = 0; | |
3201 | char *_kwnames[] = { "self","item", NULL }; | |
3202 | ||
3203 | self = self; | |
3204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
3205 | return NULL; | |
3206 | if (_argo0) { | |
3207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxListCtrl_p."); | |
3210 | return NULL; | |
3211 | } | |
3212 | } | |
3213 | { | |
3214 | wxPy_BEGIN_ALLOW_THREADS; | |
3215 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); | |
3216 | ||
3217 | wxPy_END_ALLOW_THREADS; | |
3218 | if (PyErr_Occurred()) return NULL; | |
3219 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3220 | return _resultobj; | |
3221 | } | |
3222 | ||
3223 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
3224 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3225 | PyObject * _resultobj; | |
3226 | bool _result; | |
3227 | wxListCtrl * _arg0; | |
3228 | bool _arg1; | |
3229 | PyObject * _argo0 = 0; | |
3230 | int tempbool1; | |
3231 | char *_kwnames[] = { "self","cancel", NULL }; | |
3232 | ||
3233 | self = self; | |
3234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) | |
3235 | return NULL; | |
3236 | if (_argo0) { | |
3237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxListCtrl_p."); | |
3240 | return NULL; | |
3241 | } | |
3242 | } | |
3243 | _arg1 = (bool ) tempbool1; | |
3244 | { | |
3245 | wxPy_BEGIN_ALLOW_THREADS; | |
3246 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); | |
3247 | ||
3248 | wxPy_END_ALLOW_THREADS; | |
3249 | if (PyErr_Occurred()) return NULL; | |
3250 | } _resultobj = Py_BuildValue("i",_result); | |
3251 | return _resultobj; | |
3252 | } | |
3253 | ||
3254 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
3255 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3256 | PyObject * _resultobj; | |
3257 | wxTextCtrl * _result; | |
3258 | wxListCtrl * _arg0; | |
3259 | PyObject * _argo0 = 0; | |
3260 | char *_kwnames[] = { "self", NULL }; | |
3261 | ||
3262 | self = self; | |
3263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) | |
3264 | return NULL; | |
3265 | if (_argo0) { | |
3266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxListCtrl_p."); | |
3269 | return NULL; | |
3270 | } | |
3271 | } | |
3272 | { | |
3273 | wxPy_BEGIN_ALLOW_THREADS; | |
3274 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); | |
3275 | ||
3276 | wxPy_END_ALLOW_THREADS; | |
3277 | if (PyErr_Occurred()) return NULL; | |
3278 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3279 | return _resultobj; | |
3280 | } | |
3281 | ||
3282 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
3283 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3284 | PyObject * _resultobj; | |
3285 | bool _result; | |
3286 | wxListCtrl * _arg0; | |
3287 | long _arg1; | |
3288 | PyObject * _argo0 = 0; | |
3289 | char *_kwnames[] = { "self","item", NULL }; | |
3290 | ||
3291 | self = self; | |
3292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
3293 | return NULL; | |
3294 | if (_argo0) { | |
3295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxListCtrl_p."); | |
3298 | return NULL; | |
3299 | } | |
3300 | } | |
3301 | { | |
3302 | wxPy_BEGIN_ALLOW_THREADS; | |
3303 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); | |
3304 | ||
3305 | wxPy_END_ALLOW_THREADS; | |
3306 | if (PyErr_Occurred()) return NULL; | |
3307 | } _resultobj = Py_BuildValue("i",_result); | |
3308 | return _resultobj; | |
3309 | } | |
3310 | ||
3311 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
3312 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3313 | PyObject * _resultobj; | |
3314 | long _result; | |
3315 | wxListCtrl * _arg0; | |
3316 | long _arg1; | |
3317 | wxString * _arg2; | |
3318 | bool _arg3 = (bool ) FALSE; | |
3319 | PyObject * _argo0 = 0; | |
3320 | PyObject * _obj2 = 0; | |
3321 | int tempbool3 = (int) FALSE; | |
3322 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
3323 | ||
3324 | self = self; | |
3325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) | |
3326 | return NULL; | |
3327 | if (_argo0) { | |
3328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxListCtrl_p."); | |
3331 | return NULL; | |
3332 | } | |
3333 | } | |
3334 | { | |
3335 | #if PYTHON_API_VERSION >= 1009 | |
3336 | char* tmpPtr; int tmpSize; | |
3337 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3338 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3339 | return NULL; | |
3340 | } | |
3341 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3342 | return NULL; | |
3343 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3344 | #else | |
3345 | if (!PyString_Check(_obj2)) { | |
3346 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3347 | return NULL; | |
3348 | } | |
3349 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3350 | #endif | |
3351 | } | |
3352 | _arg3 = (bool ) tempbool3; | |
3353 | { | |
3354 | wxPy_BEGIN_ALLOW_THREADS; | |
3355 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); | |
3356 | ||
3357 | wxPy_END_ALLOW_THREADS; | |
3358 | if (PyErr_Occurred()) return NULL; | |
3359 | } _resultobj = Py_BuildValue("l",_result); | |
3360 | { | |
3361 | if (_obj2) | |
3362 | delete _arg2; | |
3363 | } | |
3364 | return _resultobj; | |
3365 | } | |
3366 | ||
3367 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) | |
3368 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3369 | PyObject * _resultobj; | |
3370 | long _result; | |
3371 | wxListCtrl * _arg0; | |
3372 | long _arg1; | |
3373 | long _arg2; | |
3374 | PyObject * _argo0 = 0; | |
3375 | char *_kwnames[] = { "self","start","data", NULL }; | |
3376 | ||
3377 | self = self; | |
3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3379 | return NULL; | |
3380 | if (_argo0) { | |
3381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxListCtrl_p."); | |
3384 | return NULL; | |
3385 | } | |
3386 | } | |
3387 | { | |
3388 | wxPy_BEGIN_ALLOW_THREADS; | |
3389 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); | |
3390 | ||
3391 | wxPy_END_ALLOW_THREADS; | |
3392 | if (PyErr_Occurred()) return NULL; | |
3393 | } _resultobj = Py_BuildValue("l",_result); | |
3394 | return _resultobj; | |
3395 | } | |
3396 | ||
3397 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
3398 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3399 | PyObject * _resultobj; | |
3400 | long _result; | |
3401 | wxListCtrl * _arg0; | |
3402 | long _arg1; | |
3403 | wxPoint * _arg2; | |
3404 | int _arg3; | |
3405 | PyObject * _argo0 = 0; | |
3406 | wxPoint temp; | |
3407 | PyObject * _obj2 = 0; | |
3408 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
3409 | ||
3410 | self = self; | |
3411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
3412 | return NULL; | |
3413 | if (_argo0) { | |
3414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxListCtrl_p."); | |
3417 | return NULL; | |
3418 | } | |
3419 | } | |
3420 | { | |
3421 | _arg2 = &temp; | |
3422 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3423 | return NULL; | |
3424 | } | |
3425 | { | |
3426 | wxPy_BEGIN_ALLOW_THREADS; | |
3427 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
3428 | ||
3429 | wxPy_END_ALLOW_THREADS; | |
3430 | if (PyErr_Occurred()) return NULL; | |
3431 | } _resultobj = Py_BuildValue("l",_result); | |
3432 | return _resultobj; | |
3433 | } | |
3434 | ||
3435 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) | |
3436 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3437 | PyObject * _resultobj; | |
3438 | bool _result; | |
3439 | wxListCtrl * _arg0; | |
3440 | int _arg1; | |
3441 | wxListItem * _arg2; | |
3442 | PyObject * _argo0 = 0; | |
3443 | PyObject * _argo2 = 0; | |
3444 | char *_kwnames[] = { "self","col","item", NULL }; | |
3445 | ||
3446 | self = self; | |
3447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) | |
3448 | return NULL; | |
3449 | if (_argo0) { | |
3450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxListCtrl_p."); | |
3453 | return NULL; | |
3454 | } | |
3455 | } | |
3456 | if (_argo2) { | |
3457 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3458 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); | |
3460 | return NULL; | |
3461 | } | |
3462 | } | |
3463 | { | |
3464 | wxPy_BEGIN_ALLOW_THREADS; | |
3465 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); | |
3466 | ||
3467 | wxPy_END_ALLOW_THREADS; | |
3468 | if (PyErr_Occurred()) return NULL; | |
3469 | } _resultobj = Py_BuildValue("i",_result); | |
3470 | return _resultobj; | |
3471 | } | |
3472 | ||
3473 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) | |
3474 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject * _resultobj; | |
3476 | int _result; | |
3477 | wxListCtrl * _arg0; | |
3478 | int _arg1; | |
3479 | PyObject * _argo0 = 0; | |
3480 | char *_kwnames[] = { "self","col", NULL }; | |
3481 | ||
3482 | self = self; | |
3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) | |
3484 | return NULL; | |
3485 | if (_argo0) { | |
3486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxListCtrl_p."); | |
3489 | return NULL; | |
3490 | } | |
3491 | } | |
3492 | { | |
3493 | wxPy_BEGIN_ALLOW_THREADS; | |
3494 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); | |
3495 | ||
3496 | wxPy_END_ALLOW_THREADS; | |
3497 | if (PyErr_Occurred()) return NULL; | |
3498 | } _resultobj = Py_BuildValue("i",_result); | |
3499 | return _resultobj; | |
3500 | } | |
3501 | ||
3502 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) | |
3503 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3504 | PyObject * _resultobj; | |
3505 | int _result; | |
3506 | wxListCtrl * _arg0; | |
3507 | PyObject * _argo0 = 0; | |
3508 | char *_kwnames[] = { "self", NULL }; | |
3509 | ||
3510 | self = self; | |
3511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) | |
3512 | return NULL; | |
3513 | if (_argo0) { | |
3514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxListCtrl_p."); | |
3517 | return NULL; | |
3518 | } | |
3519 | } | |
3520 | { | |
3521 | wxPy_BEGIN_ALLOW_THREADS; | |
3522 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); | |
3523 | ||
3524 | wxPy_END_ALLOW_THREADS; | |
3525 | if (PyErr_Occurred()) return NULL; | |
3526 | } _resultobj = Py_BuildValue("i",_result); | |
3527 | return _resultobj; | |
3528 | } | |
3529 | ||
3530 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
3531 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3532 | PyObject * _resultobj; | |
3533 | wxImageList * _result; | |
3534 | wxListCtrl * _arg0; | |
3535 | int _arg1; | |
3536 | PyObject * _argo0 = 0; | |
3537 | char *_kwnames[] = { "self","which", NULL }; | |
3538 | ||
3539 | self = self; | |
3540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
3541 | return NULL; | |
3542 | if (_argo0) { | |
3543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxListCtrl_p."); | |
3546 | return NULL; | |
3547 | } | |
3548 | } | |
3549 | { | |
3550 | wxPy_BEGIN_ALLOW_THREADS; | |
3551 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
3552 | ||
3553 | wxPy_END_ALLOW_THREADS; | |
3554 | if (PyErr_Occurred()) return NULL; | |
3555 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3556 | return _resultobj; | |
3557 | } | |
3558 | ||
3559 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
3560 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3561 | PyObject * _resultobj; | |
3562 | long _result; | |
3563 | wxListCtrl * _arg0; | |
3564 | long _arg1; | |
3565 | PyObject * _argo0 = 0; | |
3566 | char *_kwnames[] = { "self","item", NULL }; | |
3567 | ||
3568 | self = self; | |
3569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) | |
3570 | return NULL; | |
3571 | if (_argo0) { | |
3572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxListCtrl_p."); | |
3575 | return NULL; | |
3576 | } | |
3577 | } | |
3578 | { | |
3579 | wxPy_BEGIN_ALLOW_THREADS; | |
3580 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3581 | ||
3582 | wxPy_END_ALLOW_THREADS; | |
3583 | if (PyErr_Occurred()) return NULL; | |
3584 | } _resultobj = Py_BuildValue("l",_result); | |
3585 | return _resultobj; | |
3586 | } | |
3587 | ||
3588 | static wxListItem * wxListCtrl_GetItem(wxListCtrl *self,long itemId,int col) { | |
3589 | wxListItem* info = new wxListItem; | |
3590 | info->m_itemId = itemId; | |
3591 | info->m_col = col; | |
3592 | info->m_mask = 0xFFFF; | |
3593 | self->GetItem(*info); | |
3594 | return info; | |
3595 | } | |
3596 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3597 | PyObject * _resultobj; | |
3598 | wxListItem * _result; | |
3599 | wxListCtrl * _arg0; | |
3600 | long _arg1; | |
3601 | int _arg2 = (int ) 0; | |
3602 | PyObject * _argo0 = 0; | |
3603 | char *_kwnames[] = { "self","itemId","col", NULL }; | |
3604 | ||
3605 | self = self; | |
3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3607 | return NULL; | |
3608 | if (_argo0) { | |
3609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxListCtrl_p."); | |
3612 | return NULL; | |
3613 | } | |
3614 | } | |
3615 | { | |
3616 | wxPy_BEGIN_ALLOW_THREADS; | |
3617 | _result = (wxListItem *)wxListCtrl_GetItem(_arg0,_arg1,_arg2); | |
3618 | ||
3619 | wxPy_END_ALLOW_THREADS; | |
3620 | if (PyErr_Occurred()) return NULL; | |
3621 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3622 | return _resultobj; | |
3623 | } | |
3624 | ||
3625 | static wxPoint * wxListCtrl_GetItemPosition(wxListCtrl *self,long item) { | |
3626 | wxPoint* pos = new wxPoint; | |
3627 | self->GetItemPosition(item, *pos); | |
3628 | return pos; | |
3629 | } | |
3630 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3631 | PyObject * _resultobj; | |
3632 | wxPoint * _result; | |
3633 | wxListCtrl * _arg0; | |
3634 | long _arg1; | |
3635 | PyObject * _argo0 = 0; | |
3636 | char *_kwnames[] = { "self","item", NULL }; | |
3637 | char _ptemp[128]; | |
3638 | ||
3639 | self = self; | |
3640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) | |
3641 | return NULL; | |
3642 | if (_argo0) { | |
3643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxListCtrl_p."); | |
3646 | return NULL; | |
3647 | } | |
3648 | } | |
3649 | { | |
3650 | wxPy_BEGIN_ALLOW_THREADS; | |
3651 | _result = (wxPoint *)wxListCtrl_GetItemPosition(_arg0,_arg1); | |
3652 | ||
3653 | wxPy_END_ALLOW_THREADS; | |
3654 | if (PyErr_Occurred()) return NULL; | |
3655 | } if (_result) { | |
3656 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3657 | _resultobj = Py_BuildValue("s",_ptemp); | |
3658 | } else { | |
3659 | Py_INCREF(Py_None); | |
3660 | _resultobj = Py_None; | |
3661 | } | |
3662 | return _resultobj; | |
3663 | } | |
3664 | ||
3665 | static wxRect * wxListCtrl_GetItemRect(wxListCtrl *self,long item,int code) { | |
3666 | wxRect* rect= new wxRect; | |
3667 | self->GetItemRect(item, *rect, code); | |
3668 | return rect; | |
3669 | } | |
3670 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3671 | PyObject * _resultobj; | |
3672 | wxRect * _result; | |
3673 | wxListCtrl * _arg0; | |
3674 | long _arg1; | |
3675 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); | |
3676 | PyObject * _argo0 = 0; | |
3677 | char *_kwnames[] = { "self","item","code", NULL }; | |
3678 | char _ptemp[128]; | |
3679 | ||
3680 | self = self; | |
3681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3682 | return NULL; | |
3683 | if (_argo0) { | |
3684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxListCtrl_p."); | |
3687 | return NULL; | |
3688 | } | |
3689 | } | |
3690 | { | |
3691 | wxPy_BEGIN_ALLOW_THREADS; | |
3692 | _result = (wxRect *)wxListCtrl_GetItemRect(_arg0,_arg1,_arg2); | |
3693 | ||
3694 | wxPy_END_ALLOW_THREADS; | |
3695 | if (PyErr_Occurred()) return NULL; | |
3696 | } if (_result) { | |
3697 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3698 | _resultobj = Py_BuildValue("s",_ptemp); | |
3699 | } else { | |
3700 | Py_INCREF(Py_None); | |
3701 | _resultobj = Py_None; | |
3702 | } | |
3703 | return _resultobj; | |
3704 | } | |
3705 | ||
3706 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) | |
3707 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3708 | PyObject * _resultobj; | |
3709 | int _result; | |
3710 | wxListCtrl * _arg0; | |
3711 | long _arg1; | |
3712 | long _arg2; | |
3713 | PyObject * _argo0 = 0; | |
3714 | char *_kwnames[] = { "self","item","stateMask", NULL }; | |
3715 | ||
3716 | self = self; | |
3717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3718 | return NULL; | |
3719 | if (_argo0) { | |
3720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxListCtrl_p."); | |
3723 | return NULL; | |
3724 | } | |
3725 | } | |
3726 | { | |
3727 | wxPy_BEGIN_ALLOW_THREADS; | |
3728 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); | |
3729 | ||
3730 | wxPy_END_ALLOW_THREADS; | |
3731 | if (PyErr_Occurred()) return NULL; | |
3732 | } _resultobj = Py_BuildValue("i",_result); | |
3733 | return _resultobj; | |
3734 | } | |
3735 | ||
3736 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
3737 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3738 | PyObject * _resultobj; | |
3739 | int _result; | |
3740 | wxListCtrl * _arg0; | |
3741 | PyObject * _argo0 = 0; | |
3742 | char *_kwnames[] = { "self", NULL }; | |
3743 | ||
3744 | self = self; | |
3745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) | |
3746 | return NULL; | |
3747 | if (_argo0) { | |
3748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxListCtrl_p."); | |
3751 | return NULL; | |
3752 | } | |
3753 | } | |
3754 | { | |
3755 | wxPy_BEGIN_ALLOW_THREADS; | |
3756 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3757 | ||
3758 | wxPy_END_ALLOW_THREADS; | |
3759 | if (PyErr_Occurred()) return NULL; | |
3760 | } _resultobj = Py_BuildValue("i",_result); | |
3761 | return _resultobj; | |
3762 | } | |
3763 | ||
3764 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) | |
3765 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3766 | PyObject * _resultobj; | |
3767 | int _result; | |
3768 | wxListCtrl * _arg0; | |
3769 | bool _arg1; | |
3770 | PyObject * _argo0 = 0; | |
3771 | int tempbool1; | |
3772 | char *_kwnames[] = { "self","isSmall", NULL }; | |
3773 | ||
3774 | self = self; | |
3775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) | |
3776 | return NULL; | |
3777 | if (_argo0) { | |
3778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxListCtrl_p."); | |
3781 | return NULL; | |
3782 | } | |
3783 | } | |
3784 | _arg1 = (bool ) tempbool1; | |
3785 | { | |
3786 | wxPy_BEGIN_ALLOW_THREADS; | |
3787 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3788 | ||
3789 | wxPy_END_ALLOW_THREADS; | |
3790 | if (PyErr_Occurred()) return NULL; | |
3791 | } _resultobj = Py_BuildValue("i",_result); | |
3792 | return _resultobj; | |
3793 | } | |
3794 | ||
3795 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
3796 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3797 | PyObject * _resultobj; | |
3798 | wxString * _result; | |
3799 | wxListCtrl * _arg0; | |
3800 | long _arg1; | |
3801 | PyObject * _argo0 = 0; | |
3802 | char *_kwnames[] = { "self","item", NULL }; | |
3803 | ||
3804 | self = self; | |
3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) | |
3806 | return NULL; | |
3807 | if (_argo0) { | |
3808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxListCtrl_p."); | |
3811 | return NULL; | |
3812 | } | |
3813 | } | |
3814 | { | |
3815 | wxPy_BEGIN_ALLOW_THREADS; | |
3816 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); | |
3817 | ||
3818 | wxPy_END_ALLOW_THREADS; | |
3819 | if (PyErr_Occurred()) return NULL; | |
3820 | }{ | |
3821 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3822 | } | |
3823 | { | |
3824 | delete _result; | |
3825 | } | |
3826 | return _resultobj; | |
3827 | } | |
3828 | ||
3829 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
3830 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3831 | PyObject * _resultobj; | |
3832 | long _result; | |
3833 | wxListCtrl * _arg0; | |
3834 | long _arg1; | |
3835 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
3836 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
3837 | PyObject * _argo0 = 0; | |
3838 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
3839 | ||
3840 | self = self; | |
3841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3842 | return NULL; | |
3843 | if (_argo0) { | |
3844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxListCtrl_p."); | |
3847 | return NULL; | |
3848 | } | |
3849 | } | |
3850 | { | |
3851 | wxPy_BEGIN_ALLOW_THREADS; | |
3852 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
3853 | ||
3854 | wxPy_END_ALLOW_THREADS; | |
3855 | if (PyErr_Occurred()) return NULL; | |
3856 | } _resultobj = Py_BuildValue("l",_result); | |
3857 | return _resultobj; | |
3858 | } | |
3859 | ||
3860 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) | |
3861 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3862 | PyObject * _resultobj; | |
3863 | int _result; | |
3864 | wxListCtrl * _arg0; | |
3865 | PyObject * _argo0 = 0; | |
3866 | char *_kwnames[] = { "self", NULL }; | |
3867 | ||
3868 | self = self; | |
3869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) | |
3870 | return NULL; | |
3871 | if (_argo0) { | |
3872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxListCtrl_p."); | |
3875 | return NULL; | |
3876 | } | |
3877 | } | |
3878 | { | |
3879 | wxPy_BEGIN_ALLOW_THREADS; | |
3880 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); | |
3881 | ||
3882 | wxPy_END_ALLOW_THREADS; | |
3883 | if (PyErr_Occurred()) return NULL; | |
3884 | } _resultobj = Py_BuildValue("i",_result); | |
3885 | return _resultobj; | |
3886 | } | |
3887 | ||
3888 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
3889 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3890 | PyObject * _resultobj; | |
3891 | wxColour * _result; | |
3892 | wxListCtrl * _arg0; | |
3893 | PyObject * _argo0 = 0; | |
3894 | char *_kwnames[] = { "self", NULL }; | |
3895 | char _ptemp[128]; | |
3896 | ||
3897 | self = self; | |
3898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) | |
3899 | return NULL; | |
3900 | if (_argo0) { | |
3901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxListCtrl_p."); | |
3904 | return NULL; | |
3905 | } | |
3906 | } | |
3907 | { | |
3908 | wxPy_BEGIN_ALLOW_THREADS; | |
3909 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); | |
3910 | ||
3911 | wxPy_END_ALLOW_THREADS; | |
3912 | if (PyErr_Occurred()) return NULL; | |
3913 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
3914 | _resultobj = Py_BuildValue("s",_ptemp); | |
3915 | return _resultobj; | |
3916 | } | |
3917 | ||
3918 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
3919 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3920 | PyObject * _resultobj; | |
3921 | wxListCtrl * _arg0; | |
3922 | wxColour * _arg1; | |
3923 | PyObject * _argo0 = 0; | |
3924 | wxColour temp; | |
3925 | PyObject * _obj1 = 0; | |
3926 | char *_kwnames[] = { "self","col", NULL }; | |
3927 | ||
3928 | self = self; | |
3929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
3930 | return NULL; | |
3931 | if (_argo0) { | |
3932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxListCtrl_p."); | |
3935 | return NULL; | |
3936 | } | |
3937 | } | |
3938 | { | |
3939 | _arg1 = &temp; | |
3940 | if (! wxColour_helper(_obj1, &_arg1)) | |
3941 | return NULL; | |
3942 | } | |
3943 | { | |
3944 | wxPy_BEGIN_ALLOW_THREADS; | |
3945 | wxListCtrl_SetTextColour(_arg0,*_arg1); | |
3946 | ||
3947 | wxPy_END_ALLOW_THREADS; | |
3948 | if (PyErr_Occurred()) return NULL; | |
3949 | } Py_INCREF(Py_None); | |
3950 | _resultobj = Py_None; | |
3951 | return _resultobj; | |
3952 | } | |
3953 | ||
3954 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) | |
3955 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3956 | PyObject * _resultobj; | |
3957 | long _result; | |
3958 | wxListCtrl * _arg0; | |
3959 | PyObject * _argo0 = 0; | |
3960 | char *_kwnames[] = { "self", NULL }; | |
3961 | ||
3962 | self = self; | |
3963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) | |
3964 | return NULL; | |
3965 | if (_argo0) { | |
3966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxListCtrl_p."); | |
3969 | return NULL; | |
3970 | } | |
3971 | } | |
3972 | { | |
3973 | wxPy_BEGIN_ALLOW_THREADS; | |
3974 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
3975 | ||
3976 | wxPy_END_ALLOW_THREADS; | |
3977 | if (PyErr_Occurred()) return NULL; | |
3978 | } _resultobj = Py_BuildValue("l",_result); | |
3979 | return _resultobj; | |
3980 | } | |
3981 | ||
3982 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
3983 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3984 | PyObject * _resultobj; | |
3985 | long _result; | |
3986 | wxListCtrl * _arg0; | |
3987 | wxPoint * _arg1; | |
3988 | int * _arg2; | |
3989 | int temp; | |
3990 | PyObject * _argo0 = 0; | |
3991 | wxPoint temp0; | |
3992 | PyObject * _obj1 = 0; | |
3993 | char *_kwnames[] = { "self","point", NULL }; | |
3994 | ||
3995 | self = self; | |
3996 | { | |
3997 | _arg2 = &temp; | |
3998 | } | |
3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4000 | return NULL; | |
4001 | if (_argo0) { | |
4002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxListCtrl_p."); | |
4005 | return NULL; | |
4006 | } | |
4007 | } | |
4008 | { | |
4009 | _arg1 = &temp0; | |
4010 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4011 | return NULL; | |
4012 | } | |
4013 | { | |
4014 | wxPy_BEGIN_ALLOW_THREADS; | |
4015 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
4016 | ||
4017 | wxPy_END_ALLOW_THREADS; | |
4018 | if (PyErr_Occurred()) return NULL; | |
4019 | } _resultobj = Py_BuildValue("l",_result); | |
4020 | { | |
4021 | PyObject *o; | |
4022 | o = PyInt_FromLong((long) (*_arg2)); | |
4023 | _resultobj = t_output_helper(_resultobj, o); | |
4024 | } | |
4025 | return _resultobj; | |
4026 | } | |
4027 | ||
4028 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) | |
4029 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4030 | PyObject * _resultobj; | |
4031 | long _result; | |
4032 | wxListCtrl * _arg0; | |
4033 | long _arg1; | |
4034 | wxListItem * _arg2; | |
4035 | PyObject * _argo0 = 0; | |
4036 | PyObject * _argo2 = 0; | |
4037 | char *_kwnames[] = { "self","col","info", NULL }; | |
4038 | ||
4039 | self = self; | |
4040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) | |
4041 | return NULL; | |
4042 | if (_argo0) { | |
4043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxListCtrl_p."); | |
4046 | return NULL; | |
4047 | } | |
4048 | } | |
4049 | if (_argo2) { | |
4050 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4051 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
4053 | return NULL; | |
4054 | } | |
4055 | } | |
4056 | { | |
4057 | wxPy_BEGIN_ALLOW_THREADS; | |
4058 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); | |
4059 | ||
4060 | wxPy_END_ALLOW_THREADS; | |
4061 | if (PyErr_Occurred()) return NULL; | |
4062 | } _resultobj = Py_BuildValue("l",_result); | |
4063 | return _resultobj; | |
4064 | } | |
4065 | ||
4066 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4067 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4068 | PyObject * _resultobj; | |
4069 | long _result; | |
4070 | wxListCtrl * _arg0; | |
4071 | long _arg1; | |
4072 | wxString * _arg2; | |
4073 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); | |
4074 | int _arg4 = (int ) -1; | |
4075 | PyObject * _argo0 = 0; | |
4076 | PyObject * _obj2 = 0; | |
4077 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; | |
4078 | ||
4079 | self = self; | |
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) | |
4081 | return NULL; | |
4082 | if (_argo0) { | |
4083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxListCtrl_p."); | |
4086 | return NULL; | |
4087 | } | |
4088 | } | |
4089 | { | |
4090 | #if PYTHON_API_VERSION >= 1009 | |
4091 | char* tmpPtr; int tmpSize; | |
4092 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4093 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4094 | return NULL; | |
4095 | } | |
4096 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4097 | return NULL; | |
4098 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4099 | #else | |
4100 | if (!PyString_Check(_obj2)) { | |
4101 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4102 | return NULL; | |
4103 | } | |
4104 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4105 | #endif | |
4106 | } | |
4107 | { | |
4108 | wxPy_BEGIN_ALLOW_THREADS; | |
4109 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); | |
4110 | ||
4111 | wxPy_END_ALLOW_THREADS; | |
4112 | if (PyErr_Occurred()) return NULL; | |
4113 | } _resultobj = Py_BuildValue("l",_result); | |
4114 | { | |
4115 | if (_obj2) | |
4116 | delete _arg2; | |
4117 | } | |
4118 | return _resultobj; | |
4119 | } | |
4120 | ||
4121 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4122 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4123 | PyObject * _resultobj; | |
4124 | long _result; | |
4125 | wxListCtrl * _arg0; | |
4126 | wxListItem * _arg1; | |
4127 | PyObject * _argo0 = 0; | |
4128 | PyObject * _argo1 = 0; | |
4129 | char *_kwnames[] = { "self","info", NULL }; | |
4130 | ||
4131 | self = self; | |
4132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4133 | return NULL; | |
4134 | if (_argo0) { | |
4135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxListCtrl_p."); | |
4138 | return NULL; | |
4139 | } | |
4140 | } | |
4141 | if (_argo1) { | |
4142 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4143 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
4144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); | |
4145 | return NULL; | |
4146 | } | |
4147 | } | |
4148 | { | |
4149 | wxPy_BEGIN_ALLOW_THREADS; | |
4150 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
4151 | ||
4152 | wxPy_END_ALLOW_THREADS; | |
4153 | if (PyErr_Occurred()) return NULL; | |
4154 | } _resultobj = Py_BuildValue("l",_result); | |
4155 | return _resultobj; | |
4156 | } | |
4157 | ||
4158 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4159 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4160 | PyObject * _resultobj; | |
4161 | long _result; | |
4162 | wxListCtrl * _arg0; | |
4163 | long _arg1; | |
4164 | wxString * _arg2; | |
4165 | PyObject * _argo0 = 0; | |
4166 | PyObject * _obj2 = 0; | |
4167 | char *_kwnames[] = { "self","index","label", NULL }; | |
4168 | ||
4169 | self = self; | |
4170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4171 | return NULL; | |
4172 | if (_argo0) { | |
4173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxListCtrl_p."); | |
4176 | return NULL; | |
4177 | } | |
4178 | } | |
4179 | { | |
4180 | #if PYTHON_API_VERSION >= 1009 | |
4181 | char* tmpPtr; int tmpSize; | |
4182 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4183 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4184 | return NULL; | |
4185 | } | |
4186 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4187 | return NULL; | |
4188 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4189 | #else | |
4190 | if (!PyString_Check(_obj2)) { | |
4191 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4192 | return NULL; | |
4193 | } | |
4194 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4195 | #endif | |
4196 | } | |
4197 | { | |
4198 | wxPy_BEGIN_ALLOW_THREADS; | |
4199 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
4200 | ||
4201 | wxPy_END_ALLOW_THREADS; | |
4202 | if (PyErr_Occurred()) return NULL; | |
4203 | } _resultobj = Py_BuildValue("l",_result); | |
4204 | { | |
4205 | if (_obj2) | |
4206 | delete _arg2; | |
4207 | } | |
4208 | return _resultobj; | |
4209 | } | |
4210 | ||
4211 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4212 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4213 | PyObject * _resultobj; | |
4214 | long _result; | |
4215 | wxListCtrl * _arg0; | |
4216 | long _arg1; | |
4217 | int _arg2; | |
4218 | PyObject * _argo0 = 0; | |
4219 | char *_kwnames[] = { "self","index","imageIndex", NULL }; | |
4220 | ||
4221 | self = self; | |
4222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4223 | return NULL; | |
4224 | if (_argo0) { | |
4225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxListCtrl_p."); | |
4228 | return NULL; | |
4229 | } | |
4230 | } | |
4231 | { | |
4232 | wxPy_BEGIN_ALLOW_THREADS; | |
4233 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); | |
4234 | ||
4235 | wxPy_END_ALLOW_THREADS; | |
4236 | if (PyErr_Occurred()) return NULL; | |
4237 | } _resultobj = Py_BuildValue("l",_result); | |
4238 | return _resultobj; | |
4239 | } | |
4240 | ||
4241 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) | |
4242 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4243 | PyObject * _resultobj; | |
4244 | long _result; | |
4245 | wxListCtrl * _arg0; | |
4246 | long _arg1; | |
4247 | wxString * _arg2; | |
4248 | int _arg3; | |
4249 | PyObject * _argo0 = 0; | |
4250 | PyObject * _obj2 = 0; | |
4251 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; | |
4252 | ||
4253 | self = self; | |
4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4255 | return NULL; | |
4256 | if (_argo0) { | |
4257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxListCtrl_p."); | |
4260 | return NULL; | |
4261 | } | |
4262 | } | |
4263 | { | |
4264 | #if PYTHON_API_VERSION >= 1009 | |
4265 | char* tmpPtr; int tmpSize; | |
4266 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4267 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4268 | return NULL; | |
4269 | } | |
4270 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4271 | return NULL; | |
4272 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4273 | #else | |
4274 | if (!PyString_Check(_obj2)) { | |
4275 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4276 | return NULL; | |
4277 | } | |
4278 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4279 | #endif | |
4280 | } | |
4281 | { | |
4282 | wxPy_BEGIN_ALLOW_THREADS; | |
4283 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); | |
4284 | ||
4285 | wxPy_END_ALLOW_THREADS; | |
4286 | if (PyErr_Occurred()) return NULL; | |
4287 | } _resultobj = Py_BuildValue("l",_result); | |
4288 | { | |
4289 | if (_obj2) | |
4290 | delete _arg2; | |
4291 | } | |
4292 | return _resultobj; | |
4293 | } | |
4294 | ||
4295 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) | |
4296 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4297 | PyObject * _resultobj; | |
4298 | bool _result; | |
4299 | wxListCtrl * _arg0; | |
4300 | int _arg1; | |
4301 | int _arg2; | |
4302 | PyObject * _argo0 = 0; | |
4303 | char *_kwnames[] = { "self","dx","dy", NULL }; | |
4304 | ||
4305 | self = self; | |
4306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4307 | return NULL; | |
4308 | if (_argo0) { | |
4309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxListCtrl_p."); | |
4312 | return NULL; | |
4313 | } | |
4314 | } | |
4315 | { | |
4316 | wxPy_BEGIN_ALLOW_THREADS; | |
4317 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); | |
4318 | ||
4319 | wxPy_END_ALLOW_THREADS; | |
4320 | if (PyErr_Occurred()) return NULL; | |
4321 | } _resultobj = Py_BuildValue("i",_result); | |
4322 | return _resultobj; | |
4323 | } | |
4324 | ||
4325 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
4326 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4327 | PyObject * _resultobj; | |
4328 | wxListCtrl * _arg0; | |
4329 | wxColour * _arg1; | |
4330 | PyObject * _argo0 = 0; | |
4331 | wxColour temp; | |
4332 | PyObject * _obj1 = 0; | |
4333 | char *_kwnames[] = { "self","col", NULL }; | |
4334 | ||
4335 | self = self; | |
4336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
4337 | return NULL; | |
4338 | if (_argo0) { | |
4339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxListCtrl_p."); | |
4342 | return NULL; | |
4343 | } | |
4344 | } | |
4345 | { | |
4346 | _arg1 = &temp; | |
4347 | if (! wxColour_helper(_obj1, &_arg1)) | |
4348 | return NULL; | |
4349 | } | |
4350 | { | |
4351 | wxPy_BEGIN_ALLOW_THREADS; | |
4352 | wxListCtrl_SetBackgroundColour(_arg0,*_arg1); | |
4353 | ||
4354 | wxPy_END_ALLOW_THREADS; | |
4355 | if (PyErr_Occurred()) return NULL; | |
4356 | } Py_INCREF(Py_None); | |
4357 | _resultobj = Py_None; | |
4358 | return _resultobj; | |
4359 | } | |
4360 | ||
4361 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) | |
4362 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4363 | PyObject * _resultobj; | |
4364 | bool _result; | |
4365 | wxListCtrl * _arg0; | |
4366 | int _arg1; | |
4367 | wxListItem * _arg2; | |
4368 | PyObject * _argo0 = 0; | |
4369 | PyObject * _argo2 = 0; | |
4370 | char *_kwnames[] = { "self","col","item", NULL }; | |
4371 | ||
4372 | self = self; | |
4373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) | |
4374 | return NULL; | |
4375 | if (_argo0) { | |
4376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxListCtrl_p."); | |
4379 | return NULL; | |
4380 | } | |
4381 | } | |
4382 | if (_argo2) { | |
4383 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4384 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
4386 | return NULL; | |
4387 | } | |
4388 | } | |
4389 | { | |
4390 | wxPy_BEGIN_ALLOW_THREADS; | |
4391 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); | |
4392 | ||
4393 | wxPy_END_ALLOW_THREADS; | |
4394 | if (PyErr_Occurred()) return NULL; | |
4395 | } _resultobj = Py_BuildValue("i",_result); | |
4396 | return _resultobj; | |
4397 | } | |
4398 | ||
4399 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) | |
4400 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4401 | PyObject * _resultobj; | |
4402 | bool _result; | |
4403 | wxListCtrl * _arg0; | |
4404 | int _arg1; | |
4405 | int _arg2; | |
4406 | PyObject * _argo0 = 0; | |
4407 | char *_kwnames[] = { "self","col","width", NULL }; | |
4408 | ||
4409 | self = self; | |
4410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4411 | return NULL; | |
4412 | if (_argo0) { | |
4413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxListCtrl_p."); | |
4416 | return NULL; | |
4417 | } | |
4418 | } | |
4419 | { | |
4420 | wxPy_BEGIN_ALLOW_THREADS; | |
4421 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); | |
4422 | ||
4423 | wxPy_END_ALLOW_THREADS; | |
4424 | if (PyErr_Occurred()) return NULL; | |
4425 | } _resultobj = Py_BuildValue("i",_result); | |
4426 | return _resultobj; | |
4427 | } | |
4428 | ||
4429 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) | |
4430 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4431 | PyObject * _resultobj; | |
4432 | wxListCtrl * _arg0; | |
4433 | wxImageList * _arg1; | |
4434 | int _arg2; | |
4435 | PyObject * _argo0 = 0; | |
4436 | PyObject * _argo1 = 0; | |
4437 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
4438 | ||
4439 | self = self; | |
4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4441 | return NULL; | |
4442 | if (_argo0) { | |
4443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxListCtrl_p."); | |
4446 | return NULL; | |
4447 | } | |
4448 | } | |
4449 | if (_argo1) { | |
4450 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4451 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
4453 | return NULL; | |
4454 | } | |
4455 | } | |
4456 | { | |
4457 | wxPy_BEGIN_ALLOW_THREADS; | |
4458 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); | |
4459 | ||
4460 | wxPy_END_ALLOW_THREADS; | |
4461 | if (PyErr_Occurred()) return NULL; | |
4462 | } Py_INCREF(Py_None); | |
4463 | _resultobj = Py_None; | |
4464 | return _resultobj; | |
4465 | } | |
4466 | ||
4467 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) | |
4468 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4469 | PyObject * _resultobj; | |
4470 | bool _result; | |
4471 | wxListCtrl * _arg0; | |
4472 | wxListItem * _arg1; | |
4473 | PyObject * _argo0 = 0; | |
4474 | PyObject * _argo1 = 0; | |
4475 | char *_kwnames[] = { "self","info", NULL }; | |
4476 | ||
4477 | self = self; | |
4478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) | |
4479 | return NULL; | |
4480 | if (_argo0) { | |
4481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxListCtrl_p."); | |
4484 | return NULL; | |
4485 | } | |
4486 | } | |
4487 | if (_argo1) { | |
4488 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4489 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
4490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
4491 | return NULL; | |
4492 | } | |
4493 | } | |
4494 | { | |
4495 | wxPy_BEGIN_ALLOW_THREADS; | |
4496 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); | |
4497 | ||
4498 | wxPy_END_ALLOW_THREADS; | |
4499 | if (PyErr_Occurred()) return NULL; | |
4500 | } _resultobj = Py_BuildValue("i",_result); | |
4501 | return _resultobj; | |
4502 | } | |
4503 | ||
4504 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4505 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4506 | PyObject * _resultobj; | |
4507 | long _result; | |
4508 | wxListCtrl * _arg0; | |
4509 | long _arg1; | |
4510 | int _arg2; | |
4511 | wxString * _arg3; | |
4512 | int _arg4 = (int ) -1; | |
4513 | PyObject * _argo0 = 0; | |
4514 | PyObject * _obj3 = 0; | |
4515 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
4516 | ||
4517 | self = self; | |
4518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
4519 | return NULL; | |
4520 | if (_argo0) { | |
4521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxListCtrl_p."); | |
4524 | return NULL; | |
4525 | } | |
4526 | } | |
4527 | { | |
4528 | #if PYTHON_API_VERSION >= 1009 | |
4529 | char* tmpPtr; int tmpSize; | |
4530 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
4531 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4532 | return NULL; | |
4533 | } | |
4534 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
4535 | return NULL; | |
4536 | _arg3 = new wxString(tmpPtr, tmpSize); | |
4537 | #else | |
4538 | if (!PyString_Check(_obj3)) { | |
4539 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4540 | return NULL; | |
4541 | } | |
4542 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
4543 | #endif | |
4544 | } | |
4545 | { | |
4546 | wxPy_BEGIN_ALLOW_THREADS; | |
4547 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
4548 | ||
4549 | wxPy_END_ALLOW_THREADS; | |
4550 | if (PyErr_Occurred()) return NULL; | |
4551 | } _resultobj = Py_BuildValue("l",_result); | |
4552 | { | |
4553 | if (_obj3) | |
4554 | delete _arg3; | |
4555 | } | |
4556 | return _resultobj; | |
4557 | } | |
4558 | ||
4559 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) | |
4560 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4561 | PyObject * _resultobj; | |
4562 | bool _result; | |
4563 | wxListCtrl * _arg0; | |
4564 | long _arg1; | |
4565 | long _arg2; | |
4566 | PyObject * _argo0 = 0; | |
4567 | char *_kwnames[] = { "self","item","data", NULL }; | |
4568 | ||
4569 | self = self; | |
4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4571 | return NULL; | |
4572 | if (_argo0) { | |
4573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxListCtrl_p."); | |
4576 | return NULL; | |
4577 | } | |
4578 | } | |
4579 | { | |
4580 | wxPy_BEGIN_ALLOW_THREADS; | |
4581 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); | |
4582 | ||
4583 | wxPy_END_ALLOW_THREADS; | |
4584 | if (PyErr_Occurred()) return NULL; | |
4585 | } _resultobj = Py_BuildValue("i",_result); | |
4586 | return _resultobj; | |
4587 | } | |
4588 | ||
4589 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
4590 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4591 | PyObject * _resultobj; | |
4592 | bool _result; | |
4593 | wxListCtrl * _arg0; | |
4594 | long _arg1; | |
4595 | int _arg2; | |
4596 | int _arg3; | |
4597 | PyObject * _argo0 = 0; | |
4598 | char *_kwnames[] = { "self","item","image","selImage", NULL }; | |
4599 | ||
4600 | self = self; | |
4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4602 | return NULL; | |
4603 | if (_argo0) { | |
4604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxListCtrl_p."); | |
4607 | return NULL; | |
4608 | } | |
4609 | } | |
4610 | { | |
4611 | wxPy_BEGIN_ALLOW_THREADS; | |
4612 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); | |
4613 | ||
4614 | wxPy_END_ALLOW_THREADS; | |
4615 | if (PyErr_Occurred()) return NULL; | |
4616 | } _resultobj = Py_BuildValue("i",_result); | |
4617 | return _resultobj; | |
4618 | } | |
4619 | ||
4620 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) | |
4621 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4622 | PyObject * _resultobj; | |
4623 | bool _result; | |
4624 | wxListCtrl * _arg0; | |
4625 | long _arg1; | |
4626 | wxPoint * _arg2; | |
4627 | PyObject * _argo0 = 0; | |
4628 | wxPoint temp; | |
4629 | PyObject * _obj2 = 0; | |
4630 | char *_kwnames[] = { "self","item","pos", NULL }; | |
4631 | ||
4632 | self = self; | |
4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4634 | return NULL; | |
4635 | if (_argo0) { | |
4636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxListCtrl_p."); | |
4639 | return NULL; | |
4640 | } | |
4641 | } | |
4642 | { | |
4643 | _arg2 = &temp; | |
4644 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4645 | return NULL; | |
4646 | } | |
4647 | { | |
4648 | wxPy_BEGIN_ALLOW_THREADS; | |
4649 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); | |
4650 | ||
4651 | wxPy_END_ALLOW_THREADS; | |
4652 | if (PyErr_Occurred()) return NULL; | |
4653 | } _resultobj = Py_BuildValue("i",_result); | |
4654 | return _resultobj; | |
4655 | } | |
4656 | ||
4657 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) | |
4658 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4659 | PyObject * _resultobj; | |
4660 | bool _result; | |
4661 | wxListCtrl * _arg0; | |
4662 | long _arg1; | |
4663 | long _arg2; | |
4664 | long _arg3; | |
4665 | PyObject * _argo0 = 0; | |
4666 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; | |
4667 | ||
4668 | self = self; | |
4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4670 | return NULL; | |
4671 | if (_argo0) { | |
4672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxListCtrl_p."); | |
4675 | return NULL; | |
4676 | } | |
4677 | } | |
4678 | { | |
4679 | wxPy_BEGIN_ALLOW_THREADS; | |
4680 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); | |
4681 | ||
4682 | wxPy_END_ALLOW_THREADS; | |
4683 | if (PyErr_Occurred()) return NULL; | |
4684 | } _resultobj = Py_BuildValue("i",_result); | |
4685 | return _resultobj; | |
4686 | } | |
4687 | ||
4688 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
4689 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4690 | PyObject * _resultobj; | |
4691 | wxListCtrl * _arg0; | |
4692 | long _arg1; | |
4693 | wxString * _arg2; | |
4694 | PyObject * _argo0 = 0; | |
4695 | PyObject * _obj2 = 0; | |
4696 | char *_kwnames[] = { "self","item","text", NULL }; | |
4697 | ||
4698 | self = self; | |
4699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4700 | return NULL; | |
4701 | if (_argo0) { | |
4702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxListCtrl_p."); | |
4705 | return NULL; | |
4706 | } | |
4707 | } | |
4708 | { | |
4709 | #if PYTHON_API_VERSION >= 1009 | |
4710 | char* tmpPtr; int tmpSize; | |
4711 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4712 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4713 | return NULL; | |
4714 | } | |
4715 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4716 | return NULL; | |
4717 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4718 | #else | |
4719 | if (!PyString_Check(_obj2)) { | |
4720 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4721 | return NULL; | |
4722 | } | |
4723 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4724 | #endif | |
4725 | } | |
4726 | { | |
4727 | wxPy_BEGIN_ALLOW_THREADS; | |
4728 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); | |
4729 | ||
4730 | wxPy_END_ALLOW_THREADS; | |
4731 | if (PyErr_Occurred()) return NULL; | |
4732 | } Py_INCREF(Py_None); | |
4733 | _resultobj = Py_None; | |
4734 | { | |
4735 | if (_obj2) | |
4736 | delete _arg2; | |
4737 | } | |
4738 | return _resultobj; | |
4739 | } | |
4740 | ||
4741 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) | |
4742 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4743 | PyObject * _resultobj; | |
4744 | wxListCtrl * _arg0; | |
4745 | long _arg1; | |
4746 | bool _arg2 = (bool ) TRUE; | |
4747 | PyObject * _argo0 = 0; | |
4748 | int tempbool2 = (int) TRUE; | |
4749 | char *_kwnames[] = { "self","style","add", NULL }; | |
4750 | ||
4751 | self = self; | |
4752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
4753 | return NULL; | |
4754 | if (_argo0) { | |
4755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxListCtrl_p."); | |
4758 | return NULL; | |
4759 | } | |
4760 | } | |
4761 | _arg2 = (bool ) tempbool2; | |
4762 | { | |
4763 | wxPy_BEGIN_ALLOW_THREADS; | |
4764 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4765 | ||
4766 | wxPy_END_ALLOW_THREADS; | |
4767 | if (PyErr_Occurred()) return NULL; | |
4768 | } Py_INCREF(Py_None); | |
4769 | _resultobj = Py_None; | |
4770 | return _resultobj; | |
4771 | } | |
4772 | ||
4773 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
4774 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4775 | PyObject * _resultobj; | |
4776 | wxListCtrl * _arg0; | |
4777 | long _arg1; | |
4778 | PyObject * _argo0 = 0; | |
4779 | char *_kwnames[] = { "self","style", NULL }; | |
4780 | ||
4781 | self = self; | |
4782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
4783 | return NULL; | |
4784 | if (_argo0) { | |
4785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxListCtrl_p."); | |
4788 | return NULL; | |
4789 | } | |
4790 | } | |
4791 | { | |
4792 | wxPy_BEGIN_ALLOW_THREADS; | |
4793 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4794 | ||
4795 | wxPy_END_ALLOW_THREADS; | |
4796 | if (PyErr_Occurred()) return NULL; | |
4797 | } Py_INCREF(Py_None); | |
4798 | _resultobj = Py_None; | |
4799 | return _resultobj; | |
4800 | } | |
4801 | ||
4802 | static bool wxListCtrl_SortItems(wxListCtrl *self,PyObject * func) { | |
4803 | if (!PyCallable_Check(func)) | |
4804 | return FALSE; | |
4805 | ||
4806 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); | |
4807 | } | |
4808 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4809 | PyObject * _resultobj; | |
4810 | bool _result; | |
4811 | wxListCtrl * _arg0; | |
4812 | PyObject * _arg1; | |
4813 | PyObject * _argo0 = 0; | |
4814 | PyObject * _obj1 = 0; | |
4815 | char *_kwnames[] = { "self","func", NULL }; | |
4816 | ||
4817 | self = self; | |
4818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4819 | return NULL; | |
4820 | if (_argo0) { | |
4821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxListCtrl_p."); | |
4824 | return NULL; | |
4825 | } | |
4826 | } | |
4827 | { | |
4828 | _arg1 = _obj1; | |
4829 | } | |
4830 | { | |
4831 | wxPy_BEGIN_ALLOW_THREADS; | |
4832 | _result = (bool )wxListCtrl_SortItems(_arg0,_arg1); | |
4833 | ||
4834 | wxPy_END_ALLOW_THREADS; | |
4835 | if (PyErr_Occurred()) return NULL; | |
4836 | } _resultobj = Py_BuildValue("i",_result); | |
4837 | return _resultobj; | |
4838 | } | |
4839 | ||
4840 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
4841 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4842 | PyObject * _resultobj; | |
4843 | wxTreeItemId * _result; | |
4844 | char *_kwnames[] = { NULL }; | |
4845 | char _ptemp[128]; | |
4846 | ||
4847 | self = self; | |
4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
4849 | return NULL; | |
4850 | { | |
4851 | wxPy_BEGIN_ALLOW_THREADS; | |
4852 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
4853 | ||
4854 | wxPy_END_ALLOW_THREADS; | |
4855 | if (PyErr_Occurred()) return NULL; | |
4856 | } if (_result) { | |
4857 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4858 | _resultobj = Py_BuildValue("s",_ptemp); | |
4859 | } else { | |
4860 | Py_INCREF(Py_None); | |
4861 | _resultobj = Py_None; | |
4862 | } | |
4863 | return _resultobj; | |
4864 | } | |
4865 | ||
4866 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
4867 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4868 | PyObject * _resultobj; | |
4869 | wxTreeItemId * _arg0; | |
4870 | PyObject * _argo0 = 0; | |
4871 | char *_kwnames[] = { "self", NULL }; | |
4872 | ||
4873 | self = self; | |
4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
4875 | return NULL; | |
4876 | if (_argo0) { | |
4877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
4879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
4880 | return NULL; | |
4881 | } | |
4882 | } | |
4883 | { | |
4884 | wxPy_BEGIN_ALLOW_THREADS; | |
4885 | delete_wxTreeItemId(_arg0); | |
4886 | ||
4887 | wxPy_END_ALLOW_THREADS; | |
4888 | if (PyErr_Occurred()) return NULL; | |
4889 | } Py_INCREF(Py_None); | |
4890 | _resultobj = Py_None; | |
4891 | return _resultobj; | |
4892 | } | |
4893 | ||
4894 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
4895 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4896 | PyObject * _resultobj; | |
4897 | bool _result; | |
4898 | wxTreeItemId * _arg0; | |
4899 | PyObject * _argo0 = 0; | |
4900 | char *_kwnames[] = { "self", NULL }; | |
4901 | ||
4902 | self = self; | |
4903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
4904 | return NULL; | |
4905 | if (_argo0) { | |
4906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
4908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
4909 | return NULL; | |
4910 | } | |
4911 | } | |
4912 | { | |
4913 | wxPy_BEGIN_ALLOW_THREADS; | |
4914 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
4915 | ||
4916 | wxPy_END_ALLOW_THREADS; | |
4917 | if (PyErr_Occurred()) return NULL; | |
4918 | } _resultobj = Py_BuildValue("i",_result); | |
4919 | return _resultobj; | |
4920 | } | |
4921 | ||
4922 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
4923 | if (! other) return -1; | |
4924 | return *self != *other; | |
4925 | } | |
4926 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4927 | PyObject * _resultobj; | |
4928 | int _result; | |
4929 | wxTreeItemId * _arg0; | |
4930 | wxTreeItemId * _arg1; | |
4931 | PyObject * _argo0 = 0; | |
4932 | PyObject * _argo1 = 0; | |
4933 | char *_kwnames[] = { "self","other", NULL }; | |
4934 | ||
4935 | self = self; | |
4936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
4937 | return NULL; | |
4938 | if (_argo0) { | |
4939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
4941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4942 | return NULL; | |
4943 | } | |
4944 | } | |
4945 | if (_argo1) { | |
4946 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4947 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
4948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4949 | return NULL; | |
4950 | } | |
4951 | } | |
4952 | { | |
4953 | wxPy_BEGIN_ALLOW_THREADS; | |
4954 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
4955 | ||
4956 | wxPy_END_ALLOW_THREADS; | |
4957 | if (PyErr_Occurred()) return NULL; | |
4958 | } _resultobj = Py_BuildValue("i",_result); | |
4959 | return _resultobj; | |
4960 | } | |
4961 | ||
4962 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
4963 | wxPyTreeItemData *src; | |
4964 | wxObject *dest; | |
4965 | src = (wxPyTreeItemData *) ptr; | |
4966 | dest = (wxObject *) src; | |
4967 | return (void *) dest; | |
4968 | } | |
4969 | ||
4970 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
4971 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4972 | PyObject * _resultobj; | |
4973 | wxPyTreeItemData * _result; | |
4974 | PyObject * _arg0 = (PyObject *) NULL; | |
4975 | PyObject * _obj0 = 0; | |
4976 | char *_kwnames[] = { "obj", NULL }; | |
4977 | char _ptemp[128]; | |
4978 | ||
4979 | self = self; | |
4980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
4981 | return NULL; | |
4982 | if (_obj0) | |
4983 | { | |
4984 | _arg0 = _obj0; | |
4985 | } | |
4986 | { | |
4987 | wxPy_BEGIN_ALLOW_THREADS; | |
4988 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
4989 | ||
4990 | wxPy_END_ALLOW_THREADS; | |
4991 | if (PyErr_Occurred()) return NULL; | |
4992 | } if (_result) { | |
4993 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
4994 | _resultobj = Py_BuildValue("s",_ptemp); | |
4995 | } else { | |
4996 | Py_INCREF(Py_None); | |
4997 | _resultobj = Py_None; | |
4998 | } | |
4999 | return _resultobj; | |
5000 | } | |
5001 | ||
5002 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
5003 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5004 | PyObject * _resultobj; | |
5005 | PyObject * _result; | |
5006 | wxPyTreeItemData * _arg0; | |
5007 | PyObject * _argo0 = 0; | |
5008 | char *_kwnames[] = { "self", NULL }; | |
5009 | ||
5010 | self = self; | |
5011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
5012 | return NULL; | |
5013 | if (_argo0) { | |
5014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
5017 | return NULL; | |
5018 | } | |
5019 | } | |
5020 | { | |
5021 | wxPy_BEGIN_ALLOW_THREADS; | |
5022 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
5023 | ||
5024 | wxPy_END_ALLOW_THREADS; | |
5025 | if (PyErr_Occurred()) return NULL; | |
5026 | }{ | |
5027 | _resultobj = _result; | |
5028 | } | |
5029 | return _resultobj; | |
5030 | } | |
5031 | ||
5032 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
5033 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5034 | PyObject * _resultobj; | |
5035 | wxPyTreeItemData * _arg0; | |
5036 | PyObject * _arg1; | |
5037 | PyObject * _argo0 = 0; | |
5038 | PyObject * _obj1 = 0; | |
5039 | char *_kwnames[] = { "self","obj", NULL }; | |
5040 | ||
5041 | self = self; | |
5042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
5043 | return NULL; | |
5044 | if (_argo0) { | |
5045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
5048 | return NULL; | |
5049 | } | |
5050 | } | |
5051 | { | |
5052 | _arg1 = _obj1; | |
5053 | } | |
5054 | { | |
5055 | wxPy_BEGIN_ALLOW_THREADS; | |
5056 | wxTreeItemData_SetData(_arg0,_arg1); | |
5057 | ||
5058 | wxPy_END_ALLOW_THREADS; | |
5059 | if (PyErr_Occurred()) return NULL; | |
5060 | } Py_INCREF(Py_None); | |
5061 | _resultobj = Py_None; | |
5062 | return _resultobj; | |
5063 | } | |
5064 | ||
5065 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
5066 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5067 | PyObject * _resultobj; | |
5068 | wxTreeItemId * _result; | |
5069 | wxPyTreeItemData * _arg0; | |
5070 | PyObject * _argo0 = 0; | |
5071 | char *_kwnames[] = { "self", NULL }; | |
5072 | char _ptemp[128]; | |
5073 | ||
5074 | self = self; | |
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
5076 | return NULL; | |
5077 | if (_argo0) { | |
5078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
5081 | return NULL; | |
5082 | } | |
5083 | } | |
5084 | { | |
5085 | wxPy_BEGIN_ALLOW_THREADS; | |
5086 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
5087 | _result = (wxTreeItemId *) &_result_ref; | |
5088 | ||
5089 | wxPy_END_ALLOW_THREADS; | |
5090 | if (PyErr_Occurred()) return NULL; | |
5091 | } if (_result) { | |
5092 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5093 | _resultobj = Py_BuildValue("s",_ptemp); | |
5094 | } else { | |
5095 | Py_INCREF(Py_None); | |
5096 | _resultobj = Py_None; | |
5097 | } | |
5098 | return _resultobj; | |
5099 | } | |
5100 | ||
5101 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
5102 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5103 | PyObject * _resultobj; | |
5104 | wxPyTreeItemData * _arg0; | |
5105 | wxTreeItemId * _arg1; | |
5106 | PyObject * _argo0 = 0; | |
5107 | PyObject * _argo1 = 0; | |
5108 | char *_kwnames[] = { "self","id", NULL }; | |
5109 | ||
5110 | self = self; | |
5111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) | |
5112 | return NULL; | |
5113 | if (_argo0) { | |
5114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); | |
5117 | return NULL; | |
5118 | } | |
5119 | } | |
5120 | if (_argo1) { | |
5121 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5122 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); | |
5124 | return NULL; | |
5125 | } | |
5126 | } | |
5127 | { | |
5128 | wxPy_BEGIN_ALLOW_THREADS; | |
5129 | wxTreeItemData_SetId(_arg0,*_arg1); | |
5130 | ||
5131 | wxPy_END_ALLOW_THREADS; | |
5132 | if (PyErr_Occurred()) return NULL; | |
5133 | } Py_INCREF(Py_None); | |
5134 | _resultobj = Py_None; | |
5135 | return _resultobj; | |
5136 | } | |
5137 | ||
5138 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { | |
5139 | wxTreeEvent *src; | |
5140 | wxNotifyEvent *dest; | |
5141 | src = (wxTreeEvent *) ptr; | |
5142 | dest = (wxNotifyEvent *) src; | |
5143 | return (void *) dest; | |
5144 | } | |
5145 | ||
5146 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { | |
5147 | wxTreeEvent *src; | |
5148 | wxCommandEvent *dest; | |
5149 | src = (wxTreeEvent *) ptr; | |
5150 | dest = (wxCommandEvent *) src; | |
5151 | return (void *) dest; | |
5152 | } | |
5153 | ||
5154 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
5155 | wxTreeEvent *src; | |
5156 | wxEvent *dest; | |
5157 | src = (wxTreeEvent *) ptr; | |
5158 | dest = (wxEvent *) src; | |
5159 | return (void *) dest; | |
5160 | } | |
5161 | ||
5162 | static void *SwigwxTreeEventTowxObject(void *ptr) { | |
5163 | wxTreeEvent *src; | |
5164 | wxObject *dest; | |
5165 | src = (wxTreeEvent *) ptr; | |
5166 | dest = (wxObject *) src; | |
5167 | return (void *) dest; | |
5168 | } | |
5169 | ||
5170 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) | |
5171 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5172 | PyObject * _resultobj; | |
5173 | wxTreeItemId * _result; | |
5174 | wxTreeEvent * _arg0; | |
5175 | PyObject * _argo0 = 0; | |
5176 | char *_kwnames[] = { "self", NULL }; | |
5177 | char _ptemp[128]; | |
5178 | ||
5179 | self = self; | |
5180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) | |
5181 | return NULL; | |
5182 | if (_argo0) { | |
5183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
5185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); | |
5186 | return NULL; | |
5187 | } | |
5188 | } | |
5189 | { | |
5190 | wxPy_BEGIN_ALLOW_THREADS; | |
5191 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
5192 | ||
5193 | wxPy_END_ALLOW_THREADS; | |
5194 | if (PyErr_Occurred()) return NULL; | |
5195 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
5196 | _resultobj = Py_BuildValue("s",_ptemp); | |
5197 | return _resultobj; | |
5198 | } | |
5199 | ||
5200 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) | |
5201 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5202 | PyObject * _resultobj; | |
5203 | wxTreeItemId * _result; | |
5204 | wxTreeEvent * _arg0; | |
5205 | PyObject * _argo0 = 0; | |
5206 | char *_kwnames[] = { "self", NULL }; | |
5207 | char _ptemp[128]; | |
5208 | ||
5209 | self = self; | |
5210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) | |
5211 | return NULL; | |
5212 | if (_argo0) { | |
5213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
5215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); | |
5216 | return NULL; | |
5217 | } | |
5218 | } | |
5219 | { | |
5220 | wxPy_BEGIN_ALLOW_THREADS; | |
5221 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
5222 | ||
5223 | wxPy_END_ALLOW_THREADS; | |
5224 | if (PyErr_Occurred()) return NULL; | |
5225 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
5226 | _resultobj = Py_BuildValue("s",_ptemp); | |
5227 | return _resultobj; | |
5228 | } | |
5229 | ||
5230 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) | |
5231 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5232 | PyObject * _resultobj; | |
5233 | wxPoint * _result; | |
5234 | wxTreeEvent * _arg0; | |
5235 | PyObject * _argo0 = 0; | |
5236 | char *_kwnames[] = { "self", NULL }; | |
5237 | char _ptemp[128]; | |
5238 | ||
5239 | self = self; | |
5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) | |
5241 | return NULL; | |
5242 | if (_argo0) { | |
5243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
5245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); | |
5246 | return NULL; | |
5247 | } | |
5248 | } | |
5249 | { | |
5250 | wxPy_BEGIN_ALLOW_THREADS; | |
5251 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
5252 | ||
5253 | wxPy_END_ALLOW_THREADS; | |
5254 | if (PyErr_Occurred()) return NULL; | |
5255 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
5256 | _resultobj = Py_BuildValue("s",_ptemp); | |
5257 | return _resultobj; | |
5258 | } | |
5259 | ||
5260 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) | |
5261 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5262 | PyObject * _resultobj; | |
5263 | int _result; | |
5264 | wxTreeEvent * _arg0; | |
5265 | PyObject * _argo0 = 0; | |
5266 | char *_kwnames[] = { "self", NULL }; | |
5267 | ||
5268 | self = self; | |
5269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) | |
5270 | return NULL; | |
5271 | if (_argo0) { | |
5272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
5274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); | |
5275 | return NULL; | |
5276 | } | |
5277 | } | |
5278 | { | |
5279 | wxPy_BEGIN_ALLOW_THREADS; | |
5280 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
5281 | ||
5282 | wxPy_END_ALLOW_THREADS; | |
5283 | if (PyErr_Occurred()) return NULL; | |
5284 | } _resultobj = Py_BuildValue("i",_result); | |
5285 | return _resultobj; | |
5286 | } | |
5287 | ||
5288 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
5289 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5290 | PyObject * _resultobj; | |
5291 | wxString * _result; | |
5292 | wxTreeEvent * _arg0; | |
5293 | PyObject * _argo0 = 0; | |
5294 | char *_kwnames[] = { "self", NULL }; | |
5295 | ||
5296 | self = self; | |
5297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) | |
5298 | return NULL; | |
5299 | if (_argo0) { | |
5300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
5302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); | |
5303 | return NULL; | |
5304 | } | |
5305 | } | |
5306 | { | |
5307 | wxPy_BEGIN_ALLOW_THREADS; | |
5308 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); | |
5309 | _result = (wxString *) &_result_ref; | |
5310 | ||
5311 | wxPy_END_ALLOW_THREADS; | |
5312 | if (PyErr_Occurred()) return NULL; | |
5313 | }{ | |
5314 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5315 | } | |
5316 | return _resultobj; | |
5317 | } | |
5318 | ||
5319 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { | |
5320 | wxPyTreeCtrl *src; | |
5321 | wxControl *dest; | |
5322 | src = (wxPyTreeCtrl *) ptr; | |
5323 | dest = (wxControl *) src; | |
5324 | return (void *) dest; | |
5325 | } | |
5326 | ||
5327 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { | |
5328 | wxPyTreeCtrl *src; | |
5329 | wxWindow *dest; | |
5330 | src = (wxPyTreeCtrl *) ptr; | |
5331 | dest = (wxWindow *) src; | |
5332 | return (void *) dest; | |
5333 | } | |
5334 | ||
5335 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { | |
5336 | wxPyTreeCtrl *src; | |
5337 | wxEvtHandler *dest; | |
5338 | src = (wxPyTreeCtrl *) ptr; | |
5339 | dest = (wxEvtHandler *) src; | |
5340 | return (void *) dest; | |
5341 | } | |
5342 | ||
5343 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { | |
5344 | wxPyTreeCtrl *src; | |
5345 | wxObject *dest; | |
5346 | src = (wxPyTreeCtrl *) ptr; | |
5347 | dest = (wxObject *) src; | |
5348 | return (void *) dest; | |
5349 | } | |
5350 | ||
5351 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5352 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5353 | PyObject * _resultobj; | |
5354 | wxPyTreeCtrl * _result; | |
5355 | wxWindow * _arg0; | |
5356 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5357 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5358 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5359 | long _arg4 = (long ) wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT; | |
5360 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
5361 | char * _arg6 = (char *) "wxTreeCtrl"; | |
5362 | PyObject * _argo0 = 0; | |
5363 | wxPoint temp; | |
5364 | PyObject * _obj2 = 0; | |
5365 | wxSize temp0; | |
5366 | PyObject * _obj3 = 0; | |
5367 | PyObject * _argo5 = 0; | |
5368 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5369 | char _ptemp[128]; | |
5370 | ||
5371 | self = self; | |
5372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
5373 | return NULL; | |
5374 | if (_argo0) { | |
5375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); | |
5378 | return NULL; | |
5379 | } | |
5380 | } | |
5381 | if (_obj2) | |
5382 | { | |
5383 | _arg2 = &temp; | |
5384 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5385 | return NULL; | |
5386 | } | |
5387 | if (_obj3) | |
5388 | { | |
5389 | _arg3 = &temp0; | |
5390 | if (! wxSize_helper(_obj3, &_arg3)) | |
5391 | return NULL; | |
5392 | } | |
5393 | if (_argo5) { | |
5394 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5395 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); | |
5397 | return NULL; | |
5398 | } | |
5399 | } | |
5400 | { | |
5401 | wxPy_BEGIN_ALLOW_THREADS; | |
5402 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
5403 | ||
5404 | wxPy_END_ALLOW_THREADS; | |
5405 | if (PyErr_Occurred()) return NULL; | |
5406 | } if (_result) { | |
5407 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
5408 | _resultobj = Py_BuildValue("s",_ptemp); | |
5409 | } else { | |
5410 | Py_INCREF(Py_None); | |
5411 | _resultobj = Py_None; | |
5412 | } | |
5413 | return _resultobj; | |
5414 | } | |
5415 | ||
5416 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) | |
5417 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5418 | PyObject * _resultobj; | |
5419 | wxPyTreeCtrl * _arg0; | |
5420 | PyObject * _arg1; | |
5421 | PyObject * _arg2; | |
5422 | PyObject * _argo0 = 0; | |
5423 | PyObject * _obj1 = 0; | |
5424 | PyObject * _obj2 = 0; | |
5425 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5426 | ||
5427 | self = self; | |
5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5429 | return NULL; | |
5430 | if (_argo0) { | |
5431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); | |
5434 | return NULL; | |
5435 | } | |
5436 | } | |
5437 | { | |
5438 | _arg1 = _obj1; | |
5439 | } | |
5440 | { | |
5441 | _arg2 = _obj2; | |
5442 | } | |
5443 | { | |
5444 | wxPy_BEGIN_ALLOW_THREADS; | |
5445 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); | |
5446 | ||
5447 | wxPy_END_ALLOW_THREADS; | |
5448 | if (PyErr_Occurred()) return NULL; | |
5449 | } Py_INCREF(Py_None); | |
5450 | _resultobj = Py_None; | |
5451 | return _resultobj; | |
5452 | } | |
5453 | ||
5454 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) | |
5455 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5456 | PyObject * _resultobj; | |
5457 | wxPyTreeCtrl * _arg0; | |
5458 | wxImageList * _arg1; | |
5459 | PyObject * _argo0 = 0; | |
5460 | PyObject * _argo1 = 0; | |
5461 | char *_kwnames[] = { "self","imageList", NULL }; | |
5462 | ||
5463 | self = self; | |
5464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
5465 | return NULL; | |
5466 | if (_argo0) { | |
5467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
5470 | return NULL; | |
5471 | } | |
5472 | } | |
5473 | if (_argo1) { | |
5474 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5475 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
5476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
5477 | return NULL; | |
5478 | } | |
5479 | } | |
5480 | { | |
5481 | wxPy_BEGIN_ALLOW_THREADS; | |
5482 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
5483 | ||
5484 | wxPy_END_ALLOW_THREADS; | |
5485 | if (PyErr_Occurred()) return NULL; | |
5486 | } Py_INCREF(Py_None); | |
5487 | _resultobj = Py_None; | |
5488 | return _resultobj; | |
5489 | } | |
5490 | ||
5491 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) | |
5492 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5493 | PyObject * _resultobj; | |
5494 | size_t _result; | |
5495 | wxPyTreeCtrl * _arg0; | |
5496 | PyObject * _argo0 = 0; | |
5497 | char *_kwnames[] = { "self", NULL }; | |
5498 | ||
5499 | self = self; | |
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) | |
5501 | return NULL; | |
5502 | if (_argo0) { | |
5503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
5506 | return NULL; | |
5507 | } | |
5508 | } | |
5509 | { | |
5510 | wxPy_BEGIN_ALLOW_THREADS; | |
5511 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); | |
5512 | ||
5513 | wxPy_END_ALLOW_THREADS; | |
5514 | if (PyErr_Occurred()) return NULL; | |
5515 | } _resultobj = Py_BuildValue("i",_result); | |
5516 | return _resultobj; | |
5517 | } | |
5518 | ||
5519 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) | |
5520 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5521 | PyObject * _resultobj; | |
5522 | unsigned int _result; | |
5523 | wxPyTreeCtrl * _arg0; | |
5524 | PyObject * _argo0 = 0; | |
5525 | char *_kwnames[] = { "self", NULL }; | |
5526 | ||
5527 | self = self; | |
5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) | |
5529 | return NULL; | |
5530 | if (_argo0) { | |
5531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
5534 | return NULL; | |
5535 | } | |
5536 | } | |
5537 | { | |
5538 | wxPy_BEGIN_ALLOW_THREADS; | |
5539 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
5540 | ||
5541 | wxPy_END_ALLOW_THREADS; | |
5542 | if (PyErr_Occurred()) return NULL; | |
5543 | } _resultobj = Py_BuildValue("i",_result); | |
5544 | return _resultobj; | |
5545 | } | |
5546 | ||
5547 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) | |
5548 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5549 | PyObject * _resultobj; | |
5550 | wxPyTreeCtrl * _arg0; | |
5551 | unsigned int _arg1; | |
5552 | PyObject * _argo0 = 0; | |
5553 | char *_kwnames[] = { "self","indent", NULL }; | |
5554 | ||
5555 | self = self; | |
5556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) | |
5557 | return NULL; | |
5558 | if (_argo0) { | |
5559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
5562 | return NULL; | |
5563 | } | |
5564 | } | |
5565 | { | |
5566 | wxPy_BEGIN_ALLOW_THREADS; | |
5567 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
5568 | ||
5569 | wxPy_END_ALLOW_THREADS; | |
5570 | if (PyErr_Occurred()) return NULL; | |
5571 | } Py_INCREF(Py_None); | |
5572 | _resultobj = Py_None; | |
5573 | return _resultobj; | |
5574 | } | |
5575 | ||
5576 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) | |
5577 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5578 | PyObject * _resultobj; | |
5579 | wxImageList * _result; | |
5580 | wxPyTreeCtrl * _arg0; | |
5581 | PyObject * _argo0 = 0; | |
5582 | char *_kwnames[] = { "self", NULL }; | |
5583 | ||
5584 | self = self; | |
5585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) | |
5586 | return NULL; | |
5587 | if (_argo0) { | |
5588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
5591 | return NULL; | |
5592 | } | |
5593 | } | |
5594 | { | |
5595 | wxPy_BEGIN_ALLOW_THREADS; | |
5596 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
5597 | ||
5598 | wxPy_END_ALLOW_THREADS; | |
5599 | if (PyErr_Occurred()) return NULL; | |
5600 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5601 | return _resultobj; | |
5602 | } | |
5603 | ||
5604 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) | |
5605 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5606 | PyObject * _resultobj; | |
5607 | wxImageList * _result; | |
5608 | wxPyTreeCtrl * _arg0; | |
5609 | PyObject * _argo0 = 0; | |
5610 | char *_kwnames[] = { "self", NULL }; | |
5611 | ||
5612 | self = self; | |
5613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) | |
5614 | return NULL; | |
5615 | if (_argo0) { | |
5616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
5619 | return NULL; | |
5620 | } | |
5621 | } | |
5622 | { | |
5623 | wxPy_BEGIN_ALLOW_THREADS; | |
5624 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
5625 | ||
5626 | wxPy_END_ALLOW_THREADS; | |
5627 | if (PyErr_Occurred()) return NULL; | |
5628 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5629 | return _resultobj; | |
5630 | } | |
5631 | ||
5632 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) | |
5633 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5634 | PyObject * _resultobj; | |
5635 | wxPyTreeCtrl * _arg0; | |
5636 | wxImageList * _arg1; | |
5637 | PyObject * _argo0 = 0; | |
5638 | PyObject * _argo1 = 0; | |
5639 | char *_kwnames[] = { "self","imageList", NULL }; | |
5640 | ||
5641 | self = self; | |
5642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) | |
5643 | return NULL; | |
5644 | if (_argo0) { | |
5645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
5648 | return NULL; | |
5649 | } | |
5650 | } | |
5651 | if (_argo1) { | |
5652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
5654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); | |
5655 | return NULL; | |
5656 | } | |
5657 | } | |
5658 | { | |
5659 | wxPy_BEGIN_ALLOW_THREADS; | |
5660 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
5661 | ||
5662 | wxPy_END_ALLOW_THREADS; | |
5663 | if (PyErr_Occurred()) return NULL; | |
5664 | } Py_INCREF(Py_None); | |
5665 | _resultobj = Py_None; | |
5666 | return _resultobj; | |
5667 | } | |
5668 | ||
5669 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) | |
5670 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5671 | PyObject * _resultobj; | |
5672 | wxPyTreeCtrl * _arg0; | |
5673 | wxImageList * _arg1; | |
5674 | PyObject * _argo0 = 0; | |
5675 | PyObject * _argo1 = 0; | |
5676 | char *_kwnames[] = { "self","imageList", NULL }; | |
5677 | ||
5678 | self = self; | |
5679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) | |
5680 | return NULL; | |
5681 | if (_argo0) { | |
5682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
5685 | return NULL; | |
5686 | } | |
5687 | } | |
5688 | if (_argo1) { | |
5689 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5690 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
5691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); | |
5692 | return NULL; | |
5693 | } | |
5694 | } | |
5695 | { | |
5696 | wxPy_BEGIN_ALLOW_THREADS; | |
5697 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
5698 | ||
5699 | wxPy_END_ALLOW_THREADS; | |
5700 | if (PyErr_Occurred()) return NULL; | |
5701 | } Py_INCREF(Py_None); | |
5702 | _resultobj = Py_None; | |
5703 | return _resultobj; | |
5704 | } | |
5705 | ||
5706 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) | |
5707 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5708 | PyObject * _resultobj; | |
5709 | unsigned int _result; | |
5710 | wxPyTreeCtrl * _arg0; | |
5711 | PyObject * _argo0 = 0; | |
5712 | char *_kwnames[] = { "self", NULL }; | |
5713 | ||
5714 | self = self; | |
5715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
5716 | return NULL; | |
5717 | if (_argo0) { | |
5718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
5721 | return NULL; | |
5722 | } | |
5723 | } | |
5724 | { | |
5725 | wxPy_BEGIN_ALLOW_THREADS; | |
5726 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
5727 | ||
5728 | wxPy_END_ALLOW_THREADS; | |
5729 | if (PyErr_Occurred()) return NULL; | |
5730 | } _resultobj = Py_BuildValue("i",_result); | |
5731 | return _resultobj; | |
5732 | } | |
5733 | ||
5734 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
5735 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5736 | PyObject * _resultobj; | |
5737 | wxPyTreeCtrl * _arg0; | |
5738 | unsigned int _arg1; | |
5739 | PyObject * _argo0 = 0; | |
5740 | char *_kwnames[] = { "self","spacing", NULL }; | |
5741 | ||
5742 | self = self; | |
5743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
5744 | return NULL; | |
5745 | if (_argo0) { | |
5746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
5749 | return NULL; | |
5750 | } | |
5751 | } | |
5752 | { | |
5753 | wxPy_BEGIN_ALLOW_THREADS; | |
5754 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
5755 | ||
5756 | wxPy_END_ALLOW_THREADS; | |
5757 | if (PyErr_Occurred()) return NULL; | |
5758 | } Py_INCREF(Py_None); | |
5759 | _resultobj = Py_None; | |
5760 | return _resultobj; | |
5761 | } | |
5762 | ||
5763 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
5764 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5765 | PyObject * _resultobj; | |
5766 | wxString * _result; | |
5767 | wxPyTreeCtrl * _arg0; | |
5768 | wxTreeItemId * _arg1; | |
5769 | PyObject * _argo0 = 0; | |
5770 | PyObject * _argo1 = 0; | |
5771 | char *_kwnames[] = { "self","item", NULL }; | |
5772 | ||
5773 | self = self; | |
5774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) | |
5775 | return NULL; | |
5776 | if (_argo0) { | |
5777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
5780 | return NULL; | |
5781 | } | |
5782 | } | |
5783 | if (_argo1) { | |
5784 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5785 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); | |
5787 | return NULL; | |
5788 | } | |
5789 | } | |
5790 | { | |
5791 | wxPy_BEGIN_ALLOW_THREADS; | |
5792 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
5793 | ||
5794 | wxPy_END_ALLOW_THREADS; | |
5795 | if (PyErr_Occurred()) return NULL; | |
5796 | }{ | |
5797 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5798 | } | |
5799 | { | |
5800 | delete _result; | |
5801 | } | |
5802 | return _resultobj; | |
5803 | } | |
5804 | ||
5805 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) | |
5806 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5807 | PyObject * _resultobj; | |
5808 | int _result; | |
5809 | wxPyTreeCtrl * _arg0; | |
5810 | wxTreeItemId * _arg1; | |
5811 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); | |
5812 | PyObject * _argo0 = 0; | |
5813 | PyObject * _argo1 = 0; | |
5814 | char *_kwnames[] = { "self","item","which", NULL }; | |
5815 | ||
5816 | self = self; | |
5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) | |
5818 | return NULL; | |
5819 | if (_argo0) { | |
5820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
5823 | return NULL; | |
5824 | } | |
5825 | } | |
5826 | if (_argo1) { | |
5827 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5828 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); | |
5830 | return NULL; | |
5831 | } | |
5832 | } | |
5833 | { | |
5834 | wxPy_BEGIN_ALLOW_THREADS; | |
5835 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); | |
5836 | ||
5837 | wxPy_END_ALLOW_THREADS; | |
5838 | if (PyErr_Occurred()) return NULL; | |
5839 | } _resultobj = Py_BuildValue("i",_result); | |
5840 | return _resultobj; | |
5841 | } | |
5842 | ||
5843 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) | |
5844 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5845 | PyObject * _resultobj; | |
5846 | int _result; | |
5847 | wxPyTreeCtrl * _arg0; | |
5848 | wxTreeItemId * _arg1; | |
5849 | PyObject * _argo0 = 0; | |
5850 | PyObject * _argo1 = 0; | |
5851 | char *_kwnames[] = { "self","item", NULL }; | |
5852 | ||
5853 | self = self; | |
5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) | |
5855 | return NULL; | |
5856 | if (_argo0) { | |
5857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
5860 | return NULL; | |
5861 | } | |
5862 | } | |
5863 | if (_argo1) { | |
5864 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5865 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); | |
5867 | return NULL; | |
5868 | } | |
5869 | } | |
5870 | { | |
5871 | wxPy_BEGIN_ALLOW_THREADS; | |
5872 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
5873 | ||
5874 | wxPy_END_ALLOW_THREADS; | |
5875 | if (PyErr_Occurred()) return NULL; | |
5876 | } _resultobj = Py_BuildValue("i",_result); | |
5877 | return _resultobj; | |
5878 | } | |
5879 | ||
5880 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
5881 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5882 | PyObject * _resultobj; | |
5883 | wxPyTreeCtrl * _arg0; | |
5884 | wxTreeItemId * _arg1; | |
5885 | wxString * _arg2; | |
5886 | PyObject * _argo0 = 0; | |
5887 | PyObject * _argo1 = 0; | |
5888 | PyObject * _obj2 = 0; | |
5889 | char *_kwnames[] = { "self","item","text", NULL }; | |
5890 | ||
5891 | self = self; | |
5892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) | |
5893 | return NULL; | |
5894 | if (_argo0) { | |
5895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
5898 | return NULL; | |
5899 | } | |
5900 | } | |
5901 | if (_argo1) { | |
5902 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5903 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); | |
5905 | return NULL; | |
5906 | } | |
5907 | } | |
5908 | { | |
5909 | #if PYTHON_API_VERSION >= 1009 | |
5910 | char* tmpPtr; int tmpSize; | |
5911 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5912 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5913 | return NULL; | |
5914 | } | |
5915 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5916 | return NULL; | |
5917 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5918 | #else | |
5919 | if (!PyString_Check(_obj2)) { | |
5920 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5921 | return NULL; | |
5922 | } | |
5923 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
5924 | #endif | |
5925 | } | |
5926 | { | |
5927 | wxPy_BEGIN_ALLOW_THREADS; | |
5928 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
5929 | ||
5930 | wxPy_END_ALLOW_THREADS; | |
5931 | if (PyErr_Occurred()) return NULL; | |
5932 | } Py_INCREF(Py_None); | |
5933 | _resultobj = Py_None; | |
5934 | { | |
5935 | if (_obj2) | |
5936 | delete _arg2; | |
5937 | } | |
5938 | return _resultobj; | |
5939 | } | |
5940 | ||
5941 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
5942 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5943 | PyObject * _resultobj; | |
5944 | wxPyTreeCtrl * _arg0; | |
5945 | wxTreeItemId * _arg1; | |
5946 | int _arg2; | |
5947 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); | |
5948 | PyObject * _argo0 = 0; | |
5949 | PyObject * _argo1 = 0; | |
5950 | char *_kwnames[] = { "self","item","image","which", NULL }; | |
5951 | ||
5952 | self = self; | |
5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
5954 | return NULL; | |
5955 | if (_argo0) { | |
5956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
5959 | return NULL; | |
5960 | } | |
5961 | } | |
5962 | if (_argo1) { | |
5963 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5964 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); | |
5966 | return NULL; | |
5967 | } | |
5968 | } | |
5969 | { | |
5970 | wxPy_BEGIN_ALLOW_THREADS; | |
5971 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); | |
5972 | ||
5973 | wxPy_END_ALLOW_THREADS; | |
5974 | if (PyErr_Occurred()) return NULL; | |
5975 | } Py_INCREF(Py_None); | |
5976 | _resultobj = Py_None; | |
5977 | return _resultobj; | |
5978 | } | |
5979 | ||
5980 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) | |
5981 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5982 | PyObject * _resultobj; | |
5983 | wxPyTreeCtrl * _arg0; | |
5984 | wxTreeItemId * _arg1; | |
5985 | int _arg2; | |
5986 | PyObject * _argo0 = 0; | |
5987 | PyObject * _argo1 = 0; | |
5988 | char *_kwnames[] = { "self","item","image", NULL }; | |
5989 | ||
5990 | self = self; | |
5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) | |
5992 | return NULL; | |
5993 | if (_argo0) { | |
5994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
5997 | return NULL; | |
5998 | } | |
5999 | } | |
6000 | if (_argo1) { | |
6001 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6002 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); | |
6004 | return NULL; | |
6005 | } | |
6006 | } | |
6007 | { | |
6008 | wxPy_BEGIN_ALLOW_THREADS; | |
6009 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
6010 | ||
6011 | wxPy_END_ALLOW_THREADS; | |
6012 | if (PyErr_Occurred()) return NULL; | |
6013 | } Py_INCREF(Py_None); | |
6014 | _resultobj = Py_None; | |
6015 | return _resultobj; | |
6016 | } | |
6017 | ||
6018 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
6019 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6020 | PyObject * _resultobj; | |
6021 | wxPyTreeCtrl * _arg0; | |
6022 | wxTreeItemId * _arg1; | |
6023 | bool _arg2 = (bool ) TRUE; | |
6024 | PyObject * _argo0 = 0; | |
6025 | PyObject * _argo1 = 0; | |
6026 | int tempbool2 = (int) TRUE; | |
6027 | char *_kwnames[] = { "self","item","hasChildren", NULL }; | |
6028 | ||
6029 | self = self; | |
6030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
6031 | return NULL; | |
6032 | if (_argo0) { | |
6033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
6036 | return NULL; | |
6037 | } | |
6038 | } | |
6039 | if (_argo1) { | |
6040 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6041 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); | |
6043 | return NULL; | |
6044 | } | |
6045 | } | |
6046 | _arg2 = (bool ) tempbool2; | |
6047 | { | |
6048 | wxPy_BEGIN_ALLOW_THREADS; | |
6049 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
6050 | ||
6051 | wxPy_END_ALLOW_THREADS; | |
6052 | if (PyErr_Occurred()) return NULL; | |
6053 | } Py_INCREF(Py_None); | |
6054 | _resultobj = Py_None; | |
6055 | return _resultobj; | |
6056 | } | |
6057 | ||
6058 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { | |
6059 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
6060 | if (data == NULL) { | |
6061 | data = new wxPyTreeItemData(); | |
6062 | data->SetId(item); // set the id | |
6063 | self->SetItemData(item, data); | |
6064 | } | |
6065 | return data; | |
6066 | } | |
6067 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6068 | PyObject * _resultobj; | |
6069 | wxPyTreeItemData * _result; | |
6070 | wxPyTreeCtrl * _arg0; | |
6071 | wxTreeItemId * _arg1; | |
6072 | PyObject * _argo0 = 0; | |
6073 | PyObject * _argo1 = 0; | |
6074 | char *_kwnames[] = { "self","item", NULL }; | |
6075 | char _ptemp[128]; | |
6076 | ||
6077 | self = self; | |
6078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) | |
6079 | return NULL; | |
6080 | if (_argo0) { | |
6081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
6084 | return NULL; | |
6085 | } | |
6086 | } | |
6087 | if (_argo1) { | |
6088 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6089 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); | |
6091 | return NULL; | |
6092 | } | |
6093 | } | |
6094 | { | |
6095 | wxPy_BEGIN_ALLOW_THREADS; | |
6096 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); | |
6097 | ||
6098 | wxPy_END_ALLOW_THREADS; | |
6099 | if (PyErr_Occurred()) return NULL; | |
6100 | } if (_result) { | |
6101 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6102 | _resultobj = Py_BuildValue("s",_ptemp); | |
6103 | } else { | |
6104 | Py_INCREF(Py_None); | |
6105 | _resultobj = Py_None; | |
6106 | } | |
6107 | return _resultobj; | |
6108 | } | |
6109 | ||
6110 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { | |
6111 | data->SetId(item); // set the id | |
6112 | self->SetItemData(item, data); | |
6113 | } | |
6114 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6115 | PyObject * _resultobj; | |
6116 | wxPyTreeCtrl * _arg0; | |
6117 | wxTreeItemId * _arg1; | |
6118 | wxPyTreeItemData * _arg2; | |
6119 | PyObject * _argo0 = 0; | |
6120 | PyObject * _argo1 = 0; | |
6121 | PyObject * _argo2 = 0; | |
6122 | char *_kwnames[] = { "self","item","data", NULL }; | |
6123 | ||
6124 | self = self; | |
6125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) | |
6126 | return NULL; | |
6127 | if (_argo0) { | |
6128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
6131 | return NULL; | |
6132 | } | |
6133 | } | |
6134 | if (_argo1) { | |
6135 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6136 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); | |
6138 | return NULL; | |
6139 | } | |
6140 | } | |
6141 | if (_argo2) { | |
6142 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6143 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
6144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); | |
6145 | return NULL; | |
6146 | } | |
6147 | } | |
6148 | { | |
6149 | wxPy_BEGIN_ALLOW_THREADS; | |
6150 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); | |
6151 | ||
6152 | wxPy_END_ALLOW_THREADS; | |
6153 | if (PyErr_Occurred()) return NULL; | |
6154 | } Py_INCREF(Py_None); | |
6155 | _resultobj = Py_None; | |
6156 | return _resultobj; | |
6157 | } | |
6158 | ||
6159 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { | |
6160 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
6161 | if (data == NULL) { | |
6162 | data = new wxPyTreeItemData(); | |
6163 | data->SetId(item); // set the id | |
6164 | self->SetItemData(item, data); | |
6165 | } | |
6166 | return data->GetData(); | |
6167 | } | |
6168 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6169 | PyObject * _resultobj; | |
6170 | PyObject * _result; | |
6171 | wxPyTreeCtrl * _arg0; | |
6172 | wxTreeItemId * _arg1; | |
6173 | PyObject * _argo0 = 0; | |
6174 | PyObject * _argo1 = 0; | |
6175 | char *_kwnames[] = { "self","item", NULL }; | |
6176 | ||
6177 | self = self; | |
6178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) | |
6179 | return NULL; | |
6180 | if (_argo0) { | |
6181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
6184 | return NULL; | |
6185 | } | |
6186 | } | |
6187 | if (_argo1) { | |
6188 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6189 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); | |
6191 | return NULL; | |
6192 | } | |
6193 | } | |
6194 | { | |
6195 | wxPy_BEGIN_ALLOW_THREADS; | |
6196 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); | |
6197 | ||
6198 | wxPy_END_ALLOW_THREADS; | |
6199 | if (PyErr_Occurred()) return NULL; | |
6200 | }{ | |
6201 | _resultobj = _result; | |
6202 | } | |
6203 | return _resultobj; | |
6204 | } | |
6205 | ||
6206 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { | |
6207 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
6208 | if (data == NULL) { | |
6209 | data = new wxPyTreeItemData(obj); | |
6210 | data->SetId(item); // set the id | |
6211 | self->SetItemData(item, data); | |
6212 | } else | |
6213 | data->SetData(obj); | |
6214 | } | |
6215 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6216 | PyObject * _resultobj; | |
6217 | wxPyTreeCtrl * _arg0; | |
6218 | wxTreeItemId * _arg1; | |
6219 | PyObject * _arg2; | |
6220 | PyObject * _argo0 = 0; | |
6221 | PyObject * _argo1 = 0; | |
6222 | PyObject * _obj2 = 0; | |
6223 | char *_kwnames[] = { "self","item","obj", NULL }; | |
6224 | ||
6225 | self = self; | |
6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) | |
6227 | return NULL; | |
6228 | if (_argo0) { | |
6229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
6232 | return NULL; | |
6233 | } | |
6234 | } | |
6235 | if (_argo1) { | |
6236 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6237 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); | |
6239 | return NULL; | |
6240 | } | |
6241 | } | |
6242 | { | |
6243 | _arg2 = _obj2; | |
6244 | } | |
6245 | { | |
6246 | wxPy_BEGIN_ALLOW_THREADS; | |
6247 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); | |
6248 | ||
6249 | wxPy_END_ALLOW_THREADS; | |
6250 | if (PyErr_Occurred()) return NULL; | |
6251 | } Py_INCREF(Py_None); | |
6252 | _resultobj = Py_None; | |
6253 | return _resultobj; | |
6254 | } | |
6255 | ||
6256 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) | |
6257 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6258 | PyObject * _resultobj; | |
6259 | bool _result; | |
6260 | wxPyTreeCtrl * _arg0; | |
6261 | wxTreeItemId * _arg1; | |
6262 | PyObject * _argo0 = 0; | |
6263 | PyObject * _argo1 = 0; | |
6264 | char *_kwnames[] = { "self","item", NULL }; | |
6265 | ||
6266 | self = self; | |
6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) | |
6268 | return NULL; | |
6269 | if (_argo0) { | |
6270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
6273 | return NULL; | |
6274 | } | |
6275 | } | |
6276 | if (_argo1) { | |
6277 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6278 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); | |
6280 | return NULL; | |
6281 | } | |
6282 | } | |
6283 | { | |
6284 | wxPy_BEGIN_ALLOW_THREADS; | |
6285 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
6286 | ||
6287 | wxPy_END_ALLOW_THREADS; | |
6288 | if (PyErr_Occurred()) return NULL; | |
6289 | } _resultobj = Py_BuildValue("i",_result); | |
6290 | return _resultobj; | |
6291 | } | |
6292 | ||
6293 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) | |
6294 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6295 | PyObject * _resultobj; | |
6296 | bool _result; | |
6297 | wxPyTreeCtrl * _arg0; | |
6298 | wxTreeItemId * _arg1; | |
6299 | PyObject * _argo0 = 0; | |
6300 | PyObject * _argo1 = 0; | |
6301 | char *_kwnames[] = { "self","item", NULL }; | |
6302 | ||
6303 | self = self; | |
6304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) | |
6305 | return NULL; | |
6306 | if (_argo0) { | |
6307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
6310 | return NULL; | |
6311 | } | |
6312 | } | |
6313 | if (_argo1) { | |
6314 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6315 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); | |
6317 | return NULL; | |
6318 | } | |
6319 | } | |
6320 | { | |
6321 | wxPy_BEGIN_ALLOW_THREADS; | |
6322 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
6323 | ||
6324 | wxPy_END_ALLOW_THREADS; | |
6325 | if (PyErr_Occurred()) return NULL; | |
6326 | } _resultobj = Py_BuildValue("i",_result); | |
6327 | return _resultobj; | |
6328 | } | |
6329 | ||
6330 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) | |
6331 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6332 | PyObject * _resultobj; | |
6333 | bool _result; | |
6334 | wxPyTreeCtrl * _arg0; | |
6335 | wxTreeItemId * _arg1; | |
6336 | PyObject * _argo0 = 0; | |
6337 | PyObject * _argo1 = 0; | |
6338 | char *_kwnames[] = { "self","item", NULL }; | |
6339 | ||
6340 | self = self; | |
6341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) | |
6342 | return NULL; | |
6343 | if (_argo0) { | |
6344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
6347 | return NULL; | |
6348 | } | |
6349 | } | |
6350 | if (_argo1) { | |
6351 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6352 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); | |
6354 | return NULL; | |
6355 | } | |
6356 | } | |
6357 | { | |
6358 | wxPy_BEGIN_ALLOW_THREADS; | |
6359 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
6360 | ||
6361 | wxPy_END_ALLOW_THREADS; | |
6362 | if (PyErr_Occurred()) return NULL; | |
6363 | } _resultobj = Py_BuildValue("i",_result); | |
6364 | return _resultobj; | |
6365 | } | |
6366 | ||
6367 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
6368 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6369 | PyObject * _resultobj; | |
6370 | bool _result; | |
6371 | wxPyTreeCtrl * _arg0; | |
6372 | wxTreeItemId * _arg1; | |
6373 | PyObject * _argo0 = 0; | |
6374 | PyObject * _argo1 = 0; | |
6375 | char *_kwnames[] = { "self","item", NULL }; | |
6376 | ||
6377 | self = self; | |
6378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) | |
6379 | return NULL; | |
6380 | if (_argo0) { | |
6381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
6384 | return NULL; | |
6385 | } | |
6386 | } | |
6387 | if (_argo1) { | |
6388 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6389 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); | |
6391 | return NULL; | |
6392 | } | |
6393 | } | |
6394 | { | |
6395 | wxPy_BEGIN_ALLOW_THREADS; | |
6396 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
6397 | ||
6398 | wxPy_END_ALLOW_THREADS; | |
6399 | if (PyErr_Occurred()) return NULL; | |
6400 | } _resultobj = Py_BuildValue("i",_result); | |
6401 | return _resultobj; | |
6402 | } | |
6403 | ||
6404 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
6405 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6406 | PyObject * _resultobj; | |
6407 | wxTreeItemId * _result; | |
6408 | wxPyTreeCtrl * _arg0; | |
6409 | PyObject * _argo0 = 0; | |
6410 | char *_kwnames[] = { "self", NULL }; | |
6411 | char _ptemp[128]; | |
6412 | ||
6413 | self = self; | |
6414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) | |
6415 | return NULL; | |
6416 | if (_argo0) { | |
6417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
6420 | return NULL; | |
6421 | } | |
6422 | } | |
6423 | { | |
6424 | wxPy_BEGIN_ALLOW_THREADS; | |
6425 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
6426 | ||
6427 | wxPy_END_ALLOW_THREADS; | |
6428 | if (PyErr_Occurred()) return NULL; | |
6429 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6430 | _resultobj = Py_BuildValue("s",_ptemp); | |
6431 | return _resultobj; | |
6432 | } | |
6433 | ||
6434 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
6435 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6436 | PyObject * _resultobj; | |
6437 | wxTreeItemId * _result; | |
6438 | wxPyTreeCtrl * _arg0; | |
6439 | PyObject * _argo0 = 0; | |
6440 | char *_kwnames[] = { "self", NULL }; | |
6441 | char _ptemp[128]; | |
6442 | ||
6443 | self = self; | |
6444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) | |
6445 | return NULL; | |
6446 | if (_argo0) { | |
6447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
6450 | return NULL; | |
6451 | } | |
6452 | } | |
6453 | { | |
6454 | wxPy_BEGIN_ALLOW_THREADS; | |
6455 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
6456 | ||
6457 | wxPy_END_ALLOW_THREADS; | |
6458 | if (PyErr_Occurred()) return NULL; | |
6459 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6460 | _resultobj = Py_BuildValue("s",_ptemp); | |
6461 | return _resultobj; | |
6462 | } | |
6463 | ||
6464 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) | |
6465 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6466 | PyObject * _resultobj; | |
6467 | wxTreeItemId * _result; | |
6468 | wxPyTreeCtrl * _arg0; | |
6469 | wxTreeItemId * _arg1; | |
6470 | PyObject * _argo0 = 0; | |
6471 | PyObject * _argo1 = 0; | |
6472 | char *_kwnames[] = { "self","item", NULL }; | |
6473 | char _ptemp[128]; | |
6474 | ||
6475 | self = self; | |
6476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) | |
6477 | return NULL; | |
6478 | if (_argo0) { | |
6479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
6482 | return NULL; | |
6483 | } | |
6484 | } | |
6485 | if (_argo1) { | |
6486 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6487 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); | |
6489 | return NULL; | |
6490 | } | |
6491 | } | |
6492 | { | |
6493 | wxPy_BEGIN_ALLOW_THREADS; | |
6494 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); | |
6495 | ||
6496 | wxPy_END_ALLOW_THREADS; | |
6497 | if (PyErr_Occurred()) return NULL; | |
6498 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6499 | _resultobj = Py_BuildValue("s",_ptemp); | |
6500 | return _resultobj; | |
6501 | } | |
6502 | ||
6503 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { | |
6504 | bool doSave = wxPyRestoreThread(); | |
6505 | PyObject* rval = PyList_New(0); | |
6506 | wxArrayTreeItemIds array; | |
6507 | size_t num, x; | |
6508 | num = self->GetSelections(array); | |
6509 | for (x=0; x < num; x++) { | |
6510 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
6511 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
6512 | PyList_Append(rval, item); | |
6513 | } | |
6514 | wxPySaveThread(doSave); | |
6515 | return rval; | |
6516 | } | |
6517 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6518 | PyObject * _resultobj; | |
6519 | PyObject * _result; | |
6520 | wxPyTreeCtrl * _arg0; | |
6521 | PyObject * _argo0 = 0; | |
6522 | char *_kwnames[] = { "self", NULL }; | |
6523 | ||
6524 | self = self; | |
6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
6526 | return NULL; | |
6527 | if (_argo0) { | |
6528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
6531 | return NULL; | |
6532 | } | |
6533 | } | |
6534 | { | |
6535 | wxPy_BEGIN_ALLOW_THREADS; | |
6536 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); | |
6537 | ||
6538 | wxPy_END_ALLOW_THREADS; | |
6539 | if (PyErr_Occurred()) return NULL; | |
6540 | }{ | |
6541 | _resultobj = _result; | |
6542 | } | |
6543 | return _resultobj; | |
6544 | } | |
6545 | ||
6546 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) | |
6547 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6548 | PyObject * _resultobj; | |
6549 | size_t _result; | |
6550 | wxPyTreeCtrl * _arg0; | |
6551 | wxTreeItemId * _arg1; | |
6552 | bool _arg2 = (bool ) TRUE; | |
6553 | PyObject * _argo0 = 0; | |
6554 | PyObject * _argo1 = 0; | |
6555 | int tempbool2 = (int) TRUE; | |
6556 | char *_kwnames[] = { "self","item","recursively", NULL }; | |
6557 | ||
6558 | self = self; | |
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
6560 | return NULL; | |
6561 | if (_argo0) { | |
6562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
6565 | return NULL; | |
6566 | } | |
6567 | } | |
6568 | if (_argo1) { | |
6569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); | |
6572 | return NULL; | |
6573 | } | |
6574 | } | |
6575 | _arg2 = (bool ) tempbool2; | |
6576 | { | |
6577 | wxPy_BEGIN_ALLOW_THREADS; | |
6578 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
6579 | ||
6580 | wxPy_END_ALLOW_THREADS; | |
6581 | if (PyErr_Occurred()) return NULL; | |
6582 | } _resultobj = Py_BuildValue("i",_result); | |
6583 | return _resultobj; | |
6584 | } | |
6585 | ||
6586 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) | |
6587 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6588 | PyObject * _resultobj; | |
6589 | wxTreeItemId * _result; | |
6590 | wxPyTreeCtrl * _arg0; | |
6591 | wxTreeItemId * _arg1; | |
6592 | long * _arg2; | |
6593 | PyObject * _argo0 = 0; | |
6594 | PyObject * _argo1 = 0; | |
6595 | long temp; | |
6596 | PyObject * _obj2 = 0; | |
6597 | char *_kwnames[] = { "self","item","INOUT", NULL }; | |
6598 | char _ptemp[128]; | |
6599 | ||
6600 | self = self; | |
6601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) | |
6602 | return NULL; | |
6603 | if (_argo0) { | |
6604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
6607 | return NULL; | |
6608 | } | |
6609 | } | |
6610 | if (_argo1) { | |
6611 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6612 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); | |
6614 | return NULL; | |
6615 | } | |
6616 | } | |
6617 | { | |
6618 | temp = (long) PyInt_AsLong(_obj2); | |
6619 | _arg2 = &temp; | |
6620 | } | |
6621 | { | |
6622 | wxPy_BEGIN_ALLOW_THREADS; | |
6623 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
6624 | ||
6625 | wxPy_END_ALLOW_THREADS; | |
6626 | if (PyErr_Occurred()) return NULL; | |
6627 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6628 | _resultobj = Py_BuildValue("s",_ptemp); | |
6629 | { | |
6630 | PyObject *o; | |
6631 | o = PyInt_FromLong((long) (*_arg2)); | |
6632 | _resultobj = t_output_helper(_resultobj, o); | |
6633 | } | |
6634 | return _resultobj; | |
6635 | } | |
6636 | ||
6637 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) | |
6638 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6639 | PyObject * _resultobj; | |
6640 | wxTreeItemId * _result; | |
6641 | wxPyTreeCtrl * _arg0; | |
6642 | wxTreeItemId * _arg1; | |
6643 | long * _arg2; | |
6644 | PyObject * _argo0 = 0; | |
6645 | PyObject * _argo1 = 0; | |
6646 | long temp; | |
6647 | PyObject * _obj2 = 0; | |
6648 | char *_kwnames[] = { "self","item","INOUT", NULL }; | |
6649 | char _ptemp[128]; | |
6650 | ||
6651 | self = self; | |
6652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) | |
6653 | return NULL; | |
6654 | if (_argo0) { | |
6655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
6658 | return NULL; | |
6659 | } | |
6660 | } | |
6661 | if (_argo1) { | |
6662 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6663 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); | |
6665 | return NULL; | |
6666 | } | |
6667 | } | |
6668 | { | |
6669 | temp = (long) PyInt_AsLong(_obj2); | |
6670 | _arg2 = &temp; | |
6671 | } | |
6672 | { | |
6673 | wxPy_BEGIN_ALLOW_THREADS; | |
6674 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
6675 | ||
6676 | wxPy_END_ALLOW_THREADS; | |
6677 | if (PyErr_Occurred()) return NULL; | |
6678 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6679 | _resultobj = Py_BuildValue("s",_ptemp); | |
6680 | { | |
6681 | PyObject *o; | |
6682 | o = PyInt_FromLong((long) (*_arg2)); | |
6683 | _resultobj = t_output_helper(_resultobj, o); | |
6684 | } | |
6685 | return _resultobj; | |
6686 | } | |
6687 | ||
6688 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) | |
6689 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6690 | PyObject * _resultobj; | |
6691 | wxTreeItemId * _result; | |
6692 | wxPyTreeCtrl * _arg0; | |
6693 | wxTreeItemId * _arg1; | |
6694 | PyObject * _argo0 = 0; | |
6695 | PyObject * _argo1 = 0; | |
6696 | char *_kwnames[] = { "self","item", NULL }; | |
6697 | char _ptemp[128]; | |
6698 | ||
6699 | self = self; | |
6700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) | |
6701 | return NULL; | |
6702 | if (_argo0) { | |
6703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
6706 | return NULL; | |
6707 | } | |
6708 | } | |
6709 | if (_argo1) { | |
6710 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6711 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); | |
6713 | return NULL; | |
6714 | } | |
6715 | } | |
6716 | { | |
6717 | wxPy_BEGIN_ALLOW_THREADS; | |
6718 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
6719 | ||
6720 | wxPy_END_ALLOW_THREADS; | |
6721 | if (PyErr_Occurred()) return NULL; | |
6722 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6723 | _resultobj = Py_BuildValue("s",_ptemp); | |
6724 | return _resultobj; | |
6725 | } | |
6726 | ||
6727 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) | |
6728 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6729 | PyObject * _resultobj; | |
6730 | wxTreeItemId * _result; | |
6731 | wxPyTreeCtrl * _arg0; | |
6732 | wxTreeItemId * _arg1; | |
6733 | PyObject * _argo0 = 0; | |
6734 | PyObject * _argo1 = 0; | |
6735 | char *_kwnames[] = { "self","item", NULL }; | |
6736 | char _ptemp[128]; | |
6737 | ||
6738 | self = self; | |
6739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) | |
6740 | return NULL; | |
6741 | if (_argo0) { | |
6742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
6745 | return NULL; | |
6746 | } | |
6747 | } | |
6748 | if (_argo1) { | |
6749 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6750 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); | |
6752 | return NULL; | |
6753 | } | |
6754 | } | |
6755 | { | |
6756 | wxPy_BEGIN_ALLOW_THREADS; | |
6757 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
6758 | ||
6759 | wxPy_END_ALLOW_THREADS; | |
6760 | if (PyErr_Occurred()) return NULL; | |
6761 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6762 | _resultobj = Py_BuildValue("s",_ptemp); | |
6763 | return _resultobj; | |
6764 | } | |
6765 | ||
6766 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) | |
6767 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6768 | PyObject * _resultobj; | |
6769 | wxTreeItemId * _result; | |
6770 | wxPyTreeCtrl * _arg0; | |
6771 | PyObject * _argo0 = 0; | |
6772 | char *_kwnames[] = { "self", NULL }; | |
6773 | char _ptemp[128]; | |
6774 | ||
6775 | self = self; | |
6776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) | |
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_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
6782 | return NULL; | |
6783 | } | |
6784 | } | |
6785 | { | |
6786 | wxPy_BEGIN_ALLOW_THREADS; | |
6787 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
6788 | ||
6789 | wxPy_END_ALLOW_THREADS; | |
6790 | if (PyErr_Occurred()) return NULL; | |
6791 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6792 | _resultobj = Py_BuildValue("s",_ptemp); | |
6793 | return _resultobj; | |
6794 | } | |
6795 | ||
6796 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) | |
6797 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6798 | PyObject * _resultobj; | |
6799 | wxTreeItemId * _result; | |
6800 | wxPyTreeCtrl * _arg0; | |
6801 | wxTreeItemId * _arg1; | |
6802 | PyObject * _argo0 = 0; | |
6803 | PyObject * _argo1 = 0; | |
6804 | char *_kwnames[] = { "self","item", NULL }; | |
6805 | char _ptemp[128]; | |
6806 | ||
6807 | self = self; | |
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) | |
6809 | return NULL; | |
6810 | if (_argo0) { | |
6811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
6814 | return NULL; | |
6815 | } | |
6816 | } | |
6817 | if (_argo1) { | |
6818 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6819 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); | |
6821 | return NULL; | |
6822 | } | |
6823 | } | |
6824 | { | |
6825 | wxPy_BEGIN_ALLOW_THREADS; | |
6826 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
6827 | ||
6828 | wxPy_END_ALLOW_THREADS; | |
6829 | if (PyErr_Occurred()) return NULL; | |
6830 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6831 | _resultobj = Py_BuildValue("s",_ptemp); | |
6832 | return _resultobj; | |
6833 | } | |
6834 | ||
6835 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) | |
6836 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6837 | PyObject * _resultobj; | |
6838 | wxTreeItemId * _result; | |
6839 | wxPyTreeCtrl * _arg0; | |
6840 | wxTreeItemId * _arg1; | |
6841 | PyObject * _argo0 = 0; | |
6842 | PyObject * _argo1 = 0; | |
6843 | char *_kwnames[] = { "self","item", NULL }; | |
6844 | char _ptemp[128]; | |
6845 | ||
6846 | self = self; | |
6847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) | |
6848 | return NULL; | |
6849 | if (_argo0) { | |
6850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
6853 | return NULL; | |
6854 | } | |
6855 | } | |
6856 | if (_argo1) { | |
6857 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6858 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); | |
6860 | return NULL; | |
6861 | } | |
6862 | } | |
6863 | { | |
6864 | wxPy_BEGIN_ALLOW_THREADS; | |
6865 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
6866 | ||
6867 | wxPy_END_ALLOW_THREADS; | |
6868 | if (PyErr_Occurred()) return NULL; | |
6869 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6870 | _resultobj = Py_BuildValue("s",_ptemp); | |
6871 | return _resultobj; | |
6872 | } | |
6873 | ||
6874 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) | |
6875 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6876 | PyObject * _resultobj; | |
6877 | wxTreeItemId * _result; | |
6878 | wxPyTreeCtrl * _arg0; | |
6879 | wxTreeItemId * _arg1; | |
6880 | PyObject * _argo0 = 0; | |
6881 | PyObject * _argo1 = 0; | |
6882 | char *_kwnames[] = { "self","item", NULL }; | |
6883 | char _ptemp[128]; | |
6884 | ||
6885 | self = self; | |
6886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
6887 | return NULL; | |
6888 | if (_argo0) { | |
6889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
6892 | return NULL; | |
6893 | } | |
6894 | } | |
6895 | if (_argo1) { | |
6896 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6897 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
6899 | return NULL; | |
6900 | } | |
6901 | } | |
6902 | { | |
6903 | wxPy_BEGIN_ALLOW_THREADS; | |
6904 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
6905 | ||
6906 | wxPy_END_ALLOW_THREADS; | |
6907 | if (PyErr_Occurred()) return NULL; | |
6908 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6909 | _resultobj = Py_BuildValue("s",_ptemp); | |
6910 | return _resultobj; | |
6911 | } | |
6912 | ||
6913 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6914 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6915 | PyObject * _resultobj; | |
6916 | wxTreeItemId * _result; | |
6917 | wxPyTreeCtrl * _arg0; | |
6918 | wxString * _arg1; | |
6919 | int _arg2 = (int ) -1; | |
6920 | int _arg3 = (int ) -1; | |
6921 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
6922 | PyObject * _argo0 = 0; | |
6923 | PyObject * _obj1 = 0; | |
6924 | PyObject * _argo4 = 0; | |
6925 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; | |
6926 | char _ptemp[128]; | |
6927 | ||
6928 | self = self; | |
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) | |
6930 | return NULL; | |
6931 | if (_argo0) { | |
6932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
6935 | return NULL; | |
6936 | } | |
6937 | } | |
6938 | { | |
6939 | #if PYTHON_API_VERSION >= 1009 | |
6940 | char* tmpPtr; int tmpSize; | |
6941 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6942 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6943 | return NULL; | |
6944 | } | |
6945 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6946 | return NULL; | |
6947 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6948 | #else | |
6949 | if (!PyString_Check(_obj1)) { | |
6950 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6951 | return NULL; | |
6952 | } | |
6953 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6954 | #endif | |
6955 | } | |
6956 | if (_argo4) { | |
6957 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
6958 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
6959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); | |
6960 | return NULL; | |
6961 | } | |
6962 | } | |
6963 | { | |
6964 | wxPy_BEGIN_ALLOW_THREADS; | |
6965 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
6966 | ||
6967 | wxPy_END_ALLOW_THREADS; | |
6968 | if (PyErr_Occurred()) return NULL; | |
6969 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6970 | _resultobj = Py_BuildValue("s",_ptemp); | |
6971 | { | |
6972 | if (_obj1) | |
6973 | delete _arg1; | |
6974 | } | |
6975 | return _resultobj; | |
6976 | } | |
6977 | ||
6978 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
6979 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6980 | PyObject * _resultobj; | |
6981 | wxTreeItemId * _result; | |
6982 | wxPyTreeCtrl * _arg0; | |
6983 | wxTreeItemId * _arg1; | |
6984 | wxString * _arg2; | |
6985 | int _arg3 = (int ) -1; | |
6986 | int _arg4 = (int ) -1; | |
6987 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
6988 | PyObject * _argo0 = 0; | |
6989 | PyObject * _argo1 = 0; | |
6990 | PyObject * _obj2 = 0; | |
6991 | PyObject * _argo5 = 0; | |
6992 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; | |
6993 | char _ptemp[128]; | |
6994 | ||
6995 | self = self; | |
6996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) | |
6997 | return NULL; | |
6998 | if (_argo0) { | |
6999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
7002 | return NULL; | |
7003 | } | |
7004 | } | |
7005 | if (_argo1) { | |
7006 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7007 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); | |
7009 | return NULL; | |
7010 | } | |
7011 | } | |
7012 | { | |
7013 | #if PYTHON_API_VERSION >= 1009 | |
7014 | char* tmpPtr; int tmpSize; | |
7015 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7016 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7017 | return NULL; | |
7018 | } | |
7019 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7020 | return NULL; | |
7021 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7022 | #else | |
7023 | if (!PyString_Check(_obj2)) { | |
7024 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7025 | return NULL; | |
7026 | } | |
7027 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
7028 | #endif | |
7029 | } | |
7030 | if (_argo5) { | |
7031 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7032 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
7033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); | |
7034 | return NULL; | |
7035 | } | |
7036 | } | |
7037 | { | |
7038 | wxPy_BEGIN_ALLOW_THREADS; | |
7039 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
7040 | ||
7041 | wxPy_END_ALLOW_THREADS; | |
7042 | if (PyErr_Occurred()) return NULL; | |
7043 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7044 | _resultobj = Py_BuildValue("s",_ptemp); | |
7045 | { | |
7046 | if (_obj2) | |
7047 | delete _arg2; | |
7048 | } | |
7049 | return _resultobj; | |
7050 | } | |
7051 | ||
7052 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7053 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7054 | PyObject * _resultobj; | |
7055 | wxTreeItemId * _result; | |
7056 | wxPyTreeCtrl * _arg0; | |
7057 | wxTreeItemId * _arg1; | |
7058 | wxTreeItemId * _arg2; | |
7059 | wxString * _arg3; | |
7060 | int _arg4 = (int ) -1; | |
7061 | int _arg5 = (int ) -1; | |
7062 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
7063 | PyObject * _argo0 = 0; | |
7064 | PyObject * _argo1 = 0; | |
7065 | PyObject * _argo2 = 0; | |
7066 | PyObject * _obj3 = 0; | |
7067 | PyObject * _argo6 = 0; | |
7068 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; | |
7069 | char _ptemp[128]; | |
7070 | ||
7071 | self = self; | |
7072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
7073 | return NULL; | |
7074 | if (_argo0) { | |
7075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
7078 | return NULL; | |
7079 | } | |
7080 | } | |
7081 | if (_argo1) { | |
7082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); | |
7085 | return NULL; | |
7086 | } | |
7087 | } | |
7088 | if (_argo2) { | |
7089 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7090 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
7091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); | |
7092 | return NULL; | |
7093 | } | |
7094 | } | |
7095 | { | |
7096 | #if PYTHON_API_VERSION >= 1009 | |
7097 | char* tmpPtr; int tmpSize; | |
7098 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7099 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7100 | return NULL; | |
7101 | } | |
7102 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7103 | return NULL; | |
7104 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7105 | #else | |
7106 | if (!PyString_Check(_obj3)) { | |
7107 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7108 | return NULL; | |
7109 | } | |
7110 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
7111 | #endif | |
7112 | } | |
7113 | if (_argo6) { | |
7114 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7115 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
7116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); | |
7117 | return NULL; | |
7118 | } | |
7119 | } | |
7120 | { | |
7121 | wxPy_BEGIN_ALLOW_THREADS; | |
7122 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
7123 | ||
7124 | wxPy_END_ALLOW_THREADS; | |
7125 | if (PyErr_Occurred()) return NULL; | |
7126 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7127 | _resultobj = Py_BuildValue("s",_ptemp); | |
7128 | { | |
7129 | if (_obj3) | |
7130 | delete _arg3; | |
7131 | } | |
7132 | return _resultobj; | |
7133 | } | |
7134 | ||
7135 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7136 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7137 | PyObject * _resultobj; | |
7138 | wxTreeItemId * _result; | |
7139 | wxPyTreeCtrl * _arg0; | |
7140 | wxTreeItemId * _arg1; | |
7141 | size_t _arg2; | |
7142 | wxString * _arg3; | |
7143 | int _arg4 = (int ) -1; | |
7144 | int _arg5 = (int ) -1; | |
7145 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
7146 | PyObject * _argo0 = 0; | |
7147 | PyObject * _argo1 = 0; | |
7148 | PyObject * _obj3 = 0; | |
7149 | PyObject * _argo6 = 0; | |
7150 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
7151 | char _ptemp[128]; | |
7152 | ||
7153 | self = self; | |
7154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
7155 | return NULL; | |
7156 | if (_argo0) { | |
7157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
7160 | return NULL; | |
7161 | } | |
7162 | } | |
7163 | if (_argo1) { | |
7164 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7165 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
7167 | return NULL; | |
7168 | } | |
7169 | } | |
7170 | { | |
7171 | #if PYTHON_API_VERSION >= 1009 | |
7172 | char* tmpPtr; int tmpSize; | |
7173 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7174 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7175 | return NULL; | |
7176 | } | |
7177 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7178 | return NULL; | |
7179 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7180 | #else | |
7181 | if (!PyString_Check(_obj3)) { | |
7182 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7183 | return NULL; | |
7184 | } | |
7185 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
7186 | #endif | |
7187 | } | |
7188 | if (_argo6) { | |
7189 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7190 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
7191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
7192 | return NULL; | |
7193 | } | |
7194 | } | |
7195 | { | |
7196 | wxPy_BEGIN_ALLOW_THREADS; | |
7197 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
7198 | ||
7199 | wxPy_END_ALLOW_THREADS; | |
7200 | if (PyErr_Occurred()) return NULL; | |
7201 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7202 | _resultobj = Py_BuildValue("s",_ptemp); | |
7203 | { | |
7204 | if (_obj3) | |
7205 | delete _arg3; | |
7206 | } | |
7207 | return _resultobj; | |
7208 | } | |
7209 | ||
7210 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7211 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7212 | PyObject * _resultobj; | |
7213 | wxTreeItemId * _result; | |
7214 | wxPyTreeCtrl * _arg0; | |
7215 | wxTreeItemId * _arg1; | |
7216 | wxString * _arg2; | |
7217 | int _arg3 = (int ) -1; | |
7218 | int _arg4 = (int ) -1; | |
7219 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
7220 | PyObject * _argo0 = 0; | |
7221 | PyObject * _argo1 = 0; | |
7222 | PyObject * _obj2 = 0; | |
7223 | PyObject * _argo5 = 0; | |
7224 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; | |
7225 | char _ptemp[128]; | |
7226 | ||
7227 | self = self; | |
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) | |
7229 | return NULL; | |
7230 | if (_argo0) { | |
7231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
7234 | return NULL; | |
7235 | } | |
7236 | } | |
7237 | if (_argo1) { | |
7238 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7239 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); | |
7241 | return NULL; | |
7242 | } | |
7243 | } | |
7244 | { | |
7245 | #if PYTHON_API_VERSION >= 1009 | |
7246 | char* tmpPtr; int tmpSize; | |
7247 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7248 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7249 | return NULL; | |
7250 | } | |
7251 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7252 | return NULL; | |
7253 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7254 | #else | |
7255 | if (!PyString_Check(_obj2)) { | |
7256 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7257 | return NULL; | |
7258 | } | |
7259 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
7260 | #endif | |
7261 | } | |
7262 | if (_argo5) { | |
7263 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7264 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
7265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); | |
7266 | return NULL; | |
7267 | } | |
7268 | } | |
7269 | { | |
7270 | wxPy_BEGIN_ALLOW_THREADS; | |
7271 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
7272 | ||
7273 | wxPy_END_ALLOW_THREADS; | |
7274 | if (PyErr_Occurred()) return NULL; | |
7275 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7276 | _resultobj = Py_BuildValue("s",_ptemp); | |
7277 | { | |
7278 | if (_obj2) | |
7279 | delete _arg2; | |
7280 | } | |
7281 | return _resultobj; | |
7282 | } | |
7283 | ||
7284 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
7285 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7286 | PyObject * _resultobj; | |
7287 | wxPyTreeCtrl * _arg0; | |
7288 | wxTreeItemId * _arg1; | |
7289 | PyObject * _argo0 = 0; | |
7290 | PyObject * _argo1 = 0; | |
7291 | char *_kwnames[] = { "self","item", NULL }; | |
7292 | ||
7293 | self = self; | |
7294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) | |
7295 | return NULL; | |
7296 | if (_argo0) { | |
7297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
7300 | return NULL; | |
7301 | } | |
7302 | } | |
7303 | if (_argo1) { | |
7304 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7305 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); | |
7307 | return NULL; | |
7308 | } | |
7309 | } | |
7310 | { | |
7311 | wxPy_BEGIN_ALLOW_THREADS; | |
7312 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
7313 | ||
7314 | wxPy_END_ALLOW_THREADS; | |
7315 | if (PyErr_Occurred()) return NULL; | |
7316 | } Py_INCREF(Py_None); | |
7317 | _resultobj = Py_None; | |
7318 | return _resultobj; | |
7319 | } | |
7320 | ||
7321 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) | |
7322 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7323 | PyObject * _resultobj; | |
7324 | wxPyTreeCtrl * _arg0; | |
7325 | wxTreeItemId * _arg1; | |
7326 | PyObject * _argo0 = 0; | |
7327 | PyObject * _argo1 = 0; | |
7328 | char *_kwnames[] = { "self","item", NULL }; | |
7329 | ||
7330 | self = self; | |
7331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) | |
7332 | return NULL; | |
7333 | if (_argo0) { | |
7334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
7337 | return NULL; | |
7338 | } | |
7339 | } | |
7340 | if (_argo1) { | |
7341 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7342 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); | |
7344 | return NULL; | |
7345 | } | |
7346 | } | |
7347 | { | |
7348 | wxPy_BEGIN_ALLOW_THREADS; | |
7349 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
7350 | ||
7351 | wxPy_END_ALLOW_THREADS; | |
7352 | if (PyErr_Occurred()) return NULL; | |
7353 | } Py_INCREF(Py_None); | |
7354 | _resultobj = Py_None; | |
7355 | return _resultobj; | |
7356 | } | |
7357 | ||
7358 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
7359 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7360 | PyObject * _resultobj; | |
7361 | wxPyTreeCtrl * _arg0; | |
7362 | PyObject * _argo0 = 0; | |
7363 | char *_kwnames[] = { "self", NULL }; | |
7364 | ||
7365 | self = self; | |
7366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
7367 | return NULL; | |
7368 | if (_argo0) { | |
7369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
7372 | return NULL; | |
7373 | } | |
7374 | } | |
7375 | { | |
7376 | wxPy_BEGIN_ALLOW_THREADS; | |
7377 | wxTreeCtrl_DeleteAllItems(_arg0); | |
7378 | ||
7379 | wxPy_END_ALLOW_THREADS; | |
7380 | if (PyErr_Occurred()) return NULL; | |
7381 | } Py_INCREF(Py_None); | |
7382 | _resultobj = Py_None; | |
7383 | return _resultobj; | |
7384 | } | |
7385 | ||
7386 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
7387 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7388 | PyObject * _resultobj; | |
7389 | wxPyTreeCtrl * _arg0; | |
7390 | wxTreeItemId * _arg1; | |
7391 | PyObject * _argo0 = 0; | |
7392 | PyObject * _argo1 = 0; | |
7393 | char *_kwnames[] = { "self","item", NULL }; | |
7394 | ||
7395 | self = self; | |
7396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) | |
7397 | return NULL; | |
7398 | if (_argo0) { | |
7399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
7402 | return NULL; | |
7403 | } | |
7404 | } | |
7405 | if (_argo1) { | |
7406 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7407 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); | |
7409 | return NULL; | |
7410 | } | |
7411 | } | |
7412 | { | |
7413 | wxPy_BEGIN_ALLOW_THREADS; | |
7414 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
7415 | ||
7416 | wxPy_END_ALLOW_THREADS; | |
7417 | if (PyErr_Occurred()) return NULL; | |
7418 | } Py_INCREF(Py_None); | |
7419 | _resultobj = Py_None; | |
7420 | return _resultobj; | |
7421 | } | |
7422 | ||
7423 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
7424 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7425 | PyObject * _resultobj; | |
7426 | wxPyTreeCtrl * _arg0; | |
7427 | wxTreeItemId * _arg1; | |
7428 | PyObject * _argo0 = 0; | |
7429 | PyObject * _argo1 = 0; | |
7430 | char *_kwnames[] = { "self","item", NULL }; | |
7431 | ||
7432 | self = self; | |
7433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) | |
7434 | return NULL; | |
7435 | if (_argo0) { | |
7436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
7439 | return NULL; | |
7440 | } | |
7441 | } | |
7442 | if (_argo1) { | |
7443 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7444 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); | |
7446 | return NULL; | |
7447 | } | |
7448 | } | |
7449 | { | |
7450 | wxPy_BEGIN_ALLOW_THREADS; | |
7451 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
7452 | ||
7453 | wxPy_END_ALLOW_THREADS; | |
7454 | if (PyErr_Occurred()) return NULL; | |
7455 | } Py_INCREF(Py_None); | |
7456 | _resultobj = Py_None; | |
7457 | return _resultobj; | |
7458 | } | |
7459 | ||
7460 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
7461 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7462 | PyObject * _resultobj; | |
7463 | wxPyTreeCtrl * _arg0; | |
7464 | wxTreeItemId * _arg1; | |
7465 | PyObject * _argo0 = 0; | |
7466 | PyObject * _argo1 = 0; | |
7467 | char *_kwnames[] = { "self","item", NULL }; | |
7468 | ||
7469 | self = self; | |
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) | |
7471 | return NULL; | |
7472 | if (_argo0) { | |
7473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
7479 | if (_argo1) { | |
7480 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7481 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); | |
7483 | return NULL; | |
7484 | } | |
7485 | } | |
7486 | { | |
7487 | wxPy_BEGIN_ALLOW_THREADS; | |
7488 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
7489 | ||
7490 | wxPy_END_ALLOW_THREADS; | |
7491 | if (PyErr_Occurred()) return NULL; | |
7492 | } Py_INCREF(Py_None); | |
7493 | _resultobj = Py_None; | |
7494 | return _resultobj; | |
7495 | } | |
7496 | ||
7497 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
7498 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7499 | PyObject * _resultobj; | |
7500 | wxPyTreeCtrl * _arg0; | |
7501 | wxTreeItemId * _arg1; | |
7502 | PyObject * _argo0 = 0; | |
7503 | PyObject * _argo1 = 0; | |
7504 | char *_kwnames[] = { "self","item", NULL }; | |
7505 | ||
7506 | self = self; | |
7507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) | |
7508 | return NULL; | |
7509 | if (_argo0) { | |
7510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
7513 | return NULL; | |
7514 | } | |
7515 | } | |
7516 | if (_argo1) { | |
7517 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7518 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); | |
7520 | return NULL; | |
7521 | } | |
7522 | } | |
7523 | { | |
7524 | wxPy_BEGIN_ALLOW_THREADS; | |
7525 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
7526 | ||
7527 | wxPy_END_ALLOW_THREADS; | |
7528 | if (PyErr_Occurred()) return NULL; | |
7529 | } Py_INCREF(Py_None); | |
7530 | _resultobj = Py_None; | |
7531 | return _resultobj; | |
7532 | } | |
7533 | ||
7534 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
7535 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7536 | PyObject * _resultobj; | |
7537 | wxPyTreeCtrl * _arg0; | |
7538 | PyObject * _argo0 = 0; | |
7539 | char *_kwnames[] = { "self", NULL }; | |
7540 | ||
7541 | self = self; | |
7542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) | |
7543 | return NULL; | |
7544 | if (_argo0) { | |
7545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
7548 | return NULL; | |
7549 | } | |
7550 | } | |
7551 | { | |
7552 | wxPy_BEGIN_ALLOW_THREADS; | |
7553 | wxTreeCtrl_Unselect(_arg0); | |
7554 | ||
7555 | wxPy_END_ALLOW_THREADS; | |
7556 | if (PyErr_Occurred()) return NULL; | |
7557 | } Py_INCREF(Py_None); | |
7558 | _resultobj = Py_None; | |
7559 | return _resultobj; | |
7560 | } | |
7561 | ||
7562 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) | |
7563 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7564 | PyObject * _resultobj; | |
7565 | wxPyTreeCtrl * _arg0; | |
7566 | PyObject * _argo0 = 0; | |
7567 | char *_kwnames[] = { "self", NULL }; | |
7568 | ||
7569 | self = self; | |
7570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) | |
7571 | return NULL; | |
7572 | if (_argo0) { | |
7573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
7576 | return NULL; | |
7577 | } | |
7578 | } | |
7579 | { | |
7580 | wxPy_BEGIN_ALLOW_THREADS; | |
7581 | wxTreeCtrl_UnselectAll(_arg0); | |
7582 | ||
7583 | wxPy_END_ALLOW_THREADS; | |
7584 | if (PyErr_Occurred()) return NULL; | |
7585 | } Py_INCREF(Py_None); | |
7586 | _resultobj = Py_None; | |
7587 | return _resultobj; | |
7588 | } | |
7589 | ||
7590 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) | |
7591 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7592 | PyObject * _resultobj; | |
7593 | wxPyTreeCtrl * _arg0; | |
7594 | wxTreeItemId * _arg1; | |
7595 | PyObject * _argo0 = 0; | |
7596 | PyObject * _argo1 = 0; | |
7597 | char *_kwnames[] = { "self","item", NULL }; | |
7598 | ||
7599 | self = self; | |
7600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) | |
7601 | return NULL; | |
7602 | if (_argo0) { | |
7603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
7606 | return NULL; | |
7607 | } | |
7608 | } | |
7609 | if (_argo1) { | |
7610 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7611 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); | |
7613 | return NULL; | |
7614 | } | |
7615 | } | |
7616 | { | |
7617 | wxPy_BEGIN_ALLOW_THREADS; | |
7618 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
7619 | ||
7620 | wxPy_END_ALLOW_THREADS; | |
7621 | if (PyErr_Occurred()) return NULL; | |
7622 | } Py_INCREF(Py_None); | |
7623 | _resultobj = Py_None; | |
7624 | return _resultobj; | |
7625 | } | |
7626 | ||
7627 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
7628 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7629 | PyObject * _resultobj; | |
7630 | wxPyTreeCtrl * _arg0; | |
7631 | wxTreeItemId * _arg1; | |
7632 | PyObject * _argo0 = 0; | |
7633 | PyObject * _argo1 = 0; | |
7634 | char *_kwnames[] = { "self","item", NULL }; | |
7635 | ||
7636 | self = self; | |
7637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) | |
7638 | return NULL; | |
7639 | if (_argo0) { | |
7640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
7643 | return NULL; | |
7644 | } | |
7645 | } | |
7646 | if (_argo1) { | |
7647 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7648 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); | |
7650 | return NULL; | |
7651 | } | |
7652 | } | |
7653 | { | |
7654 | wxPy_BEGIN_ALLOW_THREADS; | |
7655 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
7656 | ||
7657 | wxPy_END_ALLOW_THREADS; | |
7658 | if (PyErr_Occurred()) return NULL; | |
7659 | } Py_INCREF(Py_None); | |
7660 | _resultobj = Py_None; | |
7661 | return _resultobj; | |
7662 | } | |
7663 | ||
7664 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
7665 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7666 | PyObject * _resultobj; | |
7667 | wxPyTreeCtrl * _arg0; | |
7668 | wxTreeItemId * _arg1; | |
7669 | PyObject * _argo0 = 0; | |
7670 | PyObject * _argo1 = 0; | |
7671 | char *_kwnames[] = { "self","item", NULL }; | |
7672 | ||
7673 | self = self; | |
7674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) | |
7675 | return NULL; | |
7676 | if (_argo0) { | |
7677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
7680 | return NULL; | |
7681 | } | |
7682 | } | |
7683 | if (_argo1) { | |
7684 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7685 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); | |
7687 | return NULL; | |
7688 | } | |
7689 | } | |
7690 | { | |
7691 | wxPy_BEGIN_ALLOW_THREADS; | |
7692 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
7693 | ||
7694 | wxPy_END_ALLOW_THREADS; | |
7695 | if (PyErr_Occurred()) return NULL; | |
7696 | } Py_INCREF(Py_None); | |
7697 | _resultobj = Py_None; | |
7698 | return _resultobj; | |
7699 | } | |
7700 | ||
7701 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
7702 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7703 | PyObject * _resultobj; | |
7704 | wxTextCtrl * _result; | |
7705 | wxPyTreeCtrl * _arg0; | |
7706 | wxTreeItemId * _arg1; | |
7707 | PyObject * _argo0 = 0; | |
7708 | PyObject * _argo1 = 0; | |
7709 | char *_kwnames[] = { "self","item", NULL }; | |
7710 | ||
7711 | self = self; | |
7712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) | |
7713 | return NULL; | |
7714 | if (_argo0) { | |
7715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
7718 | return NULL; | |
7719 | } | |
7720 | } | |
7721 | if (_argo1) { | |
7722 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7723 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); | |
7725 | return NULL; | |
7726 | } | |
7727 | } | |
7728 | { | |
7729 | wxPy_BEGIN_ALLOW_THREADS; | |
7730 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); | |
7731 | ||
7732 | wxPy_END_ALLOW_THREADS; | |
7733 | if (PyErr_Occurred()) return NULL; | |
7734 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
7735 | return _resultobj; | |
7736 | } | |
7737 | ||
7738 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
7739 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7740 | PyObject * _resultobj; | |
7741 | wxTextCtrl * _result; | |
7742 | wxPyTreeCtrl * _arg0; | |
7743 | PyObject * _argo0 = 0; | |
7744 | char *_kwnames[] = { "self", NULL }; | |
7745 | ||
7746 | self = self; | |
7747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) | |
7748 | return NULL; | |
7749 | if (_argo0) { | |
7750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
7753 | return NULL; | |
7754 | } | |
7755 | } | |
7756 | { | |
7757 | wxPy_BEGIN_ALLOW_THREADS; | |
7758 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
7759 | ||
7760 | wxPy_END_ALLOW_THREADS; | |
7761 | if (PyErr_Occurred()) return NULL; | |
7762 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
7763 | return _resultobj; | |
7764 | } | |
7765 | ||
7766 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
7767 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7768 | PyObject * _resultobj; | |
7769 | wxPyTreeCtrl * _arg0; | |
7770 | wxTreeItemId * _arg1; | |
7771 | int _arg2 = (int ) FALSE; | |
7772 | PyObject * _argo0 = 0; | |
7773 | PyObject * _argo1 = 0; | |
7774 | char *_kwnames[] = { "self","item","discardChanges", NULL }; | |
7775 | ||
7776 | self = self; | |
7777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7778 | return NULL; | |
7779 | if (_argo0) { | |
7780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
7783 | return NULL; | |
7784 | } | |
7785 | } | |
7786 | if (_argo1) { | |
7787 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7788 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); | |
7790 | return NULL; | |
7791 | } | |
7792 | } | |
7793 | { | |
7794 | wxPy_BEGIN_ALLOW_THREADS; | |
7795 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); | |
7796 | ||
7797 | wxPy_END_ALLOW_THREADS; | |
7798 | if (PyErr_Occurred()) return NULL; | |
7799 | } Py_INCREF(Py_None); | |
7800 | _resultobj = Py_None; | |
7801 | return _resultobj; | |
7802 | } | |
7803 | ||
7804 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) | |
7805 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7806 | PyObject * _resultobj; | |
7807 | wxPyTreeCtrl * _arg0; | |
7808 | wxTreeItemId * _arg1; | |
7809 | PyObject * _argo0 = 0; | |
7810 | PyObject * _argo1 = 0; | |
7811 | char *_kwnames[] = { "self","item", NULL }; | |
7812 | ||
7813 | self = self; | |
7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
7815 | return NULL; | |
7816 | if (_argo0) { | |
7817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
7820 | return NULL; | |
7821 | } | |
7822 | } | |
7823 | if (_argo1) { | |
7824 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7825 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
7827 | return NULL; | |
7828 | } | |
7829 | } | |
7830 | { | |
7831 | wxPy_BEGIN_ALLOW_THREADS; | |
7832 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
7833 | ||
7834 | wxPy_END_ALLOW_THREADS; | |
7835 | if (PyErr_Occurred()) return NULL; | |
7836 | } Py_INCREF(Py_None); | |
7837 | _resultobj = Py_None; | |
7838 | return _resultobj; | |
7839 | } | |
7840 | ||
7841 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) | |
7842 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7843 | PyObject * _resultobj; | |
7844 | wxPyTreeCtrl * _arg0; | |
7845 | wxTreeItemId * _arg1; | |
7846 | int _arg2 = (int ) TRUE; | |
7847 | PyObject * _argo0 = 0; | |
7848 | PyObject * _argo1 = 0; | |
7849 | char *_kwnames[] = { "self","item","bold", NULL }; | |
7850 | ||
7851 | self = self; | |
7852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7853 | return NULL; | |
7854 | if (_argo0) { | |
7855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
7858 | return NULL; | |
7859 | } | |
7860 | } | |
7861 | if (_argo1) { | |
7862 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7863 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); | |
7865 | return NULL; | |
7866 | } | |
7867 | } | |
7868 | { | |
7869 | wxPy_BEGIN_ALLOW_THREADS; | |
7870 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
7871 | ||
7872 | wxPy_END_ALLOW_THREADS; | |
7873 | if (PyErr_Occurred()) return NULL; | |
7874 | } Py_INCREF(Py_None); | |
7875 | _resultobj = Py_None; | |
7876 | return _resultobj; | |
7877 | } | |
7878 | ||
7879 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
7880 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7881 | PyObject * _resultobj; | |
7882 | bool _result; | |
7883 | wxPyTreeCtrl * _arg0; | |
7884 | wxTreeItemId * _arg1; | |
7885 | PyObject * _argo0 = 0; | |
7886 | PyObject * _argo1 = 0; | |
7887 | char *_kwnames[] = { "self","item", NULL }; | |
7888 | ||
7889 | self = self; | |
7890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) | |
7891 | return NULL; | |
7892 | if (_argo0) { | |
7893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
7896 | return NULL; | |
7897 | } | |
7898 | } | |
7899 | if (_argo1) { | |
7900 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7901 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); | |
7903 | return NULL; | |
7904 | } | |
7905 | } | |
7906 | { | |
7907 | wxPy_BEGIN_ALLOW_THREADS; | |
7908 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
7909 | ||
7910 | wxPy_END_ALLOW_THREADS; | |
7911 | if (PyErr_Occurred()) return NULL; | |
7912 | } _resultobj = Py_BuildValue("i",_result); | |
7913 | return _resultobj; | |
7914 | } | |
7915 | ||
7916 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
7917 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7918 | PyObject * _resultobj; | |
7919 | wxTreeItemId * _result; | |
7920 | wxPyTreeCtrl * _arg0; | |
7921 | wxPoint * _arg1; | |
7922 | int * _arg2; | |
7923 | int temp; | |
7924 | PyObject * _argo0 = 0; | |
7925 | wxPoint temp0; | |
7926 | PyObject * _obj1 = 0; | |
7927 | char *_kwnames[] = { "self","point", NULL }; | |
7928 | char _ptemp[128]; | |
7929 | ||
7930 | self = self; | |
7931 | { | |
7932 | _arg2 = &temp; | |
7933 | } | |
7934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
7935 | return NULL; | |
7936 | if (_argo0) { | |
7937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
7940 | return NULL; | |
7941 | } | |
7942 | } | |
7943 | { | |
7944 | _arg1 = &temp0; | |
7945 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7946 | return NULL; | |
7947 | } | |
7948 | { | |
7949 | wxPy_BEGIN_ALLOW_THREADS; | |
7950 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); | |
7951 | ||
7952 | wxPy_END_ALLOW_THREADS; | |
7953 | if (PyErr_Occurred()) return NULL; | |
7954 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7955 | _resultobj = Py_BuildValue("s",_ptemp); | |
7956 | { | |
7957 | PyObject *o; | |
7958 | o = PyInt_FromLong((long) (*_arg2)); | |
7959 | _resultobj = t_output_helper(_resultobj, o); | |
7960 | } | |
7961 | return _resultobj; | |
7962 | } | |
7963 | ||
7964 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) | |
7965 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7966 | PyObject * _resultobj; | |
7967 | wxPyTreeCtrl * _arg0; | |
7968 | wxTreeItemId * _arg1; | |
7969 | wxColour * _arg2; | |
7970 | PyObject * _argo0 = 0; | |
7971 | PyObject * _argo1 = 0; | |
7972 | wxColour temp; | |
7973 | PyObject * _obj2 = 0; | |
7974 | char *_kwnames[] = { "self","item","col", NULL }; | |
7975 | ||
7976 | self = self; | |
7977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7978 | return NULL; | |
7979 | if (_argo0) { | |
7980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
7983 | return NULL; | |
7984 | } | |
7985 | } | |
7986 | if (_argo1) { | |
7987 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7988 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
7990 | return NULL; | |
7991 | } | |
7992 | } | |
7993 | { | |
7994 | _arg2 = &temp; | |
7995 | if (! wxColour_helper(_obj2, &_arg2)) | |
7996 | return NULL; | |
7997 | } | |
7998 | { | |
7999 | wxPy_BEGIN_ALLOW_THREADS; | |
8000 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
8001 | ||
8002 | wxPy_END_ALLOW_THREADS; | |
8003 | if (PyErr_Occurred()) return NULL; | |
8004 | } Py_INCREF(Py_None); | |
8005 | _resultobj = Py_None; | |
8006 | return _resultobj; | |
8007 | } | |
8008 | ||
8009 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
8010 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8011 | PyObject * _resultobj; | |
8012 | wxPyTreeCtrl * _arg0; | |
8013 | wxTreeItemId * _arg1; | |
8014 | wxColour * _arg2; | |
8015 | PyObject * _argo0 = 0; | |
8016 | PyObject * _argo1 = 0; | |
8017 | wxColour temp; | |
8018 | PyObject * _obj2 = 0; | |
8019 | char *_kwnames[] = { "self","item","col", NULL }; | |
8020 | ||
8021 | self = self; | |
8022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) | |
8023 | return NULL; | |
8024 | if (_argo0) { | |
8025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
8028 | return NULL; | |
8029 | } | |
8030 | } | |
8031 | if (_argo1) { | |
8032 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8033 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
8035 | return NULL; | |
8036 | } | |
8037 | } | |
8038 | { | |
8039 | _arg2 = &temp; | |
8040 | if (! wxColour_helper(_obj2, &_arg2)) | |
8041 | return NULL; | |
8042 | } | |
8043 | { | |
8044 | wxPy_BEGIN_ALLOW_THREADS; | |
8045 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
8046 | ||
8047 | wxPy_END_ALLOW_THREADS; | |
8048 | if (PyErr_Occurred()) return NULL; | |
8049 | } Py_INCREF(Py_None); | |
8050 | _resultobj = Py_None; | |
8051 | return _resultobj; | |
8052 | } | |
8053 | ||
8054 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
8055 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8056 | PyObject * _resultobj; | |
8057 | wxPyTreeCtrl * _arg0; | |
8058 | wxTreeItemId * _arg1; | |
8059 | wxFont * _arg2; | |
8060 | PyObject * _argo0 = 0; | |
8061 | PyObject * _argo1 = 0; | |
8062 | PyObject * _argo2 = 0; | |
8063 | char *_kwnames[] = { "self","item","font", NULL }; | |
8064 | ||
8065 | self = self; | |
8066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
8067 | return NULL; | |
8068 | if (_argo0) { | |
8069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
8072 | return NULL; | |
8073 | } | |
8074 | } | |
8075 | if (_argo1) { | |
8076 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8077 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
8079 | return NULL; | |
8080 | } | |
8081 | } | |
8082 | if (_argo2) { | |
8083 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8084 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
8085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
8086 | return NULL; | |
8087 | } | |
8088 | } | |
8089 | { | |
8090 | wxPy_BEGIN_ALLOW_THREADS; | |
8091 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
8092 | ||
8093 | wxPy_END_ALLOW_THREADS; | |
8094 | if (PyErr_Occurred()) return NULL; | |
8095 | } Py_INCREF(Py_None); | |
8096 | _resultobj = Py_None; | |
8097 | return _resultobj; | |
8098 | } | |
8099 | ||
8100 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) | |
8101 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8102 | PyObject * _resultobj; | |
8103 | wxPyTreeCtrl * _arg0; | |
8104 | wxTreeItemId * _arg1; | |
8105 | int _arg2 = (int ) TRUE; | |
8106 | PyObject * _argo0 = 0; | |
8107 | PyObject * _argo1 = 0; | |
8108 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
8109 | ||
8110 | self = self; | |
8111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
8112 | return NULL; | |
8113 | if (_argo0) { | |
8114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
8117 | return NULL; | |
8118 | } | |
8119 | } | |
8120 | if (_argo1) { | |
8121 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8122 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
8124 | return NULL; | |
8125 | } | |
8126 | } | |
8127 | { | |
8128 | wxPy_BEGIN_ALLOW_THREADS; | |
8129 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); | |
8130 | ||
8131 | wxPy_END_ALLOW_THREADS; | |
8132 | if (PyErr_Occurred()) return NULL; | |
8133 | } Py_INCREF(Py_None); | |
8134 | _resultobj = Py_None; | |
8135 | return _resultobj; | |
8136 | } | |
8137 | ||
8138 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { | |
8139 | wxRect rect; | |
8140 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
8141 | bool doSave = wxPyRestoreThread(); | |
8142 | wxRect* r = new wxRect(rect); | |
8143 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
8144 | wxPySaveThread(doSave); | |
8145 | return val; | |
8146 | } | |
8147 | else { | |
8148 | Py_INCREF(Py_None); | |
8149 | return Py_None; | |
8150 | } | |
8151 | } | |
8152 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8153 | PyObject * _resultobj; | |
8154 | PyObject * _result; | |
8155 | wxPyTreeCtrl * _arg0; | |
8156 | wxTreeItemId * _arg1; | |
8157 | int _arg2 = (int ) FALSE; | |
8158 | PyObject * _argo0 = 0; | |
8159 | PyObject * _argo1 = 0; | |
8160 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
8161 | ||
8162 | self = self; | |
8163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
8164 | return NULL; | |
8165 | if (_argo0) { | |
8166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
8169 | return NULL; | |
8170 | } | |
8171 | } | |
8172 | if (_argo1) { | |
8173 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8174 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
8176 | return NULL; | |
8177 | } | |
8178 | } | |
8179 | { | |
8180 | wxPy_BEGIN_ALLOW_THREADS; | |
8181 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); | |
8182 | ||
8183 | wxPy_END_ALLOW_THREADS; | |
8184 | if (PyErr_Occurred()) return NULL; | |
8185 | }{ | |
8186 | _resultobj = _result; | |
8187 | } | |
8188 | return _resultobj; | |
8189 | } | |
8190 | ||
8191 | static PyMethodDef controls2cMethods[] = { | |
8192 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
8193 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
8194 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
8195 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8196 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8197 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
8198 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
8199 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
8200 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
8201 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8202 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
8203 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8204 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
8205 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
8206 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
8207 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
8208 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
8209 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
8210 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
8211 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
8212 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
8213 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8214 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
8215 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
8216 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
8217 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
8218 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
8219 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
8220 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
8221 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
8222 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
8223 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
8224 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
8225 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
8226 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
8227 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
8228 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
8229 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
8230 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
8231 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
8232 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8233 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
8234 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
8235 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
8236 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8237 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
8238 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8239 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8240 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8241 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8242 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8243 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8244 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8245 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8246 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8247 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8248 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8249 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
8250 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
8251 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
8252 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8253 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
8254 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8255 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8256 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8257 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
8258 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
8259 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
8260 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
8261 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8262 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
8263 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8264 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8265 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8266 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8267 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8268 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8269 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8270 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
8271 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
8272 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
8273 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
8274 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
8275 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
8276 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
8277 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
8278 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8279 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8280 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8281 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8282 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8283 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8284 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
8285 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8286 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8287 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8288 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8289 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
8290 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8291 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
8292 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8293 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
8294 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
8295 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
8296 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
8297 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
8298 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8299 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8300 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8301 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
8302 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8303 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
8304 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8305 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8306 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
8307 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8308 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8309 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8310 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8311 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
8312 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8313 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8314 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
8315 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
8316 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
8317 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
8318 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
8319 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8320 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8321 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
8322 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
8323 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
8324 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8325 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
8326 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
8327 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
8328 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
8329 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8330 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8331 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8332 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8333 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8334 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8335 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8336 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
8337 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8338 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8339 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
8340 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
8341 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
8342 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
8343 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
8344 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
8345 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
8346 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
8347 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
8348 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
8349 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
8350 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
8351 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
8352 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
8353 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
8354 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
8355 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
8356 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
8357 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
8358 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
8359 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
8360 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
8361 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
8362 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
8363 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
8364 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
8365 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
8366 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
8367 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
8368 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
8369 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
8370 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
8371 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
8372 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
8373 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
8374 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
8375 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
8376 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8377 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8378 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8379 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8380 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8381 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
8382 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8383 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8384 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8385 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8386 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
8387 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8388 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8389 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8390 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8391 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8392 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8393 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
8394 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8395 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8396 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
8397 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
8398 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
8399 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
8400 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8401 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8402 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
8403 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8404 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8405 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
8406 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
8407 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8408 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8409 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8410 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
8411 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8412 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8413 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8414 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8415 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8416 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8417 | { NULL, NULL } | |
8418 | }; | |
8419 | #ifdef __cplusplus | |
8420 | } | |
8421 | #endif | |
8422 | /* | |
8423 | * This table is used by the pointer type-checker | |
8424 | */ | |
8425 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
8426 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8427 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
8428 | { "_signed_long","_long",0}, | |
8429 | { "_wxPrintQuality","_wxCoord",0}, | |
8430 | { "_wxPrintQuality","_int",0}, | |
8431 | { "_wxPrintQuality","_signed_int",0}, | |
8432 | { "_wxPrintQuality","_unsigned_int",0}, | |
8433 | { "_wxPrintQuality","_wxWindowID",0}, | |
8434 | { "_wxPrintQuality","_uint",0}, | |
8435 | { "_wxPrintQuality","_EBool",0}, | |
8436 | { "_wxPrintQuality","_size_t",0}, | |
8437 | { "_wxPrintQuality","_time_t",0}, | |
8438 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
8439 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
8440 | { "_byte","_unsigned_char",0}, | |
8441 | { "_long","_unsigned_long",0}, | |
8442 | { "_long","_signed_long",0}, | |
8443 | { "_size_t","_wxCoord",0}, | |
8444 | { "_size_t","_wxPrintQuality",0}, | |
8445 | { "_size_t","_time_t",0}, | |
8446 | { "_size_t","_unsigned_int",0}, | |
8447 | { "_size_t","_int",0}, | |
8448 | { "_size_t","_wxWindowID",0}, | |
8449 | { "_size_t","_uint",0}, | |
8450 | { "_uint","_wxCoord",0}, | |
8451 | { "_uint","_wxPrintQuality",0}, | |
8452 | { "_uint","_time_t",0}, | |
8453 | { "_uint","_size_t",0}, | |
8454 | { "_uint","_unsigned_int",0}, | |
8455 | { "_uint","_int",0}, | |
8456 | { "_uint","_wxWindowID",0}, | |
8457 | { "_wxChar","_char",0}, | |
8458 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8459 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8460 | { "_char","_wxChar",0}, | |
8461 | { "_EBool","_wxCoord",0}, | |
8462 | { "_EBool","_wxPrintQuality",0}, | |
8463 | { "_EBool","_signed_int",0}, | |
8464 | { "_EBool","_int",0}, | |
8465 | { "_EBool","_wxWindowID",0}, | |
8466 | { "_unsigned_long","_long",0}, | |
8467 | { "_signed_int","_wxCoord",0}, | |
8468 | { "_signed_int","_wxPrintQuality",0}, | |
8469 | { "_signed_int","_EBool",0}, | |
8470 | { "_signed_int","_wxWindowID",0}, | |
8471 | { "_signed_int","_int",0}, | |
8472 | { "_WXTYPE","_short",0}, | |
8473 | { "_WXTYPE","_signed_short",0}, | |
8474 | { "_WXTYPE","_unsigned_short",0}, | |
8475 | { "_unsigned_short","_WXTYPE",0}, | |
8476 | { "_unsigned_short","_short",0}, | |
8477 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
8478 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
8479 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
8480 | { "_wxObject","_wxListCtrl",SwigwxListCtrlTowxObject}, | |
8481 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
8482 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
8483 | { "_signed_short","_WXTYPE",0}, | |
8484 | { "_signed_short","_short",0}, | |
8485 | { "_unsigned_char","_byte",0}, | |
8486 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
8487 | { "_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8488 | { "_unsigned_int","_wxCoord",0}, | |
8489 | { "_unsigned_int","_wxPrintQuality",0}, | |
8490 | { "_unsigned_int","_time_t",0}, | |
8491 | { "_unsigned_int","_size_t",0}, | |
8492 | { "_unsigned_int","_uint",0}, | |
8493 | { "_unsigned_int","_wxWindowID",0}, | |
8494 | { "_unsigned_int","_int",0}, | |
8495 | { "_short","_WXTYPE",0}, | |
8496 | { "_short","_unsigned_short",0}, | |
8497 | { "_short","_signed_short",0}, | |
8498 | { "_wxWindowID","_wxCoord",0}, | |
8499 | { "_wxWindowID","_wxPrintQuality",0}, | |
8500 | { "_wxWindowID","_time_t",0}, | |
8501 | { "_wxWindowID","_size_t",0}, | |
8502 | { "_wxWindowID","_EBool",0}, | |
8503 | { "_wxWindowID","_uint",0}, | |
8504 | { "_wxWindowID","_int",0}, | |
8505 | { "_wxWindowID","_signed_int",0}, | |
8506 | { "_wxWindowID","_unsigned_int",0}, | |
8507 | { "_int","_wxCoord",0}, | |
8508 | { "_int","_wxPrintQuality",0}, | |
8509 | { "_int","_time_t",0}, | |
8510 | { "_int","_size_t",0}, | |
8511 | { "_int","_EBool",0}, | |
8512 | { "_int","_uint",0}, | |
8513 | { "_int","_wxWindowID",0}, | |
8514 | { "_int","_unsigned_int",0}, | |
8515 | { "_int","_signed_int",0}, | |
8516 | { "_time_t","_wxCoord",0}, | |
8517 | { "_time_t","_wxPrintQuality",0}, | |
8518 | { "_time_t","_unsigned_int",0}, | |
8519 | { "_time_t","_int",0}, | |
8520 | { "_time_t","_wxWindowID",0}, | |
8521 | { "_time_t","_uint",0}, | |
8522 | { "_time_t","_size_t",0}, | |
8523 | { "_wxCoord","_int",0}, | |
8524 | { "_wxCoord","_signed_int",0}, | |
8525 | { "_wxCoord","_unsigned_int",0}, | |
8526 | { "_wxCoord","_wxWindowID",0}, | |
8527 | { "_wxCoord","_uint",0}, | |
8528 | { "_wxCoord","_EBool",0}, | |
8529 | { "_wxCoord","_size_t",0}, | |
8530 | { "_wxCoord","_time_t",0}, | |
8531 | { "_wxCoord","_wxPrintQuality",0}, | |
8532 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
8533 | { "_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
8534 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
8535 | { "_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8536 | {0,0,0}}; | |
8537 | ||
8538 | static PyObject *SWIG_globals; | |
8539 | #ifdef __cplusplus | |
8540 | extern "C" | |
8541 | #endif | |
8542 | SWIGEXPORT(void) initcontrols2c() { | |
8543 | PyObject *m, *d; | |
8544 | SWIG_globals = SWIG_newvarlink(); | |
8545 | m = Py_InitModule("controls2c", controls2cMethods); | |
8546 | d = PyModule_GetDict(m); | |
8547 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); | |
8548 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
8549 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
8550 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); | |
8551 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
8552 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); | |
8553 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
8554 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
8555 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
8556 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
8557 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
8558 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
8559 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
8560 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
8561 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
8562 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
8563 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
8564 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
8565 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
8566 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
8567 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
8568 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
8569 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
8570 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
8571 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
8572 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
8573 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
8574 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
8575 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
8576 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
8577 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); | |
8578 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
8579 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
8580 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
8581 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
8582 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
8583 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
8584 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
8585 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
8586 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); | |
8587 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
8588 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
8589 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
8590 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
8591 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
8592 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
8593 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
8594 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
8595 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
8596 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
8597 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
8598 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
8599 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
8600 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
8601 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
8602 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
8603 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
8604 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
8605 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
8606 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
8607 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
8608 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
8609 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
8610 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
8611 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
8612 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
8613 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); | |
8614 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
8615 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
8616 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
8617 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
8618 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
8619 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
8620 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
8621 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
8622 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
8623 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
8624 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); | |
8625 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
8626 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); | |
8627 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
8628 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
8629 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
8630 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
8631 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); | |
8632 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
8633 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
8634 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
8635 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
8636 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
8637 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
8638 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
8639 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
8640 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
8641 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
8642 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
8643 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
8644 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
8645 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
8646 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
8647 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
8648 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
8649 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
8650 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
8651 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
8652 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
8653 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
8654 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
8655 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
8656 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
8657 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
8658 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
8659 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
8660 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
8661 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
8662 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); | |
8663 | ||
8664 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
8665 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
8666 | { | |
8667 | int i; | |
8668 | for (i = 0; _swig_mapping[i].n1; i++) | |
8669 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8670 | } | |
8671 | } |