]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
51 | ||
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
93 | #ifdef __cplusplus | |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
105 | swig_dycast_func dcast; | |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
136 | #include "Python.h" | |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
166 | /* Common SWIG API */ | |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
173 | ||
174 | /* Python-specific SWIG API */ | |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
210 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
211 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
212 | #define SWIGTYPE_p_wxCheckBox swig_types[3] | |
213 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] | |
214 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
215 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] | |
216 | #define SWIGTYPE_p_bool swig_types[7] | |
217 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
218 | #define SWIGTYPE_p_wxItemContainer swig_types[9] | |
219 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10] | |
220 | #define SWIGTYPE_p_wxPyListCtrl swig_types[11] | |
221 | #define SWIGTYPE_p_wxStaticLine swig_types[12] | |
222 | #define SWIGTYPE_p_wxControl swig_types[13] | |
223 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
224 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
225 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
226 | #define SWIGTYPE_p_wxFont swig_types[17] | |
227 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
228 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
229 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
230 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
231 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
232 | #define SWIGTYPE_p_void swig_types[23] | |
233 | #define SWIGTYPE_p_int swig_types[24] | |
234 | #define SWIGTYPE_p_wxSize swig_types[25] | |
235 | #define SWIGTYPE_p_wxDC swig_types[26] | |
236 | #define SWIGTYPE_p_wxListView swig_types[27] | |
237 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
238 | #define SWIGTYPE_p_wxTextCtrl swig_types[29] | |
239 | #define SWIGTYPE_p_wxNotebook swig_types[30] | |
240 | #define SWIGTYPE_p_wxNotifyEvent swig_types[31] | |
241 | #define SWIGTYPE_p_wxArrayString swig_types[32] | |
242 | #define SWIGTYPE_p_wxListbook swig_types[33] | |
243 | #define SWIGTYPE_p_wxStaticBitmap swig_types[34] | |
244 | #define SWIGTYPE_p_wxSlider swig_types[35] | |
245 | #define SWIGTYPE_p_wxStaticBox swig_types[36] | |
246 | #define SWIGTYPE_p_wxArrayInt swig_types[37] | |
247 | #define SWIGTYPE_p_wxContextHelp swig_types[38] | |
248 | #define SWIGTYPE_p_long swig_types[39] | |
249 | #define SWIGTYPE_p_wxEvtHandler swig_types[40] | |
250 | #define SWIGTYPE_p_wxListEvent swig_types[41] | |
251 | #define SWIGTYPE_p_wxListBox swig_types[42] | |
252 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] | |
253 | #define SWIGTYPE_p_wxBookCtrl swig_types[44] | |
254 | #define SWIGTYPE_p_wxSpinButton swig_types[45] | |
255 | #define SWIGTYPE_p_wxButton swig_types[46] | |
256 | #define SWIGTYPE_p_wxBitmapButton swig_types[47] | |
257 | #define SWIGTYPE_p_wxRect swig_types[48] | |
258 | #define SWIGTYPE_p_wxContextHelpButton swig_types[49] | |
259 | #define SWIGTYPE_p_wxRadioBox swig_types[50] | |
260 | #define SWIGTYPE_p_wxScrollBar swig_types[51] | |
261 | #define SWIGTYPE_p_char swig_types[52] | |
262 | #define SWIGTYPE_p_wxTreeItemId swig_types[53] | |
263 | #define SWIGTYPE_p_wxComboBox swig_types[54] | |
264 | #define SWIGTYPE_p_wxHelpEvent swig_types[55] | |
265 | #define SWIGTYPE_p_wxListItem swig_types[56] | |
266 | #define SWIGTYPE_p_wxNotebookSizer swig_types[57] | |
267 | #define SWIGTYPE_p_wxSpinEvent swig_types[58] | |
268 | #define SWIGTYPE_p_wxGenericDragImage swig_types[59] | |
269 | #define SWIGTYPE_p_wxSpinCtrl swig_types[60] | |
270 | #define SWIGTYPE_p_wxImageList swig_types[61] | |
271 | #define SWIGTYPE_p_wxHelpProvider swig_types[62] | |
272 | #define SWIGTYPE_p_wxTextAttr swig_types[63] | |
273 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[64] | |
274 | #define SWIGTYPE_p_wxPoint swig_types[65] | |
275 | #define SWIGTYPE_p_wxListbookEvent swig_types[66] | |
276 | #define SWIGTYPE_p_wxNotebookEvent swig_types[67] | |
277 | #define SWIGTYPE_p_wxObject swig_types[68] | |
278 | #define SWIGTYPE_p_wxCursor swig_types[69] | |
279 | #define SWIGTYPE_p_wxKeyEvent swig_types[70] | |
280 | #define SWIGTYPE_p_wxWindow swig_types[71] | |
281 | #define SWIGTYPE_p_wxString swig_types[72] | |
282 | #define SWIGTYPE_p_wxBitmap swig_types[73] | |
283 | #define SWIGTYPE_p_wxTreeEvent swig_types[74] | |
284 | #define SWIGTYPE_p_wxMouseEvent swig_types[75] | |
285 | #define SWIGTYPE_p_wxCommandEvent swig_types[76] | |
286 | #define SWIGTYPE_p_wxStaticText swig_types[77] | |
287 | #define SWIGTYPE_p_wxControlWithItems swig_types[78] | |
288 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[79] | |
289 | #define SWIGTYPE_p_wxColour swig_types[80] | |
290 | #define SWIGTYPE_p_wxToolBar swig_types[81] | |
291 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[82] | |
292 | #define SWIGTYPE_p_wxValidator swig_types[83] | |
293 | static swig_type_info *swig_types[85]; | |
294 | ||
295 | /* -------- TYPES TABLE (END) -------- */ | |
296 | ||
297 | ||
298 | /*----------------------------------------------- | |
299 | @(target):= _controls.so | |
300 | ------------------------------------------------*/ | |
301 | #define SWIG_init init_controls | |
302 | ||
303 | #define SWIG_name "_controls" | |
304 | ||
305 | /* Auxiliar swig macros */ | |
306 | ||
307 | #ifdef __cplusplus | |
308 | #define SWIGSTATICINLINE(a) static inline a | |
309 | #define SWIGSTATIC(a) static a | |
310 | #define swig_new_array(type, size) (new type[(size)]) | |
311 | #define swig_delete_array(cptr) delete[] cptr | |
312 | #define swig_const_cast(type,a) const_cast<type>(a) | |
313 | #define swig_static_cast(type,a) static_cast<type>(a) | |
314 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
315 | ||
316 | #ifdef HAVE_NUMERIC_CAST | |
317 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
318 | #else | |
319 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
320 | #endif | |
321 | ||
322 | #else /* C case */ | |
323 | ||
324 | #define SWIGSTATICINLINE(a) static a | |
325 | #define SWIGSTATIC(a) static a | |
326 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
327 | #define swig_delete_array(cptr) free((char*)cptr) | |
328 | #define swig_const_cast(type,a) (type)(a) | |
329 | #define swig_static_cast(type,a) (type)(a) | |
330 | #define swig_reinterpret_cast(type,a) (type)(a) | |
331 | #define swig_numeric_cast(type,a) (type)(a) | |
332 | ||
333 | #endif /* __cplusplus */ | |
334 | ||
335 | ||
336 | #define SWIG_FromSignedChar PyInt_FromLong | |
337 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
338 | #define SWIG_FromShort PyInt_FromLong | |
339 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
340 | #define SWIG_FromInt PyInt_FromLong | |
341 | #define SWIG_FromLong PyInt_FromLong | |
342 | #define SWIG_FromFloat PyFloat_FromDouble | |
343 | #define SWIG_FromDouble PyFloat_FromDouble | |
344 | #define SWIG_FromFloat PyFloat_FromDouble | |
345 | #define SWIG_FromDouble PyFloat_FromDouble | |
346 | ||
347 | ||
348 | #include "wx/wxPython/wxPython.h" | |
349 | #include "wx/wxPython/pyclasses.h" | |
350 | ||
351 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
352 | static const wxString wxPyEmptyString(wxEmptyString); | |
353 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
354 | ||
355 | const wxArrayString wxPyEmptyStringArray; | |
356 | ||
357 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
358 | ||
359 | #include <limits.h> | |
360 | ||
361 | ||
362 | SWIGSTATICINLINE(long) | |
363 | SWIG_CheckLongInRange(long value, const char* type, | |
364 | long min_value, long max_value) | |
365 | { | |
366 | if (!PyErr_Occurred()) { | |
367 | if (value < min_value) { | |
368 | PyObject *err = | |
369 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
370 | value, type, min_value); | |
371 | ||
372 | PyErr_SetObject(PyExc_OverflowError, err); | |
373 | Py_DECREF(err); | |
374 | } else if (value > max_value) { | |
375 | PyObject *err = | |
376 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
377 | value, type, max_value); | |
378 | PyErr_SetObject(PyExc_OverflowError, err); | |
379 | Py_DECREF(err); | |
380 | } | |
381 | } | |
382 | return value; | |
383 | } | |
384 | ||
385 | ||
386 | SWIGSTATICINLINE(long) | |
387 | SWIG_AsLong(PyObject * obj) | |
388 | { | |
389 | if (PyNumber_Check(obj)) | |
390 | return PyInt_AsLong(obj); | |
391 | else { | |
392 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
393 | obj->ob_type->tp_name); | |
394 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
395 | Py_DECREF(errmsg); | |
396 | return 0; | |
397 | } | |
398 | } | |
399 | ||
400 | ||
401 | #if INT_MAX != LONG_MAX | |
402 | SWIGSTATICINLINE(int) | |
403 | SWIG_AsInt(PyObject *obj) | |
404 | { | |
405 | return swig_numeric_cast(int, | |
406 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
407 | "int", INT_MIN, INT_MAX)); | |
408 | } | |
409 | #else | |
410 | #define SWIG_AsInt SWIG_AsLong | |
411 | #endif | |
412 | ||
413 | ||
414 | SWIGSTATICINLINE(int) | |
415 | SWIG_CheckInt(PyObject* obj) | |
416 | { | |
417 | SWIG_AsInt(obj); | |
418 | if (PyErr_Occurred()) { | |
419 | PyErr_Clear(); | |
420 | return 0; | |
421 | } else { | |
422 | return 1; | |
423 | } | |
424 | } | |
425 | ||
426 | ||
427 | SWIGSTATICINLINE(int) | |
428 | SWIG_CheckLong(PyObject* obj) | |
429 | { | |
430 | SWIG_AsLong(obj); | |
431 | if (PyErr_Occurred()) { | |
432 | PyErr_Clear(); | |
433 | return 0; | |
434 | } else { | |
435 | return 1; | |
436 | } | |
437 | } | |
438 | ||
439 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); | |
440 | ||
441 | SWIGSTATICINLINE(bool) | |
442 | SWIG_AsBool(PyObject *obj) | |
443 | { | |
444 | return PyObject_IsTrue(obj) ? true : false; | |
445 | } | |
446 | ||
447 | ||
448 | SWIGSTATICINLINE(int) | |
449 | SWIG_CheckBool(PyObject* obj) | |
450 | { | |
451 | SWIG_AsBool(obj); | |
452 | if (PyErr_Occurred()) { | |
453 | PyErr_Clear(); | |
454 | return 0; | |
455 | } else { | |
456 | return 1; | |
457 | } | |
458 | } | |
459 | ||
460 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
461 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
462 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
463 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
464 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
465 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
466 | ||
467 | #include <wx/checklst.h> | |
468 | ||
469 | ||
470 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
471 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ | |
472 | if (clientData) { | |
473 | wxPyClientData* data = new wxPyClientData(clientData); | |
474 | self->Insert(item, pos, data); | |
475 | } else | |
476 | self->Insert(item, pos); | |
477 | } | |
478 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
479 | wxArrayInt lst; | |
480 | self->GetSelections(lst); | |
481 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
482 | for(size_t i=0; i<lst.GetCount(); i++) { | |
483 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
484 | } | |
485 | return tup; | |
486 | } | |
487 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ | |
488 | #ifdef __WXMSW__ | |
489 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
490 | self->GetItem(item)->SetTextColour(c); | |
491 | #endif | |
492 | } | |
493 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
494 | #ifdef __WXMSW__ | |
495 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
496 | self->GetItem(item)->SetBackgroundColour(c); | |
497 | #endif | |
498 | } | |
499 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
500 | #ifdef __WXMSW__ | |
501 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
502 | self->GetItem(item)->SetFont(f); | |
503 | #endif | |
504 | } | |
505 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
506 | ||
507 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
508 | PyObject* o2; | |
509 | PyObject* o3; | |
510 | ||
511 | if (!target) { | |
512 | target = o; | |
513 | } else if (target == Py_None) { | |
514 | Py_DECREF(Py_None); | |
515 | target = o; | |
516 | } else { | |
517 | if (!PyTuple_Check(target)) { | |
518 | o2 = target; | |
519 | target = PyTuple_New(1); | |
520 | PyTuple_SetItem(target, 0, o2); | |
521 | } | |
522 | o3 = PyTuple_New(1); | |
523 | PyTuple_SetItem(o3, 0, o); | |
524 | ||
525 | o2 = target; | |
526 | target = PySequence_Concat(o2, o3); | |
527 | Py_DECREF(o2); | |
528 | Py_DECREF(o3); | |
529 | } | |
530 | return target; | |
531 | } | |
532 | ||
533 | ||
534 | SWIGSTATICINLINE(unsigned long) | |
535 | SWIG_AsUnsignedLong(PyObject * obj) | |
536 | { | |
537 | if (PyLong_Check(obj)) { | |
538 | return PyLong_AsUnsignedLong(obj); | |
539 | } else { | |
540 | long i = SWIG_AsLong(obj); | |
541 | if ( !PyErr_Occurred() && (i < 0)) { | |
542 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
543 | } | |
544 | return i; | |
545 | } | |
546 | } | |
547 | ||
548 | ||
549 | SWIGSTATICINLINE(int) | |
550 | SWIG_CheckUnsignedLong(PyObject* obj) | |
551 | { | |
552 | SWIG_AsUnsignedLong(obj); | |
553 | if (PyErr_Occurred()) { | |
554 | PyErr_Clear(); | |
555 | return 0; | |
556 | } else { | |
557 | return 1; | |
558 | } | |
559 | } | |
560 | ||
561 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
562 | self->AppendText(text); | |
563 | } | |
564 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
565 | return self->GetValue().Mid(from, to - from); | |
566 | } | |
567 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
568 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
569 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
570 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
571 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
572 | int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } | |
573 | int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
574 | int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
575 | ||
576 | #include <wx/slider.h> | |
577 | ||
578 | ||
579 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
580 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
581 | ||
582 | #if !wxUSE_TOGGLEBTN | |
583 | // implement dummy items for platforms that don't have this class | |
584 | ||
585 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
586 | ||
587 | class wxToggleButton : public wxControl | |
588 | { | |
589 | public: | |
590 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
591 | const wxPoint&, const wxSize&, long, | |
592 | const wxValidator&, const wxString&) | |
593 | { wxPyRaiseNotImplemented(); } | |
594 | ||
595 | wxToggleButton() | |
596 | { wxPyRaiseNotImplemented(); } | |
597 | }; | |
598 | #endif | |
599 | ||
600 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); | |
601 | ||
602 | SWIGSTATICINLINE(PyObject* ) | |
603 | SWIG_FromUnsignedLong(unsigned long value) | |
604 | { | |
605 | return (value > LONG_MAX) ? | |
606 | PyLong_FromUnsignedLong(value) | |
607 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
608 | } | |
609 | ||
610 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
611 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ | |
612 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
613 | if (udata) { | |
614 | Py_INCREF(udata->m_obj); | |
615 | return udata->m_obj; | |
616 | } else { | |
617 | Py_INCREF(Py_None); | |
618 | return Py_None; | |
619 | } | |
620 | } | |
621 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
622 | self->SetClientData(new wxPyUserData(clientData)); | |
623 | } | |
624 | wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
625 | wxPyUserData* udata = NULL; | |
626 | if (clientData && clientData != Py_None) | |
627 | udata = new wxPyUserData(clientData); | |
628 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
629 | shortHelp, longHelp, udata); | |
630 | } | |
631 | wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
632 | wxPyUserData* udata = NULL; | |
633 | if (clientData && clientData != Py_None) | |
634 | udata = new wxPyUserData(clientData); | |
635 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
636 | shortHelp, longHelp, udata); | |
637 | } | |
638 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
639 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
640 | if (udata) { | |
641 | Py_INCREF(udata->m_obj); | |
642 | return udata->m_obj; | |
643 | } else { | |
644 | Py_INCREF(Py_None); | |
645 | return Py_None; | |
646 | } | |
647 | } | |
648 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
649 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
650 | } | |
651 | ||
652 | #include <wx/listctrl.h> | |
653 | ||
654 | ||
655 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); | |
656 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } | |
657 | // Python aware sorting function for wxPyListCtrl | |
658 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
659 | int retval = 0; | |
660 | PyObject* func = (PyObject*)funcPtr; | |
661 | bool blocked = wxPyBeginBlockThreads(); | |
662 | ||
663 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
664 | PyObject* result = PyEval_CallObject(func, args); | |
665 | Py_DECREF(args); | |
666 | if (result) { | |
667 | retval = PyInt_AsLong(result); | |
668 | Py_DECREF(result); | |
669 | } | |
670 | ||
671 | wxPyEndBlockThreads(blocked); | |
672 | return retval; | |
673 | } | |
674 | ||
675 | // C++ Version of a Python aware class | |
676 | class wxPyListCtrl : public wxListCtrl { | |
677 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
678 | public: | |
679 | wxPyListCtrl() : wxListCtrl() {} | |
680 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
681 | const wxPoint& pos, | |
682 | const wxSize& size, | |
683 | long style, | |
684 | const wxValidator& validator, | |
685 | const wxString& name) : | |
686 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
687 | ||
688 | bool Create(wxWindow* parent, wxWindowID id, | |
689 | const wxPoint& pos, | |
690 | const wxSize& size, | |
691 | long style, | |
692 | const wxValidator& validator, | |
693 | const wxString& name) { | |
694 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
695 | } | |
696 | ||
697 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
698 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
699 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
700 | ||
701 | PYPRIVATE; | |
702 | }; | |
703 | ||
704 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
705 | ||
706 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
707 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
708 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
709 | ||
710 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
711 | wxListItem item; | |
712 | item.SetMask( wxLIST_MASK_STATE | | |
713 | wxLIST_MASK_TEXT | | |
714 | wxLIST_MASK_IMAGE | | |
715 | wxLIST_MASK_DATA | | |
716 | wxLIST_SET_ITEM | | |
717 | wxLIST_MASK_WIDTH | | |
718 | wxLIST_MASK_FORMAT | |
719 | ); | |
720 | if (self->GetColumn(col, item)) | |
721 | return new wxListItem(item); | |
722 | else | |
723 | return NULL; | |
724 | } | |
725 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
726 | wxListItem* info = new wxListItem; | |
727 | info->m_itemId = itemId; | |
728 | info->m_col = col; | |
729 | info->m_mask = 0xFFFF; | |
730 | self->GetItem(*info); | |
731 | return info; | |
732 | } | |
733 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
734 | wxPoint pos; | |
735 | self->GetItemPosition(item, pos); | |
736 | return pos; | |
737 | } | |
738 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
739 | wxRect rect; | |
740 | self->GetItemRect(item, rect, code); | |
741 | return rect; | |
742 | } | |
743 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
744 | if (!PyCallable_Check(func)) | |
745 | return False; | |
746 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); | |
747 | } | |
748 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
749 | ||
750 | ||
751 | ||
752 | return (wxWindow*)self->m_mainWin; | |
753 | ||
754 | } | |
755 | ||
756 | #include <wx/treectrl.h> | |
757 | #include "wx/wxPython/pytree.h" | |
758 | ||
759 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
760 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } | |
761 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
762 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
763 | // C++ version of Python aware wxTreeCtrl | |
764 | class wxPyTreeCtrl : public wxTreeCtrl { | |
765 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
766 | public: | |
767 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
768 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
769 | const wxPoint& pos, | |
770 | const wxSize& size, | |
771 | long style, | |
772 | const wxValidator& validator, | |
773 | const wxString& name) : | |
774 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
775 | ||
776 | bool Create(wxWindow *parent, wxWindowID id, | |
777 | const wxPoint& pos, | |
778 | const wxSize& size, | |
779 | long style, | |
780 | const wxValidator& validator, | |
781 | const wxString& name) { | |
782 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
783 | } | |
784 | ||
785 | ||
786 | int OnCompareItems(const wxTreeItemId& item1, | |
787 | const wxTreeItemId& item2) { | |
788 | int rval = 0; | |
789 | bool found; | |
790 | bool blocked = wxPyBeginBlockThreads(); | |
791 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
792 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); | |
793 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
794 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); | |
795 | Py_DECREF(o1); | |
796 | Py_DECREF(o2); | |
797 | } | |
798 | wxPyEndBlockThreads(blocked); | |
799 | if (! found) | |
800 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
801 | return rval; | |
802 | } | |
803 | PYPRIVATE; | |
804 | }; | |
805 | ||
806 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
807 | ||
808 | ||
809 | ||
810 | #if UINT_MAX < LONG_MAX | |
811 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
812 | #else | |
813 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
814 | #endif | |
815 | ||
816 | ||
817 | SWIGSTATICINLINE(unsigned long) | |
818 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
819 | unsigned long max_value) | |
820 | { | |
821 | if (!PyErr_Occurred()) { | |
822 | if (value > max_value) { | |
823 | PyObject *err = | |
824 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
825 | value, type, max_value); | |
826 | PyErr_SetObject(PyExc_OverflowError, err); | |
827 | Py_DECREF(err); | |
828 | } | |
829 | } | |
830 | return value; | |
831 | } | |
832 | ||
833 | ||
834 | #if UINT_MAX != ULONG_MAX | |
835 | SWIGSTATICINLINE(unsigned int) | |
836 | SWIG_AsUnsignedInt(PyObject *obj) | |
837 | { | |
838 | return swig_numeric_cast(unsigned int, | |
839 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
840 | "unsigned int", UINT_MAX)); | |
841 | } | |
842 | #else | |
843 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
844 | #endif | |
845 | ||
846 | ||
847 | SWIGSTATICINLINE(int) | |
848 | SWIG_CheckUnsignedInt(PyObject* obj) | |
849 | { | |
850 | SWIG_AsUnsignedInt(obj); | |
851 | if (PyErr_Occurred()) { | |
852 | PyErr_Clear(); | |
853 | return 0; | |
854 | } else { | |
855 | return 1; | |
856 | } | |
857 | } | |
858 | ||
859 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
860 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
861 | if (data == NULL) { | |
862 | data = new wxPyTreeItemData(); | |
863 | data->SetId(item); // set the id | |
864 | self->SetItemData(item, data); | |
865 | } | |
866 | return data; | |
867 | } | |
868 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
869 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
870 | if (data == NULL) { | |
871 | data = new wxPyTreeItemData(); | |
872 | data->SetId(item); // set the id | |
873 | self->SetItemData(item, data); | |
874 | } | |
875 | return data->GetData(); | |
876 | } | |
877 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
878 | data->SetId(item); // set the id | |
879 | self->SetItemData(item, data); | |
880 | } | |
881 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
882 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
883 | if (data == NULL) { | |
884 | data = new wxPyTreeItemData(obj); | |
885 | data->SetId(item); // set the id | |
886 | self->SetItemData(item, data); | |
887 | } else | |
888 | data->SetData(obj); | |
889 | } | |
890 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
891 | bool blocked = wxPyBeginBlockThreads(); | |
892 | PyObject* rval = PyList_New(0); | |
893 | wxArrayTreeItemIds array; | |
894 | size_t num, x; | |
895 | num = self->GetSelections(array); | |
896 | for (x=0; x < num; x++) { | |
897 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
898 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); | |
899 | PyList_Append(rval, item); | |
900 | } | |
901 | wxPyEndBlockThreads(blocked); | |
902 | return rval; | |
903 | } | |
904 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
905 | void* cookie = 0; | |
906 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
907 | bool blocked = wxPyBeginBlockThreads(); | |
908 | PyObject* tup = PyTuple_New(2); | |
909 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
910 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
911 | wxPyEndBlockThreads(blocked); | |
912 | return tup; | |
913 | } | |
914 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ | |
915 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
916 | bool blocked = wxPyBeginBlockThreads(); | |
917 | PyObject* tup = PyTuple_New(2); | |
918 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
919 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
920 | wxPyEndBlockThreads(blocked); | |
921 | return tup; | |
922 | } | |
923 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
924 | wxRect rect; | |
925 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
926 | bool blocked = wxPyBeginBlockThreads(); | |
927 | wxRect* r = new wxRect(rect); | |
928 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); | |
929 | wxPyEndBlockThreads(blocked); | |
930 | return val; | |
931 | } | |
932 | else | |
933 | RETURN_NONE(); | |
934 | } | |
935 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
936 | // C++ version of Python aware wxControl | |
937 | class wxPyControl : public wxControl | |
938 | { | |
939 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
940 | public: | |
941 | wxPyControl() : wxControl() {} | |
942 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
943 | const wxPoint& pos = wxDefaultPosition, | |
944 | const wxSize& size = wxDefaultSize, | |
945 | long style = 0, | |
946 | const wxValidator& validator=wxDefaultValidator, | |
947 | const wxString& name = wxPyControlNameStr) | |
948 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
949 | ||
950 | ||
951 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
952 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
953 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
954 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
955 | ||
956 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
957 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
958 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
959 | ||
960 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
961 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
962 | ||
963 | DEC_PYCALLBACK__(InitDialog); | |
964 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
965 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
966 | DEC_PYCALLBACK_BOOL_(Validate); | |
967 | ||
968 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
969 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
970 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
971 | ||
972 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
973 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
974 | ||
975 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); | |
976 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); | |
977 | ||
978 | PYPRIVATE; | |
979 | }; | |
980 | ||
981 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
982 | ||
983 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
984 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
985 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
986 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
987 | ||
988 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
989 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
990 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
991 | ||
992 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
993 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
994 | ||
995 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
996 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
997 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
998 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
999 | ||
1000 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1001 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1002 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1003 | ||
1004 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1005 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1006 | ||
1007 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours); | |
1008 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); | |
1009 | ||
1010 | ||
1011 | ||
1012 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
1013 | ||
1014 | #include <wx/generic/dragimgg.h> | |
1015 | ||
1016 | #ifdef __cplusplus | |
1017 | extern "C" { | |
1018 | #endif | |
1019 | static int _wrap_ButtonNameStr_set(PyObject *_val) { | |
1020 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
1021 | return 1; | |
1022 | } | |
1023 | ||
1024 | ||
1025 | static PyObject *_wrap_ButtonNameStr_get() { | |
1026 | PyObject *pyobj; | |
1027 | ||
1028 | { | |
1029 | #if wxUSE_UNICODE | |
1030 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1031 | #else | |
1032 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1033 | #endif | |
1034 | } | |
1035 | return pyobj; | |
1036 | } | |
1037 | ||
1038 | ||
1039 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1040 | PyObject *resultobj; | |
1041 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1042 | int arg2 ; | |
1043 | wxString *arg3 = 0 ; | |
1044 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1045 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1046 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1047 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1048 | long arg6 = (long) 0 ; | |
1049 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1050 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1051 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1052 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1053 | wxButton *result; | |
1054 | bool temp3 = False ; | |
1055 | wxPoint temp4 ; | |
1056 | wxSize temp5 ; | |
1057 | bool temp8 = False ; | |
1058 | PyObject * obj0 = 0 ; | |
1059 | PyObject * obj1 = 0 ; | |
1060 | PyObject * obj2 = 0 ; | |
1061 | PyObject * obj3 = 0 ; | |
1062 | PyObject * obj4 = 0 ; | |
1063 | PyObject * obj5 = 0 ; | |
1064 | PyObject * obj6 = 0 ; | |
1065 | PyObject * obj7 = 0 ; | |
1066 | char *kwnames[] = { | |
1067 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1068 | }; | |
1069 | ||
1070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1073 | arg2 = (int) SWIG_AsInt(obj1); | |
1074 | if (PyErr_Occurred()) SWIG_fail; | |
1075 | { | |
1076 | arg3 = wxString_in_helper(obj2); | |
1077 | if (arg3 == NULL) SWIG_fail; | |
1078 | temp3 = True; | |
1079 | } | |
1080 | if (obj3) { | |
1081 | { | |
1082 | arg4 = &temp4; | |
1083 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1084 | } | |
1085 | } | |
1086 | if (obj4) { | |
1087 | { | |
1088 | arg5 = &temp5; | |
1089 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1090 | } | |
1091 | } | |
1092 | if (obj5) { | |
1093 | arg6 = (long) SWIG_AsLong(obj5); | |
1094 | if (PyErr_Occurred()) SWIG_fail; | |
1095 | } | |
1096 | if (obj6) { | |
1097 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1098 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1099 | SWIG_fail; | |
1100 | if (arg7 == NULL) { | |
1101 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1102 | SWIG_fail; | |
1103 | } | |
1104 | } | |
1105 | if (obj7) { | |
1106 | { | |
1107 | arg8 = wxString_in_helper(obj7); | |
1108 | if (arg8 == NULL) SWIG_fail; | |
1109 | temp8 = True; | |
1110 | } | |
1111 | } | |
1112 | { | |
1113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1114 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1115 | ||
1116 | wxPyEndAllowThreads(__tstate); | |
1117 | if (PyErr_Occurred()) SWIG_fail; | |
1118 | } | |
1119 | { | |
1120 | resultobj = wxPyMake_wxObject(result); | |
1121 | } | |
1122 | { | |
1123 | if (temp3) | |
1124 | delete arg3; | |
1125 | } | |
1126 | { | |
1127 | if (temp8) | |
1128 | delete arg8; | |
1129 | } | |
1130 | return resultobj; | |
1131 | fail: | |
1132 | { | |
1133 | if (temp3) | |
1134 | delete arg3; | |
1135 | } | |
1136 | { | |
1137 | if (temp8) | |
1138 | delete arg8; | |
1139 | } | |
1140 | return NULL; | |
1141 | } | |
1142 | ||
1143 | ||
1144 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1145 | PyObject *resultobj; | |
1146 | wxButton *result; | |
1147 | char *kwnames[] = { | |
1148 | NULL | |
1149 | }; | |
1150 | ||
1151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1152 | { | |
1153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1154 | result = (wxButton *)new wxButton(); | |
1155 | ||
1156 | wxPyEndAllowThreads(__tstate); | |
1157 | if (PyErr_Occurred()) SWIG_fail; | |
1158 | } | |
1159 | { | |
1160 | resultobj = wxPyMake_wxObject(result); | |
1161 | } | |
1162 | return resultobj; | |
1163 | fail: | |
1164 | return NULL; | |
1165 | } | |
1166 | ||
1167 | ||
1168 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1169 | PyObject *resultobj; | |
1170 | wxButton *arg1 = (wxButton *) 0 ; | |
1171 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1172 | int arg3 ; | |
1173 | wxString *arg4 = 0 ; | |
1174 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1175 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1176 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1177 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1178 | long arg7 = (long) 0 ; | |
1179 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1180 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1181 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1182 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1183 | bool result; | |
1184 | bool temp4 = False ; | |
1185 | wxPoint temp5 ; | |
1186 | wxSize temp6 ; | |
1187 | bool temp9 = False ; | |
1188 | PyObject * obj0 = 0 ; | |
1189 | PyObject * obj1 = 0 ; | |
1190 | PyObject * obj2 = 0 ; | |
1191 | PyObject * obj3 = 0 ; | |
1192 | PyObject * obj4 = 0 ; | |
1193 | PyObject * obj5 = 0 ; | |
1194 | PyObject * obj6 = 0 ; | |
1195 | PyObject * obj7 = 0 ; | |
1196 | PyObject * obj8 = 0 ; | |
1197 | char *kwnames[] = { | |
1198 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1199 | }; | |
1200 | ||
1201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
1202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, | |
1203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1206 | arg3 = (int) SWIG_AsInt(obj2); | |
1207 | if (PyErr_Occurred()) SWIG_fail; | |
1208 | { | |
1209 | arg4 = wxString_in_helper(obj3); | |
1210 | if (arg4 == NULL) SWIG_fail; | |
1211 | temp4 = True; | |
1212 | } | |
1213 | if (obj4) { | |
1214 | { | |
1215 | arg5 = &temp5; | |
1216 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1217 | } | |
1218 | } | |
1219 | if (obj5) { | |
1220 | { | |
1221 | arg6 = &temp6; | |
1222 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1223 | } | |
1224 | } | |
1225 | if (obj6) { | |
1226 | arg7 = (long) SWIG_AsLong(obj6); | |
1227 | if (PyErr_Occurred()) SWIG_fail; | |
1228 | } | |
1229 | if (obj7) { | |
1230 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1231 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1232 | SWIG_fail; | |
1233 | if (arg8 == NULL) { | |
1234 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1235 | SWIG_fail; | |
1236 | } | |
1237 | } | |
1238 | if (obj8) { | |
1239 | { | |
1240 | arg9 = wxString_in_helper(obj8); | |
1241 | if (arg9 == NULL) SWIG_fail; | |
1242 | temp9 = True; | |
1243 | } | |
1244 | } | |
1245 | { | |
1246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1247 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1248 | ||
1249 | wxPyEndAllowThreads(__tstate); | |
1250 | if (PyErr_Occurred()) SWIG_fail; | |
1251 | } | |
1252 | { | |
1253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1254 | } | |
1255 | { | |
1256 | if (temp4) | |
1257 | delete arg4; | |
1258 | } | |
1259 | { | |
1260 | if (temp9) | |
1261 | delete arg9; | |
1262 | } | |
1263 | return resultobj; | |
1264 | fail: | |
1265 | { | |
1266 | if (temp4) | |
1267 | delete arg4; | |
1268 | } | |
1269 | { | |
1270 | if (temp9) | |
1271 | delete arg9; | |
1272 | } | |
1273 | return NULL; | |
1274 | } | |
1275 | ||
1276 | ||
1277 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1278 | PyObject *resultobj; | |
1279 | wxButton *arg1 = (wxButton *) 0 ; | |
1280 | PyObject * obj0 = 0 ; | |
1281 | char *kwnames[] = { | |
1282 | (char *) "self", NULL | |
1283 | }; | |
1284 | ||
1285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, | |
1287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1288 | { | |
1289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1290 | (arg1)->SetDefault(); | |
1291 | ||
1292 | wxPyEndAllowThreads(__tstate); | |
1293 | if (PyErr_Occurred()) SWIG_fail; | |
1294 | } | |
1295 | Py_INCREF(Py_None); resultobj = Py_None; | |
1296 | return resultobj; | |
1297 | fail: | |
1298 | return NULL; | |
1299 | } | |
1300 | ||
1301 | ||
1302 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1303 | PyObject *resultobj; | |
1304 | wxSize result; | |
1305 | char *kwnames[] = { | |
1306 | NULL | |
1307 | }; | |
1308 | ||
1309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1310 | { | |
1311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1312 | result = wxButton::GetDefaultSize(); | |
1313 | ||
1314 | wxPyEndAllowThreads(__tstate); | |
1315 | if (PyErr_Occurred()) SWIG_fail; | |
1316 | } | |
1317 | { | |
1318 | wxSize * resultptr; | |
1319 | resultptr = new wxSize((wxSize &) result); | |
1320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
1321 | } | |
1322 | return resultobj; | |
1323 | fail: | |
1324 | return NULL; | |
1325 | } | |
1326 | ||
1327 | ||
1328 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1329 | PyObject *obj; | |
1330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1331 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1332 | Py_INCREF(obj); | |
1333 | return Py_BuildValue((char *)""); | |
1334 | } | |
1335 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1336 | PyObject *resultobj; | |
1337 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1338 | int arg2 ; | |
1339 | wxBitmap *arg3 = 0 ; | |
1340 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1341 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1342 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1343 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1344 | long arg6 = (long) wxBU_AUTODRAW ; | |
1345 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1346 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1347 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1348 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1349 | wxBitmapButton *result; | |
1350 | wxPoint temp4 ; | |
1351 | wxSize temp5 ; | |
1352 | bool temp8 = False ; | |
1353 | PyObject * obj0 = 0 ; | |
1354 | PyObject * obj1 = 0 ; | |
1355 | PyObject * obj2 = 0 ; | |
1356 | PyObject * obj3 = 0 ; | |
1357 | PyObject * obj4 = 0 ; | |
1358 | PyObject * obj5 = 0 ; | |
1359 | PyObject * obj6 = 0 ; | |
1360 | PyObject * obj7 = 0 ; | |
1361 | char *kwnames[] = { | |
1362 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1363 | }; | |
1364 | ||
1365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1368 | arg2 = (int) SWIG_AsInt(obj1); | |
1369 | if (PyErr_Occurred()) SWIG_fail; | |
1370 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1371 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1372 | SWIG_fail; | |
1373 | if (arg3 == NULL) { | |
1374 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1375 | SWIG_fail; | |
1376 | } | |
1377 | if (obj3) { | |
1378 | { | |
1379 | arg4 = &temp4; | |
1380 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1381 | } | |
1382 | } | |
1383 | if (obj4) { | |
1384 | { | |
1385 | arg5 = &temp5; | |
1386 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1387 | } | |
1388 | } | |
1389 | if (obj5) { | |
1390 | arg6 = (long) SWIG_AsLong(obj5); | |
1391 | if (PyErr_Occurred()) SWIG_fail; | |
1392 | } | |
1393 | if (obj6) { | |
1394 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1395 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1396 | SWIG_fail; | |
1397 | if (arg7 == NULL) { | |
1398 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1399 | SWIG_fail; | |
1400 | } | |
1401 | } | |
1402 | if (obj7) { | |
1403 | { | |
1404 | arg8 = wxString_in_helper(obj7); | |
1405 | if (arg8 == NULL) SWIG_fail; | |
1406 | temp8 = True; | |
1407 | } | |
1408 | } | |
1409 | { | |
1410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1411 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1412 | ||
1413 | wxPyEndAllowThreads(__tstate); | |
1414 | if (PyErr_Occurred()) SWIG_fail; | |
1415 | } | |
1416 | { | |
1417 | resultobj = wxPyMake_wxObject(result); | |
1418 | } | |
1419 | { | |
1420 | if (temp8) | |
1421 | delete arg8; | |
1422 | } | |
1423 | return resultobj; | |
1424 | fail: | |
1425 | { | |
1426 | if (temp8) | |
1427 | delete arg8; | |
1428 | } | |
1429 | return NULL; | |
1430 | } | |
1431 | ||
1432 | ||
1433 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1434 | PyObject *resultobj; | |
1435 | wxBitmapButton *result; | |
1436 | char *kwnames[] = { | |
1437 | NULL | |
1438 | }; | |
1439 | ||
1440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1441 | { | |
1442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1443 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1444 | ||
1445 | wxPyEndAllowThreads(__tstate); | |
1446 | if (PyErr_Occurred()) SWIG_fail; | |
1447 | } | |
1448 | { | |
1449 | resultobj = wxPyMake_wxObject(result); | |
1450 | } | |
1451 | return resultobj; | |
1452 | fail: | |
1453 | return NULL; | |
1454 | } | |
1455 | ||
1456 | ||
1457 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1458 | PyObject *resultobj; | |
1459 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1460 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1461 | int arg3 ; | |
1462 | wxBitmap *arg4 = 0 ; | |
1463 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1464 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1465 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1466 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1467 | long arg7 = (long) wxBU_AUTODRAW ; | |
1468 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1469 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1470 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1471 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1472 | bool result; | |
1473 | wxPoint temp5 ; | |
1474 | wxSize temp6 ; | |
1475 | bool temp9 = False ; | |
1476 | PyObject * obj0 = 0 ; | |
1477 | PyObject * obj1 = 0 ; | |
1478 | PyObject * obj2 = 0 ; | |
1479 | PyObject * obj3 = 0 ; | |
1480 | PyObject * obj4 = 0 ; | |
1481 | PyObject * obj5 = 0 ; | |
1482 | PyObject * obj6 = 0 ; | |
1483 | PyObject * obj7 = 0 ; | |
1484 | PyObject * obj8 = 0 ; | |
1485 | char *kwnames[] = { | |
1486 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1487 | }; | |
1488 | ||
1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
1490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1492 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1494 | arg3 = (int) SWIG_AsInt(obj2); | |
1495 | if (PyErr_Occurred()) SWIG_fail; | |
1496 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1497 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1498 | SWIG_fail; | |
1499 | if (arg4 == NULL) { | |
1500 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1501 | SWIG_fail; | |
1502 | } | |
1503 | if (obj4) { | |
1504 | { | |
1505 | arg5 = &temp5; | |
1506 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1507 | } | |
1508 | } | |
1509 | if (obj5) { | |
1510 | { | |
1511 | arg6 = &temp6; | |
1512 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1513 | } | |
1514 | } | |
1515 | if (obj6) { | |
1516 | arg7 = (long) SWIG_AsLong(obj6); | |
1517 | if (PyErr_Occurred()) SWIG_fail; | |
1518 | } | |
1519 | if (obj7) { | |
1520 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1521 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1522 | SWIG_fail; | |
1523 | if (arg8 == NULL) { | |
1524 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1525 | SWIG_fail; | |
1526 | } | |
1527 | } | |
1528 | if (obj8) { | |
1529 | { | |
1530 | arg9 = wxString_in_helper(obj8); | |
1531 | if (arg9 == NULL) SWIG_fail; | |
1532 | temp9 = True; | |
1533 | } | |
1534 | } | |
1535 | { | |
1536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1537 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1538 | ||
1539 | wxPyEndAllowThreads(__tstate); | |
1540 | if (PyErr_Occurred()) SWIG_fail; | |
1541 | } | |
1542 | { | |
1543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1544 | } | |
1545 | { | |
1546 | if (temp9) | |
1547 | delete arg9; | |
1548 | } | |
1549 | return resultobj; | |
1550 | fail: | |
1551 | { | |
1552 | if (temp9) | |
1553 | delete arg9; | |
1554 | } | |
1555 | return NULL; | |
1556 | } | |
1557 | ||
1558 | ||
1559 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1560 | PyObject *resultobj; | |
1561 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1562 | wxBitmap result; | |
1563 | PyObject * obj0 = 0 ; | |
1564 | char *kwnames[] = { | |
1565 | (char *) "self", NULL | |
1566 | }; | |
1567 | ||
1568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1571 | { | |
1572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1573 | result = (arg1)->GetBitmapLabel(); | |
1574 | ||
1575 | wxPyEndAllowThreads(__tstate); | |
1576 | if (PyErr_Occurred()) SWIG_fail; | |
1577 | } | |
1578 | { | |
1579 | wxBitmap * resultptr; | |
1580 | resultptr = new wxBitmap((wxBitmap &) result); | |
1581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1582 | } | |
1583 | return resultobj; | |
1584 | fail: | |
1585 | return NULL; | |
1586 | } | |
1587 | ||
1588 | ||
1589 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1590 | PyObject *resultobj; | |
1591 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1592 | wxBitmap result; | |
1593 | PyObject * obj0 = 0 ; | |
1594 | char *kwnames[] = { | |
1595 | (char *) "self", NULL | |
1596 | }; | |
1597 | ||
1598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1601 | { | |
1602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1603 | result = (arg1)->GetBitmapDisabled(); | |
1604 | ||
1605 | wxPyEndAllowThreads(__tstate); | |
1606 | if (PyErr_Occurred()) SWIG_fail; | |
1607 | } | |
1608 | { | |
1609 | wxBitmap * resultptr; | |
1610 | resultptr = new wxBitmap((wxBitmap &) result); | |
1611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1612 | } | |
1613 | return resultobj; | |
1614 | fail: | |
1615 | return NULL; | |
1616 | } | |
1617 | ||
1618 | ||
1619 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1620 | PyObject *resultobj; | |
1621 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1622 | wxBitmap result; | |
1623 | PyObject * obj0 = 0 ; | |
1624 | char *kwnames[] = { | |
1625 | (char *) "self", NULL | |
1626 | }; | |
1627 | ||
1628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1631 | { | |
1632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1633 | result = (arg1)->GetBitmapFocus(); | |
1634 | ||
1635 | wxPyEndAllowThreads(__tstate); | |
1636 | if (PyErr_Occurred()) SWIG_fail; | |
1637 | } | |
1638 | { | |
1639 | wxBitmap * resultptr; | |
1640 | resultptr = new wxBitmap((wxBitmap &) result); | |
1641 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1642 | } | |
1643 | return resultobj; | |
1644 | fail: | |
1645 | return NULL; | |
1646 | } | |
1647 | ||
1648 | ||
1649 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1650 | PyObject *resultobj; | |
1651 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1652 | wxBitmap result; | |
1653 | PyObject * obj0 = 0 ; | |
1654 | char *kwnames[] = { | |
1655 | (char *) "self", NULL | |
1656 | }; | |
1657 | ||
1658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1661 | { | |
1662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1663 | result = (arg1)->GetBitmapSelected(); | |
1664 | ||
1665 | wxPyEndAllowThreads(__tstate); | |
1666 | if (PyErr_Occurred()) SWIG_fail; | |
1667 | } | |
1668 | { | |
1669 | wxBitmap * resultptr; | |
1670 | resultptr = new wxBitmap((wxBitmap &) result); | |
1671 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1672 | } | |
1673 | return resultobj; | |
1674 | fail: | |
1675 | return NULL; | |
1676 | } | |
1677 | ||
1678 | ||
1679 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1680 | PyObject *resultobj; | |
1681 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1682 | wxBitmap *arg2 = 0 ; | |
1683 | PyObject * obj0 = 0 ; | |
1684 | PyObject * obj1 = 0 ; | |
1685 | char *kwnames[] = { | |
1686 | (char *) "self",(char *) "bitmap", NULL | |
1687 | }; | |
1688 | ||
1689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1692 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1693 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1694 | SWIG_fail; | |
1695 | if (arg2 == NULL) { | |
1696 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1697 | SWIG_fail; | |
1698 | } | |
1699 | { | |
1700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1701 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1702 | ||
1703 | wxPyEndAllowThreads(__tstate); | |
1704 | if (PyErr_Occurred()) SWIG_fail; | |
1705 | } | |
1706 | Py_INCREF(Py_None); resultobj = Py_None; | |
1707 | return resultobj; | |
1708 | fail: | |
1709 | return NULL; | |
1710 | } | |
1711 | ||
1712 | ||
1713 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1714 | PyObject *resultobj; | |
1715 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1716 | wxBitmap *arg2 = 0 ; | |
1717 | PyObject * obj0 = 0 ; | |
1718 | PyObject * obj1 = 0 ; | |
1719 | char *kwnames[] = { | |
1720 | (char *) "self",(char *) "bitmap", NULL | |
1721 | }; | |
1722 | ||
1723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1727 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1728 | SWIG_fail; | |
1729 | if (arg2 == NULL) { | |
1730 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1731 | SWIG_fail; | |
1732 | } | |
1733 | { | |
1734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1735 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1736 | ||
1737 | wxPyEndAllowThreads(__tstate); | |
1738 | if (PyErr_Occurred()) SWIG_fail; | |
1739 | } | |
1740 | Py_INCREF(Py_None); resultobj = Py_None; | |
1741 | return resultobj; | |
1742 | fail: | |
1743 | return NULL; | |
1744 | } | |
1745 | ||
1746 | ||
1747 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1748 | PyObject *resultobj; | |
1749 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1750 | wxBitmap *arg2 = 0 ; | |
1751 | PyObject * obj0 = 0 ; | |
1752 | PyObject * obj1 = 0 ; | |
1753 | char *kwnames[] = { | |
1754 | (char *) "self",(char *) "bitmap", NULL | |
1755 | }; | |
1756 | ||
1757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1760 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1761 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1762 | SWIG_fail; | |
1763 | if (arg2 == NULL) { | |
1764 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1765 | SWIG_fail; | |
1766 | } | |
1767 | { | |
1768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1769 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1770 | ||
1771 | wxPyEndAllowThreads(__tstate); | |
1772 | if (PyErr_Occurred()) SWIG_fail; | |
1773 | } | |
1774 | Py_INCREF(Py_None); resultobj = Py_None; | |
1775 | return resultobj; | |
1776 | fail: | |
1777 | return NULL; | |
1778 | } | |
1779 | ||
1780 | ||
1781 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1782 | PyObject *resultobj; | |
1783 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1784 | wxBitmap *arg2 = 0 ; | |
1785 | PyObject * obj0 = 0 ; | |
1786 | PyObject * obj1 = 0 ; | |
1787 | char *kwnames[] = { | |
1788 | (char *) "self",(char *) "bitmap", NULL | |
1789 | }; | |
1790 | ||
1791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1794 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1795 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1796 | SWIG_fail; | |
1797 | if (arg2 == NULL) { | |
1798 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1799 | SWIG_fail; | |
1800 | } | |
1801 | { | |
1802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1803 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1804 | ||
1805 | wxPyEndAllowThreads(__tstate); | |
1806 | if (PyErr_Occurred()) SWIG_fail; | |
1807 | } | |
1808 | Py_INCREF(Py_None); resultobj = Py_None; | |
1809 | return resultobj; | |
1810 | fail: | |
1811 | return NULL; | |
1812 | } | |
1813 | ||
1814 | ||
1815 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1816 | PyObject *resultobj; | |
1817 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1818 | int arg2 ; | |
1819 | int arg3 ; | |
1820 | PyObject * obj0 = 0 ; | |
1821 | PyObject * obj1 = 0 ; | |
1822 | PyObject * obj2 = 0 ; | |
1823 | char *kwnames[] = { | |
1824 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1825 | }; | |
1826 | ||
1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1830 | arg2 = (int) SWIG_AsInt(obj1); | |
1831 | if (PyErr_Occurred()) SWIG_fail; | |
1832 | arg3 = (int) SWIG_AsInt(obj2); | |
1833 | if (PyErr_Occurred()) SWIG_fail; | |
1834 | { | |
1835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1836 | (arg1)->SetMargins(arg2,arg3); | |
1837 | ||
1838 | wxPyEndAllowThreads(__tstate); | |
1839 | if (PyErr_Occurred()) SWIG_fail; | |
1840 | } | |
1841 | Py_INCREF(Py_None); resultobj = Py_None; | |
1842 | return resultobj; | |
1843 | fail: | |
1844 | return NULL; | |
1845 | } | |
1846 | ||
1847 | ||
1848 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1849 | PyObject *resultobj; | |
1850 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1851 | int result; | |
1852 | PyObject * obj0 = 0 ; | |
1853 | char *kwnames[] = { | |
1854 | (char *) "self", NULL | |
1855 | }; | |
1856 | ||
1857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1860 | { | |
1861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1862 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1863 | ||
1864 | wxPyEndAllowThreads(__tstate); | |
1865 | if (PyErr_Occurred()) SWIG_fail; | |
1866 | } | |
1867 | resultobj = SWIG_FromInt((int)result); | |
1868 | return resultobj; | |
1869 | fail: | |
1870 | return NULL; | |
1871 | } | |
1872 | ||
1873 | ||
1874 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1875 | PyObject *resultobj; | |
1876 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1877 | int result; | |
1878 | PyObject * obj0 = 0 ; | |
1879 | char *kwnames[] = { | |
1880 | (char *) "self", NULL | |
1881 | }; | |
1882 | ||
1883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1886 | { | |
1887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1888 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1889 | ||
1890 | wxPyEndAllowThreads(__tstate); | |
1891 | if (PyErr_Occurred()) SWIG_fail; | |
1892 | } | |
1893 | resultobj = SWIG_FromInt((int)result); | |
1894 | return resultobj; | |
1895 | fail: | |
1896 | return NULL; | |
1897 | } | |
1898 | ||
1899 | ||
1900 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1901 | PyObject *obj; | |
1902 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1903 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1904 | Py_INCREF(obj); | |
1905 | return Py_BuildValue((char *)""); | |
1906 | } | |
1907 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { | |
1908 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1909 | return 1; | |
1910 | } | |
1911 | ||
1912 | ||
1913 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1914 | PyObject *pyobj; | |
1915 | ||
1916 | { | |
1917 | #if wxUSE_UNICODE | |
1918 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1919 | #else | |
1920 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1921 | #endif | |
1922 | } | |
1923 | return pyobj; | |
1924 | } | |
1925 | ||
1926 | ||
1927 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1928 | PyObject *resultobj; | |
1929 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1930 | int arg2 ; | |
1931 | wxString *arg3 = 0 ; | |
1932 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1933 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1934 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1935 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1936 | long arg6 = (long) 0 ; | |
1937 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1938 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1939 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1940 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1941 | wxCheckBox *result; | |
1942 | bool temp3 = False ; | |
1943 | wxPoint temp4 ; | |
1944 | wxSize temp5 ; | |
1945 | bool temp8 = False ; | |
1946 | PyObject * obj0 = 0 ; | |
1947 | PyObject * obj1 = 0 ; | |
1948 | PyObject * obj2 = 0 ; | |
1949 | PyObject * obj3 = 0 ; | |
1950 | PyObject * obj4 = 0 ; | |
1951 | PyObject * obj5 = 0 ; | |
1952 | PyObject * obj6 = 0 ; | |
1953 | PyObject * obj7 = 0 ; | |
1954 | char *kwnames[] = { | |
1955 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1956 | }; | |
1957 | ||
1958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1961 | arg2 = (int) SWIG_AsInt(obj1); | |
1962 | if (PyErr_Occurred()) SWIG_fail; | |
1963 | { | |
1964 | arg3 = wxString_in_helper(obj2); | |
1965 | if (arg3 == NULL) SWIG_fail; | |
1966 | temp3 = True; | |
1967 | } | |
1968 | if (obj3) { | |
1969 | { | |
1970 | arg4 = &temp4; | |
1971 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1972 | } | |
1973 | } | |
1974 | if (obj4) { | |
1975 | { | |
1976 | arg5 = &temp5; | |
1977 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1978 | } | |
1979 | } | |
1980 | if (obj5) { | |
1981 | arg6 = (long) SWIG_AsLong(obj5); | |
1982 | if (PyErr_Occurred()) SWIG_fail; | |
1983 | } | |
1984 | if (obj6) { | |
1985 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1987 | SWIG_fail; | |
1988 | if (arg7 == NULL) { | |
1989 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1990 | SWIG_fail; | |
1991 | } | |
1992 | } | |
1993 | if (obj7) { | |
1994 | { | |
1995 | arg8 = wxString_in_helper(obj7); | |
1996 | if (arg8 == NULL) SWIG_fail; | |
1997 | temp8 = True; | |
1998 | } | |
1999 | } | |
2000 | { | |
2001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2002 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2003 | ||
2004 | wxPyEndAllowThreads(__tstate); | |
2005 | if (PyErr_Occurred()) SWIG_fail; | |
2006 | } | |
2007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2008 | { | |
2009 | if (temp3) | |
2010 | delete arg3; | |
2011 | } | |
2012 | { | |
2013 | if (temp8) | |
2014 | delete arg8; | |
2015 | } | |
2016 | return resultobj; | |
2017 | fail: | |
2018 | { | |
2019 | if (temp3) | |
2020 | delete arg3; | |
2021 | } | |
2022 | { | |
2023 | if (temp8) | |
2024 | delete arg8; | |
2025 | } | |
2026 | return NULL; | |
2027 | } | |
2028 | ||
2029 | ||
2030 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2031 | PyObject *resultobj; | |
2032 | wxCheckBox *result; | |
2033 | char *kwnames[] = { | |
2034 | NULL | |
2035 | }; | |
2036 | ||
2037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2038 | { | |
2039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2040 | result = (wxCheckBox *)new wxCheckBox(); | |
2041 | ||
2042 | wxPyEndAllowThreads(__tstate); | |
2043 | if (PyErr_Occurred()) SWIG_fail; | |
2044 | } | |
2045 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2046 | return resultobj; | |
2047 | fail: | |
2048 | return NULL; | |
2049 | } | |
2050 | ||
2051 | ||
2052 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2053 | PyObject *resultobj; | |
2054 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2055 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2056 | int arg3 ; | |
2057 | wxString *arg4 = 0 ; | |
2058 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2059 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2060 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2061 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2062 | long arg7 = (long) 0 ; | |
2063 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2064 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2065 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2066 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2067 | bool result; | |
2068 | bool temp4 = False ; | |
2069 | wxPoint temp5 ; | |
2070 | wxSize temp6 ; | |
2071 | bool temp9 = False ; | |
2072 | PyObject * obj0 = 0 ; | |
2073 | PyObject * obj1 = 0 ; | |
2074 | PyObject * obj2 = 0 ; | |
2075 | PyObject * obj3 = 0 ; | |
2076 | PyObject * obj4 = 0 ; | |
2077 | PyObject * obj5 = 0 ; | |
2078 | PyObject * obj6 = 0 ; | |
2079 | PyObject * obj7 = 0 ; | |
2080 | PyObject * obj8 = 0 ; | |
2081 | char *kwnames[] = { | |
2082 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2083 | }; | |
2084 | ||
2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2088 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2090 | arg3 = (int) SWIG_AsInt(obj2); | |
2091 | if (PyErr_Occurred()) SWIG_fail; | |
2092 | { | |
2093 | arg4 = wxString_in_helper(obj3); | |
2094 | if (arg4 == NULL) SWIG_fail; | |
2095 | temp4 = True; | |
2096 | } | |
2097 | if (obj4) { | |
2098 | { | |
2099 | arg5 = &temp5; | |
2100 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2101 | } | |
2102 | } | |
2103 | if (obj5) { | |
2104 | { | |
2105 | arg6 = &temp6; | |
2106 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2107 | } | |
2108 | } | |
2109 | if (obj6) { | |
2110 | arg7 = (long) SWIG_AsLong(obj6); | |
2111 | if (PyErr_Occurred()) SWIG_fail; | |
2112 | } | |
2113 | if (obj7) { | |
2114 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2115 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2116 | SWIG_fail; | |
2117 | if (arg8 == NULL) { | |
2118 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2119 | SWIG_fail; | |
2120 | } | |
2121 | } | |
2122 | if (obj8) { | |
2123 | { | |
2124 | arg9 = wxString_in_helper(obj8); | |
2125 | if (arg9 == NULL) SWIG_fail; | |
2126 | temp9 = True; | |
2127 | } | |
2128 | } | |
2129 | { | |
2130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2131 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2132 | ||
2133 | wxPyEndAllowThreads(__tstate); | |
2134 | if (PyErr_Occurred()) SWIG_fail; | |
2135 | } | |
2136 | { | |
2137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2138 | } | |
2139 | { | |
2140 | if (temp4) | |
2141 | delete arg4; | |
2142 | } | |
2143 | { | |
2144 | if (temp9) | |
2145 | delete arg9; | |
2146 | } | |
2147 | return resultobj; | |
2148 | fail: | |
2149 | { | |
2150 | if (temp4) | |
2151 | delete arg4; | |
2152 | } | |
2153 | { | |
2154 | if (temp9) | |
2155 | delete arg9; | |
2156 | } | |
2157 | return NULL; | |
2158 | } | |
2159 | ||
2160 | ||
2161 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2162 | PyObject *resultobj; | |
2163 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2164 | bool result; | |
2165 | PyObject * obj0 = 0 ; | |
2166 | char *kwnames[] = { | |
2167 | (char *) "self", NULL | |
2168 | }; | |
2169 | ||
2170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2173 | { | |
2174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2175 | result = (bool)(arg1)->GetValue(); | |
2176 | ||
2177 | wxPyEndAllowThreads(__tstate); | |
2178 | if (PyErr_Occurred()) SWIG_fail; | |
2179 | } | |
2180 | { | |
2181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2182 | } | |
2183 | return resultobj; | |
2184 | fail: | |
2185 | return NULL; | |
2186 | } | |
2187 | ||
2188 | ||
2189 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2190 | PyObject *resultobj; | |
2191 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2192 | bool result; | |
2193 | PyObject * obj0 = 0 ; | |
2194 | char *kwnames[] = { | |
2195 | (char *) "self", NULL | |
2196 | }; | |
2197 | ||
2198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2201 | { | |
2202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2203 | result = (bool)(arg1)->IsChecked(); | |
2204 | ||
2205 | wxPyEndAllowThreads(__tstate); | |
2206 | if (PyErr_Occurred()) SWIG_fail; | |
2207 | } | |
2208 | { | |
2209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2210 | } | |
2211 | return resultobj; | |
2212 | fail: | |
2213 | return NULL; | |
2214 | } | |
2215 | ||
2216 | ||
2217 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2218 | PyObject *resultobj; | |
2219 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2220 | bool arg2 ; | |
2221 | PyObject * obj0 = 0 ; | |
2222 | PyObject * obj1 = 0 ; | |
2223 | char *kwnames[] = { | |
2224 | (char *) "self",(char *) "state", NULL | |
2225 | }; | |
2226 | ||
2227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2230 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2231 | if (PyErr_Occurred()) SWIG_fail; | |
2232 | { | |
2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2234 | (arg1)->SetValue(arg2); | |
2235 | ||
2236 | wxPyEndAllowThreads(__tstate); | |
2237 | if (PyErr_Occurred()) SWIG_fail; | |
2238 | } | |
2239 | Py_INCREF(Py_None); resultobj = Py_None; | |
2240 | return resultobj; | |
2241 | fail: | |
2242 | return NULL; | |
2243 | } | |
2244 | ||
2245 | ||
2246 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2247 | PyObject *resultobj; | |
2248 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2249 | int result; | |
2250 | PyObject * obj0 = 0 ; | |
2251 | char *kwnames[] = { | |
2252 | (char *) "self", NULL | |
2253 | }; | |
2254 | ||
2255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2258 | { | |
2259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2260 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2261 | ||
2262 | wxPyEndAllowThreads(__tstate); | |
2263 | if (PyErr_Occurred()) SWIG_fail; | |
2264 | } | |
2265 | resultobj = SWIG_FromInt((int)result); | |
2266 | return resultobj; | |
2267 | fail: | |
2268 | return NULL; | |
2269 | } | |
2270 | ||
2271 | ||
2272 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2273 | PyObject *resultobj; | |
2274 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2275 | int arg2 ; | |
2276 | PyObject * obj0 = 0 ; | |
2277 | PyObject * obj1 = 0 ; | |
2278 | char *kwnames[] = { | |
2279 | (char *) "self",(char *) "state", NULL | |
2280 | }; | |
2281 | ||
2282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; | |
2283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2285 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2286 | if (PyErr_Occurred()) SWIG_fail; | |
2287 | { | |
2288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2289 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2290 | ||
2291 | wxPyEndAllowThreads(__tstate); | |
2292 | if (PyErr_Occurred()) SWIG_fail; | |
2293 | } | |
2294 | Py_INCREF(Py_None); resultobj = Py_None; | |
2295 | return resultobj; | |
2296 | fail: | |
2297 | return NULL; | |
2298 | } | |
2299 | ||
2300 | ||
2301 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2302 | PyObject *resultobj; | |
2303 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2304 | bool result; | |
2305 | PyObject * obj0 = 0 ; | |
2306 | char *kwnames[] = { | |
2307 | (char *) "self", NULL | |
2308 | }; | |
2309 | ||
2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2313 | { | |
2314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2315 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2316 | ||
2317 | wxPyEndAllowThreads(__tstate); | |
2318 | if (PyErr_Occurred()) SWIG_fail; | |
2319 | } | |
2320 | { | |
2321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2322 | } | |
2323 | return resultobj; | |
2324 | fail: | |
2325 | return NULL; | |
2326 | } | |
2327 | ||
2328 | ||
2329 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2330 | PyObject *resultobj; | |
2331 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2332 | bool result; | |
2333 | PyObject * obj0 = 0 ; | |
2334 | char *kwnames[] = { | |
2335 | (char *) "self", NULL | |
2336 | }; | |
2337 | ||
2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2341 | { | |
2342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2343 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2344 | ||
2345 | wxPyEndAllowThreads(__tstate); | |
2346 | if (PyErr_Occurred()) SWIG_fail; | |
2347 | } | |
2348 | { | |
2349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2350 | } | |
2351 | return resultobj; | |
2352 | fail: | |
2353 | return NULL; | |
2354 | } | |
2355 | ||
2356 | ||
2357 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2358 | PyObject *obj; | |
2359 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2360 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2361 | Py_INCREF(obj); | |
2362 | return Py_BuildValue((char *)""); | |
2363 | } | |
2364 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { | |
2365 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2366 | return 1; | |
2367 | } | |
2368 | ||
2369 | ||
2370 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2371 | PyObject *pyobj; | |
2372 | ||
2373 | { | |
2374 | #if wxUSE_UNICODE | |
2375 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2376 | #else | |
2377 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2378 | #endif | |
2379 | } | |
2380 | return pyobj; | |
2381 | } | |
2382 | ||
2383 | ||
2384 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2385 | PyObject *resultobj; | |
2386 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2387 | int arg2 ; | |
2388 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
2389 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2390 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2391 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2392 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
2393 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2394 | long arg6 = (long) 0 ; | |
2395 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2396 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2397 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2398 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2399 | wxChoice *result; | |
2400 | wxPoint temp3 ; | |
2401 | wxSize temp4 ; | |
2402 | bool temp5 = False ; | |
2403 | bool temp8 = False ; | |
2404 | PyObject * obj0 = 0 ; | |
2405 | PyObject * obj1 = 0 ; | |
2406 | PyObject * obj2 = 0 ; | |
2407 | PyObject * obj3 = 0 ; | |
2408 | PyObject * obj4 = 0 ; | |
2409 | PyObject * obj5 = 0 ; | |
2410 | PyObject * obj6 = 0 ; | |
2411 | PyObject * obj7 = 0 ; | |
2412 | char *kwnames[] = { | |
2413 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2414 | }; | |
2415 | ||
2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
2417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2419 | arg2 = (int) SWIG_AsInt(obj1); | |
2420 | if (PyErr_Occurred()) SWIG_fail; | |
2421 | if (obj2) { | |
2422 | { | |
2423 | arg3 = &temp3; | |
2424 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2425 | } | |
2426 | } | |
2427 | if (obj3) { | |
2428 | { | |
2429 | arg4 = &temp4; | |
2430 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2431 | } | |
2432 | } | |
2433 | if (obj4) { | |
2434 | { | |
2435 | if (! PySequence_Check(obj4)) { | |
2436 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2437 | SWIG_fail; | |
2438 | } | |
2439 | arg5 = new wxArrayString; | |
2440 | temp5 = True; | |
2441 | int i, len=PySequence_Length(obj4); | |
2442 | for (i=0; i<len; i++) { | |
2443 | PyObject* item = PySequence_GetItem(obj4, i); | |
2444 | #if wxUSE_UNICODE | |
2445 | PyObject* str = PyObject_Unicode(item); | |
2446 | #else | |
2447 | PyObject* str = PyObject_Str(item); | |
2448 | #endif | |
2449 | arg5->Add(Py2wxString(str)); | |
2450 | Py_DECREF(item); | |
2451 | Py_DECREF(str); | |
2452 | } | |
2453 | } | |
2454 | } | |
2455 | if (obj5) { | |
2456 | arg6 = (long) SWIG_AsLong(obj5); | |
2457 | if (PyErr_Occurred()) SWIG_fail; | |
2458 | } | |
2459 | if (obj6) { | |
2460 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2461 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2462 | SWIG_fail; | |
2463 | if (arg7 == NULL) { | |
2464 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2465 | SWIG_fail; | |
2466 | } | |
2467 | } | |
2468 | if (obj7) { | |
2469 | { | |
2470 | arg8 = wxString_in_helper(obj7); | |
2471 | if (arg8 == NULL) SWIG_fail; | |
2472 | temp8 = True; | |
2473 | } | |
2474 | } | |
2475 | { | |
2476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2477 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2478 | ||
2479 | wxPyEndAllowThreads(__tstate); | |
2480 | if (PyErr_Occurred()) SWIG_fail; | |
2481 | } | |
2482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2483 | { | |
2484 | if (temp5) delete arg5; | |
2485 | } | |
2486 | { | |
2487 | if (temp8) | |
2488 | delete arg8; | |
2489 | } | |
2490 | return resultobj; | |
2491 | fail: | |
2492 | { | |
2493 | if (temp5) delete arg5; | |
2494 | } | |
2495 | { | |
2496 | if (temp8) | |
2497 | delete arg8; | |
2498 | } | |
2499 | return NULL; | |
2500 | } | |
2501 | ||
2502 | ||
2503 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2504 | PyObject *resultobj; | |
2505 | wxChoice *result; | |
2506 | char *kwnames[] = { | |
2507 | NULL | |
2508 | }; | |
2509 | ||
2510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2511 | { | |
2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2513 | result = (wxChoice *)new wxChoice(); | |
2514 | ||
2515 | wxPyEndAllowThreads(__tstate); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2519 | return resultobj; | |
2520 | fail: | |
2521 | return NULL; | |
2522 | } | |
2523 | ||
2524 | ||
2525 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2526 | PyObject *resultobj; | |
2527 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2528 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2529 | int arg3 ; | |
2530 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2531 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2532 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2533 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2534 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2535 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2536 | long arg7 = (long) 0 ; | |
2537 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2538 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2539 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2540 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2541 | bool result; | |
2542 | wxPoint temp4 ; | |
2543 | wxSize temp5 ; | |
2544 | bool temp6 = False ; | |
2545 | bool temp9 = False ; | |
2546 | PyObject * obj0 = 0 ; | |
2547 | PyObject * obj1 = 0 ; | |
2548 | PyObject * obj2 = 0 ; | |
2549 | PyObject * obj3 = 0 ; | |
2550 | PyObject * obj4 = 0 ; | |
2551 | PyObject * obj5 = 0 ; | |
2552 | PyObject * obj6 = 0 ; | |
2553 | PyObject * obj7 = 0 ; | |
2554 | PyObject * obj8 = 0 ; | |
2555 | char *kwnames[] = { | |
2556 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2557 | }; | |
2558 | ||
2559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2562 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2564 | arg3 = (int) SWIG_AsInt(obj2); | |
2565 | if (PyErr_Occurred()) SWIG_fail; | |
2566 | if (obj3) { | |
2567 | { | |
2568 | arg4 = &temp4; | |
2569 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2570 | } | |
2571 | } | |
2572 | if (obj4) { | |
2573 | { | |
2574 | arg5 = &temp5; | |
2575 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2576 | } | |
2577 | } | |
2578 | if (obj5) { | |
2579 | { | |
2580 | if (! PySequence_Check(obj5)) { | |
2581 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2582 | SWIG_fail; | |
2583 | } | |
2584 | arg6 = new wxArrayString; | |
2585 | temp6 = True; | |
2586 | int i, len=PySequence_Length(obj5); | |
2587 | for (i=0; i<len; i++) { | |
2588 | PyObject* item = PySequence_GetItem(obj5, i); | |
2589 | #if wxUSE_UNICODE | |
2590 | PyObject* str = PyObject_Unicode(item); | |
2591 | #else | |
2592 | PyObject* str = PyObject_Str(item); | |
2593 | #endif | |
2594 | arg6->Add(Py2wxString(str)); | |
2595 | Py_DECREF(item); | |
2596 | Py_DECREF(str); | |
2597 | } | |
2598 | } | |
2599 | } | |
2600 | if (obj6) { | |
2601 | arg7 = (long) SWIG_AsLong(obj6); | |
2602 | if (PyErr_Occurred()) SWIG_fail; | |
2603 | } | |
2604 | if (obj7) { | |
2605 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2606 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2607 | SWIG_fail; | |
2608 | if (arg8 == NULL) { | |
2609 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2610 | SWIG_fail; | |
2611 | } | |
2612 | } | |
2613 | if (obj8) { | |
2614 | { | |
2615 | arg9 = wxString_in_helper(obj8); | |
2616 | if (arg9 == NULL) SWIG_fail; | |
2617 | temp9 = True; | |
2618 | } | |
2619 | } | |
2620 | { | |
2621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2622 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2623 | ||
2624 | wxPyEndAllowThreads(__tstate); | |
2625 | if (PyErr_Occurred()) SWIG_fail; | |
2626 | } | |
2627 | { | |
2628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2629 | } | |
2630 | { | |
2631 | if (temp6) delete arg6; | |
2632 | } | |
2633 | { | |
2634 | if (temp9) | |
2635 | delete arg9; | |
2636 | } | |
2637 | return resultobj; | |
2638 | fail: | |
2639 | { | |
2640 | if (temp6) delete arg6; | |
2641 | } | |
2642 | { | |
2643 | if (temp9) | |
2644 | delete arg9; | |
2645 | } | |
2646 | return NULL; | |
2647 | } | |
2648 | ||
2649 | ||
2650 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2651 | PyObject *resultobj; | |
2652 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2653 | int arg2 ; | |
2654 | PyObject * obj0 = 0 ; | |
2655 | PyObject * obj1 = 0 ; | |
2656 | char *kwnames[] = { | |
2657 | (char *) "self",(char *) "n", NULL | |
2658 | }; | |
2659 | ||
2660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
2661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2663 | arg2 = (int const) SWIG_AsInt(obj1); | |
2664 | if (PyErr_Occurred()) SWIG_fail; | |
2665 | { | |
2666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2667 | (arg1)->SetSelection(arg2); | |
2668 | ||
2669 | wxPyEndAllowThreads(__tstate); | |
2670 | if (PyErr_Occurred()) SWIG_fail; | |
2671 | } | |
2672 | Py_INCREF(Py_None); resultobj = Py_None; | |
2673 | return resultobj; | |
2674 | fail: | |
2675 | return NULL; | |
2676 | } | |
2677 | ||
2678 | ||
2679 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2680 | PyObject *resultobj; | |
2681 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2682 | wxString *arg2 = 0 ; | |
2683 | bool temp2 = False ; | |
2684 | PyObject * obj0 = 0 ; | |
2685 | PyObject * obj1 = 0 ; | |
2686 | char *kwnames[] = { | |
2687 | (char *) "self",(char *) "string", NULL | |
2688 | }; | |
2689 | ||
2690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2693 | { | |
2694 | arg2 = wxString_in_helper(obj1); | |
2695 | if (arg2 == NULL) SWIG_fail; | |
2696 | temp2 = True; | |
2697 | } | |
2698 | { | |
2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2700 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2701 | ||
2702 | wxPyEndAllowThreads(__tstate); | |
2703 | if (PyErr_Occurred()) SWIG_fail; | |
2704 | } | |
2705 | Py_INCREF(Py_None); resultobj = Py_None; | |
2706 | { | |
2707 | if (temp2) | |
2708 | delete arg2; | |
2709 | } | |
2710 | return resultobj; | |
2711 | fail: | |
2712 | { | |
2713 | if (temp2) | |
2714 | delete arg2; | |
2715 | } | |
2716 | return NULL; | |
2717 | } | |
2718 | ||
2719 | ||
2720 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2721 | PyObject *resultobj; | |
2722 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2723 | int arg2 ; | |
2724 | wxString *arg3 = 0 ; | |
2725 | bool temp3 = False ; | |
2726 | PyObject * obj0 = 0 ; | |
2727 | PyObject * obj1 = 0 ; | |
2728 | PyObject * obj2 = 0 ; | |
2729 | char *kwnames[] = { | |
2730 | (char *) "self",(char *) "n",(char *) "string", NULL | |
2731 | }; | |
2732 | ||
2733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2736 | arg2 = (int) SWIG_AsInt(obj1); | |
2737 | if (PyErr_Occurred()) SWIG_fail; | |
2738 | { | |
2739 | arg3 = wxString_in_helper(obj2); | |
2740 | if (arg3 == NULL) SWIG_fail; | |
2741 | temp3 = True; | |
2742 | } | |
2743 | { | |
2744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2745 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2746 | ||
2747 | wxPyEndAllowThreads(__tstate); | |
2748 | if (PyErr_Occurred()) SWIG_fail; | |
2749 | } | |
2750 | Py_INCREF(Py_None); resultobj = Py_None; | |
2751 | { | |
2752 | if (temp3) | |
2753 | delete arg3; | |
2754 | } | |
2755 | return resultobj; | |
2756 | fail: | |
2757 | { | |
2758 | if (temp3) | |
2759 | delete arg3; | |
2760 | } | |
2761 | return NULL; | |
2762 | } | |
2763 | ||
2764 | ||
2765 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2766 | PyObject *obj; | |
2767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2768 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2769 | Py_INCREF(obj); | |
2770 | return Py_BuildValue((char *)""); | |
2771 | } | |
2772 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { | |
2773 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2774 | return 1; | |
2775 | } | |
2776 | ||
2777 | ||
2778 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2779 | PyObject *pyobj; | |
2780 | ||
2781 | { | |
2782 | #if wxUSE_UNICODE | |
2783 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2784 | #else | |
2785 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2786 | #endif | |
2787 | } | |
2788 | return pyobj; | |
2789 | } | |
2790 | ||
2791 | ||
2792 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2793 | PyObject *resultobj; | |
2794 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2795 | int arg2 ; | |
2796 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2797 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2798 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2799 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2800 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2801 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2802 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2803 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2804 | long arg7 = (long) 0 ; | |
2805 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2806 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2807 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2808 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2809 | wxComboBox *result; | |
2810 | bool temp3 = False ; | |
2811 | wxPoint temp4 ; | |
2812 | wxSize temp5 ; | |
2813 | bool temp6 = False ; | |
2814 | bool temp9 = False ; | |
2815 | PyObject * obj0 = 0 ; | |
2816 | PyObject * obj1 = 0 ; | |
2817 | PyObject * obj2 = 0 ; | |
2818 | PyObject * obj3 = 0 ; | |
2819 | PyObject * obj4 = 0 ; | |
2820 | PyObject * obj5 = 0 ; | |
2821 | PyObject * obj6 = 0 ; | |
2822 | PyObject * obj7 = 0 ; | |
2823 | PyObject * obj8 = 0 ; | |
2824 | char *kwnames[] = { | |
2825 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2826 | }; | |
2827 | ||
2828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2831 | arg2 = (int) SWIG_AsInt(obj1); | |
2832 | if (PyErr_Occurred()) SWIG_fail; | |
2833 | if (obj2) { | |
2834 | { | |
2835 | arg3 = wxString_in_helper(obj2); | |
2836 | if (arg3 == NULL) SWIG_fail; | |
2837 | temp3 = True; | |
2838 | } | |
2839 | } | |
2840 | if (obj3) { | |
2841 | { | |
2842 | arg4 = &temp4; | |
2843 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2844 | } | |
2845 | } | |
2846 | if (obj4) { | |
2847 | { | |
2848 | arg5 = &temp5; | |
2849 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2850 | } | |
2851 | } | |
2852 | if (obj5) { | |
2853 | { | |
2854 | if (! PySequence_Check(obj5)) { | |
2855 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2856 | SWIG_fail; | |
2857 | } | |
2858 | arg6 = new wxArrayString; | |
2859 | temp6 = True; | |
2860 | int i, len=PySequence_Length(obj5); | |
2861 | for (i=0; i<len; i++) { | |
2862 | PyObject* item = PySequence_GetItem(obj5, i); | |
2863 | #if wxUSE_UNICODE | |
2864 | PyObject* str = PyObject_Unicode(item); | |
2865 | #else | |
2866 | PyObject* str = PyObject_Str(item); | |
2867 | #endif | |
2868 | arg6->Add(Py2wxString(str)); | |
2869 | Py_DECREF(item); | |
2870 | Py_DECREF(str); | |
2871 | } | |
2872 | } | |
2873 | } | |
2874 | if (obj6) { | |
2875 | arg7 = (long) SWIG_AsLong(obj6); | |
2876 | if (PyErr_Occurred()) SWIG_fail; | |
2877 | } | |
2878 | if (obj7) { | |
2879 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2880 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2881 | SWIG_fail; | |
2882 | if (arg8 == NULL) { | |
2883 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2884 | SWIG_fail; | |
2885 | } | |
2886 | } | |
2887 | if (obj8) { | |
2888 | { | |
2889 | arg9 = wxString_in_helper(obj8); | |
2890 | if (arg9 == NULL) SWIG_fail; | |
2891 | temp9 = True; | |
2892 | } | |
2893 | } | |
2894 | { | |
2895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2896 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2897 | ||
2898 | wxPyEndAllowThreads(__tstate); | |
2899 | if (PyErr_Occurred()) SWIG_fail; | |
2900 | } | |
2901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
2902 | { | |
2903 | if (temp3) | |
2904 | delete arg3; | |
2905 | } | |
2906 | { | |
2907 | if (temp6) delete arg6; | |
2908 | } | |
2909 | { | |
2910 | if (temp9) | |
2911 | delete arg9; | |
2912 | } | |
2913 | return resultobj; | |
2914 | fail: | |
2915 | { | |
2916 | if (temp3) | |
2917 | delete arg3; | |
2918 | } | |
2919 | { | |
2920 | if (temp6) delete arg6; | |
2921 | } | |
2922 | { | |
2923 | if (temp9) | |
2924 | delete arg9; | |
2925 | } | |
2926 | return NULL; | |
2927 | } | |
2928 | ||
2929 | ||
2930 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject *resultobj; | |
2932 | wxComboBox *result; | |
2933 | char *kwnames[] = { | |
2934 | NULL | |
2935 | }; | |
2936 | ||
2937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2938 | { | |
2939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2940 | result = (wxComboBox *)new wxComboBox(); | |
2941 | ||
2942 | wxPyEndAllowThreads(__tstate); | |
2943 | if (PyErr_Occurred()) SWIG_fail; | |
2944 | } | |
2945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
2946 | return resultobj; | |
2947 | fail: | |
2948 | return NULL; | |
2949 | } | |
2950 | ||
2951 | ||
2952 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2953 | PyObject *resultobj; | |
2954 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2955 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2956 | int arg3 ; | |
2957 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2958 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2959 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2960 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2961 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2962 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2963 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
2964 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2965 | long arg8 = (long) 0 ; | |
2966 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2967 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2968 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
2969 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2970 | bool result; | |
2971 | bool temp4 = False ; | |
2972 | wxPoint temp5 ; | |
2973 | wxSize temp6 ; | |
2974 | bool temp7 = False ; | |
2975 | bool temp10 = False ; | |
2976 | PyObject * obj0 = 0 ; | |
2977 | PyObject * obj1 = 0 ; | |
2978 | PyObject * obj2 = 0 ; | |
2979 | PyObject * obj3 = 0 ; | |
2980 | PyObject * obj4 = 0 ; | |
2981 | PyObject * obj5 = 0 ; | |
2982 | PyObject * obj6 = 0 ; | |
2983 | PyObject * obj7 = 0 ; | |
2984 | PyObject * obj8 = 0 ; | |
2985 | PyObject * obj9 = 0 ; | |
2986 | char *kwnames[] = { | |
2987 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2988 | }; | |
2989 | ||
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
2991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
2992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2993 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2995 | arg3 = (int) SWIG_AsInt(obj2); | |
2996 | if (PyErr_Occurred()) SWIG_fail; | |
2997 | if (obj3) { | |
2998 | { | |
2999 | arg4 = wxString_in_helper(obj3); | |
3000 | if (arg4 == NULL) SWIG_fail; | |
3001 | temp4 = True; | |
3002 | } | |
3003 | } | |
3004 | if (obj4) { | |
3005 | { | |
3006 | arg5 = &temp5; | |
3007 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3008 | } | |
3009 | } | |
3010 | if (obj5) { | |
3011 | { | |
3012 | arg6 = &temp6; | |
3013 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3014 | } | |
3015 | } | |
3016 | if (obj6) { | |
3017 | { | |
3018 | if (! PySequence_Check(obj6)) { | |
3019 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3020 | SWIG_fail; | |
3021 | } | |
3022 | arg7 = new wxArrayString; | |
3023 | temp7 = True; | |
3024 | int i, len=PySequence_Length(obj6); | |
3025 | for (i=0; i<len; i++) { | |
3026 | PyObject* item = PySequence_GetItem(obj6, i); | |
3027 | #if wxUSE_UNICODE | |
3028 | PyObject* str = PyObject_Unicode(item); | |
3029 | #else | |
3030 | PyObject* str = PyObject_Str(item); | |
3031 | #endif | |
3032 | arg7->Add(Py2wxString(str)); | |
3033 | Py_DECREF(item); | |
3034 | Py_DECREF(str); | |
3035 | } | |
3036 | } | |
3037 | } | |
3038 | if (obj7) { | |
3039 | arg8 = (long) SWIG_AsLong(obj7); | |
3040 | if (PyErr_Occurred()) SWIG_fail; | |
3041 | } | |
3042 | if (obj8) { | |
3043 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
3044 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3045 | SWIG_fail; | |
3046 | if (arg9 == NULL) { | |
3047 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3048 | SWIG_fail; | |
3049 | } | |
3050 | } | |
3051 | if (obj9) { | |
3052 | { | |
3053 | arg10 = wxString_in_helper(obj9); | |
3054 | if (arg10 == NULL) SWIG_fail; | |
3055 | temp10 = True; | |
3056 | } | |
3057 | } | |
3058 | { | |
3059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3060 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
3061 | ||
3062 | wxPyEndAllowThreads(__tstate); | |
3063 | if (PyErr_Occurred()) SWIG_fail; | |
3064 | } | |
3065 | { | |
3066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3067 | } | |
3068 | { | |
3069 | if (temp4) | |
3070 | delete arg4; | |
3071 | } | |
3072 | { | |
3073 | if (temp7) delete arg7; | |
3074 | } | |
3075 | { | |
3076 | if (temp10) | |
3077 | delete arg10; | |
3078 | } | |
3079 | return resultobj; | |
3080 | fail: | |
3081 | { | |
3082 | if (temp4) | |
3083 | delete arg4; | |
3084 | } | |
3085 | { | |
3086 | if (temp7) delete arg7; | |
3087 | } | |
3088 | { | |
3089 | if (temp10) | |
3090 | delete arg10; | |
3091 | } | |
3092 | return NULL; | |
3093 | } | |
3094 | ||
3095 | ||
3096 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3097 | PyObject *resultobj; | |
3098 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3099 | wxString result; | |
3100 | PyObject * obj0 = 0 ; | |
3101 | char *kwnames[] = { | |
3102 | (char *) "self", NULL | |
3103 | }; | |
3104 | ||
3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
3106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3108 | { | |
3109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3110 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3111 | ||
3112 | wxPyEndAllowThreads(__tstate); | |
3113 | if (PyErr_Occurred()) SWIG_fail; | |
3114 | } | |
3115 | { | |
3116 | #if wxUSE_UNICODE | |
3117 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3118 | #else | |
3119 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3120 | #endif | |
3121 | } | |
3122 | return resultobj; | |
3123 | fail: | |
3124 | return NULL; | |
3125 | } | |
3126 | ||
3127 | ||
3128 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3129 | PyObject *resultobj; | |
3130 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3131 | wxString *arg2 = 0 ; | |
3132 | bool temp2 = False ; | |
3133 | PyObject * obj0 = 0 ; | |
3134 | PyObject * obj1 = 0 ; | |
3135 | char *kwnames[] = { | |
3136 | (char *) "self",(char *) "value", NULL | |
3137 | }; | |
3138 | ||
3139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3142 | { | |
3143 | arg2 = wxString_in_helper(obj1); | |
3144 | if (arg2 == NULL) SWIG_fail; | |
3145 | temp2 = True; | |
3146 | } | |
3147 | { | |
3148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3149 | (arg1)->SetValue((wxString const &)*arg2); | |
3150 | ||
3151 | wxPyEndAllowThreads(__tstate); | |
3152 | if (PyErr_Occurred()) SWIG_fail; | |
3153 | } | |
3154 | Py_INCREF(Py_None); resultobj = Py_None; | |
3155 | { | |
3156 | if (temp2) | |
3157 | delete arg2; | |
3158 | } | |
3159 | return resultobj; | |
3160 | fail: | |
3161 | { | |
3162 | if (temp2) | |
3163 | delete arg2; | |
3164 | } | |
3165 | return NULL; | |
3166 | } | |
3167 | ||
3168 | ||
3169 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject *resultobj; | |
3171 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3172 | PyObject * obj0 = 0 ; | |
3173 | char *kwnames[] = { | |
3174 | (char *) "self", NULL | |
3175 | }; | |
3176 | ||
3177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
3178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3180 | { | |
3181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3182 | (arg1)->Copy(); | |
3183 | ||
3184 | wxPyEndAllowThreads(__tstate); | |
3185 | if (PyErr_Occurred()) SWIG_fail; | |
3186 | } | |
3187 | Py_INCREF(Py_None); resultobj = Py_None; | |
3188 | return resultobj; | |
3189 | fail: | |
3190 | return NULL; | |
3191 | } | |
3192 | ||
3193 | ||
3194 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3195 | PyObject *resultobj; | |
3196 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3197 | PyObject * obj0 = 0 ; | |
3198 | char *kwnames[] = { | |
3199 | (char *) "self", NULL | |
3200 | }; | |
3201 | ||
3202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3205 | { | |
3206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3207 | (arg1)->Cut(); | |
3208 | ||
3209 | wxPyEndAllowThreads(__tstate); | |
3210 | if (PyErr_Occurred()) SWIG_fail; | |
3211 | } | |
3212 | Py_INCREF(Py_None); resultobj = Py_None; | |
3213 | return resultobj; | |
3214 | fail: | |
3215 | return NULL; | |
3216 | } | |
3217 | ||
3218 | ||
3219 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3220 | PyObject *resultobj; | |
3221 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3222 | PyObject * obj0 = 0 ; | |
3223 | char *kwnames[] = { | |
3224 | (char *) "self", NULL | |
3225 | }; | |
3226 | ||
3227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3230 | { | |
3231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3232 | (arg1)->Paste(); | |
3233 | ||
3234 | wxPyEndAllowThreads(__tstate); | |
3235 | if (PyErr_Occurred()) SWIG_fail; | |
3236 | } | |
3237 | Py_INCREF(Py_None); resultobj = Py_None; | |
3238 | return resultobj; | |
3239 | fail: | |
3240 | return NULL; | |
3241 | } | |
3242 | ||
3243 | ||
3244 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3245 | PyObject *resultobj; | |
3246 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3247 | long arg2 ; | |
3248 | PyObject * obj0 = 0 ; | |
3249 | PyObject * obj1 = 0 ; | |
3250 | char *kwnames[] = { | |
3251 | (char *) "self",(char *) "pos", NULL | |
3252 | }; | |
3253 | ||
3254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
3255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3257 | arg2 = (long) SWIG_AsLong(obj1); | |
3258 | if (PyErr_Occurred()) SWIG_fail; | |
3259 | { | |
3260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3261 | (arg1)->SetInsertionPoint(arg2); | |
3262 | ||
3263 | wxPyEndAllowThreads(__tstate); | |
3264 | if (PyErr_Occurred()) SWIG_fail; | |
3265 | } | |
3266 | Py_INCREF(Py_None); resultobj = Py_None; | |
3267 | return resultobj; | |
3268 | fail: | |
3269 | return NULL; | |
3270 | } | |
3271 | ||
3272 | ||
3273 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3274 | PyObject *resultobj; | |
3275 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3276 | long result; | |
3277 | PyObject * obj0 = 0 ; | |
3278 | char *kwnames[] = { | |
3279 | (char *) "self", NULL | |
3280 | }; | |
3281 | ||
3282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3285 | { | |
3286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3287 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3288 | ||
3289 | wxPyEndAllowThreads(__tstate); | |
3290 | if (PyErr_Occurred()) SWIG_fail; | |
3291 | } | |
3292 | resultobj = SWIG_FromLong((long)result); | |
3293 | return resultobj; | |
3294 | fail: | |
3295 | return NULL; | |
3296 | } | |
3297 | ||
3298 | ||
3299 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3300 | PyObject *resultobj; | |
3301 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3302 | long result; | |
3303 | PyObject * obj0 = 0 ; | |
3304 | char *kwnames[] = { | |
3305 | (char *) "self", NULL | |
3306 | }; | |
3307 | ||
3308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3311 | { | |
3312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3313 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3314 | ||
3315 | wxPyEndAllowThreads(__tstate); | |
3316 | if (PyErr_Occurred()) SWIG_fail; | |
3317 | } | |
3318 | resultobj = SWIG_FromLong((long)result); | |
3319 | return resultobj; | |
3320 | fail: | |
3321 | return NULL; | |
3322 | } | |
3323 | ||
3324 | ||
3325 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3326 | PyObject *resultobj; | |
3327 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3328 | long arg2 ; | |
3329 | long arg3 ; | |
3330 | wxString *arg4 = 0 ; | |
3331 | bool temp4 = False ; | |
3332 | PyObject * obj0 = 0 ; | |
3333 | PyObject * obj1 = 0 ; | |
3334 | PyObject * obj2 = 0 ; | |
3335 | PyObject * obj3 = 0 ; | |
3336 | char *kwnames[] = { | |
3337 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3338 | }; | |
3339 | ||
3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3343 | arg2 = (long) SWIG_AsLong(obj1); | |
3344 | if (PyErr_Occurred()) SWIG_fail; | |
3345 | arg3 = (long) SWIG_AsLong(obj2); | |
3346 | if (PyErr_Occurred()) SWIG_fail; | |
3347 | { | |
3348 | arg4 = wxString_in_helper(obj3); | |
3349 | if (arg4 == NULL) SWIG_fail; | |
3350 | temp4 = True; | |
3351 | } | |
3352 | { | |
3353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3354 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3355 | ||
3356 | wxPyEndAllowThreads(__tstate); | |
3357 | if (PyErr_Occurred()) SWIG_fail; | |
3358 | } | |
3359 | Py_INCREF(Py_None); resultobj = Py_None; | |
3360 | { | |
3361 | if (temp4) | |
3362 | delete arg4; | |
3363 | } | |
3364 | return resultobj; | |
3365 | fail: | |
3366 | { | |
3367 | if (temp4) | |
3368 | delete arg4; | |
3369 | } | |
3370 | return NULL; | |
3371 | } | |
3372 | ||
3373 | ||
3374 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3375 | PyObject *resultobj; | |
3376 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3377 | int arg2 ; | |
3378 | PyObject * obj0 = 0 ; | |
3379 | PyObject * obj1 = 0 ; | |
3380 | char *kwnames[] = { | |
3381 | (char *) "self",(char *) "n", NULL | |
3382 | }; | |
3383 | ||
3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
3385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3387 | arg2 = (int) SWIG_AsInt(obj1); | |
3388 | if (PyErr_Occurred()) SWIG_fail; | |
3389 | { | |
3390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3391 | (arg1)->SetSelection(arg2); | |
3392 | ||
3393 | wxPyEndAllowThreads(__tstate); | |
3394 | if (PyErr_Occurred()) SWIG_fail; | |
3395 | } | |
3396 | Py_INCREF(Py_None); resultobj = Py_None; | |
3397 | return resultobj; | |
3398 | fail: | |
3399 | return NULL; | |
3400 | } | |
3401 | ||
3402 | ||
3403 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject *resultobj; | |
3405 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3406 | long arg2 ; | |
3407 | long arg3 ; | |
3408 | PyObject * obj0 = 0 ; | |
3409 | PyObject * obj1 = 0 ; | |
3410 | PyObject * obj2 = 0 ; | |
3411 | char *kwnames[] = { | |
3412 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3413 | }; | |
3414 | ||
3415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3418 | arg2 = (long) SWIG_AsLong(obj1); | |
3419 | if (PyErr_Occurred()) SWIG_fail; | |
3420 | arg3 = (long) SWIG_AsLong(obj2); | |
3421 | if (PyErr_Occurred()) SWIG_fail; | |
3422 | { | |
3423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3424 | (arg1)->SetSelection(arg2,arg3); | |
3425 | ||
3426 | wxPyEndAllowThreads(__tstate); | |
3427 | if (PyErr_Occurred()) SWIG_fail; | |
3428 | } | |
3429 | Py_INCREF(Py_None); resultobj = Py_None; | |
3430 | return resultobj; | |
3431 | fail: | |
3432 | return NULL; | |
3433 | } | |
3434 | ||
3435 | ||
3436 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3437 | PyObject *resultobj; | |
3438 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3439 | bool arg2 ; | |
3440 | PyObject * obj0 = 0 ; | |
3441 | PyObject * obj1 = 0 ; | |
3442 | char *kwnames[] = { | |
3443 | (char *) "self",(char *) "editable", NULL | |
3444 | }; | |
3445 | ||
3446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3449 | arg2 = (bool) SWIG_AsBool(obj1); | |
3450 | if (PyErr_Occurred()) SWIG_fail; | |
3451 | { | |
3452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3453 | (arg1)->SetEditable(arg2); | |
3454 | ||
3455 | wxPyEndAllowThreads(__tstate); | |
3456 | if (PyErr_Occurred()) SWIG_fail; | |
3457 | } | |
3458 | Py_INCREF(Py_None); resultobj = Py_None; | |
3459 | return resultobj; | |
3460 | fail: | |
3461 | return NULL; | |
3462 | } | |
3463 | ||
3464 | ||
3465 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3466 | PyObject *resultobj; | |
3467 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3468 | PyObject * obj0 = 0 ; | |
3469 | char *kwnames[] = { | |
3470 | (char *) "self", NULL | |
3471 | }; | |
3472 | ||
3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3476 | { | |
3477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3478 | (arg1)->SetInsertionPointEnd(); | |
3479 | ||
3480 | wxPyEndAllowThreads(__tstate); | |
3481 | if (PyErr_Occurred()) SWIG_fail; | |
3482 | } | |
3483 | Py_INCREF(Py_None); resultobj = Py_None; | |
3484 | return resultobj; | |
3485 | fail: | |
3486 | return NULL; | |
3487 | } | |
3488 | ||
3489 | ||
3490 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3491 | PyObject *resultobj; | |
3492 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3493 | long arg2 ; | |
3494 | long arg3 ; | |
3495 | PyObject * obj0 = 0 ; | |
3496 | PyObject * obj1 = 0 ; | |
3497 | PyObject * obj2 = 0 ; | |
3498 | char *kwnames[] = { | |
3499 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3500 | }; | |
3501 | ||
3502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3505 | arg2 = (long) SWIG_AsLong(obj1); | |
3506 | if (PyErr_Occurred()) SWIG_fail; | |
3507 | arg3 = (long) SWIG_AsLong(obj2); | |
3508 | if (PyErr_Occurred()) SWIG_fail; | |
3509 | { | |
3510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3511 | (arg1)->Remove(arg2,arg3); | |
3512 | ||
3513 | wxPyEndAllowThreads(__tstate); | |
3514 | if (PyErr_Occurred()) SWIG_fail; | |
3515 | } | |
3516 | Py_INCREF(Py_None); resultobj = Py_None; | |
3517 | return resultobj; | |
3518 | fail: | |
3519 | return NULL; | |
3520 | } | |
3521 | ||
3522 | ||
3523 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3524 | PyObject *obj; | |
3525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3526 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3527 | Py_INCREF(obj); | |
3528 | return Py_BuildValue((char *)""); | |
3529 | } | |
3530 | static int _wrap_GaugeNameStr_set(PyObject *_val) { | |
3531 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3532 | return 1; | |
3533 | } | |
3534 | ||
3535 | ||
3536 | static PyObject *_wrap_GaugeNameStr_get() { | |
3537 | PyObject *pyobj; | |
3538 | ||
3539 | { | |
3540 | #if wxUSE_UNICODE | |
3541 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3542 | #else | |
3543 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3544 | #endif | |
3545 | } | |
3546 | return pyobj; | |
3547 | } | |
3548 | ||
3549 | ||
3550 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3551 | PyObject *resultobj; | |
3552 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3553 | int arg2 ; | |
3554 | int arg3 ; | |
3555 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3556 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3557 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3558 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3559 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3560 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3561 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3562 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3563 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3564 | wxGauge *result; | |
3565 | wxPoint temp4 ; | |
3566 | wxSize temp5 ; | |
3567 | bool temp8 = False ; | |
3568 | PyObject * obj0 = 0 ; | |
3569 | PyObject * obj1 = 0 ; | |
3570 | PyObject * obj2 = 0 ; | |
3571 | PyObject * obj3 = 0 ; | |
3572 | PyObject * obj4 = 0 ; | |
3573 | PyObject * obj5 = 0 ; | |
3574 | PyObject * obj6 = 0 ; | |
3575 | PyObject * obj7 = 0 ; | |
3576 | char *kwnames[] = { | |
3577 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3578 | }; | |
3579 | ||
3580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
3582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3583 | arg2 = (int) SWIG_AsInt(obj1); | |
3584 | if (PyErr_Occurred()) SWIG_fail; | |
3585 | arg3 = (int) SWIG_AsInt(obj2); | |
3586 | if (PyErr_Occurred()) SWIG_fail; | |
3587 | if (obj3) { | |
3588 | { | |
3589 | arg4 = &temp4; | |
3590 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3591 | } | |
3592 | } | |
3593 | if (obj4) { | |
3594 | { | |
3595 | arg5 = &temp5; | |
3596 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3597 | } | |
3598 | } | |
3599 | if (obj5) { | |
3600 | arg6 = (long) SWIG_AsLong(obj5); | |
3601 | if (PyErr_Occurred()) SWIG_fail; | |
3602 | } | |
3603 | if (obj6) { | |
3604 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
3605 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3606 | SWIG_fail; | |
3607 | if (arg7 == NULL) { | |
3608 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3609 | SWIG_fail; | |
3610 | } | |
3611 | } | |
3612 | if (obj7) { | |
3613 | { | |
3614 | arg8 = wxString_in_helper(obj7); | |
3615 | if (arg8 == NULL) SWIG_fail; | |
3616 | temp8 = True; | |
3617 | } | |
3618 | } | |
3619 | { | |
3620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3621 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3622 | ||
3623 | wxPyEndAllowThreads(__tstate); | |
3624 | if (PyErr_Occurred()) SWIG_fail; | |
3625 | } | |
3626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
3627 | { | |
3628 | if (temp8) | |
3629 | delete arg8; | |
3630 | } | |
3631 | return resultobj; | |
3632 | fail: | |
3633 | { | |
3634 | if (temp8) | |
3635 | delete arg8; | |
3636 | } | |
3637 | return NULL; | |
3638 | } | |
3639 | ||
3640 | ||
3641 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3642 | PyObject *resultobj; | |
3643 | wxGauge *result; | |
3644 | char *kwnames[] = { | |
3645 | NULL | |
3646 | }; | |
3647 | ||
3648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3649 | { | |
3650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3651 | result = (wxGauge *)new wxGauge(); | |
3652 | ||
3653 | wxPyEndAllowThreads(__tstate); | |
3654 | if (PyErr_Occurred()) SWIG_fail; | |
3655 | } | |
3656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
3657 | return resultobj; | |
3658 | fail: | |
3659 | return NULL; | |
3660 | } | |
3661 | ||
3662 | ||
3663 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3664 | PyObject *resultobj; | |
3665 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3666 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3667 | int arg3 ; | |
3668 | int arg4 ; | |
3669 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3670 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3671 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3672 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3673 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3674 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3675 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3676 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3677 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3678 | bool result; | |
3679 | wxPoint temp5 ; | |
3680 | wxSize temp6 ; | |
3681 | bool temp9 = False ; | |
3682 | PyObject * obj0 = 0 ; | |
3683 | PyObject * obj1 = 0 ; | |
3684 | PyObject * obj2 = 0 ; | |
3685 | PyObject * obj3 = 0 ; | |
3686 | PyObject * obj4 = 0 ; | |
3687 | PyObject * obj5 = 0 ; | |
3688 | PyObject * obj6 = 0 ; | |
3689 | PyObject * obj7 = 0 ; | |
3690 | PyObject * obj8 = 0 ; | |
3691 | char *kwnames[] = { | |
3692 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3693 | }; | |
3694 | ||
3695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3698 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3700 | arg3 = (int) SWIG_AsInt(obj2); | |
3701 | if (PyErr_Occurred()) SWIG_fail; | |
3702 | arg4 = (int) SWIG_AsInt(obj3); | |
3703 | if (PyErr_Occurred()) SWIG_fail; | |
3704 | if (obj4) { | |
3705 | { | |
3706 | arg5 = &temp5; | |
3707 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3708 | } | |
3709 | } | |
3710 | if (obj5) { | |
3711 | { | |
3712 | arg6 = &temp6; | |
3713 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3714 | } | |
3715 | } | |
3716 | if (obj6) { | |
3717 | arg7 = (long) SWIG_AsLong(obj6); | |
3718 | if (PyErr_Occurred()) SWIG_fail; | |
3719 | } | |
3720 | if (obj7) { | |
3721 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
3722 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3723 | SWIG_fail; | |
3724 | if (arg8 == NULL) { | |
3725 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3726 | SWIG_fail; | |
3727 | } | |
3728 | } | |
3729 | if (obj8) { | |
3730 | { | |
3731 | arg9 = wxString_in_helper(obj8); | |
3732 | if (arg9 == NULL) SWIG_fail; | |
3733 | temp9 = True; | |
3734 | } | |
3735 | } | |
3736 | { | |
3737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3738 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3739 | ||
3740 | wxPyEndAllowThreads(__tstate); | |
3741 | if (PyErr_Occurred()) SWIG_fail; | |
3742 | } | |
3743 | { | |
3744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3745 | } | |
3746 | { | |
3747 | if (temp9) | |
3748 | delete arg9; | |
3749 | } | |
3750 | return resultobj; | |
3751 | fail: | |
3752 | { | |
3753 | if (temp9) | |
3754 | delete arg9; | |
3755 | } | |
3756 | return NULL; | |
3757 | } | |
3758 | ||
3759 | ||
3760 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3761 | PyObject *resultobj; | |
3762 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3763 | int arg2 ; | |
3764 | PyObject * obj0 = 0 ; | |
3765 | PyObject * obj1 = 0 ; | |
3766 | char *kwnames[] = { | |
3767 | (char *) "self",(char *) "range", NULL | |
3768 | }; | |
3769 | ||
3770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
3771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3773 | arg2 = (int) SWIG_AsInt(obj1); | |
3774 | if (PyErr_Occurred()) SWIG_fail; | |
3775 | { | |
3776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3777 | (arg1)->SetRange(arg2); | |
3778 | ||
3779 | wxPyEndAllowThreads(__tstate); | |
3780 | if (PyErr_Occurred()) SWIG_fail; | |
3781 | } | |
3782 | Py_INCREF(Py_None); resultobj = Py_None; | |
3783 | return resultobj; | |
3784 | fail: | |
3785 | return NULL; | |
3786 | } | |
3787 | ||
3788 | ||
3789 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3790 | PyObject *resultobj; | |
3791 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3792 | int result; | |
3793 | PyObject * obj0 = 0 ; | |
3794 | char *kwnames[] = { | |
3795 | (char *) "self", NULL | |
3796 | }; | |
3797 | ||
3798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3801 | { | |
3802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3803 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3804 | ||
3805 | wxPyEndAllowThreads(__tstate); | |
3806 | if (PyErr_Occurred()) SWIG_fail; | |
3807 | } | |
3808 | resultobj = SWIG_FromInt((int)result); | |
3809 | return resultobj; | |
3810 | fail: | |
3811 | return NULL; | |
3812 | } | |
3813 | ||
3814 | ||
3815 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3816 | PyObject *resultobj; | |
3817 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3818 | int arg2 ; | |
3819 | PyObject * obj0 = 0 ; | |
3820 | PyObject * obj1 = 0 ; | |
3821 | char *kwnames[] = { | |
3822 | (char *) "self",(char *) "pos", NULL | |
3823 | }; | |
3824 | ||
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3828 | arg2 = (int) SWIG_AsInt(obj1); | |
3829 | if (PyErr_Occurred()) SWIG_fail; | |
3830 | { | |
3831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3832 | (arg1)->SetValue(arg2); | |
3833 | ||
3834 | wxPyEndAllowThreads(__tstate); | |
3835 | if (PyErr_Occurred()) SWIG_fail; | |
3836 | } | |
3837 | Py_INCREF(Py_None); resultobj = Py_None; | |
3838 | return resultobj; | |
3839 | fail: | |
3840 | return NULL; | |
3841 | } | |
3842 | ||
3843 | ||
3844 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3845 | PyObject *resultobj; | |
3846 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3847 | int result; | |
3848 | PyObject * obj0 = 0 ; | |
3849 | char *kwnames[] = { | |
3850 | (char *) "self", NULL | |
3851 | }; | |
3852 | ||
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3856 | { | |
3857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3858 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3859 | ||
3860 | wxPyEndAllowThreads(__tstate); | |
3861 | if (PyErr_Occurred()) SWIG_fail; | |
3862 | } | |
3863 | resultobj = SWIG_FromInt((int)result); | |
3864 | return resultobj; | |
3865 | fail: | |
3866 | return NULL; | |
3867 | } | |
3868 | ||
3869 | ||
3870 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3871 | PyObject *resultobj; | |
3872 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3873 | bool result; | |
3874 | PyObject * obj0 = 0 ; | |
3875 | char *kwnames[] = { | |
3876 | (char *) "self", NULL | |
3877 | }; | |
3878 | ||
3879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3882 | { | |
3883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3884 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3885 | ||
3886 | wxPyEndAllowThreads(__tstate); | |
3887 | if (PyErr_Occurred()) SWIG_fail; | |
3888 | } | |
3889 | { | |
3890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3891 | } | |
3892 | return resultobj; | |
3893 | fail: | |
3894 | return NULL; | |
3895 | } | |
3896 | ||
3897 | ||
3898 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3899 | PyObject *resultobj; | |
3900 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3901 | int arg2 ; | |
3902 | PyObject * obj0 = 0 ; | |
3903 | PyObject * obj1 = 0 ; | |
3904 | char *kwnames[] = { | |
3905 | (char *) "self",(char *) "w", NULL | |
3906 | }; | |
3907 | ||
3908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
3909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3911 | arg2 = (int) SWIG_AsInt(obj1); | |
3912 | if (PyErr_Occurred()) SWIG_fail; | |
3913 | { | |
3914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3915 | (arg1)->SetShadowWidth(arg2); | |
3916 | ||
3917 | wxPyEndAllowThreads(__tstate); | |
3918 | if (PyErr_Occurred()) SWIG_fail; | |
3919 | } | |
3920 | Py_INCREF(Py_None); resultobj = Py_None; | |
3921 | return resultobj; | |
3922 | fail: | |
3923 | return NULL; | |
3924 | } | |
3925 | ||
3926 | ||
3927 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3928 | PyObject *resultobj; | |
3929 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3930 | int result; | |
3931 | PyObject * obj0 = 0 ; | |
3932 | char *kwnames[] = { | |
3933 | (char *) "self", NULL | |
3934 | }; | |
3935 | ||
3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3939 | { | |
3940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3941 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3942 | ||
3943 | wxPyEndAllowThreads(__tstate); | |
3944 | if (PyErr_Occurred()) SWIG_fail; | |
3945 | } | |
3946 | resultobj = SWIG_FromInt((int)result); | |
3947 | return resultobj; | |
3948 | fail: | |
3949 | return NULL; | |
3950 | } | |
3951 | ||
3952 | ||
3953 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3954 | PyObject *resultobj; | |
3955 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3956 | int arg2 ; | |
3957 | PyObject * obj0 = 0 ; | |
3958 | PyObject * obj1 = 0 ; | |
3959 | char *kwnames[] = { | |
3960 | (char *) "self",(char *) "w", NULL | |
3961 | }; | |
3962 | ||
3963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
3964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3966 | arg2 = (int) SWIG_AsInt(obj1); | |
3967 | if (PyErr_Occurred()) SWIG_fail; | |
3968 | { | |
3969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3970 | (arg1)->SetBezelFace(arg2); | |
3971 | ||
3972 | wxPyEndAllowThreads(__tstate); | |
3973 | if (PyErr_Occurred()) SWIG_fail; | |
3974 | } | |
3975 | Py_INCREF(Py_None); resultobj = Py_None; | |
3976 | return resultobj; | |
3977 | fail: | |
3978 | return NULL; | |
3979 | } | |
3980 | ||
3981 | ||
3982 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3983 | PyObject *resultobj; | |
3984 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3985 | int result; | |
3986 | PyObject * obj0 = 0 ; | |
3987 | char *kwnames[] = { | |
3988 | (char *) "self", NULL | |
3989 | }; | |
3990 | ||
3991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3994 | { | |
3995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3996 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3997 | ||
3998 | wxPyEndAllowThreads(__tstate); | |
3999 | if (PyErr_Occurred()) SWIG_fail; | |
4000 | } | |
4001 | resultobj = SWIG_FromInt((int)result); | |
4002 | return resultobj; | |
4003 | fail: | |
4004 | return NULL; | |
4005 | } | |
4006 | ||
4007 | ||
4008 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
4009 | PyObject *obj; | |
4010 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4011 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4012 | Py_INCREF(obj); | |
4013 | return Py_BuildValue((char *)""); | |
4014 | } | |
4015 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { | |
4016 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
4017 | return 1; | |
4018 | } | |
4019 | ||
4020 | ||
4021 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4022 | PyObject *pyobj; | |
4023 | ||
4024 | { | |
4025 | #if wxUSE_UNICODE | |
4026 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4027 | #else | |
4028 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4029 | #endif | |
4030 | } | |
4031 | return pyobj; | |
4032 | } | |
4033 | ||
4034 | ||
4035 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
4036 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
4037 | return 1; | |
4038 | } | |
4039 | ||
4040 | ||
4041 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4042 | PyObject *pyobj; | |
4043 | ||
4044 | { | |
4045 | #if wxUSE_UNICODE | |
4046 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4047 | #else | |
4048 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4049 | #endif | |
4050 | } | |
4051 | return pyobj; | |
4052 | } | |
4053 | ||
4054 | ||
4055 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
4056 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
4057 | return 1; | |
4058 | } | |
4059 | ||
4060 | ||
4061 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4062 | PyObject *pyobj; | |
4063 | ||
4064 | { | |
4065 | #if wxUSE_UNICODE | |
4066 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4067 | #else | |
4068 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4069 | #endif | |
4070 | } | |
4071 | return pyobj; | |
4072 | } | |
4073 | ||
4074 | ||
4075 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4076 | PyObject *resultobj; | |
4077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4078 | int arg2 ; | |
4079 | wxString *arg3 = 0 ; | |
4080 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4081 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4082 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4083 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4084 | long arg6 = (long) 0 ; | |
4085 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4086 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4087 | wxStaticBox *result; | |
4088 | bool temp3 = False ; | |
4089 | wxPoint temp4 ; | |
4090 | wxSize temp5 ; | |
4091 | bool temp7 = False ; | |
4092 | PyObject * obj0 = 0 ; | |
4093 | PyObject * obj1 = 0 ; | |
4094 | PyObject * obj2 = 0 ; | |
4095 | PyObject * obj3 = 0 ; | |
4096 | PyObject * obj4 = 0 ; | |
4097 | PyObject * obj5 = 0 ; | |
4098 | PyObject * obj6 = 0 ; | |
4099 | char *kwnames[] = { | |
4100 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4101 | }; | |
4102 | ||
4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4106 | arg2 = (int) SWIG_AsInt(obj1); | |
4107 | if (PyErr_Occurred()) SWIG_fail; | |
4108 | { | |
4109 | arg3 = wxString_in_helper(obj2); | |
4110 | if (arg3 == NULL) SWIG_fail; | |
4111 | temp3 = True; | |
4112 | } | |
4113 | if (obj3) { | |
4114 | { | |
4115 | arg4 = &temp4; | |
4116 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4117 | } | |
4118 | } | |
4119 | if (obj4) { | |
4120 | { | |
4121 | arg5 = &temp5; | |
4122 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4123 | } | |
4124 | } | |
4125 | if (obj5) { | |
4126 | arg6 = (long) SWIG_AsLong(obj5); | |
4127 | if (PyErr_Occurred()) SWIG_fail; | |
4128 | } | |
4129 | if (obj6) { | |
4130 | { | |
4131 | arg7 = wxString_in_helper(obj6); | |
4132 | if (arg7 == NULL) SWIG_fail; | |
4133 | temp7 = True; | |
4134 | } | |
4135 | } | |
4136 | { | |
4137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4138 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4139 | ||
4140 | wxPyEndAllowThreads(__tstate); | |
4141 | if (PyErr_Occurred()) SWIG_fail; | |
4142 | } | |
4143 | { | |
4144 | resultobj = wxPyMake_wxObject(result); | |
4145 | } | |
4146 | { | |
4147 | if (temp3) | |
4148 | delete arg3; | |
4149 | } | |
4150 | { | |
4151 | if (temp7) | |
4152 | delete arg7; | |
4153 | } | |
4154 | return resultobj; | |
4155 | fail: | |
4156 | { | |
4157 | if (temp3) | |
4158 | delete arg3; | |
4159 | } | |
4160 | { | |
4161 | if (temp7) | |
4162 | delete arg7; | |
4163 | } | |
4164 | return NULL; | |
4165 | } | |
4166 | ||
4167 | ||
4168 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4169 | PyObject *resultobj; | |
4170 | wxStaticBox *result; | |
4171 | char *kwnames[] = { | |
4172 | NULL | |
4173 | }; | |
4174 | ||
4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4176 | { | |
4177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4178 | result = (wxStaticBox *)new wxStaticBox(); | |
4179 | ||
4180 | wxPyEndAllowThreads(__tstate); | |
4181 | if (PyErr_Occurred()) SWIG_fail; | |
4182 | } | |
4183 | { | |
4184 | resultobj = wxPyMake_wxObject(result); | |
4185 | } | |
4186 | return resultobj; | |
4187 | fail: | |
4188 | return NULL; | |
4189 | } | |
4190 | ||
4191 | ||
4192 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4193 | PyObject *resultobj; | |
4194 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4195 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4196 | int arg3 ; | |
4197 | wxString *arg4 = 0 ; | |
4198 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4199 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4200 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4201 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4202 | long arg7 = (long) 0 ; | |
4203 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4204 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4205 | bool result; | |
4206 | bool temp4 = False ; | |
4207 | wxPoint temp5 ; | |
4208 | wxSize temp6 ; | |
4209 | bool temp8 = False ; | |
4210 | PyObject * obj0 = 0 ; | |
4211 | PyObject * obj1 = 0 ; | |
4212 | PyObject * obj2 = 0 ; | |
4213 | PyObject * obj3 = 0 ; | |
4214 | PyObject * obj4 = 0 ; | |
4215 | PyObject * obj5 = 0 ; | |
4216 | PyObject * obj6 = 0 ; | |
4217 | PyObject * obj7 = 0 ; | |
4218 | char *kwnames[] = { | |
4219 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4220 | }; | |
4221 | ||
4222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
4224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4225 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4227 | arg3 = (int) SWIG_AsInt(obj2); | |
4228 | if (PyErr_Occurred()) SWIG_fail; | |
4229 | { | |
4230 | arg4 = wxString_in_helper(obj3); | |
4231 | if (arg4 == NULL) SWIG_fail; | |
4232 | temp4 = True; | |
4233 | } | |
4234 | if (obj4) { | |
4235 | { | |
4236 | arg5 = &temp5; | |
4237 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4238 | } | |
4239 | } | |
4240 | if (obj5) { | |
4241 | { | |
4242 | arg6 = &temp6; | |
4243 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4244 | } | |
4245 | } | |
4246 | if (obj6) { | |
4247 | arg7 = (long) SWIG_AsLong(obj6); | |
4248 | if (PyErr_Occurred()) SWIG_fail; | |
4249 | } | |
4250 | if (obj7) { | |
4251 | { | |
4252 | arg8 = wxString_in_helper(obj7); | |
4253 | if (arg8 == NULL) SWIG_fail; | |
4254 | temp8 = True; | |
4255 | } | |
4256 | } | |
4257 | { | |
4258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4259 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4260 | ||
4261 | wxPyEndAllowThreads(__tstate); | |
4262 | if (PyErr_Occurred()) SWIG_fail; | |
4263 | } | |
4264 | { | |
4265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4266 | } | |
4267 | { | |
4268 | if (temp4) | |
4269 | delete arg4; | |
4270 | } | |
4271 | { | |
4272 | if (temp8) | |
4273 | delete arg8; | |
4274 | } | |
4275 | return resultobj; | |
4276 | fail: | |
4277 | { | |
4278 | if (temp4) | |
4279 | delete arg4; | |
4280 | } | |
4281 | { | |
4282 | if (temp8) | |
4283 | delete arg8; | |
4284 | } | |
4285 | return NULL; | |
4286 | } | |
4287 | ||
4288 | ||
4289 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4290 | PyObject *obj; | |
4291 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4292 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4293 | Py_INCREF(obj); | |
4294 | return Py_BuildValue((char *)""); | |
4295 | } | |
4296 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4297 | PyObject *resultobj; | |
4298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4299 | int arg2 ; | |
4300 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
4301 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4302 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4303 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4304 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4305 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4306 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4307 | wxStaticLine *result; | |
4308 | wxPoint temp3 ; | |
4309 | wxSize temp4 ; | |
4310 | bool temp6 = False ; | |
4311 | PyObject * obj0 = 0 ; | |
4312 | PyObject * obj1 = 0 ; | |
4313 | PyObject * obj2 = 0 ; | |
4314 | PyObject * obj3 = 0 ; | |
4315 | PyObject * obj4 = 0 ; | |
4316 | PyObject * obj5 = 0 ; | |
4317 | char *kwnames[] = { | |
4318 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4319 | }; | |
4320 | ||
4321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4324 | arg2 = (int) SWIG_AsInt(obj1); | |
4325 | if (PyErr_Occurred()) SWIG_fail; | |
4326 | if (obj2) { | |
4327 | { | |
4328 | arg3 = &temp3; | |
4329 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4330 | } | |
4331 | } | |
4332 | if (obj3) { | |
4333 | { | |
4334 | arg4 = &temp4; | |
4335 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4336 | } | |
4337 | } | |
4338 | if (obj4) { | |
4339 | arg5 = (long) SWIG_AsLong(obj4); | |
4340 | if (PyErr_Occurred()) SWIG_fail; | |
4341 | } | |
4342 | if (obj5) { | |
4343 | { | |
4344 | arg6 = wxString_in_helper(obj5); | |
4345 | if (arg6 == NULL) SWIG_fail; | |
4346 | temp6 = True; | |
4347 | } | |
4348 | } | |
4349 | { | |
4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4351 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4352 | ||
4353 | wxPyEndAllowThreads(__tstate); | |
4354 | if (PyErr_Occurred()) SWIG_fail; | |
4355 | } | |
4356 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4357 | { | |
4358 | if (temp6) | |
4359 | delete arg6; | |
4360 | } | |
4361 | return resultobj; | |
4362 | fail: | |
4363 | { | |
4364 | if (temp6) | |
4365 | delete arg6; | |
4366 | } | |
4367 | return NULL; | |
4368 | } | |
4369 | ||
4370 | ||
4371 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4372 | PyObject *resultobj; | |
4373 | wxStaticLine *result; | |
4374 | char *kwnames[] = { | |
4375 | NULL | |
4376 | }; | |
4377 | ||
4378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4379 | { | |
4380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4381 | result = (wxStaticLine *)new wxStaticLine(); | |
4382 | ||
4383 | wxPyEndAllowThreads(__tstate); | |
4384 | if (PyErr_Occurred()) SWIG_fail; | |
4385 | } | |
4386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4387 | return resultobj; | |
4388 | fail: | |
4389 | return NULL; | |
4390 | } | |
4391 | ||
4392 | ||
4393 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4394 | PyObject *resultobj; | |
4395 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4396 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4397 | int arg3 ; | |
4398 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4399 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4400 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4401 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4402 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4403 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4404 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4405 | bool result; | |
4406 | wxPoint temp4 ; | |
4407 | wxSize temp5 ; | |
4408 | bool temp7 = False ; | |
4409 | PyObject * obj0 = 0 ; | |
4410 | PyObject * obj1 = 0 ; | |
4411 | PyObject * obj2 = 0 ; | |
4412 | PyObject * obj3 = 0 ; | |
4413 | PyObject * obj4 = 0 ; | |
4414 | PyObject * obj5 = 0 ; | |
4415 | PyObject * obj6 = 0 ; | |
4416 | char *kwnames[] = { | |
4417 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4418 | }; | |
4419 | ||
4420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, | |
4422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4423 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4425 | arg3 = (int) SWIG_AsInt(obj2); | |
4426 | if (PyErr_Occurred()) SWIG_fail; | |
4427 | if (obj3) { | |
4428 | { | |
4429 | arg4 = &temp4; | |
4430 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4431 | } | |
4432 | } | |
4433 | if (obj4) { | |
4434 | { | |
4435 | arg5 = &temp5; | |
4436 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4437 | } | |
4438 | } | |
4439 | if (obj5) { | |
4440 | arg6 = (long) SWIG_AsLong(obj5); | |
4441 | if (PyErr_Occurred()) SWIG_fail; | |
4442 | } | |
4443 | if (obj6) { | |
4444 | { | |
4445 | arg7 = wxString_in_helper(obj6); | |
4446 | if (arg7 == NULL) SWIG_fail; | |
4447 | temp7 = True; | |
4448 | } | |
4449 | } | |
4450 | { | |
4451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4452 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4453 | ||
4454 | wxPyEndAllowThreads(__tstate); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | } | |
4457 | { | |
4458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4459 | } | |
4460 | { | |
4461 | if (temp7) | |
4462 | delete arg7; | |
4463 | } | |
4464 | return resultobj; | |
4465 | fail: | |
4466 | { | |
4467 | if (temp7) | |
4468 | delete arg7; | |
4469 | } | |
4470 | return NULL; | |
4471 | } | |
4472 | ||
4473 | ||
4474 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4475 | PyObject *resultobj; | |
4476 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4477 | bool result; | |
4478 | PyObject * obj0 = 0 ; | |
4479 | char *kwnames[] = { | |
4480 | (char *) "self", NULL | |
4481 | }; | |
4482 | ||
4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, | |
4485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4486 | { | |
4487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4488 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4489 | ||
4490 | wxPyEndAllowThreads(__tstate); | |
4491 | if (PyErr_Occurred()) SWIG_fail; | |
4492 | } | |
4493 | { | |
4494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4495 | } | |
4496 | return resultobj; | |
4497 | fail: | |
4498 | return NULL; | |
4499 | } | |
4500 | ||
4501 | ||
4502 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4503 | PyObject *resultobj; | |
4504 | int result; | |
4505 | char *kwnames[] = { | |
4506 | NULL | |
4507 | }; | |
4508 | ||
4509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4510 | { | |
4511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4512 | result = (int)wxStaticLine::GetDefaultSize(); | |
4513 | ||
4514 | wxPyEndAllowThreads(__tstate); | |
4515 | if (PyErr_Occurred()) SWIG_fail; | |
4516 | } | |
4517 | resultobj = SWIG_FromInt((int)result); | |
4518 | return resultobj; | |
4519 | fail: | |
4520 | return NULL; | |
4521 | } | |
4522 | ||
4523 | ||
4524 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4525 | PyObject *obj; | |
4526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4527 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4528 | Py_INCREF(obj); | |
4529 | return Py_BuildValue((char *)""); | |
4530 | } | |
4531 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4532 | PyObject *resultobj; | |
4533 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4534 | int arg2 ; | |
4535 | wxString *arg3 = 0 ; | |
4536 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4537 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4538 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4539 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4540 | long arg6 = (long) 0 ; | |
4541 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4542 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4543 | wxStaticText *result; | |
4544 | bool temp3 = False ; | |
4545 | wxPoint temp4 ; | |
4546 | wxSize temp5 ; | |
4547 | bool temp7 = False ; | |
4548 | PyObject * obj0 = 0 ; | |
4549 | PyObject * obj1 = 0 ; | |
4550 | PyObject * obj2 = 0 ; | |
4551 | PyObject * obj3 = 0 ; | |
4552 | PyObject * obj4 = 0 ; | |
4553 | PyObject * obj5 = 0 ; | |
4554 | PyObject * obj6 = 0 ; | |
4555 | char *kwnames[] = { | |
4556 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4557 | }; | |
4558 | ||
4559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4562 | arg2 = (int) SWIG_AsInt(obj1); | |
4563 | if (PyErr_Occurred()) SWIG_fail; | |
4564 | { | |
4565 | arg3 = wxString_in_helper(obj2); | |
4566 | if (arg3 == NULL) SWIG_fail; | |
4567 | temp3 = True; | |
4568 | } | |
4569 | if (obj3) { | |
4570 | { | |
4571 | arg4 = &temp4; | |
4572 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4573 | } | |
4574 | } | |
4575 | if (obj4) { | |
4576 | { | |
4577 | arg5 = &temp5; | |
4578 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4579 | } | |
4580 | } | |
4581 | if (obj5) { | |
4582 | arg6 = (long) SWIG_AsLong(obj5); | |
4583 | if (PyErr_Occurred()) SWIG_fail; | |
4584 | } | |
4585 | if (obj6) { | |
4586 | { | |
4587 | arg7 = wxString_in_helper(obj6); | |
4588 | if (arg7 == NULL) SWIG_fail; | |
4589 | temp7 = True; | |
4590 | } | |
4591 | } | |
4592 | { | |
4593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4594 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4595 | ||
4596 | wxPyEndAllowThreads(__tstate); | |
4597 | if (PyErr_Occurred()) SWIG_fail; | |
4598 | } | |
4599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
4600 | { | |
4601 | if (temp3) | |
4602 | delete arg3; | |
4603 | } | |
4604 | { | |
4605 | if (temp7) | |
4606 | delete arg7; | |
4607 | } | |
4608 | return resultobj; | |
4609 | fail: | |
4610 | { | |
4611 | if (temp3) | |
4612 | delete arg3; | |
4613 | } | |
4614 | { | |
4615 | if (temp7) | |
4616 | delete arg7; | |
4617 | } | |
4618 | return NULL; | |
4619 | } | |
4620 | ||
4621 | ||
4622 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4623 | PyObject *resultobj; | |
4624 | wxStaticText *result; | |
4625 | char *kwnames[] = { | |
4626 | NULL | |
4627 | }; | |
4628 | ||
4629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4630 | { | |
4631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4632 | result = (wxStaticText *)new wxStaticText(); | |
4633 | ||
4634 | wxPyEndAllowThreads(__tstate); | |
4635 | if (PyErr_Occurred()) SWIG_fail; | |
4636 | } | |
4637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
4638 | return resultobj; | |
4639 | fail: | |
4640 | return NULL; | |
4641 | } | |
4642 | ||
4643 | ||
4644 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4645 | PyObject *resultobj; | |
4646 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4647 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4648 | int arg3 ; | |
4649 | wxString *arg4 = 0 ; | |
4650 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4651 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4652 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4653 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4654 | long arg7 = (long) 0 ; | |
4655 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4656 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4657 | bool result; | |
4658 | bool temp4 = False ; | |
4659 | wxPoint temp5 ; | |
4660 | wxSize temp6 ; | |
4661 | bool temp8 = False ; | |
4662 | PyObject * obj0 = 0 ; | |
4663 | PyObject * obj1 = 0 ; | |
4664 | PyObject * obj2 = 0 ; | |
4665 | PyObject * obj3 = 0 ; | |
4666 | PyObject * obj4 = 0 ; | |
4667 | PyObject * obj5 = 0 ; | |
4668 | PyObject * obj6 = 0 ; | |
4669 | PyObject * obj7 = 0 ; | |
4670 | char *kwnames[] = { | |
4671 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4672 | }; | |
4673 | ||
4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, | |
4676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4677 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4679 | arg3 = (int) SWIG_AsInt(obj2); | |
4680 | if (PyErr_Occurred()) SWIG_fail; | |
4681 | { | |
4682 | arg4 = wxString_in_helper(obj3); | |
4683 | if (arg4 == NULL) SWIG_fail; | |
4684 | temp4 = True; | |
4685 | } | |
4686 | if (obj4) { | |
4687 | { | |
4688 | arg5 = &temp5; | |
4689 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4690 | } | |
4691 | } | |
4692 | if (obj5) { | |
4693 | { | |
4694 | arg6 = &temp6; | |
4695 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4696 | } | |
4697 | } | |
4698 | if (obj6) { | |
4699 | arg7 = (long) SWIG_AsLong(obj6); | |
4700 | if (PyErr_Occurred()) SWIG_fail; | |
4701 | } | |
4702 | if (obj7) { | |
4703 | { | |
4704 | arg8 = wxString_in_helper(obj7); | |
4705 | if (arg8 == NULL) SWIG_fail; | |
4706 | temp8 = True; | |
4707 | } | |
4708 | } | |
4709 | { | |
4710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4711 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4712 | ||
4713 | wxPyEndAllowThreads(__tstate); | |
4714 | if (PyErr_Occurred()) SWIG_fail; | |
4715 | } | |
4716 | { | |
4717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4718 | } | |
4719 | { | |
4720 | if (temp4) | |
4721 | delete arg4; | |
4722 | } | |
4723 | { | |
4724 | if (temp8) | |
4725 | delete arg8; | |
4726 | } | |
4727 | return resultobj; | |
4728 | fail: | |
4729 | { | |
4730 | if (temp4) | |
4731 | delete arg4; | |
4732 | } | |
4733 | { | |
4734 | if (temp8) | |
4735 | delete arg8; | |
4736 | } | |
4737 | return NULL; | |
4738 | } | |
4739 | ||
4740 | ||
4741 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4742 | PyObject *obj; | |
4743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4744 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4745 | Py_INCREF(obj); | |
4746 | return Py_BuildValue((char *)""); | |
4747 | } | |
4748 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4749 | PyObject *resultobj; | |
4750 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4751 | int arg2 ; | |
4752 | wxBitmap *arg3 = 0 ; | |
4753 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4754 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4755 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4756 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4757 | long arg6 = (long) 0 ; | |
4758 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4759 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4760 | wxStaticBitmap *result; | |
4761 | wxPoint temp4 ; | |
4762 | wxSize temp5 ; | |
4763 | bool temp7 = False ; | |
4764 | PyObject * obj0 = 0 ; | |
4765 | PyObject * obj1 = 0 ; | |
4766 | PyObject * obj2 = 0 ; | |
4767 | PyObject * obj3 = 0 ; | |
4768 | PyObject * obj4 = 0 ; | |
4769 | PyObject * obj5 = 0 ; | |
4770 | PyObject * obj6 = 0 ; | |
4771 | char *kwnames[] = { | |
4772 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4773 | }; | |
4774 | ||
4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4778 | arg2 = (int) SWIG_AsInt(obj1); | |
4779 | if (PyErr_Occurred()) SWIG_fail; | |
4780 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
4781 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4782 | SWIG_fail; | |
4783 | if (arg3 == NULL) { | |
4784 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4785 | SWIG_fail; | |
4786 | } | |
4787 | if (obj3) { | |
4788 | { | |
4789 | arg4 = &temp4; | |
4790 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4791 | } | |
4792 | } | |
4793 | if (obj4) { | |
4794 | { | |
4795 | arg5 = &temp5; | |
4796 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4797 | } | |
4798 | } | |
4799 | if (obj5) { | |
4800 | arg6 = (long) SWIG_AsLong(obj5); | |
4801 | if (PyErr_Occurred()) SWIG_fail; | |
4802 | } | |
4803 | if (obj6) { | |
4804 | { | |
4805 | arg7 = wxString_in_helper(obj6); | |
4806 | if (arg7 == NULL) SWIG_fail; | |
4807 | temp7 = True; | |
4808 | } | |
4809 | } | |
4810 | { | |
4811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4812 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4813 | ||
4814 | wxPyEndAllowThreads(__tstate); | |
4815 | if (PyErr_Occurred()) SWIG_fail; | |
4816 | } | |
4817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
4818 | { | |
4819 | if (temp7) | |
4820 | delete arg7; | |
4821 | } | |
4822 | return resultobj; | |
4823 | fail: | |
4824 | { | |
4825 | if (temp7) | |
4826 | delete arg7; | |
4827 | } | |
4828 | return NULL; | |
4829 | } | |
4830 | ||
4831 | ||
4832 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4833 | PyObject *resultobj; | |
4834 | wxStaticBitmap *result; | |
4835 | char *kwnames[] = { | |
4836 | NULL | |
4837 | }; | |
4838 | ||
4839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4840 | { | |
4841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4842 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4843 | ||
4844 | wxPyEndAllowThreads(__tstate); | |
4845 | if (PyErr_Occurred()) SWIG_fail; | |
4846 | } | |
4847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
4848 | return resultobj; | |
4849 | fail: | |
4850 | return NULL; | |
4851 | } | |
4852 | ||
4853 | ||
4854 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4855 | PyObject *resultobj; | |
4856 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4857 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4858 | int arg3 ; | |
4859 | wxBitmap *arg4 = 0 ; | |
4860 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4861 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4862 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4863 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4864 | long arg7 = (long) 0 ; | |
4865 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4866 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4867 | bool result; | |
4868 | wxPoint temp5 ; | |
4869 | wxSize temp6 ; | |
4870 | bool temp8 = False ; | |
4871 | PyObject * obj0 = 0 ; | |
4872 | PyObject * obj1 = 0 ; | |
4873 | PyObject * obj2 = 0 ; | |
4874 | PyObject * obj3 = 0 ; | |
4875 | PyObject * obj4 = 0 ; | |
4876 | PyObject * obj5 = 0 ; | |
4877 | PyObject * obj6 = 0 ; | |
4878 | PyObject * obj7 = 0 ; | |
4879 | char *kwnames[] = { | |
4880 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4881 | }; | |
4882 | ||
4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
4885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4886 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4888 | arg3 = (int) SWIG_AsInt(obj2); | |
4889 | if (PyErr_Occurred()) SWIG_fail; | |
4890 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
4891 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4892 | SWIG_fail; | |
4893 | if (arg4 == NULL) { | |
4894 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4895 | SWIG_fail; | |
4896 | } | |
4897 | if (obj4) { | |
4898 | { | |
4899 | arg5 = &temp5; | |
4900 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4901 | } | |
4902 | } | |
4903 | if (obj5) { | |
4904 | { | |
4905 | arg6 = &temp6; | |
4906 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4907 | } | |
4908 | } | |
4909 | if (obj6) { | |
4910 | arg7 = (long) SWIG_AsLong(obj6); | |
4911 | if (PyErr_Occurred()) SWIG_fail; | |
4912 | } | |
4913 | if (obj7) { | |
4914 | { | |
4915 | arg8 = wxString_in_helper(obj7); | |
4916 | if (arg8 == NULL) SWIG_fail; | |
4917 | temp8 = True; | |
4918 | } | |
4919 | } | |
4920 | { | |
4921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4922 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4923 | ||
4924 | wxPyEndAllowThreads(__tstate); | |
4925 | if (PyErr_Occurred()) SWIG_fail; | |
4926 | } | |
4927 | { | |
4928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4929 | } | |
4930 | { | |
4931 | if (temp8) | |
4932 | delete arg8; | |
4933 | } | |
4934 | return resultobj; | |
4935 | fail: | |
4936 | { | |
4937 | if (temp8) | |
4938 | delete arg8; | |
4939 | } | |
4940 | return NULL; | |
4941 | } | |
4942 | ||
4943 | ||
4944 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4945 | PyObject *resultobj; | |
4946 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4947 | wxBitmap result; | |
4948 | PyObject * obj0 = 0 ; | |
4949 | char *kwnames[] = { | |
4950 | (char *) "self", NULL | |
4951 | }; | |
4952 | ||
4953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
4955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4956 | { | |
4957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4958 | result = (arg1)->GetBitmap(); | |
4959 | ||
4960 | wxPyEndAllowThreads(__tstate); | |
4961 | if (PyErr_Occurred()) SWIG_fail; | |
4962 | } | |
4963 | { | |
4964 | wxBitmap * resultptr; | |
4965 | resultptr = new wxBitmap((wxBitmap &) result); | |
4966 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4967 | } | |
4968 | return resultobj; | |
4969 | fail: | |
4970 | return NULL; | |
4971 | } | |
4972 | ||
4973 | ||
4974 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4975 | PyObject *resultobj; | |
4976 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4977 | wxBitmap *arg2 = 0 ; | |
4978 | PyObject * obj0 = 0 ; | |
4979 | PyObject * obj1 = 0 ; | |
4980 | char *kwnames[] = { | |
4981 | (char *) "self",(char *) "bitmap", NULL | |
4982 | }; | |
4983 | ||
4984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
4986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4987 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4988 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4989 | SWIG_fail; | |
4990 | if (arg2 == NULL) { | |
4991 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4992 | SWIG_fail; | |
4993 | } | |
4994 | { | |
4995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4996 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4997 | ||
4998 | wxPyEndAllowThreads(__tstate); | |
4999 | if (PyErr_Occurred()) SWIG_fail; | |
5000 | } | |
5001 | Py_INCREF(Py_None); resultobj = Py_None; | |
5002 | return resultobj; | |
5003 | fail: | |
5004 | return NULL; | |
5005 | } | |
5006 | ||
5007 | ||
5008 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5009 | PyObject *resultobj; | |
5010 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5011 | wxIcon *arg2 = 0 ; | |
5012 | PyObject * obj0 = 0 ; | |
5013 | PyObject * obj1 = 0 ; | |
5014 | char *kwnames[] = { | |
5015 | (char *) "self",(char *) "icon", NULL | |
5016 | }; | |
5017 | ||
5018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
5019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5021 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5022 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5023 | SWIG_fail; | |
5024 | if (arg2 == NULL) { | |
5025 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5026 | SWIG_fail; | |
5027 | } | |
5028 | { | |
5029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5030 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5031 | ||
5032 | wxPyEndAllowThreads(__tstate); | |
5033 | if (PyErr_Occurred()) SWIG_fail; | |
5034 | } | |
5035 | Py_INCREF(Py_None); resultobj = Py_None; | |
5036 | return resultobj; | |
5037 | fail: | |
5038 | return NULL; | |
5039 | } | |
5040 | ||
5041 | ||
5042 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
5043 | PyObject *obj; | |
5044 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5045 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5046 | Py_INCREF(obj); | |
5047 | return Py_BuildValue((char *)""); | |
5048 | } | |
5049 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { | |
5050 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
5051 | return 1; | |
5052 | } | |
5053 | ||
5054 | ||
5055 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5056 | PyObject *pyobj; | |
5057 | ||
5058 | { | |
5059 | #if wxUSE_UNICODE | |
5060 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5061 | #else | |
5062 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5063 | #endif | |
5064 | } | |
5065 | return pyobj; | |
5066 | } | |
5067 | ||
5068 | ||
5069 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5070 | PyObject *resultobj; | |
5071 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5072 | int arg2 ; | |
5073 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5074 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5075 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5076 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5077 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5078 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5079 | long arg6 = (long) 0 ; | |
5080 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5081 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5082 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5083 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5084 | wxListBox *result; | |
5085 | wxPoint temp3 ; | |
5086 | wxSize temp4 ; | |
5087 | bool temp5 = False ; | |
5088 | bool temp8 = False ; | |
5089 | PyObject * obj0 = 0 ; | |
5090 | PyObject * obj1 = 0 ; | |
5091 | PyObject * obj2 = 0 ; | |
5092 | PyObject * obj3 = 0 ; | |
5093 | PyObject * obj4 = 0 ; | |
5094 | PyObject * obj5 = 0 ; | |
5095 | PyObject * obj6 = 0 ; | |
5096 | PyObject * obj7 = 0 ; | |
5097 | char *kwnames[] = { | |
5098 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5099 | }; | |
5100 | ||
5101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
5102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5104 | arg2 = (int) SWIG_AsInt(obj1); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | if (obj2) { | |
5107 | { | |
5108 | arg3 = &temp3; | |
5109 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5110 | } | |
5111 | } | |
5112 | if (obj3) { | |
5113 | { | |
5114 | arg4 = &temp4; | |
5115 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5116 | } | |
5117 | } | |
5118 | if (obj4) { | |
5119 | { | |
5120 | if (! PySequence_Check(obj4)) { | |
5121 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5122 | SWIG_fail; | |
5123 | } | |
5124 | arg5 = new wxArrayString; | |
5125 | temp5 = True; | |
5126 | int i, len=PySequence_Length(obj4); | |
5127 | for (i=0; i<len; i++) { | |
5128 | PyObject* item = PySequence_GetItem(obj4, i); | |
5129 | #if wxUSE_UNICODE | |
5130 | PyObject* str = PyObject_Unicode(item); | |
5131 | #else | |
5132 | PyObject* str = PyObject_Str(item); | |
5133 | #endif | |
5134 | arg5->Add(Py2wxString(str)); | |
5135 | Py_DECREF(item); | |
5136 | Py_DECREF(str); | |
5137 | } | |
5138 | } | |
5139 | } | |
5140 | if (obj5) { | |
5141 | arg6 = (long) SWIG_AsLong(obj5); | |
5142 | if (PyErr_Occurred()) SWIG_fail; | |
5143 | } | |
5144 | if (obj6) { | |
5145 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
5146 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5147 | SWIG_fail; | |
5148 | if (arg7 == NULL) { | |
5149 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5150 | SWIG_fail; | |
5151 | } | |
5152 | } | |
5153 | if (obj7) { | |
5154 | { | |
5155 | arg8 = wxString_in_helper(obj7); | |
5156 | if (arg8 == NULL) SWIG_fail; | |
5157 | temp8 = True; | |
5158 | } | |
5159 | } | |
5160 | { | |
5161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5162 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5163 | ||
5164 | wxPyEndAllowThreads(__tstate); | |
5165 | if (PyErr_Occurred()) SWIG_fail; | |
5166 | } | |
5167 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5168 | { | |
5169 | if (temp5) delete arg5; | |
5170 | } | |
5171 | { | |
5172 | if (temp8) | |
5173 | delete arg8; | |
5174 | } | |
5175 | return resultobj; | |
5176 | fail: | |
5177 | { | |
5178 | if (temp5) delete arg5; | |
5179 | } | |
5180 | { | |
5181 | if (temp8) | |
5182 | delete arg8; | |
5183 | } | |
5184 | return NULL; | |
5185 | } | |
5186 | ||
5187 | ||
5188 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5189 | PyObject *resultobj; | |
5190 | wxListBox *result; | |
5191 | char *kwnames[] = { | |
5192 | NULL | |
5193 | }; | |
5194 | ||
5195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5196 | { | |
5197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5198 | result = (wxListBox *)new wxListBox(); | |
5199 | ||
5200 | wxPyEndAllowThreads(__tstate); | |
5201 | if (PyErr_Occurred()) SWIG_fail; | |
5202 | } | |
5203 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5204 | return resultobj; | |
5205 | fail: | |
5206 | return NULL; | |
5207 | } | |
5208 | ||
5209 | ||
5210 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5211 | PyObject *resultobj; | |
5212 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5213 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5214 | int arg3 ; | |
5215 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5216 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5217 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5218 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5219 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5220 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5221 | long arg7 = (long) 0 ; | |
5222 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5223 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5224 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5225 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5226 | bool result; | |
5227 | wxPoint temp4 ; | |
5228 | wxSize temp5 ; | |
5229 | bool temp6 = False ; | |
5230 | bool temp9 = False ; | |
5231 | PyObject * obj0 = 0 ; | |
5232 | PyObject * obj1 = 0 ; | |
5233 | PyObject * obj2 = 0 ; | |
5234 | PyObject * obj3 = 0 ; | |
5235 | PyObject * obj4 = 0 ; | |
5236 | PyObject * obj5 = 0 ; | |
5237 | PyObject * obj6 = 0 ; | |
5238 | PyObject * obj7 = 0 ; | |
5239 | PyObject * obj8 = 0 ; | |
5240 | char *kwnames[] = { | |
5241 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5242 | }; | |
5243 | ||
5244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
5245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5249 | arg3 = (int) SWIG_AsInt(obj2); | |
5250 | if (PyErr_Occurred()) SWIG_fail; | |
5251 | if (obj3) { | |
5252 | { | |
5253 | arg4 = &temp4; | |
5254 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5255 | } | |
5256 | } | |
5257 | if (obj4) { | |
5258 | { | |
5259 | arg5 = &temp5; | |
5260 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5261 | } | |
5262 | } | |
5263 | if (obj5) { | |
5264 | { | |
5265 | if (! PySequence_Check(obj5)) { | |
5266 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5267 | SWIG_fail; | |
5268 | } | |
5269 | arg6 = new wxArrayString; | |
5270 | temp6 = True; | |
5271 | int i, len=PySequence_Length(obj5); | |
5272 | for (i=0; i<len; i++) { | |
5273 | PyObject* item = PySequence_GetItem(obj5, i); | |
5274 | #if wxUSE_UNICODE | |
5275 | PyObject* str = PyObject_Unicode(item); | |
5276 | #else | |
5277 | PyObject* str = PyObject_Str(item); | |
5278 | #endif | |
5279 | arg6->Add(Py2wxString(str)); | |
5280 | Py_DECREF(item); | |
5281 | Py_DECREF(str); | |
5282 | } | |
5283 | } | |
5284 | } | |
5285 | if (obj6) { | |
5286 | arg7 = (long) SWIG_AsLong(obj6); | |
5287 | if (PyErr_Occurred()) SWIG_fail; | |
5288 | } | |
5289 | if (obj7) { | |
5290 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
5291 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5292 | SWIG_fail; | |
5293 | if (arg8 == NULL) { | |
5294 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5295 | SWIG_fail; | |
5296 | } | |
5297 | } | |
5298 | if (obj8) { | |
5299 | { | |
5300 | arg9 = wxString_in_helper(obj8); | |
5301 | if (arg9 == NULL) SWIG_fail; | |
5302 | temp9 = True; | |
5303 | } | |
5304 | } | |
5305 | { | |
5306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5307 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5308 | ||
5309 | wxPyEndAllowThreads(__tstate); | |
5310 | if (PyErr_Occurred()) SWIG_fail; | |
5311 | } | |
5312 | { | |
5313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5314 | } | |
5315 | { | |
5316 | if (temp6) delete arg6; | |
5317 | } | |
5318 | { | |
5319 | if (temp9) | |
5320 | delete arg9; | |
5321 | } | |
5322 | return resultobj; | |
5323 | fail: | |
5324 | { | |
5325 | if (temp6) delete arg6; | |
5326 | } | |
5327 | { | |
5328 | if (temp9) | |
5329 | delete arg9; | |
5330 | } | |
5331 | return NULL; | |
5332 | } | |
5333 | ||
5334 | ||
5335 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5336 | PyObject *resultobj; | |
5337 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5338 | wxString *arg2 = 0 ; | |
5339 | int arg3 ; | |
5340 | PyObject *arg4 = (PyObject *) NULL ; | |
5341 | bool temp2 = False ; | |
5342 | PyObject * obj0 = 0 ; | |
5343 | PyObject * obj1 = 0 ; | |
5344 | PyObject * obj2 = 0 ; | |
5345 | PyObject * obj3 = 0 ; | |
5346 | char *kwnames[] = { | |
5347 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5348 | }; | |
5349 | ||
5350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5353 | { | |
5354 | arg2 = wxString_in_helper(obj1); | |
5355 | if (arg2 == NULL) SWIG_fail; | |
5356 | temp2 = True; | |
5357 | } | |
5358 | arg3 = (int) SWIG_AsInt(obj2); | |
5359 | if (PyErr_Occurred()) SWIG_fail; | |
5360 | if (obj3) { | |
5361 | arg4 = obj3; | |
5362 | } | |
5363 | { | |
5364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5365 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5366 | ||
5367 | wxPyEndAllowThreads(__tstate); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
5370 | Py_INCREF(Py_None); resultobj = Py_None; | |
5371 | { | |
5372 | if (temp2) | |
5373 | delete arg2; | |
5374 | } | |
5375 | return resultobj; | |
5376 | fail: | |
5377 | { | |
5378 | if (temp2) | |
5379 | delete arg2; | |
5380 | } | |
5381 | return NULL; | |
5382 | } | |
5383 | ||
5384 | ||
5385 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5386 | PyObject *resultobj; | |
5387 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5388 | wxArrayString *arg2 = 0 ; | |
5389 | int arg3 ; | |
5390 | bool temp2 = False ; | |
5391 | PyObject * obj0 = 0 ; | |
5392 | PyObject * obj1 = 0 ; | |
5393 | PyObject * obj2 = 0 ; | |
5394 | char *kwnames[] = { | |
5395 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5396 | }; | |
5397 | ||
5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5401 | { | |
5402 | if (! PySequence_Check(obj1)) { | |
5403 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5404 | SWIG_fail; | |
5405 | } | |
5406 | arg2 = new wxArrayString; | |
5407 | temp2 = True; | |
5408 | int i, len=PySequence_Length(obj1); | |
5409 | for (i=0; i<len; i++) { | |
5410 | PyObject* item = PySequence_GetItem(obj1, i); | |
5411 | #if wxUSE_UNICODE | |
5412 | PyObject* str = PyObject_Unicode(item); | |
5413 | #else | |
5414 | PyObject* str = PyObject_Str(item); | |
5415 | #endif | |
5416 | arg2->Add(Py2wxString(str)); | |
5417 | Py_DECREF(item); | |
5418 | Py_DECREF(str); | |
5419 | } | |
5420 | } | |
5421 | arg3 = (int) SWIG_AsInt(obj2); | |
5422 | if (PyErr_Occurred()) SWIG_fail; | |
5423 | { | |
5424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5425 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5426 | ||
5427 | wxPyEndAllowThreads(__tstate); | |
5428 | if (PyErr_Occurred()) SWIG_fail; | |
5429 | } | |
5430 | Py_INCREF(Py_None); resultobj = Py_None; | |
5431 | { | |
5432 | if (temp2) delete arg2; | |
5433 | } | |
5434 | return resultobj; | |
5435 | fail: | |
5436 | { | |
5437 | if (temp2) delete arg2; | |
5438 | } | |
5439 | return NULL; | |
5440 | } | |
5441 | ||
5442 | ||
5443 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5444 | PyObject *resultobj; | |
5445 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5446 | wxArrayString *arg2 = 0 ; | |
5447 | bool temp2 = False ; | |
5448 | PyObject * obj0 = 0 ; | |
5449 | PyObject * obj1 = 0 ; | |
5450 | char *kwnames[] = { | |
5451 | (char *) "self",(char *) "items", NULL | |
5452 | }; | |
5453 | ||
5454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5457 | { | |
5458 | if (! PySequence_Check(obj1)) { | |
5459 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5460 | SWIG_fail; | |
5461 | } | |
5462 | arg2 = new wxArrayString; | |
5463 | temp2 = True; | |
5464 | int i, len=PySequence_Length(obj1); | |
5465 | for (i=0; i<len; i++) { | |
5466 | PyObject* item = PySequence_GetItem(obj1, i); | |
5467 | #if wxUSE_UNICODE | |
5468 | PyObject* str = PyObject_Unicode(item); | |
5469 | #else | |
5470 | PyObject* str = PyObject_Str(item); | |
5471 | #endif | |
5472 | arg2->Add(Py2wxString(str)); | |
5473 | Py_DECREF(item); | |
5474 | Py_DECREF(str); | |
5475 | } | |
5476 | } | |
5477 | { | |
5478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5479 | (arg1)->Set((wxArrayString const &)*arg2); | |
5480 | ||
5481 | wxPyEndAllowThreads(__tstate); | |
5482 | if (PyErr_Occurred()) SWIG_fail; | |
5483 | } | |
5484 | Py_INCREF(Py_None); resultobj = Py_None; | |
5485 | { | |
5486 | if (temp2) delete arg2; | |
5487 | } | |
5488 | return resultobj; | |
5489 | fail: | |
5490 | { | |
5491 | if (temp2) delete arg2; | |
5492 | } | |
5493 | return NULL; | |
5494 | } | |
5495 | ||
5496 | ||
5497 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5498 | PyObject *resultobj; | |
5499 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5500 | int arg2 ; | |
5501 | bool result; | |
5502 | PyObject * obj0 = 0 ; | |
5503 | PyObject * obj1 = 0 ; | |
5504 | char *kwnames[] = { | |
5505 | (char *) "self",(char *) "n", NULL | |
5506 | }; | |
5507 | ||
5508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
5509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5511 | arg2 = (int) SWIG_AsInt(obj1); | |
5512 | if (PyErr_Occurred()) SWIG_fail; | |
5513 | { | |
5514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5515 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5516 | ||
5517 | wxPyEndAllowThreads(__tstate); | |
5518 | if (PyErr_Occurred()) SWIG_fail; | |
5519 | } | |
5520 | { | |
5521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5522 | } | |
5523 | return resultobj; | |
5524 | fail: | |
5525 | return NULL; | |
5526 | } | |
5527 | ||
5528 | ||
5529 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5530 | PyObject *resultobj; | |
5531 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5532 | int arg2 ; | |
5533 | bool arg3 = (bool) True ; | |
5534 | PyObject * obj0 = 0 ; | |
5535 | PyObject * obj1 = 0 ; | |
5536 | PyObject * obj2 = 0 ; | |
5537 | char *kwnames[] = { | |
5538 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5539 | }; | |
5540 | ||
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5544 | arg2 = (int) SWIG_AsInt(obj1); | |
5545 | if (PyErr_Occurred()) SWIG_fail; | |
5546 | if (obj2) { | |
5547 | arg3 = (bool) SWIG_AsBool(obj2); | |
5548 | if (PyErr_Occurred()) SWIG_fail; | |
5549 | } | |
5550 | { | |
5551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5552 | (arg1)->SetSelection(arg2,arg3); | |
5553 | ||
5554 | wxPyEndAllowThreads(__tstate); | |
5555 | if (PyErr_Occurred()) SWIG_fail; | |
5556 | } | |
5557 | Py_INCREF(Py_None); resultobj = Py_None; | |
5558 | return resultobj; | |
5559 | fail: | |
5560 | return NULL; | |
5561 | } | |
5562 | ||
5563 | ||
5564 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5565 | PyObject *resultobj; | |
5566 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5567 | int arg2 ; | |
5568 | PyObject * obj0 = 0 ; | |
5569 | PyObject * obj1 = 0 ; | |
5570 | char *kwnames[] = { | |
5571 | (char *) "self",(char *) "n", NULL | |
5572 | }; | |
5573 | ||
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
5575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5577 | arg2 = (int) SWIG_AsInt(obj1); | |
5578 | if (PyErr_Occurred()) SWIG_fail; | |
5579 | { | |
5580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5581 | (arg1)->Select(arg2); | |
5582 | ||
5583 | wxPyEndAllowThreads(__tstate); | |
5584 | if (PyErr_Occurred()) SWIG_fail; | |
5585 | } | |
5586 | Py_INCREF(Py_None); resultobj = Py_None; | |
5587 | return resultobj; | |
5588 | fail: | |
5589 | return NULL; | |
5590 | } | |
5591 | ||
5592 | ||
5593 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5594 | PyObject *resultobj; | |
5595 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5596 | int arg2 ; | |
5597 | PyObject * obj0 = 0 ; | |
5598 | PyObject * obj1 = 0 ; | |
5599 | char *kwnames[] = { | |
5600 | (char *) "self",(char *) "n", NULL | |
5601 | }; | |
5602 | ||
5603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
5604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5606 | arg2 = (int) SWIG_AsInt(obj1); | |
5607 | if (PyErr_Occurred()) SWIG_fail; | |
5608 | { | |
5609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5610 | (arg1)->Deselect(arg2); | |
5611 | ||
5612 | wxPyEndAllowThreads(__tstate); | |
5613 | if (PyErr_Occurred()) SWIG_fail; | |
5614 | } | |
5615 | Py_INCREF(Py_None); resultobj = Py_None; | |
5616 | return resultobj; | |
5617 | fail: | |
5618 | return NULL; | |
5619 | } | |
5620 | ||
5621 | ||
5622 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5623 | PyObject *resultobj; | |
5624 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5625 | int arg2 = (int) -1 ; | |
5626 | PyObject * obj0 = 0 ; | |
5627 | PyObject * obj1 = 0 ; | |
5628 | char *kwnames[] = { | |
5629 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5630 | }; | |
5631 | ||
5632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
5633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5635 | if (obj1) { | |
5636 | arg2 = (int) SWIG_AsInt(obj1); | |
5637 | if (PyErr_Occurred()) SWIG_fail; | |
5638 | } | |
5639 | { | |
5640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5641 | (arg1)->DeselectAll(arg2); | |
5642 | ||
5643 | wxPyEndAllowThreads(__tstate); | |
5644 | if (PyErr_Occurred()) SWIG_fail; | |
5645 | } | |
5646 | Py_INCREF(Py_None); resultobj = Py_None; | |
5647 | return resultobj; | |
5648 | fail: | |
5649 | return NULL; | |
5650 | } | |
5651 | ||
5652 | ||
5653 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5654 | PyObject *resultobj; | |
5655 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5656 | wxString *arg2 = 0 ; | |
5657 | bool arg3 = (bool) True ; | |
5658 | bool result; | |
5659 | bool temp2 = False ; | |
5660 | PyObject * obj0 = 0 ; | |
5661 | PyObject * obj1 = 0 ; | |
5662 | PyObject * obj2 = 0 ; | |
5663 | char *kwnames[] = { | |
5664 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5665 | }; | |
5666 | ||
5667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5670 | { | |
5671 | arg2 = wxString_in_helper(obj1); | |
5672 | if (arg2 == NULL) SWIG_fail; | |
5673 | temp2 = True; | |
5674 | } | |
5675 | if (obj2) { | |
5676 | arg3 = (bool) SWIG_AsBool(obj2); | |
5677 | if (PyErr_Occurred()) SWIG_fail; | |
5678 | } | |
5679 | { | |
5680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5681 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5682 | ||
5683 | wxPyEndAllowThreads(__tstate); | |
5684 | if (PyErr_Occurred()) SWIG_fail; | |
5685 | } | |
5686 | { | |
5687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5688 | } | |
5689 | { | |
5690 | if (temp2) | |
5691 | delete arg2; | |
5692 | } | |
5693 | return resultobj; | |
5694 | fail: | |
5695 | { | |
5696 | if (temp2) | |
5697 | delete arg2; | |
5698 | } | |
5699 | return NULL; | |
5700 | } | |
5701 | ||
5702 | ||
5703 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5704 | PyObject *resultobj; | |
5705 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5706 | PyObject *result; | |
5707 | PyObject * obj0 = 0 ; | |
5708 | char *kwnames[] = { | |
5709 | (char *) "self", NULL | |
5710 | }; | |
5711 | ||
5712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
5713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5715 | { | |
5716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5717 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5718 | ||
5719 | wxPyEndAllowThreads(__tstate); | |
5720 | if (PyErr_Occurred()) SWIG_fail; | |
5721 | } | |
5722 | resultobj = result; | |
5723 | return resultobj; | |
5724 | fail: | |
5725 | return NULL; | |
5726 | } | |
5727 | ||
5728 | ||
5729 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5730 | PyObject *resultobj; | |
5731 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5732 | int arg2 ; | |
5733 | PyObject * obj0 = 0 ; | |
5734 | PyObject * obj1 = 0 ; | |
5735 | char *kwnames[] = { | |
5736 | (char *) "self",(char *) "n", NULL | |
5737 | }; | |
5738 | ||
5739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
5740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5742 | arg2 = (int) SWIG_AsInt(obj1); | |
5743 | if (PyErr_Occurred()) SWIG_fail; | |
5744 | { | |
5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5746 | (arg1)->SetFirstItem(arg2); | |
5747 | ||
5748 | wxPyEndAllowThreads(__tstate); | |
5749 | if (PyErr_Occurred()) SWIG_fail; | |
5750 | } | |
5751 | Py_INCREF(Py_None); resultobj = Py_None; | |
5752 | return resultobj; | |
5753 | fail: | |
5754 | return NULL; | |
5755 | } | |
5756 | ||
5757 | ||
5758 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5759 | PyObject *resultobj; | |
5760 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5761 | wxString *arg2 = 0 ; | |
5762 | bool temp2 = False ; | |
5763 | PyObject * obj0 = 0 ; | |
5764 | PyObject * obj1 = 0 ; | |
5765 | char *kwnames[] = { | |
5766 | (char *) "self",(char *) "s", NULL | |
5767 | }; | |
5768 | ||
5769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5772 | { | |
5773 | arg2 = wxString_in_helper(obj1); | |
5774 | if (arg2 == NULL) SWIG_fail; | |
5775 | temp2 = True; | |
5776 | } | |
5777 | { | |
5778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5779 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5780 | ||
5781 | wxPyEndAllowThreads(__tstate); | |
5782 | if (PyErr_Occurred()) SWIG_fail; | |
5783 | } | |
5784 | Py_INCREF(Py_None); resultobj = Py_None; | |
5785 | { | |
5786 | if (temp2) | |
5787 | delete arg2; | |
5788 | } | |
5789 | return resultobj; | |
5790 | fail: | |
5791 | { | |
5792 | if (temp2) | |
5793 | delete arg2; | |
5794 | } | |
5795 | return NULL; | |
5796 | } | |
5797 | ||
5798 | ||
5799 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5800 | PyObject *resultobj; | |
5801 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5802 | int arg2 ; | |
5803 | PyObject * obj0 = 0 ; | |
5804 | PyObject * obj1 = 0 ; | |
5805 | char *kwnames[] = { | |
5806 | (char *) "self",(char *) "n", NULL | |
5807 | }; | |
5808 | ||
5809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5812 | arg2 = (int) SWIG_AsInt(obj1); | |
5813 | if (PyErr_Occurred()) SWIG_fail; | |
5814 | { | |
5815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5816 | (arg1)->EnsureVisible(arg2); | |
5817 | ||
5818 | wxPyEndAllowThreads(__tstate); | |
5819 | if (PyErr_Occurred()) SWIG_fail; | |
5820 | } | |
5821 | Py_INCREF(Py_None); resultobj = Py_None; | |
5822 | return resultobj; | |
5823 | fail: | |
5824 | return NULL; | |
5825 | } | |
5826 | ||
5827 | ||
5828 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5829 | PyObject *resultobj; | |
5830 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5831 | wxString *arg2 = 0 ; | |
5832 | bool temp2 = False ; | |
5833 | PyObject * obj0 = 0 ; | |
5834 | PyObject * obj1 = 0 ; | |
5835 | char *kwnames[] = { | |
5836 | (char *) "self",(char *) "s", NULL | |
5837 | }; | |
5838 | ||
5839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5842 | { | |
5843 | arg2 = wxString_in_helper(obj1); | |
5844 | if (arg2 == NULL) SWIG_fail; | |
5845 | temp2 = True; | |
5846 | } | |
5847 | { | |
5848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5849 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5850 | ||
5851 | wxPyEndAllowThreads(__tstate); | |
5852 | if (PyErr_Occurred()) SWIG_fail; | |
5853 | } | |
5854 | Py_INCREF(Py_None); resultobj = Py_None; | |
5855 | { | |
5856 | if (temp2) | |
5857 | delete arg2; | |
5858 | } | |
5859 | return resultobj; | |
5860 | fail: | |
5861 | { | |
5862 | if (temp2) | |
5863 | delete arg2; | |
5864 | } | |
5865 | return NULL; | |
5866 | } | |
5867 | ||
5868 | ||
5869 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5870 | PyObject *resultobj; | |
5871 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5872 | bool result; | |
5873 | PyObject * obj0 = 0 ; | |
5874 | char *kwnames[] = { | |
5875 | (char *) "self", NULL | |
5876 | }; | |
5877 | ||
5878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5881 | { | |
5882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5883 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5884 | ||
5885 | wxPyEndAllowThreads(__tstate); | |
5886 | if (PyErr_Occurred()) SWIG_fail; | |
5887 | } | |
5888 | { | |
5889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5890 | } | |
5891 | return resultobj; | |
5892 | fail: | |
5893 | return NULL; | |
5894 | } | |
5895 | ||
5896 | ||
5897 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5898 | PyObject *resultobj; | |
5899 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5900 | int arg2 ; | |
5901 | wxColour *arg3 = 0 ; | |
5902 | wxColour temp3 ; | |
5903 | PyObject * obj0 = 0 ; | |
5904 | PyObject * obj1 = 0 ; | |
5905 | PyObject * obj2 = 0 ; | |
5906 | char *kwnames[] = { | |
5907 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5908 | }; | |
5909 | ||
5910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5913 | arg2 = (int) SWIG_AsInt(obj1); | |
5914 | if (PyErr_Occurred()) SWIG_fail; | |
5915 | { | |
5916 | arg3 = &temp3; | |
5917 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5918 | } | |
5919 | { | |
5920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5921 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5922 | ||
5923 | wxPyEndAllowThreads(__tstate); | |
5924 | if (PyErr_Occurred()) SWIG_fail; | |
5925 | } | |
5926 | Py_INCREF(Py_None); resultobj = Py_None; | |
5927 | return resultobj; | |
5928 | fail: | |
5929 | return NULL; | |
5930 | } | |
5931 | ||
5932 | ||
5933 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5934 | PyObject *resultobj; | |
5935 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5936 | int arg2 ; | |
5937 | wxColour *arg3 = 0 ; | |
5938 | wxColour temp3 ; | |
5939 | PyObject * obj0 = 0 ; | |
5940 | PyObject * obj1 = 0 ; | |
5941 | PyObject * obj2 = 0 ; | |
5942 | char *kwnames[] = { | |
5943 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5944 | }; | |
5945 | ||
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5949 | arg2 = (int) SWIG_AsInt(obj1); | |
5950 | if (PyErr_Occurred()) SWIG_fail; | |
5951 | { | |
5952 | arg3 = &temp3; | |
5953 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5954 | } | |
5955 | { | |
5956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5957 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5958 | ||
5959 | wxPyEndAllowThreads(__tstate); | |
5960 | if (PyErr_Occurred()) SWIG_fail; | |
5961 | } | |
5962 | Py_INCREF(Py_None); resultobj = Py_None; | |
5963 | return resultobj; | |
5964 | fail: | |
5965 | return NULL; | |
5966 | } | |
5967 | ||
5968 | ||
5969 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5970 | PyObject *resultobj; | |
5971 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5972 | int arg2 ; | |
5973 | wxFont *arg3 = 0 ; | |
5974 | PyObject * obj0 = 0 ; | |
5975 | PyObject * obj1 = 0 ; | |
5976 | PyObject * obj2 = 0 ; | |
5977 | char *kwnames[] = { | |
5978 | (char *) "self",(char *) "item",(char *) "f", NULL | |
5979 | }; | |
5980 | ||
5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5984 | arg2 = (int) SWIG_AsInt(obj1); | |
5985 | if (PyErr_Occurred()) SWIG_fail; | |
5986 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
5987 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5988 | SWIG_fail; | |
5989 | if (arg3 == NULL) { | |
5990 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5991 | SWIG_fail; | |
5992 | } | |
5993 | { | |
5994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5995 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
5996 | ||
5997 | wxPyEndAllowThreads(__tstate); | |
5998 | if (PyErr_Occurred()) SWIG_fail; | |
5999 | } | |
6000 | Py_INCREF(Py_None); resultobj = Py_None; | |
6001 | return resultobj; | |
6002 | fail: | |
6003 | return NULL; | |
6004 | } | |
6005 | ||
6006 | ||
6007 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
6008 | PyObject *obj; | |
6009 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6010 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6011 | Py_INCREF(obj); | |
6012 | return Py_BuildValue((char *)""); | |
6013 | } | |
6014 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6015 | PyObject *resultobj; | |
6016 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6017 | int arg2 ; | |
6018 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
6019 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6020 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6021 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6022 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
6023 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6024 | long arg6 = (long) 0 ; | |
6025 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6026 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6027 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6028 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6029 | wxCheckListBox *result; | |
6030 | wxPoint temp3 ; | |
6031 | wxSize temp4 ; | |
6032 | bool temp5 = False ; | |
6033 | bool temp8 = False ; | |
6034 | PyObject * obj0 = 0 ; | |
6035 | PyObject * obj1 = 0 ; | |
6036 | PyObject * obj2 = 0 ; | |
6037 | PyObject * obj3 = 0 ; | |
6038 | PyObject * obj4 = 0 ; | |
6039 | PyObject * obj5 = 0 ; | |
6040 | PyObject * obj6 = 0 ; | |
6041 | PyObject * obj7 = 0 ; | |
6042 | char *kwnames[] = { | |
6043 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6044 | }; | |
6045 | ||
6046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
6047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6049 | arg2 = (int) SWIG_AsInt(obj1); | |
6050 | if (PyErr_Occurred()) SWIG_fail; | |
6051 | if (obj2) { | |
6052 | { | |
6053 | arg3 = &temp3; | |
6054 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6055 | } | |
6056 | } | |
6057 | if (obj3) { | |
6058 | { | |
6059 | arg4 = &temp4; | |
6060 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6061 | } | |
6062 | } | |
6063 | if (obj4) { | |
6064 | { | |
6065 | if (! PySequence_Check(obj4)) { | |
6066 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6067 | SWIG_fail; | |
6068 | } | |
6069 | arg5 = new wxArrayString; | |
6070 | temp5 = True; | |
6071 | int i, len=PySequence_Length(obj4); | |
6072 | for (i=0; i<len; i++) { | |
6073 | PyObject* item = PySequence_GetItem(obj4, i); | |
6074 | #if wxUSE_UNICODE | |
6075 | PyObject* str = PyObject_Unicode(item); | |
6076 | #else | |
6077 | PyObject* str = PyObject_Str(item); | |
6078 | #endif | |
6079 | arg5->Add(Py2wxString(str)); | |
6080 | Py_DECREF(item); | |
6081 | Py_DECREF(str); | |
6082 | } | |
6083 | } | |
6084 | } | |
6085 | if (obj5) { | |
6086 | arg6 = (long) SWIG_AsLong(obj5); | |
6087 | if (PyErr_Occurred()) SWIG_fail; | |
6088 | } | |
6089 | if (obj6) { | |
6090 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
6091 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6092 | SWIG_fail; | |
6093 | if (arg7 == NULL) { | |
6094 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6095 | SWIG_fail; | |
6096 | } | |
6097 | } | |
6098 | if (obj7) { | |
6099 | { | |
6100 | arg8 = wxString_in_helper(obj7); | |
6101 | if (arg8 == NULL) SWIG_fail; | |
6102 | temp8 = True; | |
6103 | } | |
6104 | } | |
6105 | { | |
6106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6107 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6108 | ||
6109 | wxPyEndAllowThreads(__tstate); | |
6110 | if (PyErr_Occurred()) SWIG_fail; | |
6111 | } | |
6112 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6113 | { | |
6114 | if (temp5) delete arg5; | |
6115 | } | |
6116 | { | |
6117 | if (temp8) | |
6118 | delete arg8; | |
6119 | } | |
6120 | return resultobj; | |
6121 | fail: | |
6122 | { | |
6123 | if (temp5) delete arg5; | |
6124 | } | |
6125 | { | |
6126 | if (temp8) | |
6127 | delete arg8; | |
6128 | } | |
6129 | return NULL; | |
6130 | } | |
6131 | ||
6132 | ||
6133 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6134 | PyObject *resultobj; | |
6135 | wxCheckListBox *result; | |
6136 | char *kwnames[] = { | |
6137 | NULL | |
6138 | }; | |
6139 | ||
6140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6141 | { | |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6144 | ||
6145 | wxPyEndAllowThreads(__tstate); | |
6146 | if (PyErr_Occurred()) SWIG_fail; | |
6147 | } | |
6148 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6149 | return resultobj; | |
6150 | fail: | |
6151 | return NULL; | |
6152 | } | |
6153 | ||
6154 | ||
6155 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6156 | PyObject *resultobj; | |
6157 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6158 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6159 | int arg3 ; | |
6160 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6161 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6162 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6163 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6164 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
6165 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6166 | long arg7 = (long) 0 ; | |
6167 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6168 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6169 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6170 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6171 | bool result; | |
6172 | wxPoint temp4 ; | |
6173 | wxSize temp5 ; | |
6174 | bool temp6 = False ; | |
6175 | bool temp9 = False ; | |
6176 | PyObject * obj0 = 0 ; | |
6177 | PyObject * obj1 = 0 ; | |
6178 | PyObject * obj2 = 0 ; | |
6179 | PyObject * obj3 = 0 ; | |
6180 | PyObject * obj4 = 0 ; | |
6181 | PyObject * obj5 = 0 ; | |
6182 | PyObject * obj6 = 0 ; | |
6183 | PyObject * obj7 = 0 ; | |
6184 | PyObject * obj8 = 0 ; | |
6185 | char *kwnames[] = { | |
6186 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6187 | }; | |
6188 | ||
6189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
6190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6194 | arg3 = (int) SWIG_AsInt(obj2); | |
6195 | if (PyErr_Occurred()) SWIG_fail; | |
6196 | if (obj3) { | |
6197 | { | |
6198 | arg4 = &temp4; | |
6199 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6200 | } | |
6201 | } | |
6202 | if (obj4) { | |
6203 | { | |
6204 | arg5 = &temp5; | |
6205 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6206 | } | |
6207 | } | |
6208 | if (obj5) { | |
6209 | { | |
6210 | if (! PySequence_Check(obj5)) { | |
6211 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6212 | SWIG_fail; | |
6213 | } | |
6214 | arg6 = new wxArrayString; | |
6215 | temp6 = True; | |
6216 | int i, len=PySequence_Length(obj5); | |
6217 | for (i=0; i<len; i++) { | |
6218 | PyObject* item = PySequence_GetItem(obj5, i); | |
6219 | #if wxUSE_UNICODE | |
6220 | PyObject* str = PyObject_Unicode(item); | |
6221 | #else | |
6222 | PyObject* str = PyObject_Str(item); | |
6223 | #endif | |
6224 | arg6->Add(Py2wxString(str)); | |
6225 | Py_DECREF(item); | |
6226 | Py_DECREF(str); | |
6227 | } | |
6228 | } | |
6229 | } | |
6230 | if (obj6) { | |
6231 | arg7 = (long) SWIG_AsLong(obj6); | |
6232 | if (PyErr_Occurred()) SWIG_fail; | |
6233 | } | |
6234 | if (obj7) { | |
6235 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
6236 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6237 | SWIG_fail; | |
6238 | if (arg8 == NULL) { | |
6239 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6240 | SWIG_fail; | |
6241 | } | |
6242 | } | |
6243 | if (obj8) { | |
6244 | { | |
6245 | arg9 = wxString_in_helper(obj8); | |
6246 | if (arg9 == NULL) SWIG_fail; | |
6247 | temp9 = True; | |
6248 | } | |
6249 | } | |
6250 | { | |
6251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6252 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6253 | ||
6254 | wxPyEndAllowThreads(__tstate); | |
6255 | if (PyErr_Occurred()) SWIG_fail; | |
6256 | } | |
6257 | { | |
6258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6259 | } | |
6260 | { | |
6261 | if (temp6) delete arg6; | |
6262 | } | |
6263 | { | |
6264 | if (temp9) | |
6265 | delete arg9; | |
6266 | } | |
6267 | return resultobj; | |
6268 | fail: | |
6269 | { | |
6270 | if (temp6) delete arg6; | |
6271 | } | |
6272 | { | |
6273 | if (temp9) | |
6274 | delete arg9; | |
6275 | } | |
6276 | return NULL; | |
6277 | } | |
6278 | ||
6279 | ||
6280 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6281 | PyObject *resultobj; | |
6282 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6283 | int arg2 ; | |
6284 | bool result; | |
6285 | PyObject * obj0 = 0 ; | |
6286 | PyObject * obj1 = 0 ; | |
6287 | char *kwnames[] = { | |
6288 | (char *) "self",(char *) "index", NULL | |
6289 | }; | |
6290 | ||
6291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
6292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6294 | arg2 = (int) SWIG_AsInt(obj1); | |
6295 | if (PyErr_Occurred()) SWIG_fail; | |
6296 | { | |
6297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6298 | result = (bool)(arg1)->IsChecked(arg2); | |
6299 | ||
6300 | wxPyEndAllowThreads(__tstate); | |
6301 | if (PyErr_Occurred()) SWIG_fail; | |
6302 | } | |
6303 | { | |
6304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6305 | } | |
6306 | return resultobj; | |
6307 | fail: | |
6308 | return NULL; | |
6309 | } | |
6310 | ||
6311 | ||
6312 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6313 | PyObject *resultobj; | |
6314 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6315 | int arg2 ; | |
6316 | int arg3 = (int) True ; | |
6317 | PyObject * obj0 = 0 ; | |
6318 | PyObject * obj1 = 0 ; | |
6319 | PyObject * obj2 = 0 ; | |
6320 | char *kwnames[] = { | |
6321 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6322 | }; | |
6323 | ||
6324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6327 | arg2 = (int) SWIG_AsInt(obj1); | |
6328 | if (PyErr_Occurred()) SWIG_fail; | |
6329 | if (obj2) { | |
6330 | arg3 = (int) SWIG_AsInt(obj2); | |
6331 | if (PyErr_Occurred()) SWIG_fail; | |
6332 | } | |
6333 | { | |
6334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6335 | (arg1)->Check(arg2,arg3); | |
6336 | ||
6337 | wxPyEndAllowThreads(__tstate); | |
6338 | if (PyErr_Occurred()) SWIG_fail; | |
6339 | } | |
6340 | Py_INCREF(Py_None); resultobj = Py_None; | |
6341 | return resultobj; | |
6342 | fail: | |
6343 | return NULL; | |
6344 | } | |
6345 | ||
6346 | ||
6347 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6348 | PyObject *resultobj; | |
6349 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6350 | int result; | |
6351 | PyObject * obj0 = 0 ; | |
6352 | char *kwnames[] = { | |
6353 | (char *) "self", NULL | |
6354 | }; | |
6355 | ||
6356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
6357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6359 | { | |
6360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6361 | result = (int)(arg1)->GetItemHeight(); | |
6362 | ||
6363 | wxPyEndAllowThreads(__tstate); | |
6364 | if (PyErr_Occurred()) SWIG_fail; | |
6365 | } | |
6366 | resultobj = SWIG_FromInt((int)result); | |
6367 | return resultobj; | |
6368 | fail: | |
6369 | return NULL; | |
6370 | } | |
6371 | ||
6372 | ||
6373 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6374 | PyObject *resultobj; | |
6375 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6376 | wxPoint *arg2 = 0 ; | |
6377 | int result; | |
6378 | wxPoint temp2 ; | |
6379 | PyObject * obj0 = 0 ; | |
6380 | PyObject * obj1 = 0 ; | |
6381 | char *kwnames[] = { | |
6382 | (char *) "self",(char *) "pt", NULL | |
6383 | }; | |
6384 | ||
6385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6388 | { | |
6389 | arg2 = &temp2; | |
6390 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6391 | } | |
6392 | { | |
6393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6394 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6395 | ||
6396 | wxPyEndAllowThreads(__tstate); | |
6397 | if (PyErr_Occurred()) SWIG_fail; | |
6398 | } | |
6399 | resultobj = SWIG_FromInt((int)result); | |
6400 | return resultobj; | |
6401 | fail: | |
6402 | return NULL; | |
6403 | } | |
6404 | ||
6405 | ||
6406 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6407 | PyObject *resultobj; | |
6408 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6409 | int arg2 ; | |
6410 | int arg3 ; | |
6411 | int result; | |
6412 | PyObject * obj0 = 0 ; | |
6413 | PyObject * obj1 = 0 ; | |
6414 | PyObject * obj2 = 0 ; | |
6415 | char *kwnames[] = { | |
6416 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6417 | }; | |
6418 | ||
6419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6422 | arg2 = (int) SWIG_AsInt(obj1); | |
6423 | if (PyErr_Occurred()) SWIG_fail; | |
6424 | arg3 = (int) SWIG_AsInt(obj2); | |
6425 | if (PyErr_Occurred()) SWIG_fail; | |
6426 | { | |
6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6428 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6429 | ||
6430 | wxPyEndAllowThreads(__tstate); | |
6431 | if (PyErr_Occurred()) SWIG_fail; | |
6432 | } | |
6433 | resultobj = SWIG_FromInt((int)result); | |
6434 | return resultobj; | |
6435 | fail: | |
6436 | return NULL; | |
6437 | } | |
6438 | ||
6439 | ||
6440 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6441 | PyObject *obj; | |
6442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6443 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6444 | Py_INCREF(obj); | |
6445 | return Py_BuildValue((char *)""); | |
6446 | } | |
6447 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { | |
6448 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6449 | return 1; | |
6450 | } | |
6451 | ||
6452 | ||
6453 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6454 | PyObject *pyobj; | |
6455 | ||
6456 | { | |
6457 | #if wxUSE_UNICODE | |
6458 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6459 | #else | |
6460 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6461 | #endif | |
6462 | } | |
6463 | return pyobj; | |
6464 | } | |
6465 | ||
6466 | ||
6467 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { | |
6468 | PyObject *resultobj; | |
6469 | wxTextAttr *result; | |
6470 | ||
6471 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6472 | { | |
6473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6474 | result = (wxTextAttr *)new wxTextAttr(); | |
6475 | ||
6476 | wxPyEndAllowThreads(__tstate); | |
6477 | if (PyErr_Occurred()) SWIG_fail; | |
6478 | } | |
6479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
6480 | return resultobj; | |
6481 | fail: | |
6482 | return NULL; | |
6483 | } | |
6484 | ||
6485 | ||
6486 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6487 | PyObject *resultobj; | |
6488 | wxColour *arg1 = 0 ; | |
6489 | wxColour const &arg2_defvalue = wxNullColour ; | |
6490 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6491 | wxFont const &arg3_defvalue = wxNullFont ; | |
6492 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6493 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6494 | wxTextAttr *result; | |
6495 | wxColour temp1 ; | |
6496 | wxColour temp2 ; | |
6497 | PyObject * obj0 = 0 ; | |
6498 | PyObject * obj1 = 0 ; | |
6499 | PyObject * obj2 = 0 ; | |
6500 | PyObject * obj3 = 0 ; | |
6501 | ||
6502 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6503 | { | |
6504 | arg1 = &temp1; | |
6505 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6506 | } | |
6507 | if (obj1) { | |
6508 | { | |
6509 | arg2 = &temp2; | |
6510 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6511 | } | |
6512 | } | |
6513 | if (obj2) { | |
6514 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6515 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6516 | SWIG_fail; | |
6517 | if (arg3 == NULL) { | |
6518 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6519 | SWIG_fail; | |
6520 | } | |
6521 | } | |
6522 | if (obj3) { | |
6523 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); | |
6524 | if (PyErr_Occurred()) SWIG_fail; | |
6525 | } | |
6526 | { | |
6527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6528 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
6529 | ||
6530 | wxPyEndAllowThreads(__tstate); | |
6531 | if (PyErr_Occurred()) SWIG_fail; | |
6532 | } | |
6533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
6534 | return resultobj; | |
6535 | fail: | |
6536 | return NULL; | |
6537 | } | |
6538 | ||
6539 | ||
6540 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6541 | int argc; | |
6542 | PyObject *argv[5]; | |
6543 | int ii; | |
6544 | ||
6545 | argc = PyObject_Length(args); | |
6546 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6547 | argv[ii] = PyTuple_GetItem(args,ii); | |
6548 | } | |
6549 | if (argc == 0) { | |
6550 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6551 | } | |
6552 | if ((argc >= 1) && (argc <= 4)) { | |
6553 | int _v; | |
6554 | { | |
6555 | _v = wxColour_typecheck(argv[0]); | |
6556 | } | |
6557 | if (_v) { | |
6558 | if (argc <= 1) { | |
6559 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6560 | } | |
6561 | { | |
6562 | _v = wxColour_typecheck(argv[1]); | |
6563 | } | |
6564 | if (_v) { | |
6565 | if (argc <= 2) { | |
6566 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6567 | } | |
6568 | { | |
6569 | void *ptr; | |
6570 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
6571 | _v = 0; | |
6572 | PyErr_Clear(); | |
6573 | } else { | |
6574 | _v = 1; | |
6575 | } | |
6576 | } | |
6577 | if (_v) { | |
6578 | if (argc <= 3) { | |
6579 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6580 | } | |
6581 | _v = SWIG_CheckInt(argv[3]); | |
6582 | if (_v) { | |
6583 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6584 | } | |
6585 | } | |
6586 | } | |
6587 | } | |
6588 | } | |
6589 | ||
6590 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6591 | return NULL; | |
6592 | } | |
6593 | ||
6594 | ||
6595 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6596 | PyObject *resultobj; | |
6597 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6598 | PyObject * obj0 = 0 ; | |
6599 | char *kwnames[] = { | |
6600 | (char *) "self", NULL | |
6601 | }; | |
6602 | ||
6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
6604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6606 | { | |
6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6608 | delete arg1; | |
6609 | ||
6610 | wxPyEndAllowThreads(__tstate); | |
6611 | if (PyErr_Occurred()) SWIG_fail; | |
6612 | } | |
6613 | Py_INCREF(Py_None); resultobj = Py_None; | |
6614 | return resultobj; | |
6615 | fail: | |
6616 | return NULL; | |
6617 | } | |
6618 | ||
6619 | ||
6620 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6621 | PyObject *resultobj; | |
6622 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6623 | PyObject * obj0 = 0 ; | |
6624 | char *kwnames[] = { | |
6625 | (char *) "self", NULL | |
6626 | }; | |
6627 | ||
6628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
6629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6631 | { | |
6632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6633 | (arg1)->Init(); | |
6634 | ||
6635 | wxPyEndAllowThreads(__tstate); | |
6636 | if (PyErr_Occurred()) SWIG_fail; | |
6637 | } | |
6638 | Py_INCREF(Py_None); resultobj = Py_None; | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
6642 | } | |
6643 | ||
6644 | ||
6645 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6646 | PyObject *resultobj; | |
6647 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6648 | wxColour *arg2 = 0 ; | |
6649 | wxColour temp2 ; | |
6650 | PyObject * obj0 = 0 ; | |
6651 | PyObject * obj1 = 0 ; | |
6652 | char *kwnames[] = { | |
6653 | (char *) "self",(char *) "colText", NULL | |
6654 | }; | |
6655 | ||
6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6659 | { | |
6660 | arg2 = &temp2; | |
6661 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6662 | } | |
6663 | { | |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6665 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6666 | ||
6667 | wxPyEndAllowThreads(__tstate); | |
6668 | if (PyErr_Occurred()) SWIG_fail; | |
6669 | } | |
6670 | Py_INCREF(Py_None); resultobj = Py_None; | |
6671 | return resultobj; | |
6672 | fail: | |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
6677 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6678 | PyObject *resultobj; | |
6679 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6680 | wxColour *arg2 = 0 ; | |
6681 | wxColour temp2 ; | |
6682 | PyObject * obj0 = 0 ; | |
6683 | PyObject * obj1 = 0 ; | |
6684 | char *kwnames[] = { | |
6685 | (char *) "self",(char *) "colBack", NULL | |
6686 | }; | |
6687 | ||
6688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
6689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6691 | { | |
6692 | arg2 = &temp2; | |
6693 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6694 | } | |
6695 | { | |
6696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6697 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6698 | ||
6699 | wxPyEndAllowThreads(__tstate); | |
6700 | if (PyErr_Occurred()) SWIG_fail; | |
6701 | } | |
6702 | Py_INCREF(Py_None); resultobj = Py_None; | |
6703 | return resultobj; | |
6704 | fail: | |
6705 | return NULL; | |
6706 | } | |
6707 | ||
6708 | ||
6709 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6710 | PyObject *resultobj; | |
6711 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6712 | wxFont *arg2 = 0 ; | |
6713 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6714 | PyObject * obj0 = 0 ; | |
6715 | PyObject * obj1 = 0 ; | |
6716 | PyObject * obj2 = 0 ; | |
6717 | char *kwnames[] = { | |
6718 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6719 | }; | |
6720 | ||
6721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6726 | SWIG_fail; | |
6727 | if (arg2 == NULL) { | |
6728 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6729 | SWIG_fail; | |
6730 | } | |
6731 | if (obj2) { | |
6732 | arg3 = (long) SWIG_AsLong(obj2); | |
6733 | if (PyErr_Occurred()) SWIG_fail; | |
6734 | } | |
6735 | { | |
6736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6737 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6738 | ||
6739 | wxPyEndAllowThreads(__tstate); | |
6740 | if (PyErr_Occurred()) SWIG_fail; | |
6741 | } | |
6742 | Py_INCREF(Py_None); resultobj = Py_None; | |
6743 | return resultobj; | |
6744 | fail: | |
6745 | return NULL; | |
6746 | } | |
6747 | ||
6748 | ||
6749 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6750 | PyObject *resultobj; | |
6751 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6752 | int arg2 ; | |
6753 | PyObject * obj0 = 0 ; | |
6754 | PyObject * obj1 = 0 ; | |
6755 | char *kwnames[] = { | |
6756 | (char *) "self",(char *) "alignment", NULL | |
6757 | }; | |
6758 | ||
6759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
6760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6762 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
6763 | if (PyErr_Occurred()) SWIG_fail; | |
6764 | { | |
6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6766 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6767 | ||
6768 | wxPyEndAllowThreads(__tstate); | |
6769 | if (PyErr_Occurred()) SWIG_fail; | |
6770 | } | |
6771 | Py_INCREF(Py_None); resultobj = Py_None; | |
6772 | return resultobj; | |
6773 | fail: | |
6774 | return NULL; | |
6775 | } | |
6776 | ||
6777 | ||
6778 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6779 | PyObject *resultobj; | |
6780 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6781 | wxArrayInt *arg2 = 0 ; | |
6782 | bool temp2 = False ; | |
6783 | PyObject * obj0 = 0 ; | |
6784 | PyObject * obj1 = 0 ; | |
6785 | char *kwnames[] = { | |
6786 | (char *) "self",(char *) "tabs", NULL | |
6787 | }; | |
6788 | ||
6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
6790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6792 | { | |
6793 | if (! PySequence_Check(obj1)) { | |
6794 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6795 | SWIG_fail; | |
6796 | } | |
6797 | arg2 = new wxArrayInt; | |
6798 | temp2 = True; | |
6799 | int i, len=PySequence_Length(obj1); | |
6800 | for (i=0; i<len; i++) { | |
6801 | PyObject* item = PySequence_GetItem(obj1, i); | |
6802 | PyObject* number = PyNumber_Int(item); | |
6803 | arg2->Add(PyInt_AS_LONG(number)); | |
6804 | Py_DECREF(item); | |
6805 | Py_DECREF(number); | |
6806 | } | |
6807 | } | |
6808 | { | |
6809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6810 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6811 | ||
6812 | wxPyEndAllowThreads(__tstate); | |
6813 | if (PyErr_Occurred()) SWIG_fail; | |
6814 | } | |
6815 | Py_INCREF(Py_None); resultobj = Py_None; | |
6816 | { | |
6817 | if (temp2) delete arg2; | |
6818 | } | |
6819 | return resultobj; | |
6820 | fail: | |
6821 | { | |
6822 | if (temp2) delete arg2; | |
6823 | } | |
6824 | return NULL; | |
6825 | } | |
6826 | ||
6827 | ||
6828 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6829 | PyObject *resultobj; | |
6830 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6831 | int arg2 ; | |
6832 | PyObject * obj0 = 0 ; | |
6833 | PyObject * obj1 = 0 ; | |
6834 | char *kwnames[] = { | |
6835 | (char *) "self",(char *) "indent", NULL | |
6836 | }; | |
6837 | ||
6838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; | |
6839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6841 | arg2 = (int) SWIG_AsInt(obj1); | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | { | |
6844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6845 | (arg1)->SetLeftIndent(arg2); | |
6846 | ||
6847 | wxPyEndAllowThreads(__tstate); | |
6848 | if (PyErr_Occurred()) SWIG_fail; | |
6849 | } | |
6850 | Py_INCREF(Py_None); resultobj = Py_None; | |
6851 | return resultobj; | |
6852 | fail: | |
6853 | return NULL; | |
6854 | } | |
6855 | ||
6856 | ||
6857 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6858 | PyObject *resultobj; | |
6859 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6860 | int arg2 ; | |
6861 | PyObject * obj0 = 0 ; | |
6862 | PyObject * obj1 = 0 ; | |
6863 | char *kwnames[] = { | |
6864 | (char *) "self",(char *) "indent", NULL | |
6865 | }; | |
6866 | ||
6867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
6868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6870 | arg2 = (int) SWIG_AsInt(obj1); | |
6871 | if (PyErr_Occurred()) SWIG_fail; | |
6872 | { | |
6873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6874 | (arg1)->SetRightIndent(arg2); | |
6875 | ||
6876 | wxPyEndAllowThreads(__tstate); | |
6877 | if (PyErr_Occurred()) SWIG_fail; | |
6878 | } | |
6879 | Py_INCREF(Py_None); resultobj = Py_None; | |
6880 | return resultobj; | |
6881 | fail: | |
6882 | return NULL; | |
6883 | } | |
6884 | ||
6885 | ||
6886 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6887 | PyObject *resultobj; | |
6888 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6889 | long arg2 ; | |
6890 | PyObject * obj0 = 0 ; | |
6891 | PyObject * obj1 = 0 ; | |
6892 | char *kwnames[] = { | |
6893 | (char *) "self",(char *) "flags", NULL | |
6894 | }; | |
6895 | ||
6896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
6897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6899 | arg2 = (long) SWIG_AsLong(obj1); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | { | |
6902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6903 | (arg1)->SetFlags(arg2); | |
6904 | ||
6905 | wxPyEndAllowThreads(__tstate); | |
6906 | if (PyErr_Occurred()) SWIG_fail; | |
6907 | } | |
6908 | Py_INCREF(Py_None); resultobj = Py_None; | |
6909 | return resultobj; | |
6910 | fail: | |
6911 | return NULL; | |
6912 | } | |
6913 | ||
6914 | ||
6915 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6916 | PyObject *resultobj; | |
6917 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6918 | bool result; | |
6919 | PyObject * obj0 = 0 ; | |
6920 | char *kwnames[] = { | |
6921 | (char *) "self", NULL | |
6922 | }; | |
6923 | ||
6924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
6925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6927 | { | |
6928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6929 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6930 | ||
6931 | wxPyEndAllowThreads(__tstate); | |
6932 | if (PyErr_Occurred()) SWIG_fail; | |
6933 | } | |
6934 | { | |
6935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6936 | } | |
6937 | return resultobj; | |
6938 | fail: | |
6939 | return NULL; | |
6940 | } | |
6941 | ||
6942 | ||
6943 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6944 | PyObject *resultobj; | |
6945 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6946 | bool result; | |
6947 | PyObject * obj0 = 0 ; | |
6948 | char *kwnames[] = { | |
6949 | (char *) "self", NULL | |
6950 | }; | |
6951 | ||
6952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
6953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6955 | { | |
6956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6957 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6958 | ||
6959 | wxPyEndAllowThreads(__tstate); | |
6960 | if (PyErr_Occurred()) SWIG_fail; | |
6961 | } | |
6962 | { | |
6963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6964 | } | |
6965 | return resultobj; | |
6966 | fail: | |
6967 | return NULL; | |
6968 | } | |
6969 | ||
6970 | ||
6971 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6972 | PyObject *resultobj; | |
6973 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6974 | bool result; | |
6975 | PyObject * obj0 = 0 ; | |
6976 | char *kwnames[] = { | |
6977 | (char *) "self", NULL | |
6978 | }; | |
6979 | ||
6980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
6981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6983 | { | |
6984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6985 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6986 | ||
6987 | wxPyEndAllowThreads(__tstate); | |
6988 | if (PyErr_Occurred()) SWIG_fail; | |
6989 | } | |
6990 | { | |
6991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6992 | } | |
6993 | return resultobj; | |
6994 | fail: | |
6995 | return NULL; | |
6996 | } | |
6997 | ||
6998 | ||
6999 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7000 | PyObject *resultobj; | |
7001 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7002 | bool result; | |
7003 | PyObject * obj0 = 0 ; | |
7004 | char *kwnames[] = { | |
7005 | (char *) "self", NULL | |
7006 | }; | |
7007 | ||
7008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
7009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7011 | { | |
7012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7013 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7014 | ||
7015 | wxPyEndAllowThreads(__tstate); | |
7016 | if (PyErr_Occurred()) SWIG_fail; | |
7017 | } | |
7018 | { | |
7019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7020 | } | |
7021 | return resultobj; | |
7022 | fail: | |
7023 | return NULL; | |
7024 | } | |
7025 | ||
7026 | ||
7027 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7028 | PyObject *resultobj; | |
7029 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7030 | bool result; | |
7031 | PyObject * obj0 = 0 ; | |
7032 | char *kwnames[] = { | |
7033 | (char *) "self", NULL | |
7034 | }; | |
7035 | ||
7036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
7037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7039 | { | |
7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7041 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7042 | ||
7043 | wxPyEndAllowThreads(__tstate); | |
7044 | if (PyErr_Occurred()) SWIG_fail; | |
7045 | } | |
7046 | { | |
7047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7048 | } | |
7049 | return resultobj; | |
7050 | fail: | |
7051 | return NULL; | |
7052 | } | |
7053 | ||
7054 | ||
7055 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7056 | PyObject *resultobj; | |
7057 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7058 | bool result; | |
7059 | PyObject * obj0 = 0 ; | |
7060 | char *kwnames[] = { | |
7061 | (char *) "self", NULL | |
7062 | }; | |
7063 | ||
7064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
7065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7067 | { | |
7068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7069 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7070 | ||
7071 | wxPyEndAllowThreads(__tstate); | |
7072 | if (PyErr_Occurred()) SWIG_fail; | |
7073 | } | |
7074 | { | |
7075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7076 | } | |
7077 | return resultobj; | |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
7083 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7084 | PyObject *resultobj; | |
7085 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7086 | bool result; | |
7087 | PyObject * obj0 = 0 ; | |
7088 | char *kwnames[] = { | |
7089 | (char *) "self", NULL | |
7090 | }; | |
7091 | ||
7092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
7093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7095 | { | |
7096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7097 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7098 | ||
7099 | wxPyEndAllowThreads(__tstate); | |
7100 | if (PyErr_Occurred()) SWIG_fail; | |
7101 | } | |
7102 | { | |
7103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7104 | } | |
7105 | return resultobj; | |
7106 | fail: | |
7107 | return NULL; | |
7108 | } | |
7109 | ||
7110 | ||
7111 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7112 | PyObject *resultobj; | |
7113 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7114 | long arg2 ; | |
7115 | bool result; | |
7116 | PyObject * obj0 = 0 ; | |
7117 | PyObject * obj1 = 0 ; | |
7118 | char *kwnames[] = { | |
7119 | (char *) "self",(char *) "flag", NULL | |
7120 | }; | |
7121 | ||
7122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
7123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7125 | arg2 = (long) SWIG_AsLong(obj1); | |
7126 | if (PyErr_Occurred()) SWIG_fail; | |
7127 | { | |
7128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7129 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7130 | ||
7131 | wxPyEndAllowThreads(__tstate); | |
7132 | if (PyErr_Occurred()) SWIG_fail; | |
7133 | } | |
7134 | { | |
7135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7136 | } | |
7137 | return resultobj; | |
7138 | fail: | |
7139 | return NULL; | |
7140 | } | |
7141 | ||
7142 | ||
7143 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7144 | PyObject *resultobj; | |
7145 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7146 | wxColour *result; | |
7147 | PyObject * obj0 = 0 ; | |
7148 | char *kwnames[] = { | |
7149 | (char *) "self", NULL | |
7150 | }; | |
7151 | ||
7152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
7153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7155 | { | |
7156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7157 | { | |
7158 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7159 | result = (wxColour *) &_result_ref; | |
7160 | } | |
7161 | ||
7162 | wxPyEndAllowThreads(__tstate); | |
7163 | if (PyErr_Occurred()) SWIG_fail; | |
7164 | } | |
7165 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7166 | return resultobj; | |
7167 | fail: | |
7168 | return NULL; | |
7169 | } | |
7170 | ||
7171 | ||
7172 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7173 | PyObject *resultobj; | |
7174 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7175 | wxColour *result; | |
7176 | PyObject * obj0 = 0 ; | |
7177 | char *kwnames[] = { | |
7178 | (char *) "self", NULL | |
7179 | }; | |
7180 | ||
7181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
7182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7184 | { | |
7185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7186 | { | |
7187 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7188 | result = (wxColour *) &_result_ref; | |
7189 | } | |
7190 | ||
7191 | wxPyEndAllowThreads(__tstate); | |
7192 | if (PyErr_Occurred()) SWIG_fail; | |
7193 | } | |
7194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7195 | return resultobj; | |
7196 | fail: | |
7197 | return NULL; | |
7198 | } | |
7199 | ||
7200 | ||
7201 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7202 | PyObject *resultobj; | |
7203 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7204 | wxFont *result; | |
7205 | PyObject * obj0 = 0 ; | |
7206 | char *kwnames[] = { | |
7207 | (char *) "self", NULL | |
7208 | }; | |
7209 | ||
7210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
7211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7213 | { | |
7214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7215 | { | |
7216 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7217 | result = (wxFont *) &_result_ref; | |
7218 | } | |
7219 | ||
7220 | wxPyEndAllowThreads(__tstate); | |
7221 | if (PyErr_Occurred()) SWIG_fail; | |
7222 | } | |
7223 | { | |
7224 | wxFont* resultptr = new wxFont(*result); | |
7225 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7226 | } | |
7227 | return resultobj; | |
7228 | fail: | |
7229 | return NULL; | |
7230 | } | |
7231 | ||
7232 | ||
7233 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7234 | PyObject *resultobj; | |
7235 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7236 | int result; | |
7237 | PyObject * obj0 = 0 ; | |
7238 | char *kwnames[] = { | |
7239 | (char *) "self", NULL | |
7240 | }; | |
7241 | ||
7242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7245 | { | |
7246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7247 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7248 | ||
7249 | wxPyEndAllowThreads(__tstate); | |
7250 | if (PyErr_Occurred()) SWIG_fail; | |
7251 | } | |
7252 | resultobj = SWIG_FromInt((int)result); | |
7253 | return resultobj; | |
7254 | fail: | |
7255 | return NULL; | |
7256 | } | |
7257 | ||
7258 | ||
7259 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7260 | PyObject *resultobj; | |
7261 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7262 | wxArrayInt *result; | |
7263 | PyObject * obj0 = 0 ; | |
7264 | char *kwnames[] = { | |
7265 | (char *) "self", NULL | |
7266 | }; | |
7267 | ||
7268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7271 | { | |
7272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7273 | { | |
7274 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7275 | result = (wxArrayInt *) &_result_ref; | |
7276 | } | |
7277 | ||
7278 | wxPyEndAllowThreads(__tstate); | |
7279 | if (PyErr_Occurred()) SWIG_fail; | |
7280 | } | |
7281 | { | |
7282 | resultobj = PyList_New(0); | |
7283 | size_t idx; | |
7284 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7285 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7286 | PyList_Append(resultobj, val); | |
7287 | Py_DECREF(val); | |
7288 | } | |
7289 | } | |
7290 | return resultobj; | |
7291 | fail: | |
7292 | return NULL; | |
7293 | } | |
7294 | ||
7295 | ||
7296 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7297 | PyObject *resultobj; | |
7298 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7299 | long result; | |
7300 | PyObject * obj0 = 0 ; | |
7301 | char *kwnames[] = { | |
7302 | (char *) "self", NULL | |
7303 | }; | |
7304 | ||
7305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7308 | { | |
7309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7310 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7311 | ||
7312 | wxPyEndAllowThreads(__tstate); | |
7313 | if (PyErr_Occurred()) SWIG_fail; | |
7314 | } | |
7315 | resultobj = SWIG_FromLong((long)result); | |
7316 | return resultobj; | |
7317 | fail: | |
7318 | return NULL; | |
7319 | } | |
7320 | ||
7321 | ||
7322 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7323 | PyObject *resultobj; | |
7324 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7325 | long result; | |
7326 | PyObject * obj0 = 0 ; | |
7327 | char *kwnames[] = { | |
7328 | (char *) "self", NULL | |
7329 | }; | |
7330 | ||
7331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7334 | { | |
7335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7336 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7337 | ||
7338 | wxPyEndAllowThreads(__tstate); | |
7339 | if (PyErr_Occurred()) SWIG_fail; | |
7340 | } | |
7341 | resultobj = SWIG_FromLong((long)result); | |
7342 | return resultobj; | |
7343 | fail: | |
7344 | return NULL; | |
7345 | } | |
7346 | ||
7347 | ||
7348 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7349 | PyObject *resultobj; | |
7350 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7351 | long result; | |
7352 | PyObject * obj0 = 0 ; | |
7353 | char *kwnames[] = { | |
7354 | (char *) "self", NULL | |
7355 | }; | |
7356 | ||
7357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7360 | { | |
7361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7362 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7363 | ||
7364 | wxPyEndAllowThreads(__tstate); | |
7365 | if (PyErr_Occurred()) SWIG_fail; | |
7366 | } | |
7367 | resultobj = SWIG_FromLong((long)result); | |
7368 | return resultobj; | |
7369 | fail: | |
7370 | return NULL; | |
7371 | } | |
7372 | ||
7373 | ||
7374 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7375 | PyObject *resultobj; | |
7376 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7377 | bool result; | |
7378 | PyObject * obj0 = 0 ; | |
7379 | char *kwnames[] = { | |
7380 | (char *) "self", NULL | |
7381 | }; | |
7382 | ||
7383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7386 | { | |
7387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7388 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7389 | ||
7390 | wxPyEndAllowThreads(__tstate); | |
7391 | if (PyErr_Occurred()) SWIG_fail; | |
7392 | } | |
7393 | { | |
7394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7395 | } | |
7396 | return resultobj; | |
7397 | fail: | |
7398 | return NULL; | |
7399 | } | |
7400 | ||
7401 | ||
7402 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7403 | PyObject *resultobj; | |
7404 | wxTextAttr *arg1 = 0 ; | |
7405 | wxTextAttr *arg2 = 0 ; | |
7406 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7407 | wxTextAttr result; | |
7408 | PyObject * obj0 = 0 ; | |
7409 | PyObject * obj1 = 0 ; | |
7410 | PyObject * obj2 = 0 ; | |
7411 | char *kwnames[] = { | |
7412 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7413 | }; | |
7414 | ||
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7417 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7418 | SWIG_fail; | |
7419 | if (arg1 == NULL) { | |
7420 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7421 | SWIG_fail; | |
7422 | } | |
7423 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
7424 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7425 | SWIG_fail; | |
7426 | if (arg2 == NULL) { | |
7427 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7428 | SWIG_fail; | |
7429 | } | |
7430 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, | |
7431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7432 | { | |
7433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7434 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7435 | ||
7436 | wxPyEndAllowThreads(__tstate); | |
7437 | if (PyErr_Occurred()) SWIG_fail; | |
7438 | } | |
7439 | { | |
7440 | wxTextAttr * resultptr; | |
7441 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7442 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); | |
7443 | } | |
7444 | return resultobj; | |
7445 | fail: | |
7446 | return NULL; | |
7447 | } | |
7448 | ||
7449 | ||
7450 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7451 | PyObject *obj; | |
7452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7453 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7454 | Py_INCREF(obj); | |
7455 | return Py_BuildValue((char *)""); | |
7456 | } | |
7457 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7458 | PyObject *resultobj; | |
7459 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7460 | int arg2 ; | |
7461 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7462 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7463 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7464 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7465 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7466 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7467 | long arg6 = (long) 0 ; | |
7468 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7469 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7470 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7471 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7472 | wxTextCtrl *result; | |
7473 | bool temp3 = False ; | |
7474 | wxPoint temp4 ; | |
7475 | wxSize temp5 ; | |
7476 | bool temp8 = False ; | |
7477 | PyObject * obj0 = 0 ; | |
7478 | PyObject * obj1 = 0 ; | |
7479 | PyObject * obj2 = 0 ; | |
7480 | PyObject * obj3 = 0 ; | |
7481 | PyObject * obj4 = 0 ; | |
7482 | PyObject * obj5 = 0 ; | |
7483 | PyObject * obj6 = 0 ; | |
7484 | PyObject * obj7 = 0 ; | |
7485 | char *kwnames[] = { | |
7486 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7487 | }; | |
7488 | ||
7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
7490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
7491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7492 | arg2 = (int) SWIG_AsInt(obj1); | |
7493 | if (PyErr_Occurred()) SWIG_fail; | |
7494 | if (obj2) { | |
7495 | { | |
7496 | arg3 = wxString_in_helper(obj2); | |
7497 | if (arg3 == NULL) SWIG_fail; | |
7498 | temp3 = True; | |
7499 | } | |
7500 | } | |
7501 | if (obj3) { | |
7502 | { | |
7503 | arg4 = &temp4; | |
7504 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7505 | } | |
7506 | } | |
7507 | if (obj4) { | |
7508 | { | |
7509 | arg5 = &temp5; | |
7510 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7511 | } | |
7512 | } | |
7513 | if (obj5) { | |
7514 | arg6 = (long) SWIG_AsLong(obj5); | |
7515 | if (PyErr_Occurred()) SWIG_fail; | |
7516 | } | |
7517 | if (obj6) { | |
7518 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
7519 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7520 | SWIG_fail; | |
7521 | if (arg7 == NULL) { | |
7522 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7523 | SWIG_fail; | |
7524 | } | |
7525 | } | |
7526 | if (obj7) { | |
7527 | { | |
7528 | arg8 = wxString_in_helper(obj7); | |
7529 | if (arg8 == NULL) SWIG_fail; | |
7530 | temp8 = True; | |
7531 | } | |
7532 | } | |
7533 | { | |
7534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7535 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7536 | ||
7537 | wxPyEndAllowThreads(__tstate); | |
7538 | if (PyErr_Occurred()) SWIG_fail; | |
7539 | } | |
7540 | { | |
7541 | resultobj = wxPyMake_wxObject(result); | |
7542 | } | |
7543 | { | |
7544 | if (temp3) | |
7545 | delete arg3; | |
7546 | } | |
7547 | { | |
7548 | if (temp8) | |
7549 | delete arg8; | |
7550 | } | |
7551 | return resultobj; | |
7552 | fail: | |
7553 | { | |
7554 | if (temp3) | |
7555 | delete arg3; | |
7556 | } | |
7557 | { | |
7558 | if (temp8) | |
7559 | delete arg8; | |
7560 | } | |
7561 | return NULL; | |
7562 | } | |
7563 | ||
7564 | ||
7565 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7566 | PyObject *resultobj; | |
7567 | wxTextCtrl *result; | |
7568 | char *kwnames[] = { | |
7569 | NULL | |
7570 | }; | |
7571 | ||
7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7573 | { | |
7574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7575 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7576 | ||
7577 | wxPyEndAllowThreads(__tstate); | |
7578 | if (PyErr_Occurred()) SWIG_fail; | |
7579 | } | |
7580 | { | |
7581 | resultobj = wxPyMake_wxObject(result); | |
7582 | } | |
7583 | return resultobj; | |
7584 | fail: | |
7585 | return NULL; | |
7586 | } | |
7587 | ||
7588 | ||
7589 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7590 | PyObject *resultobj; | |
7591 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7592 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7593 | int arg3 ; | |
7594 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7595 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7596 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7597 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7598 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7599 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7600 | long arg7 = (long) 0 ; | |
7601 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7602 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7603 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7604 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7605 | bool result; | |
7606 | bool temp4 = False ; | |
7607 | wxPoint temp5 ; | |
7608 | wxSize temp6 ; | |
7609 | bool temp9 = False ; | |
7610 | PyObject * obj0 = 0 ; | |
7611 | PyObject * obj1 = 0 ; | |
7612 | PyObject * obj2 = 0 ; | |
7613 | PyObject * obj3 = 0 ; | |
7614 | PyObject * obj4 = 0 ; | |
7615 | PyObject * obj5 = 0 ; | |
7616 | PyObject * obj6 = 0 ; | |
7617 | PyObject * obj7 = 0 ; | |
7618 | PyObject * obj8 = 0 ; | |
7619 | char *kwnames[] = { | |
7620 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7621 | }; | |
7622 | ||
7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
7624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7626 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7628 | arg3 = (int) SWIG_AsInt(obj2); | |
7629 | if (PyErr_Occurred()) SWIG_fail; | |
7630 | if (obj3) { | |
7631 | { | |
7632 | arg4 = wxString_in_helper(obj3); | |
7633 | if (arg4 == NULL) SWIG_fail; | |
7634 | temp4 = True; | |
7635 | } | |
7636 | } | |
7637 | if (obj4) { | |
7638 | { | |
7639 | arg5 = &temp5; | |
7640 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7641 | } | |
7642 | } | |
7643 | if (obj5) { | |
7644 | { | |
7645 | arg6 = &temp6; | |
7646 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7647 | } | |
7648 | } | |
7649 | if (obj6) { | |
7650 | arg7 = (long) SWIG_AsLong(obj6); | |
7651 | if (PyErr_Occurred()) SWIG_fail; | |
7652 | } | |
7653 | if (obj7) { | |
7654 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
7655 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7656 | SWIG_fail; | |
7657 | if (arg8 == NULL) { | |
7658 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7659 | SWIG_fail; | |
7660 | } | |
7661 | } | |
7662 | if (obj8) { | |
7663 | { | |
7664 | arg9 = wxString_in_helper(obj8); | |
7665 | if (arg9 == NULL) SWIG_fail; | |
7666 | temp9 = True; | |
7667 | } | |
7668 | } | |
7669 | { | |
7670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7671 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7672 | ||
7673 | wxPyEndAllowThreads(__tstate); | |
7674 | if (PyErr_Occurred()) SWIG_fail; | |
7675 | } | |
7676 | { | |
7677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7678 | } | |
7679 | { | |
7680 | if (temp4) | |
7681 | delete arg4; | |
7682 | } | |
7683 | { | |
7684 | if (temp9) | |
7685 | delete arg9; | |
7686 | } | |
7687 | return resultobj; | |
7688 | fail: | |
7689 | { | |
7690 | if (temp4) | |
7691 | delete arg4; | |
7692 | } | |
7693 | { | |
7694 | if (temp9) | |
7695 | delete arg9; | |
7696 | } | |
7697 | return NULL; | |
7698 | } | |
7699 | ||
7700 | ||
7701 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7702 | PyObject *resultobj; | |
7703 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7704 | wxString result; | |
7705 | PyObject * obj0 = 0 ; | |
7706 | char *kwnames[] = { | |
7707 | (char *) "self", NULL | |
7708 | }; | |
7709 | ||
7710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
7711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7713 | { | |
7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7715 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7716 | ||
7717 | wxPyEndAllowThreads(__tstate); | |
7718 | if (PyErr_Occurred()) SWIG_fail; | |
7719 | } | |
7720 | { | |
7721 | #if wxUSE_UNICODE | |
7722 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7723 | #else | |
7724 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7725 | #endif | |
7726 | } | |
7727 | return resultobj; | |
7728 | fail: | |
7729 | return NULL; | |
7730 | } | |
7731 | ||
7732 | ||
7733 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7734 | PyObject *resultobj; | |
7735 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7736 | wxString *arg2 = 0 ; | |
7737 | bool temp2 = False ; | |
7738 | PyObject * obj0 = 0 ; | |
7739 | PyObject * obj1 = 0 ; | |
7740 | char *kwnames[] = { | |
7741 | (char *) "self",(char *) "value", NULL | |
7742 | }; | |
7743 | ||
7744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
7745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7747 | { | |
7748 | arg2 = wxString_in_helper(obj1); | |
7749 | if (arg2 == NULL) SWIG_fail; | |
7750 | temp2 = True; | |
7751 | } | |
7752 | { | |
7753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7754 | (arg1)->SetValue((wxString const &)*arg2); | |
7755 | ||
7756 | wxPyEndAllowThreads(__tstate); | |
7757 | if (PyErr_Occurred()) SWIG_fail; | |
7758 | } | |
7759 | Py_INCREF(Py_None); resultobj = Py_None; | |
7760 | { | |
7761 | if (temp2) | |
7762 | delete arg2; | |
7763 | } | |
7764 | return resultobj; | |
7765 | fail: | |
7766 | { | |
7767 | if (temp2) | |
7768 | delete arg2; | |
7769 | } | |
7770 | return NULL; | |
7771 | } | |
7772 | ||
7773 | ||
7774 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7775 | PyObject *resultobj; | |
7776 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7777 | long arg2 ; | |
7778 | long arg3 ; | |
7779 | wxString result; | |
7780 | PyObject * obj0 = 0 ; | |
7781 | PyObject * obj1 = 0 ; | |
7782 | PyObject * obj2 = 0 ; | |
7783 | char *kwnames[] = { | |
7784 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7785 | }; | |
7786 | ||
7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7790 | arg2 = (long) SWIG_AsLong(obj1); | |
7791 | if (PyErr_Occurred()) SWIG_fail; | |
7792 | arg3 = (long) SWIG_AsLong(obj2); | |
7793 | if (PyErr_Occurred()) SWIG_fail; | |
7794 | { | |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7796 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7797 | ||
7798 | wxPyEndAllowThreads(__tstate); | |
7799 | if (PyErr_Occurred()) SWIG_fail; | |
7800 | } | |
7801 | { | |
7802 | #if wxUSE_UNICODE | |
7803 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7804 | #else | |
7805 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7806 | #endif | |
7807 | } | |
7808 | return resultobj; | |
7809 | fail: | |
7810 | return NULL; | |
7811 | } | |
7812 | ||
7813 | ||
7814 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7815 | PyObject *resultobj; | |
7816 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7817 | long arg2 ; | |
7818 | int result; | |
7819 | PyObject * obj0 = 0 ; | |
7820 | PyObject * obj1 = 0 ; | |
7821 | char *kwnames[] = { | |
7822 | (char *) "self",(char *) "lineNo", NULL | |
7823 | }; | |
7824 | ||
7825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
7826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7828 | arg2 = (long) SWIG_AsLong(obj1); | |
7829 | if (PyErr_Occurred()) SWIG_fail; | |
7830 | { | |
7831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7832 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7833 | ||
7834 | wxPyEndAllowThreads(__tstate); | |
7835 | if (PyErr_Occurred()) SWIG_fail; | |
7836 | } | |
7837 | resultobj = SWIG_FromInt((int)result); | |
7838 | return resultobj; | |
7839 | fail: | |
7840 | return NULL; | |
7841 | } | |
7842 | ||
7843 | ||
7844 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7845 | PyObject *resultobj; | |
7846 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7847 | long arg2 ; | |
7848 | wxString result; | |
7849 | PyObject * obj0 = 0 ; | |
7850 | PyObject * obj1 = 0 ; | |
7851 | char *kwnames[] = { | |
7852 | (char *) "self",(char *) "lineNo", NULL | |
7853 | }; | |
7854 | ||
7855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
7856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7858 | arg2 = (long) SWIG_AsLong(obj1); | |
7859 | if (PyErr_Occurred()) SWIG_fail; | |
7860 | { | |
7861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7862 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7863 | ||
7864 | wxPyEndAllowThreads(__tstate); | |
7865 | if (PyErr_Occurred()) SWIG_fail; | |
7866 | } | |
7867 | { | |
7868 | #if wxUSE_UNICODE | |
7869 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7870 | #else | |
7871 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7872 | #endif | |
7873 | } | |
7874 | return resultobj; | |
7875 | fail: | |
7876 | return NULL; | |
7877 | } | |
7878 | ||
7879 | ||
7880 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7881 | PyObject *resultobj; | |
7882 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7883 | int result; | |
7884 | PyObject * obj0 = 0 ; | |
7885 | char *kwnames[] = { | |
7886 | (char *) "self", NULL | |
7887 | }; | |
7888 | ||
7889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
7890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7892 | { | |
7893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7894 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7895 | ||
7896 | wxPyEndAllowThreads(__tstate); | |
7897 | if (PyErr_Occurred()) SWIG_fail; | |
7898 | } | |
7899 | resultobj = SWIG_FromInt((int)result); | |
7900 | return resultobj; | |
7901 | fail: | |
7902 | return NULL; | |
7903 | } | |
7904 | ||
7905 | ||
7906 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7907 | PyObject *resultobj; | |
7908 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7909 | bool result; | |
7910 | PyObject * obj0 = 0 ; | |
7911 | char *kwnames[] = { | |
7912 | (char *) "self", NULL | |
7913 | }; | |
7914 | ||
7915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
7916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7918 | { | |
7919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7920 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7921 | ||
7922 | wxPyEndAllowThreads(__tstate); | |
7923 | if (PyErr_Occurred()) SWIG_fail; | |
7924 | } | |
7925 | { | |
7926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7927 | } | |
7928 | return resultobj; | |
7929 | fail: | |
7930 | return NULL; | |
7931 | } | |
7932 | ||
7933 | ||
7934 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7935 | PyObject *resultobj; | |
7936 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7937 | bool result; | |
7938 | PyObject * obj0 = 0 ; | |
7939 | char *kwnames[] = { | |
7940 | (char *) "self", NULL | |
7941 | }; | |
7942 | ||
7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
7944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7946 | { | |
7947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7948 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7949 | ||
7950 | wxPyEndAllowThreads(__tstate); | |
7951 | if (PyErr_Occurred()) SWIG_fail; | |
7952 | } | |
7953 | { | |
7954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7955 | } | |
7956 | return resultobj; | |
7957 | fail: | |
7958 | return NULL; | |
7959 | } | |
7960 | ||
7961 | ||
7962 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7963 | PyObject *resultobj; | |
7964 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7965 | bool result; | |
7966 | PyObject * obj0 = 0 ; | |
7967 | char *kwnames[] = { | |
7968 | (char *) "self", NULL | |
7969 | }; | |
7970 | ||
7971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
7972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7974 | { | |
7975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7976 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7977 | ||
7978 | wxPyEndAllowThreads(__tstate); | |
7979 | if (PyErr_Occurred()) SWIG_fail; | |
7980 | } | |
7981 | { | |
7982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7983 | } | |
7984 | return resultobj; | |
7985 | fail: | |
7986 | return NULL; | |
7987 | } | |
7988 | ||
7989 | ||
7990 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7991 | PyObject *resultobj; | |
7992 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7993 | bool result; | |
7994 | PyObject * obj0 = 0 ; | |
7995 | char *kwnames[] = { | |
7996 | (char *) "self", NULL | |
7997 | }; | |
7998 | ||
7999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
8000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8002 | { | |
8003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8004 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8005 | ||
8006 | wxPyEndAllowThreads(__tstate); | |
8007 | if (PyErr_Occurred()) SWIG_fail; | |
8008 | } | |
8009 | { | |
8010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8011 | } | |
8012 | return resultobj; | |
8013 | fail: | |
8014 | return NULL; | |
8015 | } | |
8016 | ||
8017 | ||
8018 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8019 | PyObject *resultobj; | |
8020 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8021 | long *arg2 = (long *) 0 ; | |
8022 | long *arg3 = (long *) 0 ; | |
8023 | long temp2 ; | |
8024 | long temp3 ; | |
8025 | PyObject * obj0 = 0 ; | |
8026 | char *kwnames[] = { | |
8027 | (char *) "self", NULL | |
8028 | }; | |
8029 | ||
8030 | arg2 = &temp2; | |
8031 | arg3 = &temp3; | |
8032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
8033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8035 | { | |
8036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8037 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8038 | ||
8039 | wxPyEndAllowThreads(__tstate); | |
8040 | if (PyErr_Occurred()) SWIG_fail; | |
8041 | } | |
8042 | Py_INCREF(Py_None); resultobj = Py_None; | |
8043 | { | |
8044 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8045 | resultobj = t_output_helper(resultobj,o); | |
8046 | } | |
8047 | { | |
8048 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8049 | resultobj = t_output_helper(resultobj,o); | |
8050 | } | |
8051 | return resultobj; | |
8052 | fail: | |
8053 | return NULL; | |
8054 | } | |
8055 | ||
8056 | ||
8057 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8058 | PyObject *resultobj; | |
8059 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8060 | wxString result; | |
8061 | PyObject * obj0 = 0 ; | |
8062 | char *kwnames[] = { | |
8063 | (char *) "self", NULL | |
8064 | }; | |
8065 | ||
8066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
8067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8069 | { | |
8070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8071 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8072 | ||
8073 | wxPyEndAllowThreads(__tstate); | |
8074 | if (PyErr_Occurred()) SWIG_fail; | |
8075 | } | |
8076 | { | |
8077 | #if wxUSE_UNICODE | |
8078 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8079 | #else | |
8080 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8081 | #endif | |
8082 | } | |
8083 | return resultobj; | |
8084 | fail: | |
8085 | return NULL; | |
8086 | } | |
8087 | ||
8088 | ||
8089 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8090 | PyObject *resultobj; | |
8091 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8092 | PyObject * obj0 = 0 ; | |
8093 | char *kwnames[] = { | |
8094 | (char *) "self", NULL | |
8095 | }; | |
8096 | ||
8097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
8098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8100 | { | |
8101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8102 | (arg1)->Clear(); | |
8103 | ||
8104 | wxPyEndAllowThreads(__tstate); | |
8105 | if (PyErr_Occurred()) SWIG_fail; | |
8106 | } | |
8107 | Py_INCREF(Py_None); resultobj = Py_None; | |
8108 | return resultobj; | |
8109 | fail: | |
8110 | return NULL; | |
8111 | } | |
8112 | ||
8113 | ||
8114 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8115 | PyObject *resultobj; | |
8116 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8117 | long arg2 ; | |
8118 | long arg3 ; | |
8119 | wxString *arg4 = 0 ; | |
8120 | bool temp4 = False ; | |
8121 | PyObject * obj0 = 0 ; | |
8122 | PyObject * obj1 = 0 ; | |
8123 | PyObject * obj2 = 0 ; | |
8124 | PyObject * obj3 = 0 ; | |
8125 | char *kwnames[] = { | |
8126 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8127 | }; | |
8128 | ||
8129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8132 | arg2 = (long) SWIG_AsLong(obj1); | |
8133 | if (PyErr_Occurred()) SWIG_fail; | |
8134 | arg3 = (long) SWIG_AsLong(obj2); | |
8135 | if (PyErr_Occurred()) SWIG_fail; | |
8136 | { | |
8137 | arg4 = wxString_in_helper(obj3); | |
8138 | if (arg4 == NULL) SWIG_fail; | |
8139 | temp4 = True; | |
8140 | } | |
8141 | { | |
8142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8143 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8144 | ||
8145 | wxPyEndAllowThreads(__tstate); | |
8146 | if (PyErr_Occurred()) SWIG_fail; | |
8147 | } | |
8148 | Py_INCREF(Py_None); resultobj = Py_None; | |
8149 | { | |
8150 | if (temp4) | |
8151 | delete arg4; | |
8152 | } | |
8153 | return resultobj; | |
8154 | fail: | |
8155 | { | |
8156 | if (temp4) | |
8157 | delete arg4; | |
8158 | } | |
8159 | return NULL; | |
8160 | } | |
8161 | ||
8162 | ||
8163 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8164 | PyObject *resultobj; | |
8165 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8166 | long arg2 ; | |
8167 | long arg3 ; | |
8168 | PyObject * obj0 = 0 ; | |
8169 | PyObject * obj1 = 0 ; | |
8170 | PyObject * obj2 = 0 ; | |
8171 | char *kwnames[] = { | |
8172 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8173 | }; | |
8174 | ||
8175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8178 | arg2 = (long) SWIG_AsLong(obj1); | |
8179 | if (PyErr_Occurred()) SWIG_fail; | |
8180 | arg3 = (long) SWIG_AsLong(obj2); | |
8181 | if (PyErr_Occurred()) SWIG_fail; | |
8182 | { | |
8183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8184 | (arg1)->Remove(arg2,arg3); | |
8185 | ||
8186 | wxPyEndAllowThreads(__tstate); | |
8187 | if (PyErr_Occurred()) SWIG_fail; | |
8188 | } | |
8189 | Py_INCREF(Py_None); resultobj = Py_None; | |
8190 | return resultobj; | |
8191 | fail: | |
8192 | return NULL; | |
8193 | } | |
8194 | ||
8195 | ||
8196 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8197 | PyObject *resultobj; | |
8198 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8199 | wxString *arg2 = 0 ; | |
8200 | bool result; | |
8201 | bool temp2 = False ; | |
8202 | PyObject * obj0 = 0 ; | |
8203 | PyObject * obj1 = 0 ; | |
8204 | char *kwnames[] = { | |
8205 | (char *) "self",(char *) "file", NULL | |
8206 | }; | |
8207 | ||
8208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
8209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8211 | { | |
8212 | arg2 = wxString_in_helper(obj1); | |
8213 | if (arg2 == NULL) SWIG_fail; | |
8214 | temp2 = True; | |
8215 | } | |
8216 | { | |
8217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8218 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8219 | ||
8220 | wxPyEndAllowThreads(__tstate); | |
8221 | if (PyErr_Occurred()) SWIG_fail; | |
8222 | } | |
8223 | { | |
8224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8225 | } | |
8226 | { | |
8227 | if (temp2) | |
8228 | delete arg2; | |
8229 | } | |
8230 | return resultobj; | |
8231 | fail: | |
8232 | { | |
8233 | if (temp2) | |
8234 | delete arg2; | |
8235 | } | |
8236 | return NULL; | |
8237 | } | |
8238 | ||
8239 | ||
8240 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8241 | PyObject *resultobj; | |
8242 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8243 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8244 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8245 | bool result; | |
8246 | bool temp2 = False ; | |
8247 | PyObject * obj0 = 0 ; | |
8248 | PyObject * obj1 = 0 ; | |
8249 | char *kwnames[] = { | |
8250 | (char *) "self",(char *) "file", NULL | |
8251 | }; | |
8252 | ||
8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
8254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8256 | if (obj1) { | |
8257 | { | |
8258 | arg2 = wxString_in_helper(obj1); | |
8259 | if (arg2 == NULL) SWIG_fail; | |
8260 | temp2 = True; | |
8261 | } | |
8262 | } | |
8263 | { | |
8264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8265 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8266 | ||
8267 | wxPyEndAllowThreads(__tstate); | |
8268 | if (PyErr_Occurred()) SWIG_fail; | |
8269 | } | |
8270 | { | |
8271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8272 | } | |
8273 | { | |
8274 | if (temp2) | |
8275 | delete arg2; | |
8276 | } | |
8277 | return resultobj; | |
8278 | fail: | |
8279 | { | |
8280 | if (temp2) | |
8281 | delete arg2; | |
8282 | } | |
8283 | return NULL; | |
8284 | } | |
8285 | ||
8286 | ||
8287 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8288 | PyObject *resultobj; | |
8289 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8290 | PyObject * obj0 = 0 ; | |
8291 | char *kwnames[] = { | |
8292 | (char *) "self", NULL | |
8293 | }; | |
8294 | ||
8295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8298 | { | |
8299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8300 | (arg1)->MarkDirty(); | |
8301 | ||
8302 | wxPyEndAllowThreads(__tstate); | |
8303 | if (PyErr_Occurred()) SWIG_fail; | |
8304 | } | |
8305 | Py_INCREF(Py_None); resultobj = Py_None; | |
8306 | return resultobj; | |
8307 | fail: | |
8308 | return NULL; | |
8309 | } | |
8310 | ||
8311 | ||
8312 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8313 | PyObject *resultobj; | |
8314 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8315 | PyObject * obj0 = 0 ; | |
8316 | char *kwnames[] = { | |
8317 | (char *) "self", NULL | |
8318 | }; | |
8319 | ||
8320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8323 | { | |
8324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8325 | (arg1)->DiscardEdits(); | |
8326 | ||
8327 | wxPyEndAllowThreads(__tstate); | |
8328 | if (PyErr_Occurred()) SWIG_fail; | |
8329 | } | |
8330 | Py_INCREF(Py_None); resultobj = Py_None; | |
8331 | return resultobj; | |
8332 | fail: | |
8333 | return NULL; | |
8334 | } | |
8335 | ||
8336 | ||
8337 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8338 | PyObject *resultobj; | |
8339 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8340 | unsigned long arg2 ; | |
8341 | PyObject * obj0 = 0 ; | |
8342 | PyObject * obj1 = 0 ; | |
8343 | char *kwnames[] = { | |
8344 | (char *) "self",(char *) "len", NULL | |
8345 | }; | |
8346 | ||
8347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8350 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8351 | if (PyErr_Occurred()) SWIG_fail; | |
8352 | { | |
8353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8354 | (arg1)->SetMaxLength(arg2); | |
8355 | ||
8356 | wxPyEndAllowThreads(__tstate); | |
8357 | if (PyErr_Occurred()) SWIG_fail; | |
8358 | } | |
8359 | Py_INCREF(Py_None); resultobj = Py_None; | |
8360 | return resultobj; | |
8361 | fail: | |
8362 | return NULL; | |
8363 | } | |
8364 | ||
8365 | ||
8366 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8367 | PyObject *resultobj; | |
8368 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8369 | wxString *arg2 = 0 ; | |
8370 | bool temp2 = False ; | |
8371 | PyObject * obj0 = 0 ; | |
8372 | PyObject * obj1 = 0 ; | |
8373 | char *kwnames[] = { | |
8374 | (char *) "self",(char *) "text", NULL | |
8375 | }; | |
8376 | ||
8377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8380 | { | |
8381 | arg2 = wxString_in_helper(obj1); | |
8382 | if (arg2 == NULL) SWIG_fail; | |
8383 | temp2 = True; | |
8384 | } | |
8385 | { | |
8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8387 | (arg1)->WriteText((wxString const &)*arg2); | |
8388 | ||
8389 | wxPyEndAllowThreads(__tstate); | |
8390 | if (PyErr_Occurred()) SWIG_fail; | |
8391 | } | |
8392 | Py_INCREF(Py_None); resultobj = Py_None; | |
8393 | { | |
8394 | if (temp2) | |
8395 | delete arg2; | |
8396 | } | |
8397 | return resultobj; | |
8398 | fail: | |
8399 | { | |
8400 | if (temp2) | |
8401 | delete arg2; | |
8402 | } | |
8403 | return NULL; | |
8404 | } | |
8405 | ||
8406 | ||
8407 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8408 | PyObject *resultobj; | |
8409 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8410 | wxString *arg2 = 0 ; | |
8411 | bool temp2 = False ; | |
8412 | PyObject * obj0 = 0 ; | |
8413 | PyObject * obj1 = 0 ; | |
8414 | char *kwnames[] = { | |
8415 | (char *) "self",(char *) "text", NULL | |
8416 | }; | |
8417 | ||
8418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8421 | { | |
8422 | arg2 = wxString_in_helper(obj1); | |
8423 | if (arg2 == NULL) SWIG_fail; | |
8424 | temp2 = True; | |
8425 | } | |
8426 | { | |
8427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8428 | (arg1)->AppendText((wxString const &)*arg2); | |
8429 | ||
8430 | wxPyEndAllowThreads(__tstate); | |
8431 | if (PyErr_Occurred()) SWIG_fail; | |
8432 | } | |
8433 | Py_INCREF(Py_None); resultobj = Py_None; | |
8434 | { | |
8435 | if (temp2) | |
8436 | delete arg2; | |
8437 | } | |
8438 | return resultobj; | |
8439 | fail: | |
8440 | { | |
8441 | if (temp2) | |
8442 | delete arg2; | |
8443 | } | |
8444 | return NULL; | |
8445 | } | |
8446 | ||
8447 | ||
8448 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8449 | PyObject *resultobj; | |
8450 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8451 | wxKeyEvent *arg2 = 0 ; | |
8452 | bool result; | |
8453 | PyObject * obj0 = 0 ; | |
8454 | PyObject * obj1 = 0 ; | |
8455 | char *kwnames[] = { | |
8456 | (char *) "self",(char *) "event", NULL | |
8457 | }; | |
8458 | ||
8459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8464 | SWIG_fail; | |
8465 | if (arg2 == NULL) { | |
8466 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8467 | SWIG_fail; | |
8468 | } | |
8469 | { | |
8470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8471 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8472 | ||
8473 | wxPyEndAllowThreads(__tstate); | |
8474 | if (PyErr_Occurred()) SWIG_fail; | |
8475 | } | |
8476 | { | |
8477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8478 | } | |
8479 | return resultobj; | |
8480 | fail: | |
8481 | return NULL; | |
8482 | } | |
8483 | ||
8484 | ||
8485 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8486 | PyObject *resultobj; | |
8487 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8488 | long arg2 ; | |
8489 | long arg3 ; | |
8490 | wxTextAttr *arg4 = 0 ; | |
8491 | bool result; | |
8492 | PyObject * obj0 = 0 ; | |
8493 | PyObject * obj1 = 0 ; | |
8494 | PyObject * obj2 = 0 ; | |
8495 | PyObject * obj3 = 0 ; | |
8496 | char *kwnames[] = { | |
8497 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8498 | }; | |
8499 | ||
8500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8503 | arg2 = (long) SWIG_AsLong(obj1); | |
8504 | if (PyErr_Occurred()) SWIG_fail; | |
8505 | arg3 = (long) SWIG_AsLong(obj2); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
8508 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8509 | SWIG_fail; | |
8510 | if (arg4 == NULL) { | |
8511 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8512 | SWIG_fail; | |
8513 | } | |
8514 | { | |
8515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8516 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8517 | ||
8518 | wxPyEndAllowThreads(__tstate); | |
8519 | if (PyErr_Occurred()) SWIG_fail; | |
8520 | } | |
8521 | { | |
8522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8523 | } | |
8524 | return resultobj; | |
8525 | fail: | |
8526 | return NULL; | |
8527 | } | |
8528 | ||
8529 | ||
8530 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8531 | PyObject *resultobj; | |
8532 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8533 | long arg2 ; | |
8534 | wxTextAttr *arg3 = 0 ; | |
8535 | bool result; | |
8536 | PyObject * obj0 = 0 ; | |
8537 | PyObject * obj1 = 0 ; | |
8538 | PyObject * obj2 = 0 ; | |
8539 | char *kwnames[] = { | |
8540 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8541 | }; | |
8542 | ||
8543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8546 | arg2 = (long) SWIG_AsLong(obj1); | |
8547 | if (PyErr_Occurred()) SWIG_fail; | |
8548 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
8549 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8550 | SWIG_fail; | |
8551 | if (arg3 == NULL) { | |
8552 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8553 | SWIG_fail; | |
8554 | } | |
8555 | { | |
8556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8557 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8558 | ||
8559 | wxPyEndAllowThreads(__tstate); | |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
8561 | } | |
8562 | { | |
8563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8564 | } | |
8565 | return resultobj; | |
8566 | fail: | |
8567 | return NULL; | |
8568 | } | |
8569 | ||
8570 | ||
8571 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8572 | PyObject *resultobj; | |
8573 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8574 | wxTextAttr *arg2 = 0 ; | |
8575 | bool result; | |
8576 | PyObject * obj0 = 0 ; | |
8577 | PyObject * obj1 = 0 ; | |
8578 | char *kwnames[] = { | |
8579 | (char *) "self",(char *) "style", NULL | |
8580 | }; | |
8581 | ||
8582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
8583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8585 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
8586 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8587 | SWIG_fail; | |
8588 | if (arg2 == NULL) { | |
8589 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8590 | SWIG_fail; | |
8591 | } | |
8592 | { | |
8593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8594 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8595 | ||
8596 | wxPyEndAllowThreads(__tstate); | |
8597 | if (PyErr_Occurred()) SWIG_fail; | |
8598 | } | |
8599 | { | |
8600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8601 | } | |
8602 | return resultobj; | |
8603 | fail: | |
8604 | return NULL; | |
8605 | } | |
8606 | ||
8607 | ||
8608 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8609 | PyObject *resultobj; | |
8610 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8611 | wxTextAttr *result; | |
8612 | PyObject * obj0 = 0 ; | |
8613 | char *kwnames[] = { | |
8614 | (char *) "self", NULL | |
8615 | }; | |
8616 | ||
8617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
8618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8620 | { | |
8621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8622 | { | |
8623 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8624 | result = (wxTextAttr *) &_result_ref; | |
8625 | } | |
8626 | ||
8627 | wxPyEndAllowThreads(__tstate); | |
8628 | if (PyErr_Occurred()) SWIG_fail; | |
8629 | } | |
8630 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); | |
8631 | return resultobj; | |
8632 | fail: | |
8633 | return NULL; | |
8634 | } | |
8635 | ||
8636 | ||
8637 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8638 | PyObject *resultobj; | |
8639 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8640 | long arg2 ; | |
8641 | long arg3 ; | |
8642 | long result; | |
8643 | PyObject * obj0 = 0 ; | |
8644 | PyObject * obj1 = 0 ; | |
8645 | PyObject * obj2 = 0 ; | |
8646 | char *kwnames[] = { | |
8647 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8648 | }; | |
8649 | ||
8650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8653 | arg2 = (long) SWIG_AsLong(obj1); | |
8654 | if (PyErr_Occurred()) SWIG_fail; | |
8655 | arg3 = (long) SWIG_AsLong(obj2); | |
8656 | if (PyErr_Occurred()) SWIG_fail; | |
8657 | { | |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8660 | ||
8661 | wxPyEndAllowThreads(__tstate); | |
8662 | if (PyErr_Occurred()) SWIG_fail; | |
8663 | } | |
8664 | resultobj = SWIG_FromLong((long)result); | |
8665 | return resultobj; | |
8666 | fail: | |
8667 | return NULL; | |
8668 | } | |
8669 | ||
8670 | ||
8671 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8672 | PyObject *resultobj; | |
8673 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8674 | long arg2 ; | |
8675 | long *arg3 = (long *) 0 ; | |
8676 | long *arg4 = (long *) 0 ; | |
8677 | long temp3 ; | |
8678 | long temp4 ; | |
8679 | PyObject * obj0 = 0 ; | |
8680 | PyObject * obj1 = 0 ; | |
8681 | char *kwnames[] = { | |
8682 | (char *) "self",(char *) "pos", NULL | |
8683 | }; | |
8684 | ||
8685 | arg3 = &temp3; | |
8686 | arg4 = &temp4; | |
8687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; | |
8688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8690 | arg2 = (long) SWIG_AsLong(obj1); | |
8691 | if (PyErr_Occurred()) SWIG_fail; | |
8692 | { | |
8693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8694 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8695 | ||
8696 | wxPyEndAllowThreads(__tstate); | |
8697 | if (PyErr_Occurred()) SWIG_fail; | |
8698 | } | |
8699 | Py_INCREF(Py_None); resultobj = Py_None; | |
8700 | { | |
8701 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8702 | resultobj = t_output_helper(resultobj,o); | |
8703 | } | |
8704 | { | |
8705 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8706 | resultobj = t_output_helper(resultobj,o); | |
8707 | } | |
8708 | return resultobj; | |
8709 | fail: | |
8710 | return NULL; | |
8711 | } | |
8712 | ||
8713 | ||
8714 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8715 | PyObject *resultobj; | |
8716 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8717 | long arg2 ; | |
8718 | PyObject * obj0 = 0 ; | |
8719 | PyObject * obj1 = 0 ; | |
8720 | char *kwnames[] = { | |
8721 | (char *) "self",(char *) "pos", NULL | |
8722 | }; | |
8723 | ||
8724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
8725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8727 | arg2 = (long) SWIG_AsLong(obj1); | |
8728 | if (PyErr_Occurred()) SWIG_fail; | |
8729 | { | |
8730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8731 | (arg1)->ShowPosition(arg2); | |
8732 | ||
8733 | wxPyEndAllowThreads(__tstate); | |
8734 | if (PyErr_Occurred()) SWIG_fail; | |
8735 | } | |
8736 | Py_INCREF(Py_None); resultobj = Py_None; | |
8737 | return resultobj; | |
8738 | fail: | |
8739 | return NULL; | |
8740 | } | |
8741 | ||
8742 | ||
8743 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8744 | PyObject *resultobj; | |
8745 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8746 | wxPoint *arg2 = 0 ; | |
8747 | long *arg3 = (long *) 0 ; | |
8748 | long *arg4 = (long *) 0 ; | |
8749 | int result; | |
8750 | wxPoint temp2 ; | |
8751 | long temp3 ; | |
8752 | long temp4 ; | |
8753 | PyObject * obj0 = 0 ; | |
8754 | PyObject * obj1 = 0 ; | |
8755 | char *kwnames[] = { | |
8756 | (char *) "self",(char *) "pt", NULL | |
8757 | }; | |
8758 | ||
8759 | arg3 = &temp3; | |
8760 | arg4 = &temp4; | |
8761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
8762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8764 | { | |
8765 | arg2 = &temp2; | |
8766 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8767 | } | |
8768 | { | |
8769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8770 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8771 | ||
8772 | wxPyEndAllowThreads(__tstate); | |
8773 | if (PyErr_Occurred()) SWIG_fail; | |
8774 | } | |
8775 | resultobj = SWIG_FromInt((int)result); | |
8776 | { | |
8777 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8778 | resultobj = t_output_helper(resultobj,o); | |
8779 | } | |
8780 | { | |
8781 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8782 | resultobj = t_output_helper(resultobj,o); | |
8783 | } | |
8784 | return resultobj; | |
8785 | fail: | |
8786 | return NULL; | |
8787 | } | |
8788 | ||
8789 | ||
8790 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8791 | PyObject *resultobj; | |
8792 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8793 | PyObject * obj0 = 0 ; | |
8794 | char *kwnames[] = { | |
8795 | (char *) "self", NULL | |
8796 | }; | |
8797 | ||
8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
8799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8801 | { | |
8802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8803 | (arg1)->Copy(); | |
8804 | ||
8805 | wxPyEndAllowThreads(__tstate); | |
8806 | if (PyErr_Occurred()) SWIG_fail; | |
8807 | } | |
8808 | Py_INCREF(Py_None); resultobj = Py_None; | |
8809 | return resultobj; | |
8810 | fail: | |
8811 | return NULL; | |
8812 | } | |
8813 | ||
8814 | ||
8815 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8816 | PyObject *resultobj; | |
8817 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8818 | PyObject * obj0 = 0 ; | |
8819 | char *kwnames[] = { | |
8820 | (char *) "self", NULL | |
8821 | }; | |
8822 | ||
8823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
8824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8826 | { | |
8827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8828 | (arg1)->Cut(); | |
8829 | ||
8830 | wxPyEndAllowThreads(__tstate); | |
8831 | if (PyErr_Occurred()) SWIG_fail; | |
8832 | } | |
8833 | Py_INCREF(Py_None); resultobj = Py_None; | |
8834 | return resultobj; | |
8835 | fail: | |
8836 | return NULL; | |
8837 | } | |
8838 | ||
8839 | ||
8840 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8841 | PyObject *resultobj; | |
8842 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8843 | PyObject * obj0 = 0 ; | |
8844 | char *kwnames[] = { | |
8845 | (char *) "self", NULL | |
8846 | }; | |
8847 | ||
8848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
8849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8851 | { | |
8852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8853 | (arg1)->Paste(); | |
8854 | ||
8855 | wxPyEndAllowThreads(__tstate); | |
8856 | if (PyErr_Occurred()) SWIG_fail; | |
8857 | } | |
8858 | Py_INCREF(Py_None); resultobj = Py_None; | |
8859 | return resultobj; | |
8860 | fail: | |
8861 | return NULL; | |
8862 | } | |
8863 | ||
8864 | ||
8865 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8866 | PyObject *resultobj; | |
8867 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8868 | bool result; | |
8869 | PyObject * obj0 = 0 ; | |
8870 | char *kwnames[] = { | |
8871 | (char *) "self", NULL | |
8872 | }; | |
8873 | ||
8874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
8875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8877 | { | |
8878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8879 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8880 | ||
8881 | wxPyEndAllowThreads(__tstate); | |
8882 | if (PyErr_Occurred()) SWIG_fail; | |
8883 | } | |
8884 | { | |
8885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8886 | } | |
8887 | return resultobj; | |
8888 | fail: | |
8889 | return NULL; | |
8890 | } | |
8891 | ||
8892 | ||
8893 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8894 | PyObject *resultobj; | |
8895 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8896 | bool result; | |
8897 | PyObject * obj0 = 0 ; | |
8898 | char *kwnames[] = { | |
8899 | (char *) "self", NULL | |
8900 | }; | |
8901 | ||
8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
8903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8905 | { | |
8906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8907 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8908 | ||
8909 | wxPyEndAllowThreads(__tstate); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
8911 | } | |
8912 | { | |
8913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8914 | } | |
8915 | return resultobj; | |
8916 | fail: | |
8917 | return NULL; | |
8918 | } | |
8919 | ||
8920 | ||
8921 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8922 | PyObject *resultobj; | |
8923 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8924 | bool result; | |
8925 | PyObject * obj0 = 0 ; | |
8926 | char *kwnames[] = { | |
8927 | (char *) "self", NULL | |
8928 | }; | |
8929 | ||
8930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
8931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8933 | { | |
8934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8935 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8936 | ||
8937 | wxPyEndAllowThreads(__tstate); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | } | |
8940 | { | |
8941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8942 | } | |
8943 | return resultobj; | |
8944 | fail: | |
8945 | return NULL; | |
8946 | } | |
8947 | ||
8948 | ||
8949 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8950 | PyObject *resultobj; | |
8951 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8952 | PyObject * obj0 = 0 ; | |
8953 | char *kwnames[] = { | |
8954 | (char *) "self", NULL | |
8955 | }; | |
8956 | ||
8957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
8958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8960 | { | |
8961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8962 | (arg1)->Undo(); | |
8963 | ||
8964 | wxPyEndAllowThreads(__tstate); | |
8965 | if (PyErr_Occurred()) SWIG_fail; | |
8966 | } | |
8967 | Py_INCREF(Py_None); resultobj = Py_None; | |
8968 | return resultobj; | |
8969 | fail: | |
8970 | return NULL; | |
8971 | } | |
8972 | ||
8973 | ||
8974 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8975 | PyObject *resultobj; | |
8976 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8977 | PyObject * obj0 = 0 ; | |
8978 | char *kwnames[] = { | |
8979 | (char *) "self", NULL | |
8980 | }; | |
8981 | ||
8982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
8983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8985 | { | |
8986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8987 | (arg1)->Redo(); | |
8988 | ||
8989 | wxPyEndAllowThreads(__tstate); | |
8990 | if (PyErr_Occurred()) SWIG_fail; | |
8991 | } | |
8992 | Py_INCREF(Py_None); resultobj = Py_None; | |
8993 | return resultobj; | |
8994 | fail: | |
8995 | return NULL; | |
8996 | } | |
8997 | ||
8998 | ||
8999 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9000 | PyObject *resultobj; | |
9001 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9002 | bool result; | |
9003 | PyObject * obj0 = 0 ; | |
9004 | char *kwnames[] = { | |
9005 | (char *) "self", NULL | |
9006 | }; | |
9007 | ||
9008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
9009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9011 | { | |
9012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9013 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9014 | ||
9015 | wxPyEndAllowThreads(__tstate); | |
9016 | if (PyErr_Occurred()) SWIG_fail; | |
9017 | } | |
9018 | { | |
9019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9020 | } | |
9021 | return resultobj; | |
9022 | fail: | |
9023 | return NULL; | |
9024 | } | |
9025 | ||
9026 | ||
9027 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9028 | PyObject *resultobj; | |
9029 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9030 | bool result; | |
9031 | PyObject * obj0 = 0 ; | |
9032 | char *kwnames[] = { | |
9033 | (char *) "self", NULL | |
9034 | }; | |
9035 | ||
9036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
9037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9039 | { | |
9040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9041 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9042 | ||
9043 | wxPyEndAllowThreads(__tstate); | |
9044 | if (PyErr_Occurred()) SWIG_fail; | |
9045 | } | |
9046 | { | |
9047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9048 | } | |
9049 | return resultobj; | |
9050 | fail: | |
9051 | return NULL; | |
9052 | } | |
9053 | ||
9054 | ||
9055 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9056 | PyObject *resultobj; | |
9057 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9058 | long arg2 ; | |
9059 | PyObject * obj0 = 0 ; | |
9060 | PyObject * obj1 = 0 ; | |
9061 | char *kwnames[] = { | |
9062 | (char *) "self",(char *) "pos", NULL | |
9063 | }; | |
9064 | ||
9065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
9066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9068 | arg2 = (long) SWIG_AsLong(obj1); | |
9069 | if (PyErr_Occurred()) SWIG_fail; | |
9070 | { | |
9071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9072 | (arg1)->SetInsertionPoint(arg2); | |
9073 | ||
9074 | wxPyEndAllowThreads(__tstate); | |
9075 | if (PyErr_Occurred()) SWIG_fail; | |
9076 | } | |
9077 | Py_INCREF(Py_None); resultobj = Py_None; | |
9078 | return resultobj; | |
9079 | fail: | |
9080 | return NULL; | |
9081 | } | |
9082 | ||
9083 | ||
9084 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9085 | PyObject *resultobj; | |
9086 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9087 | PyObject * obj0 = 0 ; | |
9088 | char *kwnames[] = { | |
9089 | (char *) "self", NULL | |
9090 | }; | |
9091 | ||
9092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
9093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9095 | { | |
9096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9097 | (arg1)->SetInsertionPointEnd(); | |
9098 | ||
9099 | wxPyEndAllowThreads(__tstate); | |
9100 | if (PyErr_Occurred()) SWIG_fail; | |
9101 | } | |
9102 | Py_INCREF(Py_None); resultobj = Py_None; | |
9103 | return resultobj; | |
9104 | fail: | |
9105 | return NULL; | |
9106 | } | |
9107 | ||
9108 | ||
9109 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9110 | PyObject *resultobj; | |
9111 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9112 | long result; | |
9113 | PyObject * obj0 = 0 ; | |
9114 | char *kwnames[] = { | |
9115 | (char *) "self", NULL | |
9116 | }; | |
9117 | ||
9118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
9119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9121 | { | |
9122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9123 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9124 | ||
9125 | wxPyEndAllowThreads(__tstate); | |
9126 | if (PyErr_Occurred()) SWIG_fail; | |
9127 | } | |
9128 | resultobj = SWIG_FromLong((long)result); | |
9129 | return resultobj; | |
9130 | fail: | |
9131 | return NULL; | |
9132 | } | |
9133 | ||
9134 | ||
9135 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9136 | PyObject *resultobj; | |
9137 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9138 | long result; | |
9139 | PyObject * obj0 = 0 ; | |
9140 | char *kwnames[] = { | |
9141 | (char *) "self", NULL | |
9142 | }; | |
9143 | ||
9144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
9145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9147 | { | |
9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9149 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9150 | ||
9151 | wxPyEndAllowThreads(__tstate); | |
9152 | if (PyErr_Occurred()) SWIG_fail; | |
9153 | } | |
9154 | resultobj = SWIG_FromLong((long)result); | |
9155 | return resultobj; | |
9156 | fail: | |
9157 | return NULL; | |
9158 | } | |
9159 | ||
9160 | ||
9161 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9162 | PyObject *resultobj; | |
9163 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9164 | long arg2 ; | |
9165 | long arg3 ; | |
9166 | PyObject * obj0 = 0 ; | |
9167 | PyObject * obj1 = 0 ; | |
9168 | PyObject * obj2 = 0 ; | |
9169 | char *kwnames[] = { | |
9170 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9171 | }; | |
9172 | ||
9173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9176 | arg2 = (long) SWIG_AsLong(obj1); | |
9177 | if (PyErr_Occurred()) SWIG_fail; | |
9178 | arg3 = (long) SWIG_AsLong(obj2); | |
9179 | if (PyErr_Occurred()) SWIG_fail; | |
9180 | { | |
9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9182 | (arg1)->SetSelection(arg2,arg3); | |
9183 | ||
9184 | wxPyEndAllowThreads(__tstate); | |
9185 | if (PyErr_Occurred()) SWIG_fail; | |
9186 | } | |
9187 | Py_INCREF(Py_None); resultobj = Py_None; | |
9188 | return resultobj; | |
9189 | fail: | |
9190 | return NULL; | |
9191 | } | |
9192 | ||
9193 | ||
9194 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9195 | PyObject *resultobj; | |
9196 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9197 | PyObject * obj0 = 0 ; | |
9198 | char *kwnames[] = { | |
9199 | (char *) "self", NULL | |
9200 | }; | |
9201 | ||
9202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
9203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9205 | { | |
9206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9207 | (arg1)->SelectAll(); | |
9208 | ||
9209 | wxPyEndAllowThreads(__tstate); | |
9210 | if (PyErr_Occurred()) SWIG_fail; | |
9211 | } | |
9212 | Py_INCREF(Py_None); resultobj = Py_None; | |
9213 | return resultobj; | |
9214 | fail: | |
9215 | return NULL; | |
9216 | } | |
9217 | ||
9218 | ||
9219 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9220 | PyObject *resultobj; | |
9221 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9222 | bool arg2 ; | |
9223 | PyObject * obj0 = 0 ; | |
9224 | PyObject * obj1 = 0 ; | |
9225 | char *kwnames[] = { | |
9226 | (char *) "self",(char *) "editable", NULL | |
9227 | }; | |
9228 | ||
9229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
9230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9232 | arg2 = (bool) SWIG_AsBool(obj1); | |
9233 | if (PyErr_Occurred()) SWIG_fail; | |
9234 | { | |
9235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9236 | (arg1)->SetEditable(arg2); | |
9237 | ||
9238 | wxPyEndAllowThreads(__tstate); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | } | |
9241 | Py_INCREF(Py_None); resultobj = Py_None; | |
9242 | return resultobj; | |
9243 | fail: | |
9244 | return NULL; | |
9245 | } | |
9246 | ||
9247 | ||
9248 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9249 | PyObject *resultobj; | |
9250 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9251 | wxString *arg2 = 0 ; | |
9252 | bool temp2 = False ; | |
9253 | PyObject * obj0 = 0 ; | |
9254 | PyObject * obj1 = 0 ; | |
9255 | char *kwnames[] = { | |
9256 | (char *) "self",(char *) "text", NULL | |
9257 | }; | |
9258 | ||
9259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
9260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9262 | { | |
9263 | arg2 = wxString_in_helper(obj1); | |
9264 | if (arg2 == NULL) SWIG_fail; | |
9265 | temp2 = True; | |
9266 | } | |
9267 | { | |
9268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9269 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9270 | ||
9271 | wxPyEndAllowThreads(__tstate); | |
9272 | if (PyErr_Occurred()) SWIG_fail; | |
9273 | } | |
9274 | Py_INCREF(Py_None); resultobj = Py_None; | |
9275 | { | |
9276 | if (temp2) | |
9277 | delete arg2; | |
9278 | } | |
9279 | return resultobj; | |
9280 | fail: | |
9281 | { | |
9282 | if (temp2) | |
9283 | delete arg2; | |
9284 | } | |
9285 | return NULL; | |
9286 | } | |
9287 | ||
9288 | ||
9289 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9290 | PyObject *resultobj; | |
9291 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9292 | long arg2 ; | |
9293 | long arg3 ; | |
9294 | wxString result; | |
9295 | PyObject * obj0 = 0 ; | |
9296 | PyObject * obj1 = 0 ; | |
9297 | PyObject * obj2 = 0 ; | |
9298 | char *kwnames[] = { | |
9299 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9300 | }; | |
9301 | ||
9302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9305 | arg2 = (long) SWIG_AsLong(obj1); | |
9306 | if (PyErr_Occurred()) SWIG_fail; | |
9307 | arg3 = (long) SWIG_AsLong(obj2); | |
9308 | if (PyErr_Occurred()) SWIG_fail; | |
9309 | { | |
9310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9311 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9312 | ||
9313 | wxPyEndAllowThreads(__tstate); | |
9314 | if (PyErr_Occurred()) SWIG_fail; | |
9315 | } | |
9316 | { | |
9317 | #if wxUSE_UNICODE | |
9318 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9319 | #else | |
9320 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9321 | #endif | |
9322 | } | |
9323 | return resultobj; | |
9324 | fail: | |
9325 | return NULL; | |
9326 | } | |
9327 | ||
9328 | ||
9329 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9330 | PyObject *obj; | |
9331 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9332 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9333 | Py_INCREF(obj); | |
9334 | return Py_BuildValue((char *)""); | |
9335 | } | |
9336 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9337 | PyObject *resultobj; | |
9338 | int arg1 ; | |
9339 | wxMouseEvent *arg2 = 0 ; | |
9340 | long arg3 ; | |
9341 | long arg4 ; | |
9342 | wxTextUrlEvent *result; | |
9343 | PyObject * obj0 = 0 ; | |
9344 | PyObject * obj1 = 0 ; | |
9345 | PyObject * obj2 = 0 ; | |
9346 | PyObject * obj3 = 0 ; | |
9347 | char *kwnames[] = { | |
9348 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9349 | }; | |
9350 | ||
9351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9352 | arg1 = (int) SWIG_AsInt(obj0); | |
9353 | if (PyErr_Occurred()) SWIG_fail; | |
9354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9355 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9356 | SWIG_fail; | |
9357 | if (arg2 == NULL) { | |
9358 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9359 | SWIG_fail; | |
9360 | } | |
9361 | arg3 = (long) SWIG_AsLong(obj2); | |
9362 | if (PyErr_Occurred()) SWIG_fail; | |
9363 | arg4 = (long) SWIG_AsLong(obj3); | |
9364 | if (PyErr_Occurred()) SWIG_fail; | |
9365 | { | |
9366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9367 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9368 | ||
9369 | wxPyEndAllowThreads(__tstate); | |
9370 | if (PyErr_Occurred()) SWIG_fail; | |
9371 | } | |
9372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); | |
9373 | return resultobj; | |
9374 | fail: | |
9375 | return NULL; | |
9376 | } | |
9377 | ||
9378 | ||
9379 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9380 | PyObject *resultobj; | |
9381 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9382 | wxMouseEvent *result; | |
9383 | PyObject * obj0 = 0 ; | |
9384 | char *kwnames[] = { | |
9385 | (char *) "self", NULL | |
9386 | }; | |
9387 | ||
9388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9391 | { | |
9392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9393 | { | |
9394 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9395 | result = (wxMouseEvent *) &_result_ref; | |
9396 | } | |
9397 | ||
9398 | wxPyEndAllowThreads(__tstate); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
9401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); | |
9402 | return resultobj; | |
9403 | fail: | |
9404 | return NULL; | |
9405 | } | |
9406 | ||
9407 | ||
9408 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9409 | PyObject *resultobj; | |
9410 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9411 | long result; | |
9412 | PyObject * obj0 = 0 ; | |
9413 | char *kwnames[] = { | |
9414 | (char *) "self", NULL | |
9415 | }; | |
9416 | ||
9417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
9418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9420 | { | |
9421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9422 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9423 | ||
9424 | wxPyEndAllowThreads(__tstate); | |
9425 | if (PyErr_Occurred()) SWIG_fail; | |
9426 | } | |
9427 | resultobj = SWIG_FromLong((long)result); | |
9428 | return resultobj; | |
9429 | fail: | |
9430 | return NULL; | |
9431 | } | |
9432 | ||
9433 | ||
9434 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9435 | PyObject *resultobj; | |
9436 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9437 | long result; | |
9438 | PyObject * obj0 = 0 ; | |
9439 | char *kwnames[] = { | |
9440 | (char *) "self", NULL | |
9441 | }; | |
9442 | ||
9443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
9444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9446 | { | |
9447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9448 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9449 | ||
9450 | wxPyEndAllowThreads(__tstate); | |
9451 | if (PyErr_Occurred()) SWIG_fail; | |
9452 | } | |
9453 | resultobj = SWIG_FromLong((long)result); | |
9454 | return resultobj; | |
9455 | fail: | |
9456 | return NULL; | |
9457 | } | |
9458 | ||
9459 | ||
9460 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9461 | PyObject *obj; | |
9462 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9463 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9464 | Py_INCREF(obj); | |
9465 | return Py_BuildValue((char *)""); | |
9466 | } | |
9467 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { | |
9468 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
9469 | return 1; | |
9470 | } | |
9471 | ||
9472 | ||
9473 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9474 | PyObject *pyobj; | |
9475 | ||
9476 | { | |
9477 | #if wxUSE_UNICODE | |
9478 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9479 | #else | |
9480 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9481 | #endif | |
9482 | } | |
9483 | return pyobj; | |
9484 | } | |
9485 | ||
9486 | ||
9487 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9488 | PyObject *resultobj; | |
9489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9490 | int arg2 = (int) -1 ; | |
9491 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9492 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9493 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9494 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9495 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9496 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9497 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9498 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9499 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9500 | wxScrollBar *result; | |
9501 | wxPoint temp3 ; | |
9502 | wxSize temp4 ; | |
9503 | bool temp7 = False ; | |
9504 | PyObject * obj0 = 0 ; | |
9505 | PyObject * obj1 = 0 ; | |
9506 | PyObject * obj2 = 0 ; | |
9507 | PyObject * obj3 = 0 ; | |
9508 | PyObject * obj4 = 0 ; | |
9509 | PyObject * obj5 = 0 ; | |
9510 | PyObject * obj6 = 0 ; | |
9511 | char *kwnames[] = { | |
9512 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9513 | }; | |
9514 | ||
9515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9518 | if (obj1) { | |
9519 | arg2 = (int) SWIG_AsInt(obj1); | |
9520 | if (PyErr_Occurred()) SWIG_fail; | |
9521 | } | |
9522 | if (obj2) { | |
9523 | { | |
9524 | arg3 = &temp3; | |
9525 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9526 | } | |
9527 | } | |
9528 | if (obj3) { | |
9529 | { | |
9530 | arg4 = &temp4; | |
9531 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9532 | } | |
9533 | } | |
9534 | if (obj4) { | |
9535 | arg5 = (long) SWIG_AsLong(obj4); | |
9536 | if (PyErr_Occurred()) SWIG_fail; | |
9537 | } | |
9538 | if (obj5) { | |
9539 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
9540 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9541 | SWIG_fail; | |
9542 | if (arg6 == NULL) { | |
9543 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9544 | SWIG_fail; | |
9545 | } | |
9546 | } | |
9547 | if (obj6) { | |
9548 | { | |
9549 | arg7 = wxString_in_helper(obj6); | |
9550 | if (arg7 == NULL) SWIG_fail; | |
9551 | temp7 = True; | |
9552 | } | |
9553 | } | |
9554 | { | |
9555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9556 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9557 | ||
9558 | wxPyEndAllowThreads(__tstate); | |
9559 | if (PyErr_Occurred()) SWIG_fail; | |
9560 | } | |
9561 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
9562 | { | |
9563 | if (temp7) | |
9564 | delete arg7; | |
9565 | } | |
9566 | return resultobj; | |
9567 | fail: | |
9568 | { | |
9569 | if (temp7) | |
9570 | delete arg7; | |
9571 | } | |
9572 | return NULL; | |
9573 | } | |
9574 | ||
9575 | ||
9576 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9577 | PyObject *resultobj; | |
9578 | wxScrollBar *result; | |
9579 | char *kwnames[] = { | |
9580 | NULL | |
9581 | }; | |
9582 | ||
9583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9584 | { | |
9585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9586 | result = (wxScrollBar *)new wxScrollBar(); | |
9587 | ||
9588 | wxPyEndAllowThreads(__tstate); | |
9589 | if (PyErr_Occurred()) SWIG_fail; | |
9590 | } | |
9591 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
9592 | return resultobj; | |
9593 | fail: | |
9594 | return NULL; | |
9595 | } | |
9596 | ||
9597 | ||
9598 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9599 | PyObject *resultobj; | |
9600 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9601 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9602 | int arg3 = (int) -1 ; | |
9603 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9604 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9605 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9606 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9607 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9608 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9609 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9610 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9611 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9612 | bool result; | |
9613 | wxPoint temp4 ; | |
9614 | wxSize temp5 ; | |
9615 | bool temp8 = False ; | |
9616 | PyObject * obj0 = 0 ; | |
9617 | PyObject * obj1 = 0 ; | |
9618 | PyObject * obj2 = 0 ; | |
9619 | PyObject * obj3 = 0 ; | |
9620 | PyObject * obj4 = 0 ; | |
9621 | PyObject * obj5 = 0 ; | |
9622 | PyObject * obj6 = 0 ; | |
9623 | PyObject * obj7 = 0 ; | |
9624 | char *kwnames[] = { | |
9625 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9626 | }; | |
9627 | ||
9628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
9629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9631 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9633 | if (obj2) { | |
9634 | arg3 = (int) SWIG_AsInt(obj2); | |
9635 | if (PyErr_Occurred()) SWIG_fail; | |
9636 | } | |
9637 | if (obj3) { | |
9638 | { | |
9639 | arg4 = &temp4; | |
9640 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9641 | } | |
9642 | } | |
9643 | if (obj4) { | |
9644 | { | |
9645 | arg5 = &temp5; | |
9646 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9647 | } | |
9648 | } | |
9649 | if (obj5) { | |
9650 | arg6 = (long) SWIG_AsLong(obj5); | |
9651 | if (PyErr_Occurred()) SWIG_fail; | |
9652 | } | |
9653 | if (obj6) { | |
9654 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
9655 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9656 | SWIG_fail; | |
9657 | if (arg7 == NULL) { | |
9658 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9659 | SWIG_fail; | |
9660 | } | |
9661 | } | |
9662 | if (obj7) { | |
9663 | { | |
9664 | arg8 = wxString_in_helper(obj7); | |
9665 | if (arg8 == NULL) SWIG_fail; | |
9666 | temp8 = True; | |
9667 | } | |
9668 | } | |
9669 | { | |
9670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9671 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9672 | ||
9673 | wxPyEndAllowThreads(__tstate); | |
9674 | if (PyErr_Occurred()) SWIG_fail; | |
9675 | } | |
9676 | { | |
9677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9678 | } | |
9679 | { | |
9680 | if (temp8) | |
9681 | delete arg8; | |
9682 | } | |
9683 | return resultobj; | |
9684 | fail: | |
9685 | { | |
9686 | if (temp8) | |
9687 | delete arg8; | |
9688 | } | |
9689 | return NULL; | |
9690 | } | |
9691 | ||
9692 | ||
9693 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9694 | PyObject *resultobj; | |
9695 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9696 | int result; | |
9697 | PyObject * obj0 = 0 ; | |
9698 | char *kwnames[] = { | |
9699 | (char *) "self", NULL | |
9700 | }; | |
9701 | ||
9702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
9703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9705 | { | |
9706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9707 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9708 | ||
9709 | wxPyEndAllowThreads(__tstate); | |
9710 | if (PyErr_Occurred()) SWIG_fail; | |
9711 | } | |
9712 | resultobj = SWIG_FromInt((int)result); | |
9713 | return resultobj; | |
9714 | fail: | |
9715 | return NULL; | |
9716 | } | |
9717 | ||
9718 | ||
9719 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9720 | PyObject *resultobj; | |
9721 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9722 | int result; | |
9723 | PyObject * obj0 = 0 ; | |
9724 | char *kwnames[] = { | |
9725 | (char *) "self", NULL | |
9726 | }; | |
9727 | ||
9728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
9729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9731 | { | |
9732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9733 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9734 | ||
9735 | wxPyEndAllowThreads(__tstate); | |
9736 | if (PyErr_Occurred()) SWIG_fail; | |
9737 | } | |
9738 | resultobj = SWIG_FromInt((int)result); | |
9739 | return resultobj; | |
9740 | fail: | |
9741 | return NULL; | |
9742 | } | |
9743 | ||
9744 | ||
9745 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9746 | PyObject *resultobj; | |
9747 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9748 | int result; | |
9749 | PyObject * obj0 = 0 ; | |
9750 | char *kwnames[] = { | |
9751 | (char *) "self", NULL | |
9752 | }; | |
9753 | ||
9754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
9755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9757 | { | |
9758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9759 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9760 | ||
9761 | wxPyEndAllowThreads(__tstate); | |
9762 | if (PyErr_Occurred()) SWIG_fail; | |
9763 | } | |
9764 | resultobj = SWIG_FromInt((int)result); | |
9765 | return resultobj; | |
9766 | fail: | |
9767 | return NULL; | |
9768 | } | |
9769 | ||
9770 | ||
9771 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9772 | PyObject *resultobj; | |
9773 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9774 | int result; | |
9775 | PyObject * obj0 = 0 ; | |
9776 | char *kwnames[] = { | |
9777 | (char *) "self", NULL | |
9778 | }; | |
9779 | ||
9780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
9781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9783 | { | |
9784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9785 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9786 | ||
9787 | wxPyEndAllowThreads(__tstate); | |
9788 | if (PyErr_Occurred()) SWIG_fail; | |
9789 | } | |
9790 | resultobj = SWIG_FromInt((int)result); | |
9791 | return resultobj; | |
9792 | fail: | |
9793 | return NULL; | |
9794 | } | |
9795 | ||
9796 | ||
9797 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9798 | PyObject *resultobj; | |
9799 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9800 | bool result; | |
9801 | PyObject * obj0 = 0 ; | |
9802 | char *kwnames[] = { | |
9803 | (char *) "self", NULL | |
9804 | }; | |
9805 | ||
9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
9807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9809 | { | |
9810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9811 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9812 | ||
9813 | wxPyEndAllowThreads(__tstate); | |
9814 | if (PyErr_Occurred()) SWIG_fail; | |
9815 | } | |
9816 | { | |
9817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9818 | } | |
9819 | return resultobj; | |
9820 | fail: | |
9821 | return NULL; | |
9822 | } | |
9823 | ||
9824 | ||
9825 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9826 | PyObject *resultobj; | |
9827 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9828 | int arg2 ; | |
9829 | PyObject * obj0 = 0 ; | |
9830 | PyObject * obj1 = 0 ; | |
9831 | char *kwnames[] = { | |
9832 | (char *) "self",(char *) "viewStart", NULL | |
9833 | }; | |
9834 | ||
9835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
9836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9838 | arg2 = (int) SWIG_AsInt(obj1); | |
9839 | if (PyErr_Occurred()) SWIG_fail; | |
9840 | { | |
9841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9842 | (arg1)->SetThumbPosition(arg2); | |
9843 | ||
9844 | wxPyEndAllowThreads(__tstate); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
9847 | Py_INCREF(Py_None); resultobj = Py_None; | |
9848 | return resultobj; | |
9849 | fail: | |
9850 | return NULL; | |
9851 | } | |
9852 | ||
9853 | ||
9854 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9855 | PyObject *resultobj; | |
9856 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9857 | int arg2 ; | |
9858 | int arg3 ; | |
9859 | int arg4 ; | |
9860 | int arg5 ; | |
9861 | bool arg6 = (bool) True ; | |
9862 | PyObject * obj0 = 0 ; | |
9863 | PyObject * obj1 = 0 ; | |
9864 | PyObject * obj2 = 0 ; | |
9865 | PyObject * obj3 = 0 ; | |
9866 | PyObject * obj4 = 0 ; | |
9867 | PyObject * obj5 = 0 ; | |
9868 | char *kwnames[] = { | |
9869 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9870 | }; | |
9871 | ||
9872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9875 | arg2 = (int) SWIG_AsInt(obj1); | |
9876 | if (PyErr_Occurred()) SWIG_fail; | |
9877 | arg3 = (int) SWIG_AsInt(obj2); | |
9878 | if (PyErr_Occurred()) SWIG_fail; | |
9879 | arg4 = (int) SWIG_AsInt(obj3); | |
9880 | if (PyErr_Occurred()) SWIG_fail; | |
9881 | arg5 = (int) SWIG_AsInt(obj4); | |
9882 | if (PyErr_Occurred()) SWIG_fail; | |
9883 | if (obj5) { | |
9884 | arg6 = (bool) SWIG_AsBool(obj5); | |
9885 | if (PyErr_Occurred()) SWIG_fail; | |
9886 | } | |
9887 | { | |
9888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9889 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9890 | ||
9891 | wxPyEndAllowThreads(__tstate); | |
9892 | if (PyErr_Occurred()) SWIG_fail; | |
9893 | } | |
9894 | Py_INCREF(Py_None); resultobj = Py_None; | |
9895 | return resultobj; | |
9896 | fail: | |
9897 | return NULL; | |
9898 | } | |
9899 | ||
9900 | ||
9901 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9902 | PyObject *obj; | |
9903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9904 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9905 | Py_INCREF(obj); | |
9906 | return Py_BuildValue((char *)""); | |
9907 | } | |
9908 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { | |
9909 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
9910 | return 1; | |
9911 | } | |
9912 | ||
9913 | ||
9914 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9915 | PyObject *pyobj; | |
9916 | ||
9917 | { | |
9918 | #if wxUSE_UNICODE | |
9919 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9920 | #else | |
9921 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9922 | #endif | |
9923 | } | |
9924 | return pyobj; | |
9925 | } | |
9926 | ||
9927 | ||
9928 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
9929 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
9930 | return 1; | |
9931 | } | |
9932 | ||
9933 | ||
9934 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9935 | PyObject *pyobj; | |
9936 | ||
9937 | { | |
9938 | #if wxUSE_UNICODE | |
9939 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9940 | #else | |
9941 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9942 | #endif | |
9943 | } | |
9944 | return pyobj; | |
9945 | } | |
9946 | ||
9947 | ||
9948 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9949 | PyObject *resultobj; | |
9950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9951 | int arg2 = (int) -1 ; | |
9952 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9953 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9954 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9955 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9956 | long arg5 = (long) wxSP_HORIZONTAL ; | |
9957 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
9958 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9959 | wxSpinButton *result; | |
9960 | wxPoint temp3 ; | |
9961 | wxSize temp4 ; | |
9962 | bool temp6 = False ; | |
9963 | PyObject * obj0 = 0 ; | |
9964 | PyObject * obj1 = 0 ; | |
9965 | PyObject * obj2 = 0 ; | |
9966 | PyObject * obj3 = 0 ; | |
9967 | PyObject * obj4 = 0 ; | |
9968 | PyObject * obj5 = 0 ; | |
9969 | char *kwnames[] = { | |
9970 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9971 | }; | |
9972 | ||
9973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9976 | if (obj1) { | |
9977 | arg2 = (int) SWIG_AsInt(obj1); | |
9978 | if (PyErr_Occurred()) SWIG_fail; | |
9979 | } | |
9980 | if (obj2) { | |
9981 | { | |
9982 | arg3 = &temp3; | |
9983 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9984 | } | |
9985 | } | |
9986 | if (obj3) { | |
9987 | { | |
9988 | arg4 = &temp4; | |
9989 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9990 | } | |
9991 | } | |
9992 | if (obj4) { | |
9993 | arg5 = (long) SWIG_AsLong(obj4); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
9996 | if (obj5) { | |
9997 | { | |
9998 | arg6 = wxString_in_helper(obj5); | |
9999 | if (arg6 == NULL) SWIG_fail; | |
10000 | temp6 = True; | |
10001 | } | |
10002 | } | |
10003 | { | |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10005 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10006 | ||
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) SWIG_fail; | |
10009 | } | |
10010 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10011 | { | |
10012 | if (temp6) | |
10013 | delete arg6; | |
10014 | } | |
10015 | return resultobj; | |
10016 | fail: | |
10017 | { | |
10018 | if (temp6) | |
10019 | delete arg6; | |
10020 | } | |
10021 | return NULL; | |
10022 | } | |
10023 | ||
10024 | ||
10025 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10026 | PyObject *resultobj; | |
10027 | wxSpinButton *result; | |
10028 | char *kwnames[] = { | |
10029 | NULL | |
10030 | }; | |
10031 | ||
10032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10033 | { | |
10034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10035 | result = (wxSpinButton *)new wxSpinButton(); | |
10036 | ||
10037 | wxPyEndAllowThreads(__tstate); | |
10038 | if (PyErr_Occurred()) SWIG_fail; | |
10039 | } | |
10040 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10041 | return resultobj; | |
10042 | fail: | |
10043 | return NULL; | |
10044 | } | |
10045 | ||
10046 | ||
10047 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10048 | PyObject *resultobj; | |
10049 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10050 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10051 | int arg3 = (int) -1 ; | |
10052 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10053 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10054 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10055 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10056 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10057 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10058 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10059 | bool result; | |
10060 | wxPoint temp4 ; | |
10061 | wxSize temp5 ; | |
10062 | bool temp7 = False ; | |
10063 | PyObject * obj0 = 0 ; | |
10064 | PyObject * obj1 = 0 ; | |
10065 | PyObject * obj2 = 0 ; | |
10066 | PyObject * obj3 = 0 ; | |
10067 | PyObject * obj4 = 0 ; | |
10068 | PyObject * obj5 = 0 ; | |
10069 | PyObject * obj6 = 0 ; | |
10070 | char *kwnames[] = { | |
10071 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10072 | }; | |
10073 | ||
10074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10077 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10079 | if (obj2) { | |
10080 | arg3 = (int) SWIG_AsInt(obj2); | |
10081 | if (PyErr_Occurred()) SWIG_fail; | |
10082 | } | |
10083 | if (obj3) { | |
10084 | { | |
10085 | arg4 = &temp4; | |
10086 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10087 | } | |
10088 | } | |
10089 | if (obj4) { | |
10090 | { | |
10091 | arg5 = &temp5; | |
10092 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10093 | } | |
10094 | } | |
10095 | if (obj5) { | |
10096 | arg6 = (long) SWIG_AsLong(obj5); | |
10097 | if (PyErr_Occurred()) SWIG_fail; | |
10098 | } | |
10099 | if (obj6) { | |
10100 | { | |
10101 | arg7 = wxString_in_helper(obj6); | |
10102 | if (arg7 == NULL) SWIG_fail; | |
10103 | temp7 = True; | |
10104 | } | |
10105 | } | |
10106 | { | |
10107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10108 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10109 | ||
10110 | wxPyEndAllowThreads(__tstate); | |
10111 | if (PyErr_Occurred()) SWIG_fail; | |
10112 | } | |
10113 | { | |
10114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10115 | } | |
10116 | { | |
10117 | if (temp7) | |
10118 | delete arg7; | |
10119 | } | |
10120 | return resultobj; | |
10121 | fail: | |
10122 | { | |
10123 | if (temp7) | |
10124 | delete arg7; | |
10125 | } | |
10126 | return NULL; | |
10127 | } | |
10128 | ||
10129 | ||
10130 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10131 | PyObject *resultobj; | |
10132 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10133 | int result; | |
10134 | PyObject * obj0 = 0 ; | |
10135 | char *kwnames[] = { | |
10136 | (char *) "self", NULL | |
10137 | }; | |
10138 | ||
10139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
10140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10142 | { | |
10143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10144 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10145 | ||
10146 | wxPyEndAllowThreads(__tstate); | |
10147 | if (PyErr_Occurred()) SWIG_fail; | |
10148 | } | |
10149 | resultobj = SWIG_FromInt((int)result); | |
10150 | return resultobj; | |
10151 | fail: | |
10152 | return NULL; | |
10153 | } | |
10154 | ||
10155 | ||
10156 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10157 | PyObject *resultobj; | |
10158 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10159 | int result; | |
10160 | PyObject * obj0 = 0 ; | |
10161 | char *kwnames[] = { | |
10162 | (char *) "self", NULL | |
10163 | }; | |
10164 | ||
10165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
10166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10168 | { | |
10169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10170 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10171 | ||
10172 | wxPyEndAllowThreads(__tstate); | |
10173 | if (PyErr_Occurred()) SWIG_fail; | |
10174 | } | |
10175 | resultobj = SWIG_FromInt((int)result); | |
10176 | return resultobj; | |
10177 | fail: | |
10178 | return NULL; | |
10179 | } | |
10180 | ||
10181 | ||
10182 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10183 | PyObject *resultobj; | |
10184 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10185 | int result; | |
10186 | PyObject * obj0 = 0 ; | |
10187 | char *kwnames[] = { | |
10188 | (char *) "self", NULL | |
10189 | }; | |
10190 | ||
10191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
10192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10194 | { | |
10195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10196 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10197 | ||
10198 | wxPyEndAllowThreads(__tstate); | |
10199 | if (PyErr_Occurred()) SWIG_fail; | |
10200 | } | |
10201 | resultobj = SWIG_FromInt((int)result); | |
10202 | return resultobj; | |
10203 | fail: | |
10204 | return NULL; | |
10205 | } | |
10206 | ||
10207 | ||
10208 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10209 | PyObject *resultobj; | |
10210 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10211 | int arg2 ; | |
10212 | PyObject * obj0 = 0 ; | |
10213 | PyObject * obj1 = 0 ; | |
10214 | char *kwnames[] = { | |
10215 | (char *) "self",(char *) "val", NULL | |
10216 | }; | |
10217 | ||
10218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10221 | arg2 = (int) SWIG_AsInt(obj1); | |
10222 | if (PyErr_Occurred()) SWIG_fail; | |
10223 | { | |
10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10225 | (arg1)->SetValue(arg2); | |
10226 | ||
10227 | wxPyEndAllowThreads(__tstate); | |
10228 | if (PyErr_Occurred()) SWIG_fail; | |
10229 | } | |
10230 | Py_INCREF(Py_None); resultobj = Py_None; | |
10231 | return resultobj; | |
10232 | fail: | |
10233 | return NULL; | |
10234 | } | |
10235 | ||
10236 | ||
10237 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10238 | PyObject *resultobj; | |
10239 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10240 | int arg2 ; | |
10241 | PyObject * obj0 = 0 ; | |
10242 | PyObject * obj1 = 0 ; | |
10243 | char *kwnames[] = { | |
10244 | (char *) "self",(char *) "minVal", NULL | |
10245 | }; | |
10246 | ||
10247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
10248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10250 | arg2 = (int) SWIG_AsInt(obj1); | |
10251 | if (PyErr_Occurred()) SWIG_fail; | |
10252 | { | |
10253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10254 | (arg1)->SetMin(arg2); | |
10255 | ||
10256 | wxPyEndAllowThreads(__tstate); | |
10257 | if (PyErr_Occurred()) SWIG_fail; | |
10258 | } | |
10259 | Py_INCREF(Py_None); resultobj = Py_None; | |
10260 | return resultobj; | |
10261 | fail: | |
10262 | return NULL; | |
10263 | } | |
10264 | ||
10265 | ||
10266 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10267 | PyObject *resultobj; | |
10268 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10269 | int arg2 ; | |
10270 | PyObject * obj0 = 0 ; | |
10271 | PyObject * obj1 = 0 ; | |
10272 | char *kwnames[] = { | |
10273 | (char *) "self",(char *) "maxVal", NULL | |
10274 | }; | |
10275 | ||
10276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
10277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10279 | arg2 = (int) SWIG_AsInt(obj1); | |
10280 | if (PyErr_Occurred()) SWIG_fail; | |
10281 | { | |
10282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10283 | (arg1)->SetMax(arg2); | |
10284 | ||
10285 | wxPyEndAllowThreads(__tstate); | |
10286 | if (PyErr_Occurred()) SWIG_fail; | |
10287 | } | |
10288 | Py_INCREF(Py_None); resultobj = Py_None; | |
10289 | return resultobj; | |
10290 | fail: | |
10291 | return NULL; | |
10292 | } | |
10293 | ||
10294 | ||
10295 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10296 | PyObject *resultobj; | |
10297 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10298 | int arg2 ; | |
10299 | int arg3 ; | |
10300 | PyObject * obj0 = 0 ; | |
10301 | PyObject * obj1 = 0 ; | |
10302 | PyObject * obj2 = 0 ; | |
10303 | char *kwnames[] = { | |
10304 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10305 | }; | |
10306 | ||
10307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10310 | arg2 = (int) SWIG_AsInt(obj1); | |
10311 | if (PyErr_Occurred()) SWIG_fail; | |
10312 | arg3 = (int) SWIG_AsInt(obj2); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | { | |
10315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10316 | (arg1)->SetRange(arg2,arg3); | |
10317 | ||
10318 | wxPyEndAllowThreads(__tstate); | |
10319 | if (PyErr_Occurred()) SWIG_fail; | |
10320 | } | |
10321 | Py_INCREF(Py_None); resultobj = Py_None; | |
10322 | return resultobj; | |
10323 | fail: | |
10324 | return NULL; | |
10325 | } | |
10326 | ||
10327 | ||
10328 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10329 | PyObject *resultobj; | |
10330 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10331 | bool result; | |
10332 | PyObject * obj0 = 0 ; | |
10333 | char *kwnames[] = { | |
10334 | (char *) "self", NULL | |
10335 | }; | |
10336 | ||
10337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10340 | { | |
10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10342 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10343 | ||
10344 | wxPyEndAllowThreads(__tstate); | |
10345 | if (PyErr_Occurred()) SWIG_fail; | |
10346 | } | |
10347 | { | |
10348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10349 | } | |
10350 | return resultobj; | |
10351 | fail: | |
10352 | return NULL; | |
10353 | } | |
10354 | ||
10355 | ||
10356 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10357 | PyObject *obj; | |
10358 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10359 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10360 | Py_INCREF(obj); | |
10361 | return Py_BuildValue((char *)""); | |
10362 | } | |
10363 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10364 | PyObject *resultobj; | |
10365 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10366 | int arg2 = (int) -1 ; | |
10367 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10368 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10369 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10370 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10371 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10372 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10373 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10374 | int arg7 = (int) 0 ; | |
10375 | int arg8 = (int) 100 ; | |
10376 | int arg9 = (int) 0 ; | |
10377 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10378 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10379 | wxSpinCtrl *result; | |
10380 | bool temp3 = False ; | |
10381 | wxPoint temp4 ; | |
10382 | wxSize temp5 ; | |
10383 | bool temp10 = False ; | |
10384 | PyObject * obj0 = 0 ; | |
10385 | PyObject * obj1 = 0 ; | |
10386 | PyObject * obj2 = 0 ; | |
10387 | PyObject * obj3 = 0 ; | |
10388 | PyObject * obj4 = 0 ; | |
10389 | PyObject * obj5 = 0 ; | |
10390 | PyObject * obj6 = 0 ; | |
10391 | PyObject * obj7 = 0 ; | |
10392 | PyObject * obj8 = 0 ; | |
10393 | PyObject * obj9 = 0 ; | |
10394 | char *kwnames[] = { | |
10395 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10396 | }; | |
10397 | ||
10398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
10399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10401 | if (obj1) { | |
10402 | arg2 = (int) SWIG_AsInt(obj1); | |
10403 | if (PyErr_Occurred()) SWIG_fail; | |
10404 | } | |
10405 | if (obj2) { | |
10406 | { | |
10407 | arg3 = wxString_in_helper(obj2); | |
10408 | if (arg3 == NULL) SWIG_fail; | |
10409 | temp3 = True; | |
10410 | } | |
10411 | } | |
10412 | if (obj3) { | |
10413 | { | |
10414 | arg4 = &temp4; | |
10415 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10416 | } | |
10417 | } | |
10418 | if (obj4) { | |
10419 | { | |
10420 | arg5 = &temp5; | |
10421 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10422 | } | |
10423 | } | |
10424 | if (obj5) { | |
10425 | arg6 = (long) SWIG_AsLong(obj5); | |
10426 | if (PyErr_Occurred()) SWIG_fail; | |
10427 | } | |
10428 | if (obj6) { | |
10429 | arg7 = (int) SWIG_AsInt(obj6); | |
10430 | if (PyErr_Occurred()) SWIG_fail; | |
10431 | } | |
10432 | if (obj7) { | |
10433 | arg8 = (int) SWIG_AsInt(obj7); | |
10434 | if (PyErr_Occurred()) SWIG_fail; | |
10435 | } | |
10436 | if (obj8) { | |
10437 | arg9 = (int) SWIG_AsInt(obj8); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
10440 | if (obj9) { | |
10441 | { | |
10442 | arg10 = wxString_in_helper(obj9); | |
10443 | if (arg10 == NULL) SWIG_fail; | |
10444 | temp10 = True; | |
10445 | } | |
10446 | } | |
10447 | { | |
10448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10449 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10450 | ||
10451 | wxPyEndAllowThreads(__tstate); | |
10452 | if (PyErr_Occurred()) SWIG_fail; | |
10453 | } | |
10454 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
10455 | { | |
10456 | if (temp3) | |
10457 | delete arg3; | |
10458 | } | |
10459 | { | |
10460 | if (temp10) | |
10461 | delete arg10; | |
10462 | } | |
10463 | return resultobj; | |
10464 | fail: | |
10465 | { | |
10466 | if (temp3) | |
10467 | delete arg3; | |
10468 | } | |
10469 | { | |
10470 | if (temp10) | |
10471 | delete arg10; | |
10472 | } | |
10473 | return NULL; | |
10474 | } | |
10475 | ||
10476 | ||
10477 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10478 | PyObject *resultobj; | |
10479 | wxSpinCtrl *result; | |
10480 | char *kwnames[] = { | |
10481 | NULL | |
10482 | }; | |
10483 | ||
10484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10485 | { | |
10486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10487 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10488 | ||
10489 | wxPyEndAllowThreads(__tstate); | |
10490 | if (PyErr_Occurred()) SWIG_fail; | |
10491 | } | |
10492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
10493 | return resultobj; | |
10494 | fail: | |
10495 | return NULL; | |
10496 | } | |
10497 | ||
10498 | ||
10499 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10500 | PyObject *resultobj; | |
10501 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10502 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10503 | int arg3 = (int) -1 ; | |
10504 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
10505 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10506 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10507 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10508 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10509 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10510 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10511 | int arg8 = (int) 0 ; | |
10512 | int arg9 = (int) 100 ; | |
10513 | int arg10 = (int) 0 ; | |
10514 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10515 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10516 | bool result; | |
10517 | bool temp4 = False ; | |
10518 | wxPoint temp5 ; | |
10519 | wxSize temp6 ; | |
10520 | bool temp11 = False ; | |
10521 | PyObject * obj0 = 0 ; | |
10522 | PyObject * obj1 = 0 ; | |
10523 | PyObject * obj2 = 0 ; | |
10524 | PyObject * obj3 = 0 ; | |
10525 | PyObject * obj4 = 0 ; | |
10526 | PyObject * obj5 = 0 ; | |
10527 | PyObject * obj6 = 0 ; | |
10528 | PyObject * obj7 = 0 ; | |
10529 | PyObject * obj8 = 0 ; | |
10530 | PyObject * obj9 = 0 ; | |
10531 | PyObject * obj10 = 0 ; | |
10532 | char *kwnames[] = { | |
10533 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10534 | }; | |
10535 | ||
10536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
10537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10539 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10541 | if (obj2) { | |
10542 | arg3 = (int) SWIG_AsInt(obj2); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | if (obj3) { | |
10546 | { | |
10547 | arg4 = wxString_in_helper(obj3); | |
10548 | if (arg4 == NULL) SWIG_fail; | |
10549 | temp4 = True; | |
10550 | } | |
10551 | } | |
10552 | if (obj4) { | |
10553 | { | |
10554 | arg5 = &temp5; | |
10555 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10556 | } | |
10557 | } | |
10558 | if (obj5) { | |
10559 | { | |
10560 | arg6 = &temp6; | |
10561 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10562 | } | |
10563 | } | |
10564 | if (obj6) { | |
10565 | arg7 = (long) SWIG_AsLong(obj6); | |
10566 | if (PyErr_Occurred()) SWIG_fail; | |
10567 | } | |
10568 | if (obj7) { | |
10569 | arg8 = (int) SWIG_AsInt(obj7); | |
10570 | if (PyErr_Occurred()) SWIG_fail; | |
10571 | } | |
10572 | if (obj8) { | |
10573 | arg9 = (int) SWIG_AsInt(obj8); | |
10574 | if (PyErr_Occurred()) SWIG_fail; | |
10575 | } | |
10576 | if (obj9) { | |
10577 | arg10 = (int) SWIG_AsInt(obj9); | |
10578 | if (PyErr_Occurred()) SWIG_fail; | |
10579 | } | |
10580 | if (obj10) { | |
10581 | { | |
10582 | arg11 = wxString_in_helper(obj10); | |
10583 | if (arg11 == NULL) SWIG_fail; | |
10584 | temp11 = True; | |
10585 | } | |
10586 | } | |
10587 | { | |
10588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10589 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10590 | ||
10591 | wxPyEndAllowThreads(__tstate); | |
10592 | if (PyErr_Occurred()) SWIG_fail; | |
10593 | } | |
10594 | { | |
10595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10596 | } | |
10597 | { | |
10598 | if (temp4) | |
10599 | delete arg4; | |
10600 | } | |
10601 | { | |
10602 | if (temp11) | |
10603 | delete arg11; | |
10604 | } | |
10605 | return resultobj; | |
10606 | fail: | |
10607 | { | |
10608 | if (temp4) | |
10609 | delete arg4; | |
10610 | } | |
10611 | { | |
10612 | if (temp11) | |
10613 | delete arg11; | |
10614 | } | |
10615 | return NULL; | |
10616 | } | |
10617 | ||
10618 | ||
10619 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10620 | PyObject *resultobj; | |
10621 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10622 | int result; | |
10623 | PyObject * obj0 = 0 ; | |
10624 | char *kwnames[] = { | |
10625 | (char *) "self", NULL | |
10626 | }; | |
10627 | ||
10628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
10629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10631 | { | |
10632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10633 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10634 | ||
10635 | wxPyEndAllowThreads(__tstate); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
10637 | } | |
10638 | resultobj = SWIG_FromInt((int)result); | |
10639 | return resultobj; | |
10640 | fail: | |
10641 | return NULL; | |
10642 | } | |
10643 | ||
10644 | ||
10645 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10646 | PyObject *resultobj; | |
10647 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10648 | int arg2 ; | |
10649 | PyObject * obj0 = 0 ; | |
10650 | PyObject * obj1 = 0 ; | |
10651 | char *kwnames[] = { | |
10652 | (char *) "self",(char *) "value", NULL | |
10653 | }; | |
10654 | ||
10655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10658 | arg2 = (int) SWIG_AsInt(obj1); | |
10659 | if (PyErr_Occurred()) SWIG_fail; | |
10660 | { | |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | (arg1)->SetValue(arg2); | |
10663 | ||
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
10667 | Py_INCREF(Py_None); resultobj = Py_None; | |
10668 | return resultobj; | |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
10674 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10675 | PyObject *resultobj; | |
10676 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10677 | wxString *arg2 = 0 ; | |
10678 | bool temp2 = False ; | |
10679 | PyObject * obj0 = 0 ; | |
10680 | PyObject * obj1 = 0 ; | |
10681 | char *kwnames[] = { | |
10682 | (char *) "self",(char *) "text", NULL | |
10683 | }; | |
10684 | ||
10685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
10686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10688 | { | |
10689 | arg2 = wxString_in_helper(obj1); | |
10690 | if (arg2 == NULL) SWIG_fail; | |
10691 | temp2 = True; | |
10692 | } | |
10693 | { | |
10694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10695 | (arg1)->SetValue((wxString const &)*arg2); | |
10696 | ||
10697 | wxPyEndAllowThreads(__tstate); | |
10698 | if (PyErr_Occurred()) SWIG_fail; | |
10699 | } | |
10700 | Py_INCREF(Py_None); resultobj = Py_None; | |
10701 | { | |
10702 | if (temp2) | |
10703 | delete arg2; | |
10704 | } | |
10705 | return resultobj; | |
10706 | fail: | |
10707 | { | |
10708 | if (temp2) | |
10709 | delete arg2; | |
10710 | } | |
10711 | return NULL; | |
10712 | } | |
10713 | ||
10714 | ||
10715 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10716 | PyObject *resultobj; | |
10717 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10718 | int arg2 ; | |
10719 | int arg3 ; | |
10720 | PyObject * obj0 = 0 ; | |
10721 | PyObject * obj1 = 0 ; | |
10722 | PyObject * obj2 = 0 ; | |
10723 | char *kwnames[] = { | |
10724 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10725 | }; | |
10726 | ||
10727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10730 | arg2 = (int) SWIG_AsInt(obj1); | |
10731 | if (PyErr_Occurred()) SWIG_fail; | |
10732 | arg3 = (int) SWIG_AsInt(obj2); | |
10733 | if (PyErr_Occurred()) SWIG_fail; | |
10734 | { | |
10735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10736 | (arg1)->SetRange(arg2,arg3); | |
10737 | ||
10738 | wxPyEndAllowThreads(__tstate); | |
10739 | if (PyErr_Occurred()) SWIG_fail; | |
10740 | } | |
10741 | Py_INCREF(Py_None); resultobj = Py_None; | |
10742 | return resultobj; | |
10743 | fail: | |
10744 | return NULL; | |
10745 | } | |
10746 | ||
10747 | ||
10748 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10749 | PyObject *resultobj; | |
10750 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10751 | int result; | |
10752 | PyObject * obj0 = 0 ; | |
10753 | char *kwnames[] = { | |
10754 | (char *) "self", NULL | |
10755 | }; | |
10756 | ||
10757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
10758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10760 | { | |
10761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10762 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10763 | ||
10764 | wxPyEndAllowThreads(__tstate); | |
10765 | if (PyErr_Occurred()) SWIG_fail; | |
10766 | } | |
10767 | resultobj = SWIG_FromInt((int)result); | |
10768 | return resultobj; | |
10769 | fail: | |
10770 | return NULL; | |
10771 | } | |
10772 | ||
10773 | ||
10774 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10775 | PyObject *resultobj; | |
10776 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10777 | int result; | |
10778 | PyObject * obj0 = 0 ; | |
10779 | char *kwnames[] = { | |
10780 | (char *) "self", NULL | |
10781 | }; | |
10782 | ||
10783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
10784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10786 | { | |
10787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10788 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10789 | ||
10790 | wxPyEndAllowThreads(__tstate); | |
10791 | if (PyErr_Occurred()) SWIG_fail; | |
10792 | } | |
10793 | resultobj = SWIG_FromInt((int)result); | |
10794 | return resultobj; | |
10795 | fail: | |
10796 | return NULL; | |
10797 | } | |
10798 | ||
10799 | ||
10800 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10801 | PyObject *resultobj; | |
10802 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10803 | long arg2 ; | |
10804 | long arg3 ; | |
10805 | PyObject * obj0 = 0 ; | |
10806 | PyObject * obj1 = 0 ; | |
10807 | PyObject * obj2 = 0 ; | |
10808 | char *kwnames[] = { | |
10809 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10810 | }; | |
10811 | ||
10812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10815 | arg2 = (long) SWIG_AsLong(obj1); | |
10816 | if (PyErr_Occurred()) SWIG_fail; | |
10817 | arg3 = (long) SWIG_AsLong(obj2); | |
10818 | if (PyErr_Occurred()) SWIG_fail; | |
10819 | { | |
10820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10821 | (arg1)->SetSelection(arg2,arg3); | |
10822 | ||
10823 | wxPyEndAllowThreads(__tstate); | |
10824 | if (PyErr_Occurred()) SWIG_fail; | |
10825 | } | |
10826 | Py_INCREF(Py_None); resultobj = Py_None; | |
10827 | return resultobj; | |
10828 | fail: | |
10829 | return NULL; | |
10830 | } | |
10831 | ||
10832 | ||
10833 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10834 | PyObject *obj; | |
10835 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10836 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10837 | Py_INCREF(obj); | |
10838 | return Py_BuildValue((char *)""); | |
10839 | } | |
10840 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10841 | PyObject *resultobj; | |
10842 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10843 | int arg2 = (int) 0 ; | |
10844 | wxSpinEvent *result; | |
10845 | PyObject * obj0 = 0 ; | |
10846 | PyObject * obj1 = 0 ; | |
10847 | char *kwnames[] = { | |
10848 | (char *) "commandType",(char *) "winid", NULL | |
10849 | }; | |
10850 | ||
10851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
10852 | if (obj0) { | |
10853 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
10854 | if (PyErr_Occurred()) SWIG_fail; | |
10855 | } | |
10856 | if (obj1) { | |
10857 | arg2 = (int) SWIG_AsInt(obj1); | |
10858 | if (PyErr_Occurred()) SWIG_fail; | |
10859 | } | |
10860 | { | |
10861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10862 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10863 | ||
10864 | wxPyEndAllowThreads(__tstate); | |
10865 | if (PyErr_Occurred()) SWIG_fail; | |
10866 | } | |
10867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); | |
10868 | return resultobj; | |
10869 | fail: | |
10870 | return NULL; | |
10871 | } | |
10872 | ||
10873 | ||
10874 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10875 | PyObject *resultobj; | |
10876 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10877 | int result; | |
10878 | PyObject * obj0 = 0 ; | |
10879 | char *kwnames[] = { | |
10880 | (char *) "self", NULL | |
10881 | }; | |
10882 | ||
10883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
10885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10886 | { | |
10887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10888 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10889 | ||
10890 | wxPyEndAllowThreads(__tstate); | |
10891 | if (PyErr_Occurred()) SWIG_fail; | |
10892 | } | |
10893 | resultobj = SWIG_FromInt((int)result); | |
10894 | return resultobj; | |
10895 | fail: | |
10896 | return NULL; | |
10897 | } | |
10898 | ||
10899 | ||
10900 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10901 | PyObject *resultobj; | |
10902 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10903 | int arg2 ; | |
10904 | PyObject * obj0 = 0 ; | |
10905 | PyObject * obj1 = 0 ; | |
10906 | char *kwnames[] = { | |
10907 | (char *) "self",(char *) "pos", NULL | |
10908 | }; | |
10909 | ||
10910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
10912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10913 | arg2 = (int) SWIG_AsInt(obj1); | |
10914 | if (PyErr_Occurred()) SWIG_fail; | |
10915 | { | |
10916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10917 | (arg1)->SetPosition(arg2); | |
10918 | ||
10919 | wxPyEndAllowThreads(__tstate); | |
10920 | if (PyErr_Occurred()) SWIG_fail; | |
10921 | } | |
10922 | Py_INCREF(Py_None); resultobj = Py_None; | |
10923 | return resultobj; | |
10924 | fail: | |
10925 | return NULL; | |
10926 | } | |
10927 | ||
10928 | ||
10929 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10930 | PyObject *obj; | |
10931 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10932 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10933 | Py_INCREF(obj); | |
10934 | return Py_BuildValue((char *)""); | |
10935 | } | |
10936 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { | |
10937 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
10938 | return 1; | |
10939 | } | |
10940 | ||
10941 | ||
10942 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
10943 | PyObject *pyobj; | |
10944 | ||
10945 | { | |
10946 | #if wxUSE_UNICODE | |
10947 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10948 | #else | |
10949 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10950 | #endif | |
10951 | } | |
10952 | return pyobj; | |
10953 | } | |
10954 | ||
10955 | ||
10956 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
10957 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
10958 | return 1; | |
10959 | } | |
10960 | ||
10961 | ||
10962 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
10963 | PyObject *pyobj; | |
10964 | ||
10965 | { | |
10966 | #if wxUSE_UNICODE | |
10967 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10968 | #else | |
10969 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10970 | #endif | |
10971 | } | |
10972 | return pyobj; | |
10973 | } | |
10974 | ||
10975 | ||
10976 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10977 | PyObject *resultobj; | |
10978 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10979 | int arg2 ; | |
10980 | wxString *arg3 = 0 ; | |
10981 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10982 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10983 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10984 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10985 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
10986 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10987 | int arg7 = (int) 0 ; | |
10988 | long arg8 = (long) wxRA_HORIZONTAL ; | |
10989 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10990 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10991 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
10992 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10993 | wxRadioBox *result; | |
10994 | bool temp3 = False ; | |
10995 | wxPoint temp4 ; | |
10996 | wxSize temp5 ; | |
10997 | bool temp6 = False ; | |
10998 | bool temp10 = False ; | |
10999 | PyObject * obj0 = 0 ; | |
11000 | PyObject * obj1 = 0 ; | |
11001 | PyObject * obj2 = 0 ; | |
11002 | PyObject * obj3 = 0 ; | |
11003 | PyObject * obj4 = 0 ; | |
11004 | PyObject * obj5 = 0 ; | |
11005 | PyObject * obj6 = 0 ; | |
11006 | PyObject * obj7 = 0 ; | |
11007 | PyObject * obj8 = 0 ; | |
11008 | PyObject * obj9 = 0 ; | |
11009 | char *kwnames[] = { | |
11010 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11011 | }; | |
11012 | ||
11013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
11014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11016 | arg2 = (int) SWIG_AsInt(obj1); | |
11017 | if (PyErr_Occurred()) SWIG_fail; | |
11018 | { | |
11019 | arg3 = wxString_in_helper(obj2); | |
11020 | if (arg3 == NULL) SWIG_fail; | |
11021 | temp3 = True; | |
11022 | } | |
11023 | if (obj3) { | |
11024 | { | |
11025 | arg4 = &temp4; | |
11026 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11027 | } | |
11028 | } | |
11029 | if (obj4) { | |
11030 | { | |
11031 | arg5 = &temp5; | |
11032 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11033 | } | |
11034 | } | |
11035 | if (obj5) { | |
11036 | { | |
11037 | if (! PySequence_Check(obj5)) { | |
11038 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11039 | SWIG_fail; | |
11040 | } | |
11041 | arg6 = new wxArrayString; | |
11042 | temp6 = True; | |
11043 | int i, len=PySequence_Length(obj5); | |
11044 | for (i=0; i<len; i++) { | |
11045 | PyObject* item = PySequence_GetItem(obj5, i); | |
11046 | #if wxUSE_UNICODE | |
11047 | PyObject* str = PyObject_Unicode(item); | |
11048 | #else | |
11049 | PyObject* str = PyObject_Str(item); | |
11050 | #endif | |
11051 | arg6->Add(Py2wxString(str)); | |
11052 | Py_DECREF(item); | |
11053 | Py_DECREF(str); | |
11054 | } | |
11055 | } | |
11056 | } | |
11057 | if (obj6) { | |
11058 | arg7 = (int) SWIG_AsInt(obj6); | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
11061 | if (obj7) { | |
11062 | arg8 = (long) SWIG_AsLong(obj7); | |
11063 | if (PyErr_Occurred()) SWIG_fail; | |
11064 | } | |
11065 | if (obj8) { | |
11066 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
11067 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11068 | SWIG_fail; | |
11069 | if (arg9 == NULL) { | |
11070 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11071 | SWIG_fail; | |
11072 | } | |
11073 | } | |
11074 | if (obj9) { | |
11075 | { | |
11076 | arg10 = wxString_in_helper(obj9); | |
11077 | if (arg10 == NULL) SWIG_fail; | |
11078 | temp10 = True; | |
11079 | } | |
11080 | } | |
11081 | { | |
11082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11083 | result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
11084 | ||
11085 | wxPyEndAllowThreads(__tstate); | |
11086 | if (PyErr_Occurred()) SWIG_fail; | |
11087 | } | |
11088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11089 | { | |
11090 | if (temp3) | |
11091 | delete arg3; | |
11092 | } | |
11093 | { | |
11094 | if (temp6) delete arg6; | |
11095 | } | |
11096 | { | |
11097 | if (temp10) | |
11098 | delete arg10; | |
11099 | } | |
11100 | return resultobj; | |
11101 | fail: | |
11102 | { | |
11103 | if (temp3) | |
11104 | delete arg3; | |
11105 | } | |
11106 | { | |
11107 | if (temp6) delete arg6; | |
11108 | } | |
11109 | { | |
11110 | if (temp10) | |
11111 | delete arg10; | |
11112 | } | |
11113 | return NULL; | |
11114 | } | |
11115 | ||
11116 | ||
11117 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11118 | PyObject *resultobj; | |
11119 | wxRadioBox *result; | |
11120 | char *kwnames[] = { | |
11121 | NULL | |
11122 | }; | |
11123 | ||
11124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11125 | { | |
11126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11127 | result = (wxRadioBox *)new wxRadioBox(); | |
11128 | ||
11129 | wxPyEndAllowThreads(__tstate); | |
11130 | if (PyErr_Occurred()) SWIG_fail; | |
11131 | } | |
11132 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11133 | return resultobj; | |
11134 | fail: | |
11135 | return NULL; | |
11136 | } | |
11137 | ||
11138 | ||
11139 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11140 | PyObject *resultobj; | |
11141 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11142 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11143 | int arg3 ; | |
11144 | wxString *arg4 = 0 ; | |
11145 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11146 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11147 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11148 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11149 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
11150 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11151 | int arg8 = (int) 0 ; | |
11152 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11153 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11154 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11155 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11156 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11157 | bool result; | |
11158 | bool temp4 = False ; | |
11159 | wxPoint temp5 ; | |
11160 | wxSize temp6 ; | |
11161 | bool temp7 = False ; | |
11162 | bool temp11 = False ; | |
11163 | PyObject * obj0 = 0 ; | |
11164 | PyObject * obj1 = 0 ; | |
11165 | PyObject * obj2 = 0 ; | |
11166 | PyObject * obj3 = 0 ; | |
11167 | PyObject * obj4 = 0 ; | |
11168 | PyObject * obj5 = 0 ; | |
11169 | PyObject * obj6 = 0 ; | |
11170 | PyObject * obj7 = 0 ; | |
11171 | PyObject * obj8 = 0 ; | |
11172 | PyObject * obj9 = 0 ; | |
11173 | PyObject * obj10 = 0 ; | |
11174 | char *kwnames[] = { | |
11175 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11176 | }; | |
11177 | ||
11178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
11179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11181 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11183 | arg3 = (int) SWIG_AsInt(obj2); | |
11184 | if (PyErr_Occurred()) SWIG_fail; | |
11185 | { | |
11186 | arg4 = wxString_in_helper(obj3); | |
11187 | if (arg4 == NULL) SWIG_fail; | |
11188 | temp4 = True; | |
11189 | } | |
11190 | if (obj4) { | |
11191 | { | |
11192 | arg5 = &temp5; | |
11193 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11194 | } | |
11195 | } | |
11196 | if (obj5) { | |
11197 | { | |
11198 | arg6 = &temp6; | |
11199 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11200 | } | |
11201 | } | |
11202 | if (obj6) { | |
11203 | { | |
11204 | if (! PySequence_Check(obj6)) { | |
11205 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11206 | SWIG_fail; | |
11207 | } | |
11208 | arg7 = new wxArrayString; | |
11209 | temp7 = True; | |
11210 | int i, len=PySequence_Length(obj6); | |
11211 | for (i=0; i<len; i++) { | |
11212 | PyObject* item = PySequence_GetItem(obj6, i); | |
11213 | #if wxUSE_UNICODE | |
11214 | PyObject* str = PyObject_Unicode(item); | |
11215 | #else | |
11216 | PyObject* str = PyObject_Str(item); | |
11217 | #endif | |
11218 | arg7->Add(Py2wxString(str)); | |
11219 | Py_DECREF(item); | |
11220 | Py_DECREF(str); | |
11221 | } | |
11222 | } | |
11223 | } | |
11224 | if (obj7) { | |
11225 | arg8 = (int) SWIG_AsInt(obj7); | |
11226 | if (PyErr_Occurred()) SWIG_fail; | |
11227 | } | |
11228 | if (obj8) { | |
11229 | arg9 = (long) SWIG_AsLong(obj8); | |
11230 | if (PyErr_Occurred()) SWIG_fail; | |
11231 | } | |
11232 | if (obj9) { | |
11233 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
11234 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11235 | SWIG_fail; | |
11236 | if (arg10 == NULL) { | |
11237 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11238 | SWIG_fail; | |
11239 | } | |
11240 | } | |
11241 | if (obj10) { | |
11242 | { | |
11243 | arg11 = wxString_in_helper(obj10); | |
11244 | if (arg11 == NULL) SWIG_fail; | |
11245 | temp11 = True; | |
11246 | } | |
11247 | } | |
11248 | { | |
11249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11250 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
11251 | ||
11252 | wxPyEndAllowThreads(__tstate); | |
11253 | if (PyErr_Occurred()) SWIG_fail; | |
11254 | } | |
11255 | { | |
11256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11257 | } | |
11258 | { | |
11259 | if (temp4) | |
11260 | delete arg4; | |
11261 | } | |
11262 | { | |
11263 | if (temp7) delete arg7; | |
11264 | } | |
11265 | { | |
11266 | if (temp11) | |
11267 | delete arg11; | |
11268 | } | |
11269 | return resultobj; | |
11270 | fail: | |
11271 | { | |
11272 | if (temp4) | |
11273 | delete arg4; | |
11274 | } | |
11275 | { | |
11276 | if (temp7) delete arg7; | |
11277 | } | |
11278 | { | |
11279 | if (temp11) | |
11280 | delete arg11; | |
11281 | } | |
11282 | return NULL; | |
11283 | } | |
11284 | ||
11285 | ||
11286 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11287 | PyObject *resultobj; | |
11288 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11289 | int arg2 ; | |
11290 | PyObject * obj0 = 0 ; | |
11291 | PyObject * obj1 = 0 ; | |
11292 | char *kwnames[] = { | |
11293 | (char *) "self",(char *) "n", NULL | |
11294 | }; | |
11295 | ||
11296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
11297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11299 | arg2 = (int) SWIG_AsInt(obj1); | |
11300 | if (PyErr_Occurred()) SWIG_fail; | |
11301 | { | |
11302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11303 | (arg1)->SetSelection(arg2); | |
11304 | ||
11305 | wxPyEndAllowThreads(__tstate); | |
11306 | if (PyErr_Occurred()) SWIG_fail; | |
11307 | } | |
11308 | Py_INCREF(Py_None); resultobj = Py_None; | |
11309 | return resultobj; | |
11310 | fail: | |
11311 | return NULL; | |
11312 | } | |
11313 | ||
11314 | ||
11315 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11316 | PyObject *resultobj; | |
11317 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11318 | int result; | |
11319 | PyObject * obj0 = 0 ; | |
11320 | char *kwnames[] = { | |
11321 | (char *) "self", NULL | |
11322 | }; | |
11323 | ||
11324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
11325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11327 | { | |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11329 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11330 | ||
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
11334 | resultobj = SWIG_FromInt((int)result); | |
11335 | return resultobj; | |
11336 | fail: | |
11337 | return NULL; | |
11338 | } | |
11339 | ||
11340 | ||
11341 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11342 | PyObject *resultobj; | |
11343 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11344 | wxString result; | |
11345 | PyObject * obj0 = 0 ; | |
11346 | char *kwnames[] = { | |
11347 | (char *) "self", NULL | |
11348 | }; | |
11349 | ||
11350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
11351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11353 | { | |
11354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11355 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11356 | ||
11357 | wxPyEndAllowThreads(__tstate); | |
11358 | if (PyErr_Occurred()) SWIG_fail; | |
11359 | } | |
11360 | { | |
11361 | #if wxUSE_UNICODE | |
11362 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11363 | #else | |
11364 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11365 | #endif | |
11366 | } | |
11367 | return resultobj; | |
11368 | fail: | |
11369 | return NULL; | |
11370 | } | |
11371 | ||
11372 | ||
11373 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11374 | PyObject *resultobj; | |
11375 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11376 | wxString *arg2 = 0 ; | |
11377 | bool result; | |
11378 | bool temp2 = False ; | |
11379 | PyObject * obj0 = 0 ; | |
11380 | PyObject * obj1 = 0 ; | |
11381 | char *kwnames[] = { | |
11382 | (char *) "self",(char *) "s", NULL | |
11383 | }; | |
11384 | ||
11385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
11386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11388 | { | |
11389 | arg2 = wxString_in_helper(obj1); | |
11390 | if (arg2 == NULL) SWIG_fail; | |
11391 | temp2 = True; | |
11392 | } | |
11393 | { | |
11394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11395 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11396 | ||
11397 | wxPyEndAllowThreads(__tstate); | |
11398 | if (PyErr_Occurred()) SWIG_fail; | |
11399 | } | |
11400 | { | |
11401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11402 | } | |
11403 | { | |
11404 | if (temp2) | |
11405 | delete arg2; | |
11406 | } | |
11407 | return resultobj; | |
11408 | fail: | |
11409 | { | |
11410 | if (temp2) | |
11411 | delete arg2; | |
11412 | } | |
11413 | return NULL; | |
11414 | } | |
11415 | ||
11416 | ||
11417 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11418 | PyObject *resultobj; | |
11419 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11420 | int result; | |
11421 | PyObject * obj0 = 0 ; | |
11422 | char *kwnames[] = { | |
11423 | (char *) "self", NULL | |
11424 | }; | |
11425 | ||
11426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
11427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11429 | { | |
11430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11431 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11432 | ||
11433 | wxPyEndAllowThreads(__tstate); | |
11434 | if (PyErr_Occurred()) SWIG_fail; | |
11435 | } | |
11436 | resultobj = SWIG_FromInt((int)result); | |
11437 | return resultobj; | |
11438 | fail: | |
11439 | return NULL; | |
11440 | } | |
11441 | ||
11442 | ||
11443 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11444 | PyObject *resultobj; | |
11445 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11446 | wxString *arg2 = 0 ; | |
11447 | int result; | |
11448 | bool temp2 = False ; | |
11449 | PyObject * obj0 = 0 ; | |
11450 | PyObject * obj1 = 0 ; | |
11451 | char *kwnames[] = { | |
11452 | (char *) "self",(char *) "s", NULL | |
11453 | }; | |
11454 | ||
11455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
11456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11458 | { | |
11459 | arg2 = wxString_in_helper(obj1); | |
11460 | if (arg2 == NULL) SWIG_fail; | |
11461 | temp2 = True; | |
11462 | } | |
11463 | { | |
11464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11465 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11466 | ||
11467 | wxPyEndAllowThreads(__tstate); | |
11468 | if (PyErr_Occurred()) SWIG_fail; | |
11469 | } | |
11470 | resultobj = SWIG_FromInt((int)result); | |
11471 | { | |
11472 | if (temp2) | |
11473 | delete arg2; | |
11474 | } | |
11475 | return resultobj; | |
11476 | fail: | |
11477 | { | |
11478 | if (temp2) | |
11479 | delete arg2; | |
11480 | } | |
11481 | return NULL; | |
11482 | } | |
11483 | ||
11484 | ||
11485 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11486 | PyObject *resultobj; | |
11487 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11488 | int arg2 ; | |
11489 | wxString result; | |
11490 | PyObject * obj0 = 0 ; | |
11491 | PyObject * obj1 = 0 ; | |
11492 | char *kwnames[] = { | |
11493 | (char *) "self",(char *) "n", NULL | |
11494 | }; | |
11495 | ||
11496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
11497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11499 | arg2 = (int) SWIG_AsInt(obj1); | |
11500 | if (PyErr_Occurred()) SWIG_fail; | |
11501 | { | |
11502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11503 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11504 | ||
11505 | wxPyEndAllowThreads(__tstate); | |
11506 | if (PyErr_Occurred()) SWIG_fail; | |
11507 | } | |
11508 | { | |
11509 | #if wxUSE_UNICODE | |
11510 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11511 | #else | |
11512 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11513 | #endif | |
11514 | } | |
11515 | return resultobj; | |
11516 | fail: | |
11517 | return NULL; | |
11518 | } | |
11519 | ||
11520 | ||
11521 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11522 | PyObject *resultobj; | |
11523 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11524 | int arg2 ; | |
11525 | wxString *arg3 = 0 ; | |
11526 | bool temp3 = False ; | |
11527 | PyObject * obj0 = 0 ; | |
11528 | PyObject * obj1 = 0 ; | |
11529 | PyObject * obj2 = 0 ; | |
11530 | char *kwnames[] = { | |
11531 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11532 | }; | |
11533 | ||
11534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11537 | arg2 = (int) SWIG_AsInt(obj1); | |
11538 | if (PyErr_Occurred()) SWIG_fail; | |
11539 | { | |
11540 | arg3 = wxString_in_helper(obj2); | |
11541 | if (arg3 == NULL) SWIG_fail; | |
11542 | temp3 = True; | |
11543 | } | |
11544 | { | |
11545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11546 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11547 | ||
11548 | wxPyEndAllowThreads(__tstate); | |
11549 | if (PyErr_Occurred()) SWIG_fail; | |
11550 | } | |
11551 | Py_INCREF(Py_None); resultobj = Py_None; | |
11552 | { | |
11553 | if (temp3) | |
11554 | delete arg3; | |
11555 | } | |
11556 | return resultobj; | |
11557 | fail: | |
11558 | { | |
11559 | if (temp3) | |
11560 | delete arg3; | |
11561 | } | |
11562 | return NULL; | |
11563 | } | |
11564 | ||
11565 | ||
11566 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11567 | PyObject *resultobj; | |
11568 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11569 | int arg2 ; | |
11570 | bool arg3 = (bool) True ; | |
11571 | PyObject * obj0 = 0 ; | |
11572 | PyObject * obj1 = 0 ; | |
11573 | PyObject * obj2 = 0 ; | |
11574 | char *kwnames[] = { | |
11575 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11576 | }; | |
11577 | ||
11578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11581 | arg2 = (int) SWIG_AsInt(obj1); | |
11582 | if (PyErr_Occurred()) SWIG_fail; | |
11583 | if (obj2) { | |
11584 | arg3 = (bool) SWIG_AsBool(obj2); | |
11585 | if (PyErr_Occurred()) SWIG_fail; | |
11586 | } | |
11587 | { | |
11588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11589 | (arg1)->Enable(arg2,arg3); | |
11590 | ||
11591 | wxPyEndAllowThreads(__tstate); | |
11592 | if (PyErr_Occurred()) SWIG_fail; | |
11593 | } | |
11594 | Py_INCREF(Py_None); resultobj = Py_None; | |
11595 | return resultobj; | |
11596 | fail: | |
11597 | return NULL; | |
11598 | } | |
11599 | ||
11600 | ||
11601 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11602 | PyObject *resultobj; | |
11603 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11604 | int arg2 ; | |
11605 | bool arg3 = (bool) True ; | |
11606 | PyObject * obj0 = 0 ; | |
11607 | PyObject * obj1 = 0 ; | |
11608 | PyObject * obj2 = 0 ; | |
11609 | char *kwnames[] = { | |
11610 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11611 | }; | |
11612 | ||
11613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11616 | arg2 = (int) SWIG_AsInt(obj1); | |
11617 | if (PyErr_Occurred()) SWIG_fail; | |
11618 | if (obj2) { | |
11619 | arg3 = (bool) SWIG_AsBool(obj2); | |
11620 | if (PyErr_Occurred()) SWIG_fail; | |
11621 | } | |
11622 | { | |
11623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11624 | (arg1)->Show(arg2,arg3); | |
11625 | ||
11626 | wxPyEndAllowThreads(__tstate); | |
11627 | if (PyErr_Occurred()) SWIG_fail; | |
11628 | } | |
11629 | Py_INCREF(Py_None); resultobj = Py_None; | |
11630 | return resultobj; | |
11631 | fail: | |
11632 | return NULL; | |
11633 | } | |
11634 | ||
11635 | ||
11636 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11637 | PyObject *resultobj; | |
11638 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11639 | int result; | |
11640 | PyObject * obj0 = 0 ; | |
11641 | char *kwnames[] = { | |
11642 | (char *) "self", NULL | |
11643 | }; | |
11644 | ||
11645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
11646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11648 | { | |
11649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11650 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
11651 | ||
11652 | wxPyEndAllowThreads(__tstate); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | resultobj = SWIG_FromInt((int)result); | |
11656 | return resultobj; | |
11657 | fail: | |
11658 | return NULL; | |
11659 | } | |
11660 | ||
11661 | ||
11662 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11663 | PyObject *resultobj; | |
11664 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11665 | int result; | |
11666 | PyObject * obj0 = 0 ; | |
11667 | char *kwnames[] = { | |
11668 | (char *) "self", NULL | |
11669 | }; | |
11670 | ||
11671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
11672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11674 | { | |
11675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11676 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
11677 | ||
11678 | wxPyEndAllowThreads(__tstate); | |
11679 | if (PyErr_Occurred()) SWIG_fail; | |
11680 | } | |
11681 | resultobj = SWIG_FromInt((int)result); | |
11682 | return resultobj; | |
11683 | fail: | |
11684 | return NULL; | |
11685 | } | |
11686 | ||
11687 | ||
11688 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11689 | PyObject *resultobj; | |
11690 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11691 | int arg2 ; | |
11692 | int arg3 ; | |
11693 | long arg4 ; | |
11694 | int result; | |
11695 | PyObject * obj0 = 0 ; | |
11696 | PyObject * obj1 = 0 ; | |
11697 | PyObject * obj2 = 0 ; | |
11698 | PyObject * obj3 = 0 ; | |
11699 | char *kwnames[] = { | |
11700 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11701 | }; | |
11702 | ||
11703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11706 | arg2 = (int) SWIG_AsInt(obj1); | |
11707 | if (PyErr_Occurred()) SWIG_fail; | |
11708 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
11709 | if (PyErr_Occurred()) SWIG_fail; | |
11710 | arg4 = (long) SWIG_AsLong(obj3); | |
11711 | if (PyErr_Occurred()) SWIG_fail; | |
11712 | { | |
11713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11714 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
11715 | ||
11716 | wxPyEndAllowThreads(__tstate); | |
11717 | if (PyErr_Occurred()) SWIG_fail; | |
11718 | } | |
11719 | resultobj = SWIG_FromInt((int)result); | |
11720 | return resultobj; | |
11721 | fail: | |
11722 | return NULL; | |
11723 | } | |
11724 | ||
11725 | ||
11726 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11727 | PyObject *obj; | |
11728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11729 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11730 | Py_INCREF(obj); | |
11731 | return Py_BuildValue((char *)""); | |
11732 | } | |
11733 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11734 | PyObject *resultobj; | |
11735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11736 | int arg2 ; | |
11737 | wxString *arg3 = 0 ; | |
11738 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11739 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11740 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11741 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11742 | long arg6 = (long) 0 ; | |
11743 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11744 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11745 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11746 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11747 | wxRadioButton *result; | |
11748 | bool temp3 = False ; | |
11749 | wxPoint temp4 ; | |
11750 | wxSize temp5 ; | |
11751 | bool temp8 = False ; | |
11752 | PyObject * obj0 = 0 ; | |
11753 | PyObject * obj1 = 0 ; | |
11754 | PyObject * obj2 = 0 ; | |
11755 | PyObject * obj3 = 0 ; | |
11756 | PyObject * obj4 = 0 ; | |
11757 | PyObject * obj5 = 0 ; | |
11758 | PyObject * obj6 = 0 ; | |
11759 | PyObject * obj7 = 0 ; | |
11760 | char *kwnames[] = { | |
11761 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11762 | }; | |
11763 | ||
11764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
11765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11767 | arg2 = (int) SWIG_AsInt(obj1); | |
11768 | if (PyErr_Occurred()) SWIG_fail; | |
11769 | { | |
11770 | arg3 = wxString_in_helper(obj2); | |
11771 | if (arg3 == NULL) SWIG_fail; | |
11772 | temp3 = True; | |
11773 | } | |
11774 | if (obj3) { | |
11775 | { | |
11776 | arg4 = &temp4; | |
11777 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11778 | } | |
11779 | } | |
11780 | if (obj4) { | |
11781 | { | |
11782 | arg5 = &temp5; | |
11783 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11784 | } | |
11785 | } | |
11786 | if (obj5) { | |
11787 | arg6 = (long) SWIG_AsLong(obj5); | |
11788 | if (PyErr_Occurred()) SWIG_fail; | |
11789 | } | |
11790 | if (obj6) { | |
11791 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
11792 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11793 | SWIG_fail; | |
11794 | if (arg7 == NULL) { | |
11795 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11796 | SWIG_fail; | |
11797 | } | |
11798 | } | |
11799 | if (obj7) { | |
11800 | { | |
11801 | arg8 = wxString_in_helper(obj7); | |
11802 | if (arg8 == NULL) SWIG_fail; | |
11803 | temp8 = True; | |
11804 | } | |
11805 | } | |
11806 | { | |
11807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11808 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11809 | ||
11810 | wxPyEndAllowThreads(__tstate); | |
11811 | if (PyErr_Occurred()) SWIG_fail; | |
11812 | } | |
11813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
11814 | { | |
11815 | if (temp3) | |
11816 | delete arg3; | |
11817 | } | |
11818 | { | |
11819 | if (temp8) | |
11820 | delete arg8; | |
11821 | } | |
11822 | return resultobj; | |
11823 | fail: | |
11824 | { | |
11825 | if (temp3) | |
11826 | delete arg3; | |
11827 | } | |
11828 | { | |
11829 | if (temp8) | |
11830 | delete arg8; | |
11831 | } | |
11832 | return NULL; | |
11833 | } | |
11834 | ||
11835 | ||
11836 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11837 | PyObject *resultobj; | |
11838 | wxRadioButton *result; | |
11839 | char *kwnames[] = { | |
11840 | NULL | |
11841 | }; | |
11842 | ||
11843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11844 | { | |
11845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11846 | result = (wxRadioButton *)new wxRadioButton(); | |
11847 | ||
11848 | wxPyEndAllowThreads(__tstate); | |
11849 | if (PyErr_Occurred()) SWIG_fail; | |
11850 | } | |
11851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
11852 | return resultobj; | |
11853 | fail: | |
11854 | return NULL; | |
11855 | } | |
11856 | ||
11857 | ||
11858 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11859 | PyObject *resultobj; | |
11860 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11861 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11862 | int arg3 ; | |
11863 | wxString *arg4 = 0 ; | |
11864 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11865 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11866 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11867 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11868 | long arg7 = (long) 0 ; | |
11869 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11870 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11871 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11872 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11873 | bool result; | |
11874 | bool temp4 = False ; | |
11875 | wxPoint temp5 ; | |
11876 | wxSize temp6 ; | |
11877 | bool temp9 = False ; | |
11878 | PyObject * obj0 = 0 ; | |
11879 | PyObject * obj1 = 0 ; | |
11880 | PyObject * obj2 = 0 ; | |
11881 | PyObject * obj3 = 0 ; | |
11882 | PyObject * obj4 = 0 ; | |
11883 | PyObject * obj5 = 0 ; | |
11884 | PyObject * obj6 = 0 ; | |
11885 | PyObject * obj7 = 0 ; | |
11886 | PyObject * obj8 = 0 ; | |
11887 | char *kwnames[] = { | |
11888 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11889 | }; | |
11890 | ||
11891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
11892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
11893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11894 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11896 | arg3 = (int) SWIG_AsInt(obj2); | |
11897 | if (PyErr_Occurred()) SWIG_fail; | |
11898 | { | |
11899 | arg4 = wxString_in_helper(obj3); | |
11900 | if (arg4 == NULL) SWIG_fail; | |
11901 | temp4 = True; | |
11902 | } | |
11903 | if (obj4) { | |
11904 | { | |
11905 | arg5 = &temp5; | |
11906 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11907 | } | |
11908 | } | |
11909 | if (obj5) { | |
11910 | { | |
11911 | arg6 = &temp6; | |
11912 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11913 | } | |
11914 | } | |
11915 | if (obj6) { | |
11916 | arg7 = (long) SWIG_AsLong(obj6); | |
11917 | if (PyErr_Occurred()) SWIG_fail; | |
11918 | } | |
11919 | if (obj7) { | |
11920 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
11921 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11922 | SWIG_fail; | |
11923 | if (arg8 == NULL) { | |
11924 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11925 | SWIG_fail; | |
11926 | } | |
11927 | } | |
11928 | if (obj8) { | |
11929 | { | |
11930 | arg9 = wxString_in_helper(obj8); | |
11931 | if (arg9 == NULL) SWIG_fail; | |
11932 | temp9 = True; | |
11933 | } | |
11934 | } | |
11935 | { | |
11936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11937 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11938 | ||
11939 | wxPyEndAllowThreads(__tstate); | |
11940 | if (PyErr_Occurred()) SWIG_fail; | |
11941 | } | |
11942 | { | |
11943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11944 | } | |
11945 | { | |
11946 | if (temp4) | |
11947 | delete arg4; | |
11948 | } | |
11949 | { | |
11950 | if (temp9) | |
11951 | delete arg9; | |
11952 | } | |
11953 | return resultobj; | |
11954 | fail: | |
11955 | { | |
11956 | if (temp4) | |
11957 | delete arg4; | |
11958 | } | |
11959 | { | |
11960 | if (temp9) | |
11961 | delete arg9; | |
11962 | } | |
11963 | return NULL; | |
11964 | } | |
11965 | ||
11966 | ||
11967 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11968 | PyObject *resultobj; | |
11969 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11970 | bool result; | |
11971 | PyObject * obj0 = 0 ; | |
11972 | char *kwnames[] = { | |
11973 | (char *) "self", NULL | |
11974 | }; | |
11975 | ||
11976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
11977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
11978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11979 | { | |
11980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11981 | result = (bool)(arg1)->GetValue(); | |
11982 | ||
11983 | wxPyEndAllowThreads(__tstate); | |
11984 | if (PyErr_Occurred()) SWIG_fail; | |
11985 | } | |
11986 | { | |
11987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11988 | } | |
11989 | return resultobj; | |
11990 | fail: | |
11991 | return NULL; | |
11992 | } | |
11993 | ||
11994 | ||
11995 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11996 | PyObject *resultobj; | |
11997 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11998 | bool arg2 ; | |
11999 | PyObject * obj0 = 0 ; | |
12000 | PyObject * obj1 = 0 ; | |
12001 | char *kwnames[] = { | |
12002 | (char *) "self",(char *) "value", NULL | |
12003 | }; | |
12004 | ||
12005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12008 | arg2 = (bool) SWIG_AsBool(obj1); | |
12009 | if (PyErr_Occurred()) SWIG_fail; | |
12010 | { | |
12011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12012 | (arg1)->SetValue(arg2); | |
12013 | ||
12014 | wxPyEndAllowThreads(__tstate); | |
12015 | if (PyErr_Occurred()) SWIG_fail; | |
12016 | } | |
12017 | Py_INCREF(Py_None); resultobj = Py_None; | |
12018 | return resultobj; | |
12019 | fail: | |
12020 | return NULL; | |
12021 | } | |
12022 | ||
12023 | ||
12024 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
12025 | PyObject *obj; | |
12026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12027 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12028 | Py_INCREF(obj); | |
12029 | return Py_BuildValue((char *)""); | |
12030 | } | |
12031 | static int _wrap_SliderNameStr_set(PyObject *_val) { | |
12032 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
12033 | return 1; | |
12034 | } | |
12035 | ||
12036 | ||
12037 | static PyObject *_wrap_SliderNameStr_get() { | |
12038 | PyObject *pyobj; | |
12039 | ||
12040 | { | |
12041 | #if wxUSE_UNICODE | |
12042 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12043 | #else | |
12044 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12045 | #endif | |
12046 | } | |
12047 | return pyobj; | |
12048 | } | |
12049 | ||
12050 | ||
12051 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12052 | PyObject *resultobj; | |
12053 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12054 | int arg2 ; | |
12055 | int arg3 ; | |
12056 | int arg4 ; | |
12057 | int arg5 ; | |
12058 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12059 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12060 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12061 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12062 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12063 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12064 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12065 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12066 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12067 | wxSlider *result; | |
12068 | wxPoint temp6 ; | |
12069 | wxSize temp7 ; | |
12070 | bool temp10 = False ; | |
12071 | PyObject * obj0 = 0 ; | |
12072 | PyObject * obj1 = 0 ; | |
12073 | PyObject * obj2 = 0 ; | |
12074 | PyObject * obj3 = 0 ; | |
12075 | PyObject * obj4 = 0 ; | |
12076 | PyObject * obj5 = 0 ; | |
12077 | PyObject * obj6 = 0 ; | |
12078 | PyObject * obj7 = 0 ; | |
12079 | PyObject * obj8 = 0 ; | |
12080 | PyObject * obj9 = 0 ; | |
12081 | char *kwnames[] = { | |
12082 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12083 | }; | |
12084 | ||
12085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
12086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12088 | arg2 = (int) SWIG_AsInt(obj1); | |
12089 | if (PyErr_Occurred()) SWIG_fail; | |
12090 | arg3 = (int) SWIG_AsInt(obj2); | |
12091 | if (PyErr_Occurred()) SWIG_fail; | |
12092 | arg4 = (int) SWIG_AsInt(obj3); | |
12093 | if (PyErr_Occurred()) SWIG_fail; | |
12094 | arg5 = (int) SWIG_AsInt(obj4); | |
12095 | if (PyErr_Occurred()) SWIG_fail; | |
12096 | if (obj5) { | |
12097 | { | |
12098 | arg6 = &temp6; | |
12099 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12100 | } | |
12101 | } | |
12102 | if (obj6) { | |
12103 | { | |
12104 | arg7 = &temp7; | |
12105 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12106 | } | |
12107 | } | |
12108 | if (obj7) { | |
12109 | arg8 = (long) SWIG_AsLong(obj7); | |
12110 | if (PyErr_Occurred()) SWIG_fail; | |
12111 | } | |
12112 | if (obj8) { | |
12113 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
12114 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12115 | SWIG_fail; | |
12116 | if (arg9 == NULL) { | |
12117 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12118 | SWIG_fail; | |
12119 | } | |
12120 | } | |
12121 | if (obj9) { | |
12122 | { | |
12123 | arg10 = wxString_in_helper(obj9); | |
12124 | if (arg10 == NULL) SWIG_fail; | |
12125 | temp10 = True; | |
12126 | } | |
12127 | } | |
12128 | { | |
12129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12130 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12131 | ||
12132 | wxPyEndAllowThreads(__tstate); | |
12133 | if (PyErr_Occurred()) SWIG_fail; | |
12134 | } | |
12135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
12136 | { | |
12137 | if (temp10) | |
12138 | delete arg10; | |
12139 | } | |
12140 | return resultobj; | |
12141 | fail: | |
12142 | { | |
12143 | if (temp10) | |
12144 | delete arg10; | |
12145 | } | |
12146 | return NULL; | |
12147 | } | |
12148 | ||
12149 | ||
12150 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12151 | PyObject *resultobj; | |
12152 | wxSlider *result; | |
12153 | char *kwnames[] = { | |
12154 | NULL | |
12155 | }; | |
12156 | ||
12157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12158 | { | |
12159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12160 | result = (wxSlider *)new wxSlider(); | |
12161 | ||
12162 | wxPyEndAllowThreads(__tstate); | |
12163 | if (PyErr_Occurred()) SWIG_fail; | |
12164 | } | |
12165 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
12166 | return resultobj; | |
12167 | fail: | |
12168 | return NULL; | |
12169 | } | |
12170 | ||
12171 | ||
12172 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12173 | PyObject *resultobj; | |
12174 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12175 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12176 | int arg3 ; | |
12177 | int arg4 ; | |
12178 | int arg5 ; | |
12179 | int arg6 ; | |
12180 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12181 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12182 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12183 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12184 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12185 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12186 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12187 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12188 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12189 | bool result; | |
12190 | wxPoint temp7 ; | |
12191 | wxSize temp8 ; | |
12192 | bool temp11 = False ; | |
12193 | PyObject * obj0 = 0 ; | |
12194 | PyObject * obj1 = 0 ; | |
12195 | PyObject * obj2 = 0 ; | |
12196 | PyObject * obj3 = 0 ; | |
12197 | PyObject * obj4 = 0 ; | |
12198 | PyObject * obj5 = 0 ; | |
12199 | PyObject * obj6 = 0 ; | |
12200 | PyObject * obj7 = 0 ; | |
12201 | PyObject * obj8 = 0 ; | |
12202 | PyObject * obj9 = 0 ; | |
12203 | PyObject * obj10 = 0 ; | |
12204 | char *kwnames[] = { | |
12205 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12206 | }; | |
12207 | ||
12208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
12209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12211 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12213 | arg3 = (int) SWIG_AsInt(obj2); | |
12214 | if (PyErr_Occurred()) SWIG_fail; | |
12215 | arg4 = (int) SWIG_AsInt(obj3); | |
12216 | if (PyErr_Occurred()) SWIG_fail; | |
12217 | arg5 = (int) SWIG_AsInt(obj4); | |
12218 | if (PyErr_Occurred()) SWIG_fail; | |
12219 | arg6 = (int) SWIG_AsInt(obj5); | |
12220 | if (PyErr_Occurred()) SWIG_fail; | |
12221 | if (obj6) { | |
12222 | { | |
12223 | arg7 = &temp7; | |
12224 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12225 | } | |
12226 | } | |
12227 | if (obj7) { | |
12228 | { | |
12229 | arg8 = &temp8; | |
12230 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12231 | } | |
12232 | } | |
12233 | if (obj8) { | |
12234 | arg9 = (long) SWIG_AsLong(obj8); | |
12235 | if (PyErr_Occurred()) SWIG_fail; | |
12236 | } | |
12237 | if (obj9) { | |
12238 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
12239 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12240 | SWIG_fail; | |
12241 | if (arg10 == NULL) { | |
12242 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12243 | SWIG_fail; | |
12244 | } | |
12245 | } | |
12246 | if (obj10) { | |
12247 | { | |
12248 | arg11 = wxString_in_helper(obj10); | |
12249 | if (arg11 == NULL) SWIG_fail; | |
12250 | temp11 = True; | |
12251 | } | |
12252 | } | |
12253 | { | |
12254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12255 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12256 | ||
12257 | wxPyEndAllowThreads(__tstate); | |
12258 | if (PyErr_Occurred()) SWIG_fail; | |
12259 | } | |
12260 | { | |
12261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12262 | } | |
12263 | { | |
12264 | if (temp11) | |
12265 | delete arg11; | |
12266 | } | |
12267 | return resultobj; | |
12268 | fail: | |
12269 | { | |
12270 | if (temp11) | |
12271 | delete arg11; | |
12272 | } | |
12273 | return NULL; | |
12274 | } | |
12275 | ||
12276 | ||
12277 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12278 | PyObject *resultobj; | |
12279 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12280 | int result; | |
12281 | PyObject * obj0 = 0 ; | |
12282 | char *kwnames[] = { | |
12283 | (char *) "self", NULL | |
12284 | }; | |
12285 | ||
12286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
12287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12289 | { | |
12290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12291 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12292 | ||
12293 | wxPyEndAllowThreads(__tstate); | |
12294 | if (PyErr_Occurred()) SWIG_fail; | |
12295 | } | |
12296 | resultobj = SWIG_FromInt((int)result); | |
12297 | return resultobj; | |
12298 | fail: | |
12299 | return NULL; | |
12300 | } | |
12301 | ||
12302 | ||
12303 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12304 | PyObject *resultobj; | |
12305 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12306 | int arg2 ; | |
12307 | PyObject * obj0 = 0 ; | |
12308 | PyObject * obj1 = 0 ; | |
12309 | char *kwnames[] = { | |
12310 | (char *) "self",(char *) "value", NULL | |
12311 | }; | |
12312 | ||
12313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12316 | arg2 = (int) SWIG_AsInt(obj1); | |
12317 | if (PyErr_Occurred()) SWIG_fail; | |
12318 | { | |
12319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12320 | (arg1)->SetValue(arg2); | |
12321 | ||
12322 | wxPyEndAllowThreads(__tstate); | |
12323 | if (PyErr_Occurred()) SWIG_fail; | |
12324 | } | |
12325 | Py_INCREF(Py_None); resultobj = Py_None; | |
12326 | return resultobj; | |
12327 | fail: | |
12328 | return NULL; | |
12329 | } | |
12330 | ||
12331 | ||
12332 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12333 | PyObject *resultobj; | |
12334 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12335 | int arg2 ; | |
12336 | int arg3 ; | |
12337 | PyObject * obj0 = 0 ; | |
12338 | PyObject * obj1 = 0 ; | |
12339 | PyObject * obj2 = 0 ; | |
12340 | char *kwnames[] = { | |
12341 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12342 | }; | |
12343 | ||
12344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12347 | arg2 = (int) SWIG_AsInt(obj1); | |
12348 | if (PyErr_Occurred()) SWIG_fail; | |
12349 | arg3 = (int) SWIG_AsInt(obj2); | |
12350 | if (PyErr_Occurred()) SWIG_fail; | |
12351 | { | |
12352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12353 | (arg1)->SetRange(arg2,arg3); | |
12354 | ||
12355 | wxPyEndAllowThreads(__tstate); | |
12356 | if (PyErr_Occurred()) SWIG_fail; | |
12357 | } | |
12358 | Py_INCREF(Py_None); resultobj = Py_None; | |
12359 | return resultobj; | |
12360 | fail: | |
12361 | return NULL; | |
12362 | } | |
12363 | ||
12364 | ||
12365 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12366 | PyObject *resultobj; | |
12367 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12368 | int result; | |
12369 | PyObject * obj0 = 0 ; | |
12370 | char *kwnames[] = { | |
12371 | (char *) "self", NULL | |
12372 | }; | |
12373 | ||
12374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
12375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12377 | { | |
12378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12379 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12380 | ||
12381 | wxPyEndAllowThreads(__tstate); | |
12382 | if (PyErr_Occurred()) SWIG_fail; | |
12383 | } | |
12384 | resultobj = SWIG_FromInt((int)result); | |
12385 | return resultobj; | |
12386 | fail: | |
12387 | return NULL; | |
12388 | } | |
12389 | ||
12390 | ||
12391 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12392 | PyObject *resultobj; | |
12393 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12394 | int result; | |
12395 | PyObject * obj0 = 0 ; | |
12396 | char *kwnames[] = { | |
12397 | (char *) "self", NULL | |
12398 | }; | |
12399 | ||
12400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
12401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12403 | { | |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12405 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12406 | ||
12407 | wxPyEndAllowThreads(__tstate); | |
12408 | if (PyErr_Occurred()) SWIG_fail; | |
12409 | } | |
12410 | resultobj = SWIG_FromInt((int)result); | |
12411 | return resultobj; | |
12412 | fail: | |
12413 | return NULL; | |
12414 | } | |
12415 | ||
12416 | ||
12417 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12418 | PyObject *resultobj; | |
12419 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12420 | int arg2 ; | |
12421 | PyObject * obj0 = 0 ; | |
12422 | PyObject * obj1 = 0 ; | |
12423 | char *kwnames[] = { | |
12424 | (char *) "self",(char *) "minValue", NULL | |
12425 | }; | |
12426 | ||
12427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
12428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12430 | arg2 = (int) SWIG_AsInt(obj1); | |
12431 | if (PyErr_Occurred()) SWIG_fail; | |
12432 | { | |
12433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12434 | (arg1)->SetMin(arg2); | |
12435 | ||
12436 | wxPyEndAllowThreads(__tstate); | |
12437 | if (PyErr_Occurred()) SWIG_fail; | |
12438 | } | |
12439 | Py_INCREF(Py_None); resultobj = Py_None; | |
12440 | return resultobj; | |
12441 | fail: | |
12442 | return NULL; | |
12443 | } | |
12444 | ||
12445 | ||
12446 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12447 | PyObject *resultobj; | |
12448 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12449 | int arg2 ; | |
12450 | PyObject * obj0 = 0 ; | |
12451 | PyObject * obj1 = 0 ; | |
12452 | char *kwnames[] = { | |
12453 | (char *) "self",(char *) "maxValue", NULL | |
12454 | }; | |
12455 | ||
12456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
12457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12459 | arg2 = (int) SWIG_AsInt(obj1); | |
12460 | if (PyErr_Occurred()) SWIG_fail; | |
12461 | { | |
12462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12463 | (arg1)->SetMax(arg2); | |
12464 | ||
12465 | wxPyEndAllowThreads(__tstate); | |
12466 | if (PyErr_Occurred()) SWIG_fail; | |
12467 | } | |
12468 | Py_INCREF(Py_None); resultobj = Py_None; | |
12469 | return resultobj; | |
12470 | fail: | |
12471 | return NULL; | |
12472 | } | |
12473 | ||
12474 | ||
12475 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12476 | PyObject *resultobj; | |
12477 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12478 | int arg2 ; | |
12479 | PyObject * obj0 = 0 ; | |
12480 | PyObject * obj1 = 0 ; | |
12481 | char *kwnames[] = { | |
12482 | (char *) "self",(char *) "lineSize", NULL | |
12483 | }; | |
12484 | ||
12485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
12486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12488 | arg2 = (int) SWIG_AsInt(obj1); | |
12489 | if (PyErr_Occurred()) SWIG_fail; | |
12490 | { | |
12491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12492 | (arg1)->SetLineSize(arg2); | |
12493 | ||
12494 | wxPyEndAllowThreads(__tstate); | |
12495 | if (PyErr_Occurred()) SWIG_fail; | |
12496 | } | |
12497 | Py_INCREF(Py_None); resultobj = Py_None; | |
12498 | return resultobj; | |
12499 | fail: | |
12500 | return NULL; | |
12501 | } | |
12502 | ||
12503 | ||
12504 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12505 | PyObject *resultobj; | |
12506 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12507 | int arg2 ; | |
12508 | PyObject * obj0 = 0 ; | |
12509 | PyObject * obj1 = 0 ; | |
12510 | char *kwnames[] = { | |
12511 | (char *) "self",(char *) "pageSize", NULL | |
12512 | }; | |
12513 | ||
12514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
12515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12517 | arg2 = (int) SWIG_AsInt(obj1); | |
12518 | if (PyErr_Occurred()) SWIG_fail; | |
12519 | { | |
12520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12521 | (arg1)->SetPageSize(arg2); | |
12522 | ||
12523 | wxPyEndAllowThreads(__tstate); | |
12524 | if (PyErr_Occurred()) SWIG_fail; | |
12525 | } | |
12526 | Py_INCREF(Py_None); resultobj = Py_None; | |
12527 | return resultobj; | |
12528 | fail: | |
12529 | return NULL; | |
12530 | } | |
12531 | ||
12532 | ||
12533 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12534 | PyObject *resultobj; | |
12535 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12536 | int result; | |
12537 | PyObject * obj0 = 0 ; | |
12538 | char *kwnames[] = { | |
12539 | (char *) "self", NULL | |
12540 | }; | |
12541 | ||
12542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
12543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12545 | { | |
12546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12547 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12548 | ||
12549 | wxPyEndAllowThreads(__tstate); | |
12550 | if (PyErr_Occurred()) SWIG_fail; | |
12551 | } | |
12552 | resultobj = SWIG_FromInt((int)result); | |
12553 | return resultobj; | |
12554 | fail: | |
12555 | return NULL; | |
12556 | } | |
12557 | ||
12558 | ||
12559 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12560 | PyObject *resultobj; | |
12561 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12562 | int result; | |
12563 | PyObject * obj0 = 0 ; | |
12564 | char *kwnames[] = { | |
12565 | (char *) "self", NULL | |
12566 | }; | |
12567 | ||
12568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
12569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12571 | { | |
12572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12573 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12574 | ||
12575 | wxPyEndAllowThreads(__tstate); | |
12576 | if (PyErr_Occurred()) SWIG_fail; | |
12577 | } | |
12578 | resultobj = SWIG_FromInt((int)result); | |
12579 | return resultobj; | |
12580 | fail: | |
12581 | return NULL; | |
12582 | } | |
12583 | ||
12584 | ||
12585 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12586 | PyObject *resultobj; | |
12587 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12588 | int arg2 ; | |
12589 | PyObject * obj0 = 0 ; | |
12590 | PyObject * obj1 = 0 ; | |
12591 | char *kwnames[] = { | |
12592 | (char *) "self",(char *) "lenPixels", NULL | |
12593 | }; | |
12594 | ||
12595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
12596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12598 | arg2 = (int) SWIG_AsInt(obj1); | |
12599 | if (PyErr_Occurred()) SWIG_fail; | |
12600 | { | |
12601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12602 | (arg1)->SetThumbLength(arg2); | |
12603 | ||
12604 | wxPyEndAllowThreads(__tstate); | |
12605 | if (PyErr_Occurred()) SWIG_fail; | |
12606 | } | |
12607 | Py_INCREF(Py_None); resultobj = Py_None; | |
12608 | return resultobj; | |
12609 | fail: | |
12610 | return NULL; | |
12611 | } | |
12612 | ||
12613 | ||
12614 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12615 | PyObject *resultobj; | |
12616 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12617 | int result; | |
12618 | PyObject * obj0 = 0 ; | |
12619 | char *kwnames[] = { | |
12620 | (char *) "self", NULL | |
12621 | }; | |
12622 | ||
12623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
12624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12626 | { | |
12627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12628 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12629 | ||
12630 | wxPyEndAllowThreads(__tstate); | |
12631 | if (PyErr_Occurred()) SWIG_fail; | |
12632 | } | |
12633 | resultobj = SWIG_FromInt((int)result); | |
12634 | return resultobj; | |
12635 | fail: | |
12636 | return NULL; | |
12637 | } | |
12638 | ||
12639 | ||
12640 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12641 | PyObject *resultobj; | |
12642 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12643 | int arg2 ; | |
12644 | int arg3 = (int) 1 ; | |
12645 | PyObject * obj0 = 0 ; | |
12646 | PyObject * obj1 = 0 ; | |
12647 | PyObject * obj2 = 0 ; | |
12648 | char *kwnames[] = { | |
12649 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12650 | }; | |
12651 | ||
12652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12655 | arg2 = (int) SWIG_AsInt(obj1); | |
12656 | if (PyErr_Occurred()) SWIG_fail; | |
12657 | if (obj2) { | |
12658 | arg3 = (int) SWIG_AsInt(obj2); | |
12659 | if (PyErr_Occurred()) SWIG_fail; | |
12660 | } | |
12661 | { | |
12662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12663 | (arg1)->SetTickFreq(arg2,arg3); | |
12664 | ||
12665 | wxPyEndAllowThreads(__tstate); | |
12666 | if (PyErr_Occurred()) SWIG_fail; | |
12667 | } | |
12668 | Py_INCREF(Py_None); resultobj = Py_None; | |
12669 | return resultobj; | |
12670 | fail: | |
12671 | return NULL; | |
12672 | } | |
12673 | ||
12674 | ||
12675 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12676 | PyObject *resultobj; | |
12677 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12678 | int result; | |
12679 | PyObject * obj0 = 0 ; | |
12680 | char *kwnames[] = { | |
12681 | (char *) "self", NULL | |
12682 | }; | |
12683 | ||
12684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
12685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12687 | { | |
12688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12689 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12690 | ||
12691 | wxPyEndAllowThreads(__tstate); | |
12692 | if (PyErr_Occurred()) SWIG_fail; | |
12693 | } | |
12694 | resultobj = SWIG_FromInt((int)result); | |
12695 | return resultobj; | |
12696 | fail: | |
12697 | return NULL; | |
12698 | } | |
12699 | ||
12700 | ||
12701 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12702 | PyObject *resultobj; | |
12703 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12704 | PyObject * obj0 = 0 ; | |
12705 | char *kwnames[] = { | |
12706 | (char *) "self", NULL | |
12707 | }; | |
12708 | ||
12709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
12710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12712 | { | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | (arg1)->ClearTicks(); | |
12715 | ||
12716 | wxPyEndAllowThreads(__tstate); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | } | |
12719 | Py_INCREF(Py_None); resultobj = Py_None; | |
12720 | return resultobj; | |
12721 | fail: | |
12722 | return NULL; | |
12723 | } | |
12724 | ||
12725 | ||
12726 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12727 | PyObject *resultobj; | |
12728 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12729 | int arg2 ; | |
12730 | PyObject * obj0 = 0 ; | |
12731 | PyObject * obj1 = 0 ; | |
12732 | char *kwnames[] = { | |
12733 | (char *) "self",(char *) "tickPos", NULL | |
12734 | }; | |
12735 | ||
12736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
12737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12739 | arg2 = (int) SWIG_AsInt(obj1); | |
12740 | if (PyErr_Occurred()) SWIG_fail; | |
12741 | { | |
12742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12743 | (arg1)->SetTick(arg2); | |
12744 | ||
12745 | wxPyEndAllowThreads(__tstate); | |
12746 | if (PyErr_Occurred()) SWIG_fail; | |
12747 | } | |
12748 | Py_INCREF(Py_None); resultobj = Py_None; | |
12749 | return resultobj; | |
12750 | fail: | |
12751 | return NULL; | |
12752 | } | |
12753 | ||
12754 | ||
12755 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12756 | PyObject *resultobj; | |
12757 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12758 | PyObject * obj0 = 0 ; | |
12759 | char *kwnames[] = { | |
12760 | (char *) "self", NULL | |
12761 | }; | |
12762 | ||
12763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
12764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12766 | { | |
12767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12768 | (arg1)->ClearSel(); | |
12769 | ||
12770 | wxPyEndAllowThreads(__tstate); | |
12771 | if (PyErr_Occurred()) SWIG_fail; | |
12772 | } | |
12773 | Py_INCREF(Py_None); resultobj = Py_None; | |
12774 | return resultobj; | |
12775 | fail: | |
12776 | return NULL; | |
12777 | } | |
12778 | ||
12779 | ||
12780 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12781 | PyObject *resultobj; | |
12782 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12783 | int result; | |
12784 | PyObject * obj0 = 0 ; | |
12785 | char *kwnames[] = { | |
12786 | (char *) "self", NULL | |
12787 | }; | |
12788 | ||
12789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
12790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12792 | { | |
12793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12794 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12795 | ||
12796 | wxPyEndAllowThreads(__tstate); | |
12797 | if (PyErr_Occurred()) SWIG_fail; | |
12798 | } | |
12799 | resultobj = SWIG_FromInt((int)result); | |
12800 | return resultobj; | |
12801 | fail: | |
12802 | return NULL; | |
12803 | } | |
12804 | ||
12805 | ||
12806 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12807 | PyObject *resultobj; | |
12808 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12809 | int result; | |
12810 | PyObject * obj0 = 0 ; | |
12811 | char *kwnames[] = { | |
12812 | (char *) "self", NULL | |
12813 | }; | |
12814 | ||
12815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
12816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12818 | { | |
12819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12820 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12821 | ||
12822 | wxPyEndAllowThreads(__tstate); | |
12823 | if (PyErr_Occurred()) SWIG_fail; | |
12824 | } | |
12825 | resultobj = SWIG_FromInt((int)result); | |
12826 | return resultobj; | |
12827 | fail: | |
12828 | return NULL; | |
12829 | } | |
12830 | ||
12831 | ||
12832 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12833 | PyObject *resultobj; | |
12834 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12835 | int arg2 ; | |
12836 | int arg3 ; | |
12837 | PyObject * obj0 = 0 ; | |
12838 | PyObject * obj1 = 0 ; | |
12839 | PyObject * obj2 = 0 ; | |
12840 | char *kwnames[] = { | |
12841 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12842 | }; | |
12843 | ||
12844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12847 | arg2 = (int) SWIG_AsInt(obj1); | |
12848 | if (PyErr_Occurred()) SWIG_fail; | |
12849 | arg3 = (int) SWIG_AsInt(obj2); | |
12850 | if (PyErr_Occurred()) SWIG_fail; | |
12851 | { | |
12852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12853 | (arg1)->SetSelection(arg2,arg3); | |
12854 | ||
12855 | wxPyEndAllowThreads(__tstate); | |
12856 | if (PyErr_Occurred()) SWIG_fail; | |
12857 | } | |
12858 | Py_INCREF(Py_None); resultobj = Py_None; | |
12859 | return resultobj; | |
12860 | fail: | |
12861 | return NULL; | |
12862 | } | |
12863 | ||
12864 | ||
12865 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12866 | PyObject *obj; | |
12867 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12868 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12869 | Py_INCREF(obj); | |
12870 | return Py_BuildValue((char *)""); | |
12871 | } | |
12872 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { | |
12873 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
12874 | return 1; | |
12875 | } | |
12876 | ||
12877 | ||
12878 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12879 | PyObject *pyobj; | |
12880 | ||
12881 | { | |
12882 | #if wxUSE_UNICODE | |
12883 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12884 | #else | |
12885 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12886 | #endif | |
12887 | } | |
12888 | return pyobj; | |
12889 | } | |
12890 | ||
12891 | ||
12892 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12893 | PyObject *resultobj; | |
12894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12895 | int arg2 ; | |
12896 | wxString *arg3 = 0 ; | |
12897 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12898 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12899 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12900 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12901 | long arg6 = (long) 0 ; | |
12902 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12903 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12904 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12905 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12906 | wxToggleButton *result; | |
12907 | bool temp3 = False ; | |
12908 | wxPoint temp4 ; | |
12909 | wxSize temp5 ; | |
12910 | bool temp8 = False ; | |
12911 | PyObject * obj0 = 0 ; | |
12912 | PyObject * obj1 = 0 ; | |
12913 | PyObject * obj2 = 0 ; | |
12914 | PyObject * obj3 = 0 ; | |
12915 | PyObject * obj4 = 0 ; | |
12916 | PyObject * obj5 = 0 ; | |
12917 | PyObject * obj6 = 0 ; | |
12918 | PyObject * obj7 = 0 ; | |
12919 | char *kwnames[] = { | |
12920 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12921 | }; | |
12922 | ||
12923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
12924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12926 | arg2 = (int) SWIG_AsInt(obj1); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | { | |
12929 | arg3 = wxString_in_helper(obj2); | |
12930 | if (arg3 == NULL) SWIG_fail; | |
12931 | temp3 = True; | |
12932 | } | |
12933 | if (obj3) { | |
12934 | { | |
12935 | arg4 = &temp4; | |
12936 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12937 | } | |
12938 | } | |
12939 | if (obj4) { | |
12940 | { | |
12941 | arg5 = &temp5; | |
12942 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12943 | } | |
12944 | } | |
12945 | if (obj5) { | |
12946 | arg6 = (long) SWIG_AsLong(obj5); | |
12947 | if (PyErr_Occurred()) SWIG_fail; | |
12948 | } | |
12949 | if (obj6) { | |
12950 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
12951 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12952 | SWIG_fail; | |
12953 | if (arg7 == NULL) { | |
12954 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12955 | SWIG_fail; | |
12956 | } | |
12957 | } | |
12958 | if (obj7) { | |
12959 | { | |
12960 | arg8 = wxString_in_helper(obj7); | |
12961 | if (arg8 == NULL) SWIG_fail; | |
12962 | temp8 = True; | |
12963 | } | |
12964 | } | |
12965 | { | |
12966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12967 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12968 | ||
12969 | wxPyEndAllowThreads(__tstate); | |
12970 | if (PyErr_Occurred()) SWIG_fail; | |
12971 | } | |
12972 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
12973 | { | |
12974 | if (temp3) | |
12975 | delete arg3; | |
12976 | } | |
12977 | { | |
12978 | if (temp8) | |
12979 | delete arg8; | |
12980 | } | |
12981 | return resultobj; | |
12982 | fail: | |
12983 | { | |
12984 | if (temp3) | |
12985 | delete arg3; | |
12986 | } | |
12987 | { | |
12988 | if (temp8) | |
12989 | delete arg8; | |
12990 | } | |
12991 | return NULL; | |
12992 | } | |
12993 | ||
12994 | ||
12995 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12996 | PyObject *resultobj; | |
12997 | wxToggleButton *result; | |
12998 | char *kwnames[] = { | |
12999 | NULL | |
13000 | }; | |
13001 | ||
13002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13003 | { | |
13004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13005 | result = (wxToggleButton *)new wxToggleButton(); | |
13006 | ||
13007 | wxPyEndAllowThreads(__tstate); | |
13008 | if (PyErr_Occurred()) SWIG_fail; | |
13009 | } | |
13010 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13011 | return resultobj; | |
13012 | fail: | |
13013 | return NULL; | |
13014 | } | |
13015 | ||
13016 | ||
13017 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13018 | PyObject *resultobj; | |
13019 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13020 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13021 | int arg3 ; | |
13022 | wxString *arg4 = 0 ; | |
13023 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13024 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13025 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13026 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13027 | long arg7 = (long) 0 ; | |
13028 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13029 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13030 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13031 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13032 | bool result; | |
13033 | bool temp4 = False ; | |
13034 | wxPoint temp5 ; | |
13035 | wxSize temp6 ; | |
13036 | bool temp9 = False ; | |
13037 | PyObject * obj0 = 0 ; | |
13038 | PyObject * obj1 = 0 ; | |
13039 | PyObject * obj2 = 0 ; | |
13040 | PyObject * obj3 = 0 ; | |
13041 | PyObject * obj4 = 0 ; | |
13042 | PyObject * obj5 = 0 ; | |
13043 | PyObject * obj6 = 0 ; | |
13044 | PyObject * obj7 = 0 ; | |
13045 | PyObject * obj8 = 0 ; | |
13046 | char *kwnames[] = { | |
13047 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13048 | }; | |
13049 | ||
13050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
13051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13053 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13055 | arg3 = (int) SWIG_AsInt(obj2); | |
13056 | if (PyErr_Occurred()) SWIG_fail; | |
13057 | { | |
13058 | arg4 = wxString_in_helper(obj3); | |
13059 | if (arg4 == NULL) SWIG_fail; | |
13060 | temp4 = True; | |
13061 | } | |
13062 | if (obj4) { | |
13063 | { | |
13064 | arg5 = &temp5; | |
13065 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13066 | } | |
13067 | } | |
13068 | if (obj5) { | |
13069 | { | |
13070 | arg6 = &temp6; | |
13071 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13072 | } | |
13073 | } | |
13074 | if (obj6) { | |
13075 | arg7 = (long) SWIG_AsLong(obj6); | |
13076 | if (PyErr_Occurred()) SWIG_fail; | |
13077 | } | |
13078 | if (obj7) { | |
13079 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
13080 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13081 | SWIG_fail; | |
13082 | if (arg8 == NULL) { | |
13083 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13084 | SWIG_fail; | |
13085 | } | |
13086 | } | |
13087 | if (obj8) { | |
13088 | { | |
13089 | arg9 = wxString_in_helper(obj8); | |
13090 | if (arg9 == NULL) SWIG_fail; | |
13091 | temp9 = True; | |
13092 | } | |
13093 | } | |
13094 | { | |
13095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13096 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13097 | ||
13098 | wxPyEndAllowThreads(__tstate); | |
13099 | if (PyErr_Occurred()) SWIG_fail; | |
13100 | } | |
13101 | { | |
13102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13103 | } | |
13104 | { | |
13105 | if (temp4) | |
13106 | delete arg4; | |
13107 | } | |
13108 | { | |
13109 | if (temp9) | |
13110 | delete arg9; | |
13111 | } | |
13112 | return resultobj; | |
13113 | fail: | |
13114 | { | |
13115 | if (temp4) | |
13116 | delete arg4; | |
13117 | } | |
13118 | { | |
13119 | if (temp9) | |
13120 | delete arg9; | |
13121 | } | |
13122 | return NULL; | |
13123 | } | |
13124 | ||
13125 | ||
13126 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13127 | PyObject *resultobj; | |
13128 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13129 | bool arg2 ; | |
13130 | PyObject * obj0 = 0 ; | |
13131 | PyObject * obj1 = 0 ; | |
13132 | char *kwnames[] = { | |
13133 | (char *) "self",(char *) "value", NULL | |
13134 | }; | |
13135 | ||
13136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13139 | arg2 = (bool) SWIG_AsBool(obj1); | |
13140 | if (PyErr_Occurred()) SWIG_fail; | |
13141 | { | |
13142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13143 | (arg1)->SetValue(arg2); | |
13144 | ||
13145 | wxPyEndAllowThreads(__tstate); | |
13146 | if (PyErr_Occurred()) SWIG_fail; | |
13147 | } | |
13148 | Py_INCREF(Py_None); resultobj = Py_None; | |
13149 | return resultobj; | |
13150 | fail: | |
13151 | return NULL; | |
13152 | } | |
13153 | ||
13154 | ||
13155 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13156 | PyObject *resultobj; | |
13157 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13158 | bool result; | |
13159 | PyObject * obj0 = 0 ; | |
13160 | char *kwnames[] = { | |
13161 | (char *) "self", NULL | |
13162 | }; | |
13163 | ||
13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
13165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13167 | { | |
13168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13169 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13170 | ||
13171 | wxPyEndAllowThreads(__tstate); | |
13172 | if (PyErr_Occurred()) SWIG_fail; | |
13173 | } | |
13174 | { | |
13175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13176 | } | |
13177 | return resultobj; | |
13178 | fail: | |
13179 | return NULL; | |
13180 | } | |
13181 | ||
13182 | ||
13183 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13184 | PyObject *resultobj; | |
13185 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13186 | wxString *arg2 = 0 ; | |
13187 | bool temp2 = False ; | |
13188 | PyObject * obj0 = 0 ; | |
13189 | PyObject * obj1 = 0 ; | |
13190 | char *kwnames[] = { | |
13191 | (char *) "self",(char *) "label", NULL | |
13192 | }; | |
13193 | ||
13194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13197 | { | |
13198 | arg2 = wxString_in_helper(obj1); | |
13199 | if (arg2 == NULL) SWIG_fail; | |
13200 | temp2 = True; | |
13201 | } | |
13202 | { | |
13203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13204 | (arg1)->SetLabel((wxString const &)*arg2); | |
13205 | ||
13206 | wxPyEndAllowThreads(__tstate); | |
13207 | if (PyErr_Occurred()) SWIG_fail; | |
13208 | } | |
13209 | Py_INCREF(Py_None); resultobj = Py_None; | |
13210 | { | |
13211 | if (temp2) | |
13212 | delete arg2; | |
13213 | } | |
13214 | return resultobj; | |
13215 | fail: | |
13216 | { | |
13217 | if (temp2) | |
13218 | delete arg2; | |
13219 | } | |
13220 | return NULL; | |
13221 | } | |
13222 | ||
13223 | ||
13224 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
13225 | PyObject *obj; | |
13226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13227 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
13228 | Py_INCREF(obj); | |
13229 | return Py_BuildValue((char *)""); | |
13230 | } | |
13231 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { | |
13232 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
13233 | return 1; | |
13234 | } | |
13235 | ||
13236 | ||
13237 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
13238 | PyObject *pyobj; | |
13239 | ||
13240 | { | |
13241 | #if wxUSE_UNICODE | |
13242 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13243 | #else | |
13244 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13245 | #endif | |
13246 | } | |
13247 | return pyobj; | |
13248 | } | |
13249 | ||
13250 | ||
13251 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13252 | PyObject *resultobj; | |
13253 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13254 | size_t result; | |
13255 | PyObject * obj0 = 0 ; | |
13256 | char *kwnames[] = { | |
13257 | (char *) "self", NULL | |
13258 | }; | |
13259 | ||
13260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
13261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13263 | { | |
13264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13265 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13266 | ||
13267 | wxPyEndAllowThreads(__tstate); | |
13268 | if (PyErr_Occurred()) SWIG_fail; | |
13269 | } | |
13270 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
13271 | return resultobj; | |
13272 | fail: | |
13273 | return NULL; | |
13274 | } | |
13275 | ||
13276 | ||
13277 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13278 | PyObject *resultobj; | |
13279 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13280 | size_t arg2 ; | |
13281 | wxWindow *result; | |
13282 | PyObject * obj0 = 0 ; | |
13283 | PyObject * obj1 = 0 ; | |
13284 | char *kwnames[] = { | |
13285 | (char *) "self",(char *) "n", NULL | |
13286 | }; | |
13287 | ||
13288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
13289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13291 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13292 | if (PyErr_Occurred()) SWIG_fail; | |
13293 | { | |
13294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13295 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
13296 | ||
13297 | wxPyEndAllowThreads(__tstate); | |
13298 | if (PyErr_Occurred()) SWIG_fail; | |
13299 | } | |
13300 | { | |
13301 | resultobj = wxPyMake_wxObject(result); | |
13302 | } | |
13303 | return resultobj; | |
13304 | fail: | |
13305 | return NULL; | |
13306 | } | |
13307 | ||
13308 | ||
13309 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13310 | PyObject *resultobj; | |
13311 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13312 | int result; | |
13313 | PyObject * obj0 = 0 ; | |
13314 | char *kwnames[] = { | |
13315 | (char *) "self", NULL | |
13316 | }; | |
13317 | ||
13318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
13319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13321 | { | |
13322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13323 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
13324 | ||
13325 | wxPyEndAllowThreads(__tstate); | |
13326 | if (PyErr_Occurred()) SWIG_fail; | |
13327 | } | |
13328 | resultobj = SWIG_FromInt((int)result); | |
13329 | return resultobj; | |
13330 | fail: | |
13331 | return NULL; | |
13332 | } | |
13333 | ||
13334 | ||
13335 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13336 | PyObject *resultobj; | |
13337 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13338 | size_t arg2 ; | |
13339 | wxString *arg3 = 0 ; | |
13340 | bool result; | |
13341 | bool temp3 = False ; | |
13342 | PyObject * obj0 = 0 ; | |
13343 | PyObject * obj1 = 0 ; | |
13344 | PyObject * obj2 = 0 ; | |
13345 | char *kwnames[] = { | |
13346 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
13347 | }; | |
13348 | ||
13349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13352 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13353 | if (PyErr_Occurred()) SWIG_fail; | |
13354 | { | |
13355 | arg3 = wxString_in_helper(obj2); | |
13356 | if (arg3 == NULL) SWIG_fail; | |
13357 | temp3 = True; | |
13358 | } | |
13359 | { | |
13360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13361 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
13362 | ||
13363 | wxPyEndAllowThreads(__tstate); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | { | |
13367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13368 | } | |
13369 | { | |
13370 | if (temp3) | |
13371 | delete arg3; | |
13372 | } | |
13373 | return resultobj; | |
13374 | fail: | |
13375 | { | |
13376 | if (temp3) | |
13377 | delete arg3; | |
13378 | } | |
13379 | return NULL; | |
13380 | } | |
13381 | ||
13382 | ||
13383 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13384 | PyObject *resultobj; | |
13385 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13386 | size_t arg2 ; | |
13387 | wxString result; | |
13388 | PyObject * obj0 = 0 ; | |
13389 | PyObject * obj1 = 0 ; | |
13390 | char *kwnames[] = { | |
13391 | (char *) "self",(char *) "n", NULL | |
13392 | }; | |
13393 | ||
13394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
13395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13397 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13398 | if (PyErr_Occurred()) SWIG_fail; | |
13399 | { | |
13400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13401 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
13402 | ||
13403 | wxPyEndAllowThreads(__tstate); | |
13404 | if (PyErr_Occurred()) SWIG_fail; | |
13405 | } | |
13406 | { | |
13407 | #if wxUSE_UNICODE | |
13408 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13409 | #else | |
13410 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13411 | #endif | |
13412 | } | |
13413 | return resultobj; | |
13414 | fail: | |
13415 | return NULL; | |
13416 | } | |
13417 | ||
13418 | ||
13419 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13420 | PyObject *resultobj; | |
13421 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13422 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13423 | PyObject * obj0 = 0 ; | |
13424 | PyObject * obj1 = 0 ; | |
13425 | char *kwnames[] = { | |
13426 | (char *) "self",(char *) "imageList", NULL | |
13427 | }; | |
13428 | ||
13429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
13430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
13433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13434 | { | |
13435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13436 | (arg1)->SetImageList(arg2); | |
13437 | ||
13438 | wxPyEndAllowThreads(__tstate); | |
13439 | if (PyErr_Occurred()) SWIG_fail; | |
13440 | } | |
13441 | Py_INCREF(Py_None); resultobj = Py_None; | |
13442 | return resultobj; | |
13443 | fail: | |
13444 | return NULL; | |
13445 | } | |
13446 | ||
13447 | ||
13448 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13449 | PyObject *resultobj; | |
13450 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13451 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13452 | PyObject * obj0 = 0 ; | |
13453 | PyObject * obj1 = 0 ; | |
13454 | char *kwnames[] = { | |
13455 | (char *) "self",(char *) "imageList", NULL | |
13456 | }; | |
13457 | ||
13458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
13459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13461 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
13462 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
13463 | { | |
13464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13465 | (arg1)->AssignImageList(arg2); | |
13466 | ||
13467 | wxPyEndAllowThreads(__tstate); | |
13468 | if (PyErr_Occurred()) SWIG_fail; | |
13469 | } | |
13470 | Py_INCREF(Py_None); resultobj = Py_None; | |
13471 | return resultobj; | |
13472 | fail: | |
13473 | return NULL; | |
13474 | } | |
13475 | ||
13476 | ||
13477 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13478 | PyObject *resultobj; | |
13479 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13480 | wxImageList *result; | |
13481 | PyObject * obj0 = 0 ; | |
13482 | char *kwnames[] = { | |
13483 | (char *) "self", NULL | |
13484 | }; | |
13485 | ||
13486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
13487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13489 | { | |
13490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13491 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13492 | ||
13493 | wxPyEndAllowThreads(__tstate); | |
13494 | if (PyErr_Occurred()) SWIG_fail; | |
13495 | } | |
13496 | { | |
13497 | resultobj = wxPyMake_wxObject(result); | |
13498 | } | |
13499 | return resultobj; | |
13500 | fail: | |
13501 | return NULL; | |
13502 | } | |
13503 | ||
13504 | ||
13505 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13506 | PyObject *resultobj; | |
13507 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13508 | size_t arg2 ; | |
13509 | int result; | |
13510 | PyObject * obj0 = 0 ; | |
13511 | PyObject * obj1 = 0 ; | |
13512 | char *kwnames[] = { | |
13513 | (char *) "self",(char *) "n", NULL | |
13514 | }; | |
13515 | ||
13516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
13517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13519 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13520 | if (PyErr_Occurred()) SWIG_fail; | |
13521 | { | |
13522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13523 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13524 | ||
13525 | wxPyEndAllowThreads(__tstate); | |
13526 | if (PyErr_Occurred()) SWIG_fail; | |
13527 | } | |
13528 | resultobj = SWIG_FromInt((int)result); | |
13529 | return resultobj; | |
13530 | fail: | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
13535 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13536 | PyObject *resultobj; | |
13537 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13538 | size_t arg2 ; | |
13539 | int arg3 ; | |
13540 | bool result; | |
13541 | PyObject * obj0 = 0 ; | |
13542 | PyObject * obj1 = 0 ; | |
13543 | PyObject * obj2 = 0 ; | |
13544 | char *kwnames[] = { | |
13545 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13546 | }; | |
13547 | ||
13548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13551 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13552 | if (PyErr_Occurred()) SWIG_fail; | |
13553 | arg3 = (int) SWIG_AsInt(obj2); | |
13554 | if (PyErr_Occurred()) SWIG_fail; | |
13555 | { | |
13556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13557 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
13558 | ||
13559 | wxPyEndAllowThreads(__tstate); | |
13560 | if (PyErr_Occurred()) SWIG_fail; | |
13561 | } | |
13562 | { | |
13563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13564 | } | |
13565 | return resultobj; | |
13566 | fail: | |
13567 | return NULL; | |
13568 | } | |
13569 | ||
13570 | ||
13571 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13572 | PyObject *resultobj; | |
13573 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13574 | wxSize *arg2 = 0 ; | |
13575 | wxSize temp2 ; | |
13576 | PyObject * obj0 = 0 ; | |
13577 | PyObject * obj1 = 0 ; | |
13578 | char *kwnames[] = { | |
13579 | (char *) "self",(char *) "size", NULL | |
13580 | }; | |
13581 | ||
13582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13585 | { | |
13586 | arg2 = &temp2; | |
13587 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13588 | } | |
13589 | { | |
13590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13591 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13592 | ||
13593 | wxPyEndAllowThreads(__tstate); | |
13594 | if (PyErr_Occurred()) SWIG_fail; | |
13595 | } | |
13596 | Py_INCREF(Py_None); resultobj = Py_None; | |
13597 | return resultobj; | |
13598 | fail: | |
13599 | return NULL; | |
13600 | } | |
13601 | ||
13602 | ||
13603 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13604 | PyObject *resultobj; | |
13605 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13606 | wxSize *arg2 = 0 ; | |
13607 | wxSize result; | |
13608 | wxSize temp2 ; | |
13609 | PyObject * obj0 = 0 ; | |
13610 | PyObject * obj1 = 0 ; | |
13611 | char *kwnames[] = { | |
13612 | (char *) "self",(char *) "sizePage", NULL | |
13613 | }; | |
13614 | ||
13615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13618 | { | |
13619 | arg2 = &temp2; | |
13620 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13621 | } | |
13622 | { | |
13623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13624 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13625 | ||
13626 | wxPyEndAllowThreads(__tstate); | |
13627 | if (PyErr_Occurred()) SWIG_fail; | |
13628 | } | |
13629 | { | |
13630 | wxSize * resultptr; | |
13631 | resultptr = new wxSize((wxSize &) result); | |
13632 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13633 | } | |
13634 | return resultobj; | |
13635 | fail: | |
13636 | return NULL; | |
13637 | } | |
13638 | ||
13639 | ||
13640 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13641 | PyObject *resultobj; | |
13642 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13643 | size_t arg2 ; | |
13644 | bool result; | |
13645 | PyObject * obj0 = 0 ; | |
13646 | PyObject * obj1 = 0 ; | |
13647 | char *kwnames[] = { | |
13648 | (char *) "self",(char *) "n", NULL | |
13649 | }; | |
13650 | ||
13651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
13652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13654 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13655 | if (PyErr_Occurred()) SWIG_fail; | |
13656 | { | |
13657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13658 | result = (bool)(arg1)->DeletePage(arg2); | |
13659 | ||
13660 | wxPyEndAllowThreads(__tstate); | |
13661 | if (PyErr_Occurred()) SWIG_fail; | |
13662 | } | |
13663 | { | |
13664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13665 | } | |
13666 | return resultobj; | |
13667 | fail: | |
13668 | return NULL; | |
13669 | } | |
13670 | ||
13671 | ||
13672 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13673 | PyObject *resultobj; | |
13674 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13675 | size_t arg2 ; | |
13676 | bool result; | |
13677 | PyObject * obj0 = 0 ; | |
13678 | PyObject * obj1 = 0 ; | |
13679 | char *kwnames[] = { | |
13680 | (char *) "self",(char *) "n", NULL | |
13681 | }; | |
13682 | ||
13683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
13684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13686 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13687 | if (PyErr_Occurred()) SWIG_fail; | |
13688 | { | |
13689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13690 | result = (bool)(arg1)->RemovePage(arg2); | |
13691 | ||
13692 | wxPyEndAllowThreads(__tstate); | |
13693 | if (PyErr_Occurred()) SWIG_fail; | |
13694 | } | |
13695 | { | |
13696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13697 | } | |
13698 | return resultobj; | |
13699 | fail: | |
13700 | return NULL; | |
13701 | } | |
13702 | ||
13703 | ||
13704 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13705 | PyObject *resultobj; | |
13706 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13707 | bool result; | |
13708 | PyObject * obj0 = 0 ; | |
13709 | char *kwnames[] = { | |
13710 | (char *) "self", NULL | |
13711 | }; | |
13712 | ||
13713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
13714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13716 | { | |
13717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13718 | result = (bool)(arg1)->DeleteAllPages(); | |
13719 | ||
13720 | wxPyEndAllowThreads(__tstate); | |
13721 | if (PyErr_Occurred()) SWIG_fail; | |
13722 | } | |
13723 | { | |
13724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13725 | } | |
13726 | return resultobj; | |
13727 | fail: | |
13728 | return NULL; | |
13729 | } | |
13730 | ||
13731 | ||
13732 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13733 | PyObject *resultobj; | |
13734 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13735 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13736 | wxString *arg3 = 0 ; | |
13737 | bool arg4 = (bool) False ; | |
13738 | int arg5 = (int) -1 ; | |
13739 | bool result; | |
13740 | bool temp3 = False ; | |
13741 | PyObject * obj0 = 0 ; | |
13742 | PyObject * obj1 = 0 ; | |
13743 | PyObject * obj2 = 0 ; | |
13744 | PyObject * obj3 = 0 ; | |
13745 | PyObject * obj4 = 0 ; | |
13746 | char *kwnames[] = { | |
13747 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13748 | }; | |
13749 | ||
13750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13755 | { | |
13756 | arg3 = wxString_in_helper(obj2); | |
13757 | if (arg3 == NULL) SWIG_fail; | |
13758 | temp3 = True; | |
13759 | } | |
13760 | if (obj3) { | |
13761 | arg4 = (bool) SWIG_AsBool(obj3); | |
13762 | if (PyErr_Occurred()) SWIG_fail; | |
13763 | } | |
13764 | if (obj4) { | |
13765 | arg5 = (int) SWIG_AsInt(obj4); | |
13766 | if (PyErr_Occurred()) SWIG_fail; | |
13767 | } | |
13768 | { | |
13769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13770 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13771 | ||
13772 | wxPyEndAllowThreads(__tstate); | |
13773 | if (PyErr_Occurred()) SWIG_fail; | |
13774 | } | |
13775 | { | |
13776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13777 | } | |
13778 | { | |
13779 | if (temp3) | |
13780 | delete arg3; | |
13781 | } | |
13782 | return resultobj; | |
13783 | fail: | |
13784 | { | |
13785 | if (temp3) | |
13786 | delete arg3; | |
13787 | } | |
13788 | return NULL; | |
13789 | } | |
13790 | ||
13791 | ||
13792 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13793 | PyObject *resultobj; | |
13794 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13795 | size_t arg2 ; | |
13796 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13797 | wxString *arg4 = 0 ; | |
13798 | bool arg5 = (bool) False ; | |
13799 | int arg6 = (int) -1 ; | |
13800 | bool result; | |
13801 | bool temp4 = False ; | |
13802 | PyObject * obj0 = 0 ; | |
13803 | PyObject * obj1 = 0 ; | |
13804 | PyObject * obj2 = 0 ; | |
13805 | PyObject * obj3 = 0 ; | |
13806 | PyObject * obj4 = 0 ; | |
13807 | PyObject * obj5 = 0 ; | |
13808 | char *kwnames[] = { | |
13809 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13810 | }; | |
13811 | ||
13812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13815 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13816 | if (PyErr_Occurred()) SWIG_fail; | |
13817 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
13818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13819 | { | |
13820 | arg4 = wxString_in_helper(obj3); | |
13821 | if (arg4 == NULL) SWIG_fail; | |
13822 | temp4 = True; | |
13823 | } | |
13824 | if (obj4) { | |
13825 | arg5 = (bool) SWIG_AsBool(obj4); | |
13826 | if (PyErr_Occurred()) SWIG_fail; | |
13827 | } | |
13828 | if (obj5) { | |
13829 | arg6 = (int) SWIG_AsInt(obj5); | |
13830 | if (PyErr_Occurred()) SWIG_fail; | |
13831 | } | |
13832 | { | |
13833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13834 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13835 | ||
13836 | wxPyEndAllowThreads(__tstate); | |
13837 | if (PyErr_Occurred()) SWIG_fail; | |
13838 | } | |
13839 | { | |
13840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13841 | } | |
13842 | { | |
13843 | if (temp4) | |
13844 | delete arg4; | |
13845 | } | |
13846 | return resultobj; | |
13847 | fail: | |
13848 | { | |
13849 | if (temp4) | |
13850 | delete arg4; | |
13851 | } | |
13852 | return NULL; | |
13853 | } | |
13854 | ||
13855 | ||
13856 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13857 | PyObject *resultobj; | |
13858 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13859 | size_t arg2 ; | |
13860 | int result; | |
13861 | PyObject * obj0 = 0 ; | |
13862 | PyObject * obj1 = 0 ; | |
13863 | char *kwnames[] = { | |
13864 | (char *) "self",(char *) "n", NULL | |
13865 | }; | |
13866 | ||
13867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13870 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13871 | if (PyErr_Occurred()) SWIG_fail; | |
13872 | { | |
13873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13874 | result = (int)(arg1)->SetSelection(arg2); | |
13875 | ||
13876 | wxPyEndAllowThreads(__tstate); | |
13877 | if (PyErr_Occurred()) SWIG_fail; | |
13878 | } | |
13879 | resultobj = SWIG_FromInt((int)result); | |
13880 | return resultobj; | |
13881 | fail: | |
13882 | return NULL; | |
13883 | } | |
13884 | ||
13885 | ||
13886 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13887 | PyObject *resultobj; | |
13888 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13889 | bool arg2 = (bool) True ; | |
13890 | PyObject * obj0 = 0 ; | |
13891 | PyObject * obj1 = 0 ; | |
13892 | char *kwnames[] = { | |
13893 | (char *) "self",(char *) "forward", NULL | |
13894 | }; | |
13895 | ||
13896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
13897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13899 | if (obj1) { | |
13900 | arg2 = (bool) SWIG_AsBool(obj1); | |
13901 | if (PyErr_Occurred()) SWIG_fail; | |
13902 | } | |
13903 | { | |
13904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13905 | (arg1)->AdvanceSelection(arg2); | |
13906 | ||
13907 | wxPyEndAllowThreads(__tstate); | |
13908 | if (PyErr_Occurred()) SWIG_fail; | |
13909 | } | |
13910 | Py_INCREF(Py_None); resultobj = Py_None; | |
13911 | return resultobj; | |
13912 | fail: | |
13913 | return NULL; | |
13914 | } | |
13915 | ||
13916 | ||
13917 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13918 | PyObject *obj; | |
13919 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13920 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13921 | Py_INCREF(obj); | |
13922 | return Py_BuildValue((char *)""); | |
13923 | } | |
13924 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13925 | PyObject *resultobj; | |
13926 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13927 | int arg2 = (int) 0 ; | |
13928 | int arg3 = (int) -1 ; | |
13929 | int arg4 = (int) -1 ; | |
13930 | wxBookCtrlEvent *result; | |
13931 | PyObject * obj0 = 0 ; | |
13932 | PyObject * obj1 = 0 ; | |
13933 | PyObject * obj2 = 0 ; | |
13934 | PyObject * obj3 = 0 ; | |
13935 | char *kwnames[] = { | |
13936 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13937 | }; | |
13938 | ||
13939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13940 | if (obj0) { | |
13941 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13942 | if (PyErr_Occurred()) SWIG_fail; | |
13943 | } | |
13944 | if (obj1) { | |
13945 | arg2 = (int) SWIG_AsInt(obj1); | |
13946 | if (PyErr_Occurred()) SWIG_fail; | |
13947 | } | |
13948 | if (obj2) { | |
13949 | arg3 = (int) SWIG_AsInt(obj2); | |
13950 | if (PyErr_Occurred()) SWIG_fail; | |
13951 | } | |
13952 | if (obj3) { | |
13953 | arg4 = (int) SWIG_AsInt(obj3); | |
13954 | if (PyErr_Occurred()) SWIG_fail; | |
13955 | } | |
13956 | { | |
13957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13958 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
13959 | ||
13960 | wxPyEndAllowThreads(__tstate); | |
13961 | if (PyErr_Occurred()) SWIG_fail; | |
13962 | } | |
13963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); | |
13964 | return resultobj; | |
13965 | fail: | |
13966 | return NULL; | |
13967 | } | |
13968 | ||
13969 | ||
13970 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13971 | PyObject *resultobj; | |
13972 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13973 | int result; | |
13974 | PyObject * obj0 = 0 ; | |
13975 | char *kwnames[] = { | |
13976 | (char *) "self", NULL | |
13977 | }; | |
13978 | ||
13979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
13981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13982 | { | |
13983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13984 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
13985 | ||
13986 | wxPyEndAllowThreads(__tstate); | |
13987 | if (PyErr_Occurred()) SWIG_fail; | |
13988 | } | |
13989 | resultobj = SWIG_FromInt((int)result); | |
13990 | return resultobj; | |
13991 | fail: | |
13992 | return NULL; | |
13993 | } | |
13994 | ||
13995 | ||
13996 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13997 | PyObject *resultobj; | |
13998 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13999 | int arg2 ; | |
14000 | PyObject * obj0 = 0 ; | |
14001 | PyObject * obj1 = 0 ; | |
14002 | char *kwnames[] = { | |
14003 | (char *) "self",(char *) "nSel", NULL | |
14004 | }; | |
14005 | ||
14006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
14007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14009 | arg2 = (int) SWIG_AsInt(obj1); | |
14010 | if (PyErr_Occurred()) SWIG_fail; | |
14011 | { | |
14012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14013 | (arg1)->SetSelection(arg2); | |
14014 | ||
14015 | wxPyEndAllowThreads(__tstate); | |
14016 | if (PyErr_Occurred()) SWIG_fail; | |
14017 | } | |
14018 | Py_INCREF(Py_None); resultobj = Py_None; | |
14019 | return resultobj; | |
14020 | fail: | |
14021 | return NULL; | |
14022 | } | |
14023 | ||
14024 | ||
14025 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14026 | PyObject *resultobj; | |
14027 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14028 | int result; | |
14029 | PyObject * obj0 = 0 ; | |
14030 | char *kwnames[] = { | |
14031 | (char *) "self", NULL | |
14032 | }; | |
14033 | ||
14034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
14035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14037 | { | |
14038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14039 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14040 | ||
14041 | wxPyEndAllowThreads(__tstate); | |
14042 | if (PyErr_Occurred()) SWIG_fail; | |
14043 | } | |
14044 | resultobj = SWIG_FromInt((int)result); | |
14045 | return resultobj; | |
14046 | fail: | |
14047 | return NULL; | |
14048 | } | |
14049 | ||
14050 | ||
14051 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14052 | PyObject *resultobj; | |
14053 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14054 | int arg2 ; | |
14055 | PyObject * obj0 = 0 ; | |
14056 | PyObject * obj1 = 0 ; | |
14057 | char *kwnames[] = { | |
14058 | (char *) "self",(char *) "nOldSel", NULL | |
14059 | }; | |
14060 | ||
14061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; | |
14062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14064 | arg2 = (int) SWIG_AsInt(obj1); | |
14065 | if (PyErr_Occurred()) SWIG_fail; | |
14066 | { | |
14067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14068 | (arg1)->SetOldSelection(arg2); | |
14069 | ||
14070 | wxPyEndAllowThreads(__tstate); | |
14071 | if (PyErr_Occurred()) SWIG_fail; | |
14072 | } | |
14073 | Py_INCREF(Py_None); resultobj = Py_None; | |
14074 | return resultobj; | |
14075 | fail: | |
14076 | return NULL; | |
14077 | } | |
14078 | ||
14079 | ||
14080 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14081 | PyObject *obj; | |
14082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14083 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14084 | Py_INCREF(obj); | |
14085 | return Py_BuildValue((char *)""); | |
14086 | } | |
14087 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14088 | PyObject *resultobj; | |
14089 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14090 | int arg2 = (int) -1 ; | |
14091 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14092 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14093 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14094 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14095 | long arg5 = (long) 0 ; | |
14096 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14097 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14098 | wxNotebook *result; | |
14099 | wxPoint temp3 ; | |
14100 | wxSize temp4 ; | |
14101 | bool temp6 = False ; | |
14102 | PyObject * obj0 = 0 ; | |
14103 | PyObject * obj1 = 0 ; | |
14104 | PyObject * obj2 = 0 ; | |
14105 | PyObject * obj3 = 0 ; | |
14106 | PyObject * obj4 = 0 ; | |
14107 | PyObject * obj5 = 0 ; | |
14108 | char *kwnames[] = { | |
14109 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14110 | }; | |
14111 | ||
14112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14115 | if (obj1) { | |
14116 | arg2 = (int) SWIG_AsInt(obj1); | |
14117 | if (PyErr_Occurred()) SWIG_fail; | |
14118 | } | |
14119 | if (obj2) { | |
14120 | { | |
14121 | arg3 = &temp3; | |
14122 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14123 | } | |
14124 | } | |
14125 | if (obj3) { | |
14126 | { | |
14127 | arg4 = &temp4; | |
14128 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14129 | } | |
14130 | } | |
14131 | if (obj4) { | |
14132 | arg5 = (long) SWIG_AsLong(obj4); | |
14133 | if (PyErr_Occurred()) SWIG_fail; | |
14134 | } | |
14135 | if (obj5) { | |
14136 | { | |
14137 | arg6 = wxString_in_helper(obj5); | |
14138 | if (arg6 == NULL) SWIG_fail; | |
14139 | temp6 = True; | |
14140 | } | |
14141 | } | |
14142 | { | |
14143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14144 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14145 | ||
14146 | wxPyEndAllowThreads(__tstate); | |
14147 | if (PyErr_Occurred()) SWIG_fail; | |
14148 | } | |
14149 | { | |
14150 | resultobj = wxPyMake_wxObject(result); | |
14151 | } | |
14152 | { | |
14153 | if (temp6) | |
14154 | delete arg6; | |
14155 | } | |
14156 | return resultobj; | |
14157 | fail: | |
14158 | { | |
14159 | if (temp6) | |
14160 | delete arg6; | |
14161 | } | |
14162 | return NULL; | |
14163 | } | |
14164 | ||
14165 | ||
14166 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14167 | PyObject *resultobj; | |
14168 | wxNotebook *result; | |
14169 | char *kwnames[] = { | |
14170 | NULL | |
14171 | }; | |
14172 | ||
14173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
14174 | { | |
14175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14176 | result = (wxNotebook *)new wxNotebook(); | |
14177 | ||
14178 | wxPyEndAllowThreads(__tstate); | |
14179 | if (PyErr_Occurred()) SWIG_fail; | |
14180 | } | |
14181 | { | |
14182 | resultobj = wxPyMake_wxObject(result); | |
14183 | } | |
14184 | return resultobj; | |
14185 | fail: | |
14186 | return NULL; | |
14187 | } | |
14188 | ||
14189 | ||
14190 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14191 | PyObject *resultobj; | |
14192 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14193 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14194 | int arg3 ; | |
14195 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14196 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14197 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14198 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14199 | long arg6 = (long) 0 ; | |
14200 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
14201 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14202 | bool result; | |
14203 | wxPoint temp4 ; | |
14204 | wxSize temp5 ; | |
14205 | bool temp7 = False ; | |
14206 | PyObject * obj0 = 0 ; | |
14207 | PyObject * obj1 = 0 ; | |
14208 | PyObject * obj2 = 0 ; | |
14209 | PyObject * obj3 = 0 ; | |
14210 | PyObject * obj4 = 0 ; | |
14211 | PyObject * obj5 = 0 ; | |
14212 | PyObject * obj6 = 0 ; | |
14213 | char *kwnames[] = { | |
14214 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14215 | }; | |
14216 | ||
14217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14220 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14222 | arg3 = (int) SWIG_AsInt(obj2); | |
14223 | if (PyErr_Occurred()) SWIG_fail; | |
14224 | if (obj3) { | |
14225 | { | |
14226 | arg4 = &temp4; | |
14227 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14228 | } | |
14229 | } | |
14230 | if (obj4) { | |
14231 | { | |
14232 | arg5 = &temp5; | |
14233 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14234 | } | |
14235 | } | |
14236 | if (obj5) { | |
14237 | arg6 = (long) SWIG_AsLong(obj5); | |
14238 | if (PyErr_Occurred()) SWIG_fail; | |
14239 | } | |
14240 | if (obj6) { | |
14241 | { | |
14242 | arg7 = wxString_in_helper(obj6); | |
14243 | if (arg7 == NULL) SWIG_fail; | |
14244 | temp7 = True; | |
14245 | } | |
14246 | } | |
14247 | { | |
14248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14249 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14250 | ||
14251 | wxPyEndAllowThreads(__tstate); | |
14252 | if (PyErr_Occurred()) SWIG_fail; | |
14253 | } | |
14254 | { | |
14255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14256 | } | |
14257 | { | |
14258 | if (temp7) | |
14259 | delete arg7; | |
14260 | } | |
14261 | return resultobj; | |
14262 | fail: | |
14263 | { | |
14264 | if (temp7) | |
14265 | delete arg7; | |
14266 | } | |
14267 | return NULL; | |
14268 | } | |
14269 | ||
14270 | ||
14271 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14272 | PyObject *resultobj; | |
14273 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14274 | int result; | |
14275 | PyObject * obj0 = 0 ; | |
14276 | char *kwnames[] = { | |
14277 | (char *) "self", NULL | |
14278 | }; | |
14279 | ||
14280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
14281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14283 | { | |
14284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14285 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
14286 | ||
14287 | wxPyEndAllowThreads(__tstate); | |
14288 | if (PyErr_Occurred()) SWIG_fail; | |
14289 | } | |
14290 | resultobj = SWIG_FromInt((int)result); | |
14291 | return resultobj; | |
14292 | fail: | |
14293 | return NULL; | |
14294 | } | |
14295 | ||
14296 | ||
14297 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14298 | PyObject *resultobj; | |
14299 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14300 | wxSize *arg2 = 0 ; | |
14301 | wxSize temp2 ; | |
14302 | PyObject * obj0 = 0 ; | |
14303 | PyObject * obj1 = 0 ; | |
14304 | char *kwnames[] = { | |
14305 | (char *) "self",(char *) "padding", NULL | |
14306 | }; | |
14307 | ||
14308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
14309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14311 | { | |
14312 | arg2 = &temp2; | |
14313 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14314 | } | |
14315 | { | |
14316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14317 | (arg1)->SetPadding((wxSize const &)*arg2); | |
14318 | ||
14319 | wxPyEndAllowThreads(__tstate); | |
14320 | if (PyErr_Occurred()) SWIG_fail; | |
14321 | } | |
14322 | Py_INCREF(Py_None); resultobj = Py_None; | |
14323 | return resultobj; | |
14324 | fail: | |
14325 | return NULL; | |
14326 | } | |
14327 | ||
14328 | ||
14329 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14330 | PyObject *resultobj; | |
14331 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14332 | wxSize *arg2 = 0 ; | |
14333 | wxSize temp2 ; | |
14334 | PyObject * obj0 = 0 ; | |
14335 | PyObject * obj1 = 0 ; | |
14336 | char *kwnames[] = { | |
14337 | (char *) "self",(char *) "sz", NULL | |
14338 | }; | |
14339 | ||
14340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
14341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14343 | { | |
14344 | arg2 = &temp2; | |
14345 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14346 | } | |
14347 | { | |
14348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14349 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
14350 | ||
14351 | wxPyEndAllowThreads(__tstate); | |
14352 | if (PyErr_Occurred()) SWIG_fail; | |
14353 | } | |
14354 | Py_INCREF(Py_None); resultobj = Py_None; | |
14355 | return resultobj; | |
14356 | fail: | |
14357 | return NULL; | |
14358 | } | |
14359 | ||
14360 | ||
14361 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14362 | PyObject *resultobj; | |
14363 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14364 | wxPoint *arg2 = 0 ; | |
14365 | long *arg3 = (long *) 0 ; | |
14366 | int result; | |
14367 | wxPoint temp2 ; | |
14368 | long temp3 ; | |
14369 | PyObject * obj0 = 0 ; | |
14370 | PyObject * obj1 = 0 ; | |
14371 | char *kwnames[] = { | |
14372 | (char *) "self",(char *) "pt", NULL | |
14373 | }; | |
14374 | ||
14375 | arg3 = &temp3; | |
14376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
14377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14379 | { | |
14380 | arg2 = &temp2; | |
14381 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14382 | } | |
14383 | { | |
14384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14385 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
14386 | ||
14387 | wxPyEndAllowThreads(__tstate); | |
14388 | if (PyErr_Occurred()) SWIG_fail; | |
14389 | } | |
14390 | resultobj = SWIG_FromInt((int)result); | |
14391 | { | |
14392 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14393 | resultobj = t_output_helper(resultobj,o); | |
14394 | } | |
14395 | return resultobj; | |
14396 | fail: | |
14397 | return NULL; | |
14398 | } | |
14399 | ||
14400 | ||
14401 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14402 | PyObject *resultobj; | |
14403 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14404 | wxSize *arg2 = 0 ; | |
14405 | wxSize result; | |
14406 | wxSize temp2 ; | |
14407 | PyObject * obj0 = 0 ; | |
14408 | PyObject * obj1 = 0 ; | |
14409 | char *kwnames[] = { | |
14410 | (char *) "self",(char *) "sizePage", NULL | |
14411 | }; | |
14412 | ||
14413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
14414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14416 | { | |
14417 | arg2 = &temp2; | |
14418 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14419 | } | |
14420 | { | |
14421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14422 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14423 | ||
14424 | wxPyEndAllowThreads(__tstate); | |
14425 | if (PyErr_Occurred()) SWIG_fail; | |
14426 | } | |
14427 | { | |
14428 | wxSize * resultptr; | |
14429 | resultptr = new wxSize((wxSize &) result); | |
14430 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14431 | } | |
14432 | return resultobj; | |
14433 | fail: | |
14434 | return NULL; | |
14435 | } | |
14436 | ||
14437 | ||
14438 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
14439 | PyObject *obj; | |
14440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14441 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
14442 | Py_INCREF(obj); | |
14443 | return Py_BuildValue((char *)""); | |
14444 | } | |
14445 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14446 | PyObject *resultobj; | |
14447 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14448 | int arg2 = (int) 0 ; | |
14449 | int arg3 = (int) -1 ; | |
14450 | int arg4 = (int) -1 ; | |
14451 | wxNotebookEvent *result; | |
14452 | PyObject * obj0 = 0 ; | |
14453 | PyObject * obj1 = 0 ; | |
14454 | PyObject * obj2 = 0 ; | |
14455 | PyObject * obj3 = 0 ; | |
14456 | char *kwnames[] = { | |
14457 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14458 | }; | |
14459 | ||
14460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14461 | if (obj0) { | |
14462 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
14463 | if (PyErr_Occurred()) SWIG_fail; | |
14464 | } | |
14465 | if (obj1) { | |
14466 | arg2 = (int) SWIG_AsInt(obj1); | |
14467 | if (PyErr_Occurred()) SWIG_fail; | |
14468 | } | |
14469 | if (obj2) { | |
14470 | arg3 = (int) SWIG_AsInt(obj2); | |
14471 | if (PyErr_Occurred()) SWIG_fail; | |
14472 | } | |
14473 | if (obj3) { | |
14474 | arg4 = (int) SWIG_AsInt(obj3); | |
14475 | if (PyErr_Occurred()) SWIG_fail; | |
14476 | } | |
14477 | { | |
14478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14479 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14480 | ||
14481 | wxPyEndAllowThreads(__tstate); | |
14482 | if (PyErr_Occurred()) SWIG_fail; | |
14483 | } | |
14484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); | |
14485 | return resultobj; | |
14486 | fail: | |
14487 | return NULL; | |
14488 | } | |
14489 | ||
14490 | ||
14491 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14492 | PyObject *obj; | |
14493 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14494 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14495 | Py_INCREF(obj); | |
14496 | return Py_BuildValue((char *)""); | |
14497 | } | |
14498 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14499 | PyObject *resultobj; | |
14500 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14501 | int arg2 = (int) -1 ; | |
14502 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14503 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14504 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14505 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14506 | long arg5 = (long) 0 ; | |
14507 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14508 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14509 | wxListbook *result; | |
14510 | wxPoint temp3 ; | |
14511 | wxSize temp4 ; | |
14512 | bool temp6 = False ; | |
14513 | PyObject * obj0 = 0 ; | |
14514 | PyObject * obj1 = 0 ; | |
14515 | PyObject * obj2 = 0 ; | |
14516 | PyObject * obj3 = 0 ; | |
14517 | PyObject * obj4 = 0 ; | |
14518 | PyObject * obj5 = 0 ; | |
14519 | char *kwnames[] = { | |
14520 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14521 | }; | |
14522 | ||
14523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14526 | if (obj1) { | |
14527 | arg2 = (int) SWIG_AsInt(obj1); | |
14528 | if (PyErr_Occurred()) SWIG_fail; | |
14529 | } | |
14530 | if (obj2) { | |
14531 | { | |
14532 | arg3 = &temp3; | |
14533 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14534 | } | |
14535 | } | |
14536 | if (obj3) { | |
14537 | { | |
14538 | arg4 = &temp4; | |
14539 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14540 | } | |
14541 | } | |
14542 | if (obj4) { | |
14543 | arg5 = (long) SWIG_AsLong(obj4); | |
14544 | if (PyErr_Occurred()) SWIG_fail; | |
14545 | } | |
14546 | if (obj5) { | |
14547 | { | |
14548 | arg6 = wxString_in_helper(obj5); | |
14549 | if (arg6 == NULL) SWIG_fail; | |
14550 | temp6 = True; | |
14551 | } | |
14552 | } | |
14553 | { | |
14554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14555 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14556 | ||
14557 | wxPyEndAllowThreads(__tstate); | |
14558 | if (PyErr_Occurred()) SWIG_fail; | |
14559 | } | |
14560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
14561 | { | |
14562 | if (temp6) | |
14563 | delete arg6; | |
14564 | } | |
14565 | return resultobj; | |
14566 | fail: | |
14567 | { | |
14568 | if (temp6) | |
14569 | delete arg6; | |
14570 | } | |
14571 | return NULL; | |
14572 | } | |
14573 | ||
14574 | ||
14575 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14576 | PyObject *resultobj; | |
14577 | wxListbook *result; | |
14578 | char *kwnames[] = { | |
14579 | NULL | |
14580 | }; | |
14581 | ||
14582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14583 | { | |
14584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14585 | result = (wxListbook *)new wxListbook(); | |
14586 | ||
14587 | wxPyEndAllowThreads(__tstate); | |
14588 | if (PyErr_Occurred()) SWIG_fail; | |
14589 | } | |
14590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
14591 | return resultobj; | |
14592 | fail: | |
14593 | return NULL; | |
14594 | } | |
14595 | ||
14596 | ||
14597 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14598 | PyObject *resultobj; | |
14599 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14600 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14601 | int arg3 ; | |
14602 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14603 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14604 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14605 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14606 | long arg6 = (long) 0 ; | |
14607 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14608 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14609 | bool result; | |
14610 | wxPoint temp4 ; | |
14611 | wxSize temp5 ; | |
14612 | bool temp7 = False ; | |
14613 | PyObject * obj0 = 0 ; | |
14614 | PyObject * obj1 = 0 ; | |
14615 | PyObject * obj2 = 0 ; | |
14616 | PyObject * obj3 = 0 ; | |
14617 | PyObject * obj4 = 0 ; | |
14618 | PyObject * obj5 = 0 ; | |
14619 | PyObject * obj6 = 0 ; | |
14620 | char *kwnames[] = { | |
14621 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14622 | }; | |
14623 | ||
14624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
14626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14627 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14629 | arg3 = (int) SWIG_AsInt(obj2); | |
14630 | if (PyErr_Occurred()) SWIG_fail; | |
14631 | if (obj3) { | |
14632 | { | |
14633 | arg4 = &temp4; | |
14634 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14635 | } | |
14636 | } | |
14637 | if (obj4) { | |
14638 | { | |
14639 | arg5 = &temp5; | |
14640 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14641 | } | |
14642 | } | |
14643 | if (obj5) { | |
14644 | arg6 = (long) SWIG_AsLong(obj5); | |
14645 | if (PyErr_Occurred()) SWIG_fail; | |
14646 | } | |
14647 | if (obj6) { | |
14648 | { | |
14649 | arg7 = wxString_in_helper(obj6); | |
14650 | if (arg7 == NULL) SWIG_fail; | |
14651 | temp7 = True; | |
14652 | } | |
14653 | } | |
14654 | { | |
14655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14656 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14657 | ||
14658 | wxPyEndAllowThreads(__tstate); | |
14659 | if (PyErr_Occurred()) SWIG_fail; | |
14660 | } | |
14661 | { | |
14662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14663 | } | |
14664 | { | |
14665 | if (temp7) | |
14666 | delete arg7; | |
14667 | } | |
14668 | return resultobj; | |
14669 | fail: | |
14670 | { | |
14671 | if (temp7) | |
14672 | delete arg7; | |
14673 | } | |
14674 | return NULL; | |
14675 | } | |
14676 | ||
14677 | ||
14678 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14679 | PyObject *resultobj; | |
14680 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14681 | bool result; | |
14682 | PyObject * obj0 = 0 ; | |
14683 | char *kwnames[] = { | |
14684 | (char *) "self", NULL | |
14685 | }; | |
14686 | ||
14687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
14688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
14689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14690 | { | |
14691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14692 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14693 | ||
14694 | wxPyEndAllowThreads(__tstate); | |
14695 | if (PyErr_Occurred()) SWIG_fail; | |
14696 | } | |
14697 | { | |
14698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14699 | } | |
14700 | return resultobj; | |
14701 | fail: | |
14702 | return NULL; | |
14703 | } | |
14704 | ||
14705 | ||
14706 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14707 | PyObject *obj; | |
14708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14709 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14710 | Py_INCREF(obj); | |
14711 | return Py_BuildValue((char *)""); | |
14712 | } | |
14713 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14714 | PyObject *resultobj; | |
14715 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14716 | int arg2 = (int) 0 ; | |
14717 | int arg3 = (int) -1 ; | |
14718 | int arg4 = (int) -1 ; | |
14719 | wxListbookEvent *result; | |
14720 | PyObject * obj0 = 0 ; | |
14721 | PyObject * obj1 = 0 ; | |
14722 | PyObject * obj2 = 0 ; | |
14723 | PyObject * obj3 = 0 ; | |
14724 | char *kwnames[] = { | |
14725 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14726 | }; | |
14727 | ||
14728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14729 | if (obj0) { | |
14730 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
14731 | if (PyErr_Occurred()) SWIG_fail; | |
14732 | } | |
14733 | if (obj1) { | |
14734 | arg2 = (int) SWIG_AsInt(obj1); | |
14735 | if (PyErr_Occurred()) SWIG_fail; | |
14736 | } | |
14737 | if (obj2) { | |
14738 | arg3 = (int) SWIG_AsInt(obj2); | |
14739 | if (PyErr_Occurred()) SWIG_fail; | |
14740 | } | |
14741 | if (obj3) { | |
14742 | arg4 = (int) SWIG_AsInt(obj3); | |
14743 | if (PyErr_Occurred()) SWIG_fail; | |
14744 | } | |
14745 | { | |
14746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14747 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14748 | ||
14749 | wxPyEndAllowThreads(__tstate); | |
14750 | if (PyErr_Occurred()) SWIG_fail; | |
14751 | } | |
14752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
14753 | return resultobj; | |
14754 | fail: | |
14755 | return NULL; | |
14756 | } | |
14757 | ||
14758 | ||
14759 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14760 | PyObject *obj; | |
14761 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14762 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14763 | Py_INCREF(obj); | |
14764 | return Py_BuildValue((char *)""); | |
14765 | } | |
14766 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14767 | PyObject *resultobj; | |
14768 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14769 | wxBookCtrlSizer *result; | |
14770 | PyObject * obj0 = 0 ; | |
14771 | char *kwnames[] = { | |
14772 | (char *) "nb", NULL | |
14773 | }; | |
14774 | ||
14775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
14776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14778 | { | |
14779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14780 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14781 | ||
14782 | wxPyEndAllowThreads(__tstate); | |
14783 | if (PyErr_Occurred()) SWIG_fail; | |
14784 | } | |
14785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); | |
14786 | return resultobj; | |
14787 | fail: | |
14788 | return NULL; | |
14789 | } | |
14790 | ||
14791 | ||
14792 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14793 | PyObject *resultobj; | |
14794 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14795 | PyObject * obj0 = 0 ; | |
14796 | char *kwnames[] = { | |
14797 | (char *) "self", NULL | |
14798 | }; | |
14799 | ||
14800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
14802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14803 | { | |
14804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14805 | (arg1)->RecalcSizes(); | |
14806 | ||
14807 | wxPyEndAllowThreads(__tstate); | |
14808 | if (PyErr_Occurred()) SWIG_fail; | |
14809 | } | |
14810 | Py_INCREF(Py_None); resultobj = Py_None; | |
14811 | return resultobj; | |
14812 | fail: | |
14813 | return NULL; | |
14814 | } | |
14815 | ||
14816 | ||
14817 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14818 | PyObject *resultobj; | |
14819 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14820 | wxSize result; | |
14821 | PyObject * obj0 = 0 ; | |
14822 | char *kwnames[] = { | |
14823 | (char *) "self", NULL | |
14824 | }; | |
14825 | ||
14826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
14828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14829 | { | |
14830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14831 | result = (arg1)->CalcMin(); | |
14832 | ||
14833 | wxPyEndAllowThreads(__tstate); | |
14834 | if (PyErr_Occurred()) SWIG_fail; | |
14835 | } | |
14836 | { | |
14837 | wxSize * resultptr; | |
14838 | resultptr = new wxSize((wxSize &) result); | |
14839 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14840 | } | |
14841 | return resultobj; | |
14842 | fail: | |
14843 | return NULL; | |
14844 | } | |
14845 | ||
14846 | ||
14847 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14848 | PyObject *resultobj; | |
14849 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14850 | wxBookCtrl *result; | |
14851 | PyObject * obj0 = 0 ; | |
14852 | char *kwnames[] = { | |
14853 | (char *) "self", NULL | |
14854 | }; | |
14855 | ||
14856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
14857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
14858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14859 | { | |
14860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14861 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14862 | ||
14863 | wxPyEndAllowThreads(__tstate); | |
14864 | if (PyErr_Occurred()) SWIG_fail; | |
14865 | } | |
14866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); | |
14867 | return resultobj; | |
14868 | fail: | |
14869 | return NULL; | |
14870 | } | |
14871 | ||
14872 | ||
14873 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14874 | PyObject *obj; | |
14875 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14876 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14877 | Py_INCREF(obj); | |
14878 | return Py_BuildValue((char *)""); | |
14879 | } | |
14880 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14881 | PyObject *resultobj; | |
14882 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14883 | wxNotebookSizer *result; | |
14884 | PyObject * obj0 = 0 ; | |
14885 | char *kwnames[] = { | |
14886 | (char *) "nb", NULL | |
14887 | }; | |
14888 | ||
14889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
14890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14892 | { | |
14893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14894 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14895 | ||
14896 | wxPyEndAllowThreads(__tstate); | |
14897 | if (PyErr_Occurred()) SWIG_fail; | |
14898 | } | |
14899 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); | |
14900 | return resultobj; | |
14901 | fail: | |
14902 | return NULL; | |
14903 | } | |
14904 | ||
14905 | ||
14906 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14907 | PyObject *resultobj; | |
14908 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14909 | PyObject * obj0 = 0 ; | |
14910 | char *kwnames[] = { | |
14911 | (char *) "self", NULL | |
14912 | }; | |
14913 | ||
14914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
14916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14917 | { | |
14918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14919 | (arg1)->RecalcSizes(); | |
14920 | ||
14921 | wxPyEndAllowThreads(__tstate); | |
14922 | if (PyErr_Occurred()) SWIG_fail; | |
14923 | } | |
14924 | Py_INCREF(Py_None); resultobj = Py_None; | |
14925 | return resultobj; | |
14926 | fail: | |
14927 | return NULL; | |
14928 | } | |
14929 | ||
14930 | ||
14931 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14932 | PyObject *resultobj; | |
14933 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14934 | wxSize result; | |
14935 | PyObject * obj0 = 0 ; | |
14936 | char *kwnames[] = { | |
14937 | (char *) "self", NULL | |
14938 | }; | |
14939 | ||
14940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
14942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14943 | { | |
14944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14945 | result = (arg1)->CalcMin(); | |
14946 | ||
14947 | wxPyEndAllowThreads(__tstate); | |
14948 | if (PyErr_Occurred()) SWIG_fail; | |
14949 | } | |
14950 | { | |
14951 | wxSize * resultptr; | |
14952 | resultptr = new wxSize((wxSize &) result); | |
14953 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14954 | } | |
14955 | return resultobj; | |
14956 | fail: | |
14957 | return NULL; | |
14958 | } | |
14959 | ||
14960 | ||
14961 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14962 | PyObject *resultobj; | |
14963 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14964 | wxNotebook *result; | |
14965 | PyObject * obj0 = 0 ; | |
14966 | char *kwnames[] = { | |
14967 | (char *) "self", NULL | |
14968 | }; | |
14969 | ||
14970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
14971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
14972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14973 | { | |
14974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14975 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
14976 | ||
14977 | wxPyEndAllowThreads(__tstate); | |
14978 | if (PyErr_Occurred()) SWIG_fail; | |
14979 | } | |
14980 | { | |
14981 | resultobj = wxPyMake_wxObject(result); | |
14982 | } | |
14983 | return resultobj; | |
14984 | fail: | |
14985 | return NULL; | |
14986 | } | |
14987 | ||
14988 | ||
14989 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
14990 | PyObject *obj; | |
14991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14992 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
14993 | Py_INCREF(obj); | |
14994 | return Py_BuildValue((char *)""); | |
14995 | } | |
14996 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14997 | PyObject *resultobj; | |
14998 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14999 | int result; | |
15000 | PyObject * obj0 = 0 ; | |
15001 | char *kwnames[] = { | |
15002 | (char *) "self", NULL | |
15003 | }; | |
15004 | ||
15005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15008 | { | |
15009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15010 | result = (int)(arg1)->GetId(); | |
15011 | ||
15012 | wxPyEndAllowThreads(__tstate); | |
15013 | if (PyErr_Occurred()) SWIG_fail; | |
15014 | } | |
15015 | resultobj = SWIG_FromInt((int)result); | |
15016 | return resultobj; | |
15017 | fail: | |
15018 | return NULL; | |
15019 | } | |
15020 | ||
15021 | ||
15022 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15023 | PyObject *resultobj; | |
15024 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15025 | wxControl *result; | |
15026 | PyObject * obj0 = 0 ; | |
15027 | char *kwnames[] = { | |
15028 | (char *) "self", NULL | |
15029 | }; | |
15030 | ||
15031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
15032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15034 | { | |
15035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15036 | result = (wxControl *)(arg1)->GetControl(); | |
15037 | ||
15038 | wxPyEndAllowThreads(__tstate); | |
15039 | if (PyErr_Occurred()) SWIG_fail; | |
15040 | } | |
15041 | { | |
15042 | resultobj = wxPyMake_wxObject(result); | |
15043 | } | |
15044 | return resultobj; | |
15045 | fail: | |
15046 | return NULL; | |
15047 | } | |
15048 | ||
15049 | ||
15050 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15051 | PyObject *resultobj; | |
15052 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15053 | wxToolBarBase *result; | |
15054 | PyObject * obj0 = 0 ; | |
15055 | char *kwnames[] = { | |
15056 | (char *) "self", NULL | |
15057 | }; | |
15058 | ||
15059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15062 | { | |
15063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15064 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
15065 | ||
15066 | wxPyEndAllowThreads(__tstate); | |
15067 | if (PyErr_Occurred()) SWIG_fail; | |
15068 | } | |
15069 | { | |
15070 | resultobj = wxPyMake_wxObject(result); | |
15071 | } | |
15072 | return resultobj; | |
15073 | fail: | |
15074 | return NULL; | |
15075 | } | |
15076 | ||
15077 | ||
15078 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15079 | PyObject *resultobj; | |
15080 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15081 | int result; | |
15082 | PyObject * obj0 = 0 ; | |
15083 | char *kwnames[] = { | |
15084 | (char *) "self", NULL | |
15085 | }; | |
15086 | ||
15087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15090 | { | |
15091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15092 | result = (int)(arg1)->IsButton(); | |
15093 | ||
15094 | wxPyEndAllowThreads(__tstate); | |
15095 | if (PyErr_Occurred()) SWIG_fail; | |
15096 | } | |
15097 | resultobj = SWIG_FromInt((int)result); | |
15098 | return resultobj; | |
15099 | fail: | |
15100 | return NULL; | |
15101 | } | |
15102 | ||
15103 | ||
15104 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15105 | PyObject *resultobj; | |
15106 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15107 | int result; | |
15108 | PyObject * obj0 = 0 ; | |
15109 | char *kwnames[] = { | |
15110 | (char *) "self", NULL | |
15111 | }; | |
15112 | ||
15113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15116 | { | |
15117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15118 | result = (int)(arg1)->IsControl(); | |
15119 | ||
15120 | wxPyEndAllowThreads(__tstate); | |
15121 | if (PyErr_Occurred()) SWIG_fail; | |
15122 | } | |
15123 | resultobj = SWIG_FromInt((int)result); | |
15124 | return resultobj; | |
15125 | fail: | |
15126 | return NULL; | |
15127 | } | |
15128 | ||
15129 | ||
15130 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15131 | PyObject *resultobj; | |
15132 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15133 | int result; | |
15134 | PyObject * obj0 = 0 ; | |
15135 | char *kwnames[] = { | |
15136 | (char *) "self", NULL | |
15137 | }; | |
15138 | ||
15139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15142 | { | |
15143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15144 | result = (int)(arg1)->IsSeparator(); | |
15145 | ||
15146 | wxPyEndAllowThreads(__tstate); | |
15147 | if (PyErr_Occurred()) SWIG_fail; | |
15148 | } | |
15149 | resultobj = SWIG_FromInt((int)result); | |
15150 | return resultobj; | |
15151 | fail: | |
15152 | return NULL; | |
15153 | } | |
15154 | ||
15155 | ||
15156 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15157 | PyObject *resultobj; | |
15158 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15159 | int result; | |
15160 | PyObject * obj0 = 0 ; | |
15161 | char *kwnames[] = { | |
15162 | (char *) "self", NULL | |
15163 | }; | |
15164 | ||
15165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15168 | { | |
15169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15170 | result = (int)(arg1)->GetStyle(); | |
15171 | ||
15172 | wxPyEndAllowThreads(__tstate); | |
15173 | if (PyErr_Occurred()) SWIG_fail; | |
15174 | } | |
15175 | resultobj = SWIG_FromInt((int)result); | |
15176 | return resultobj; | |
15177 | fail: | |
15178 | return NULL; | |
15179 | } | |
15180 | ||
15181 | ||
15182 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15183 | PyObject *resultobj; | |
15184 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15185 | int result; | |
15186 | PyObject * obj0 = 0 ; | |
15187 | char *kwnames[] = { | |
15188 | (char *) "self", NULL | |
15189 | }; | |
15190 | ||
15191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15194 | { | |
15195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15196 | result = (int)(arg1)->GetKind(); | |
15197 | ||
15198 | wxPyEndAllowThreads(__tstate); | |
15199 | if (PyErr_Occurred()) SWIG_fail; | |
15200 | } | |
15201 | resultobj = SWIG_FromInt((int)result); | |
15202 | return resultobj; | |
15203 | fail: | |
15204 | return NULL; | |
15205 | } | |
15206 | ||
15207 | ||
15208 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15209 | PyObject *resultobj; | |
15210 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15211 | bool result; | |
15212 | PyObject * obj0 = 0 ; | |
15213 | char *kwnames[] = { | |
15214 | (char *) "self", NULL | |
15215 | }; | |
15216 | ||
15217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15220 | { | |
15221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15222 | result = (bool)(arg1)->IsEnabled(); | |
15223 | ||
15224 | wxPyEndAllowThreads(__tstate); | |
15225 | if (PyErr_Occurred()) SWIG_fail; | |
15226 | } | |
15227 | { | |
15228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15229 | } | |
15230 | return resultobj; | |
15231 | fail: | |
15232 | return NULL; | |
15233 | } | |
15234 | ||
15235 | ||
15236 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15237 | PyObject *resultobj; | |
15238 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15239 | bool result; | |
15240 | PyObject * obj0 = 0 ; | |
15241 | char *kwnames[] = { | |
15242 | (char *) "self", NULL | |
15243 | }; | |
15244 | ||
15245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15248 | { | |
15249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15250 | result = (bool)(arg1)->IsToggled(); | |
15251 | ||
15252 | wxPyEndAllowThreads(__tstate); | |
15253 | if (PyErr_Occurred()) SWIG_fail; | |
15254 | } | |
15255 | { | |
15256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15257 | } | |
15258 | return resultobj; | |
15259 | fail: | |
15260 | return NULL; | |
15261 | } | |
15262 | ||
15263 | ||
15264 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15265 | PyObject *resultobj; | |
15266 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15267 | bool result; | |
15268 | PyObject * obj0 = 0 ; | |
15269 | char *kwnames[] = { | |
15270 | (char *) "self", NULL | |
15271 | }; | |
15272 | ||
15273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15276 | { | |
15277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15278 | result = (bool)(arg1)->CanBeToggled(); | |
15279 | ||
15280 | wxPyEndAllowThreads(__tstate); | |
15281 | if (PyErr_Occurred()) SWIG_fail; | |
15282 | } | |
15283 | { | |
15284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15285 | } | |
15286 | return resultobj; | |
15287 | fail: | |
15288 | return NULL; | |
15289 | } | |
15290 | ||
15291 | ||
15292 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15293 | PyObject *resultobj; | |
15294 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15295 | wxBitmap *result; | |
15296 | PyObject * obj0 = 0 ; | |
15297 | char *kwnames[] = { | |
15298 | (char *) "self", NULL | |
15299 | }; | |
15300 | ||
15301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15304 | { | |
15305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15306 | { | |
15307 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
15308 | result = (wxBitmap *) &_result_ref; | |
15309 | } | |
15310 | ||
15311 | wxPyEndAllowThreads(__tstate); | |
15312 | if (PyErr_Occurred()) SWIG_fail; | |
15313 | } | |
15314 | { | |
15315 | wxBitmap* resultptr = new wxBitmap(*result); | |
15316 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15317 | } | |
15318 | return resultobj; | |
15319 | fail: | |
15320 | return NULL; | |
15321 | } | |
15322 | ||
15323 | ||
15324 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15325 | PyObject *resultobj; | |
15326 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15327 | wxBitmap *result; | |
15328 | PyObject * obj0 = 0 ; | |
15329 | char *kwnames[] = { | |
15330 | (char *) "self", NULL | |
15331 | }; | |
15332 | ||
15333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15336 | { | |
15337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15338 | { | |
15339 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
15340 | result = (wxBitmap *) &_result_ref; | |
15341 | } | |
15342 | ||
15343 | wxPyEndAllowThreads(__tstate); | |
15344 | if (PyErr_Occurred()) SWIG_fail; | |
15345 | } | |
15346 | { | |
15347 | wxBitmap* resultptr = new wxBitmap(*result); | |
15348 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15349 | } | |
15350 | return resultobj; | |
15351 | fail: | |
15352 | return NULL; | |
15353 | } | |
15354 | ||
15355 | ||
15356 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15357 | PyObject *resultobj; | |
15358 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15359 | wxBitmap result; | |
15360 | PyObject * obj0 = 0 ; | |
15361 | char *kwnames[] = { | |
15362 | (char *) "self", NULL | |
15363 | }; | |
15364 | ||
15365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15368 | { | |
15369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15370 | result = (arg1)->GetBitmap(); | |
15371 | ||
15372 | wxPyEndAllowThreads(__tstate); | |
15373 | if (PyErr_Occurred()) SWIG_fail; | |
15374 | } | |
15375 | { | |
15376 | wxBitmap * resultptr; | |
15377 | resultptr = new wxBitmap((wxBitmap &) result); | |
15378 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15379 | } | |
15380 | return resultobj; | |
15381 | fail: | |
15382 | return NULL; | |
15383 | } | |
15384 | ||
15385 | ||
15386 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15387 | PyObject *resultobj; | |
15388 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15389 | wxString result; | |
15390 | PyObject * obj0 = 0 ; | |
15391 | char *kwnames[] = { | |
15392 | (char *) "self", NULL | |
15393 | }; | |
15394 | ||
15395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15398 | { | |
15399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15400 | result = (arg1)->GetLabel(); | |
15401 | ||
15402 | wxPyEndAllowThreads(__tstate); | |
15403 | if (PyErr_Occurred()) SWIG_fail; | |
15404 | } | |
15405 | { | |
15406 | #if wxUSE_UNICODE | |
15407 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15408 | #else | |
15409 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15410 | #endif | |
15411 | } | |
15412 | return resultobj; | |
15413 | fail: | |
15414 | return NULL; | |
15415 | } | |
15416 | ||
15417 | ||
15418 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15419 | PyObject *resultobj; | |
15420 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15421 | wxString result; | |
15422 | PyObject * obj0 = 0 ; | |
15423 | char *kwnames[] = { | |
15424 | (char *) "self", NULL | |
15425 | }; | |
15426 | ||
15427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15430 | { | |
15431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15432 | result = (arg1)->GetShortHelp(); | |
15433 | ||
15434 | wxPyEndAllowThreads(__tstate); | |
15435 | if (PyErr_Occurred()) SWIG_fail; | |
15436 | } | |
15437 | { | |
15438 | #if wxUSE_UNICODE | |
15439 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15440 | #else | |
15441 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15442 | #endif | |
15443 | } | |
15444 | return resultobj; | |
15445 | fail: | |
15446 | return NULL; | |
15447 | } | |
15448 | ||
15449 | ||
15450 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15451 | PyObject *resultobj; | |
15452 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15453 | wxString result; | |
15454 | PyObject * obj0 = 0 ; | |
15455 | char *kwnames[] = { | |
15456 | (char *) "self", NULL | |
15457 | }; | |
15458 | ||
15459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15462 | { | |
15463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15464 | result = (arg1)->GetLongHelp(); | |
15465 | ||
15466 | wxPyEndAllowThreads(__tstate); | |
15467 | if (PyErr_Occurred()) SWIG_fail; | |
15468 | } | |
15469 | { | |
15470 | #if wxUSE_UNICODE | |
15471 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15472 | #else | |
15473 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15474 | #endif | |
15475 | } | |
15476 | return resultobj; | |
15477 | fail: | |
15478 | return NULL; | |
15479 | } | |
15480 | ||
15481 | ||
15482 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15483 | PyObject *resultobj; | |
15484 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15485 | bool arg2 ; | |
15486 | bool result; | |
15487 | PyObject * obj0 = 0 ; | |
15488 | PyObject * obj1 = 0 ; | |
15489 | char *kwnames[] = { | |
15490 | (char *) "self",(char *) "enable", NULL | |
15491 | }; | |
15492 | ||
15493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15496 | arg2 = (bool) SWIG_AsBool(obj1); | |
15497 | if (PyErr_Occurred()) SWIG_fail; | |
15498 | { | |
15499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15500 | result = (bool)(arg1)->Enable(arg2); | |
15501 | ||
15502 | wxPyEndAllowThreads(__tstate); | |
15503 | if (PyErr_Occurred()) SWIG_fail; | |
15504 | } | |
15505 | { | |
15506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15507 | } | |
15508 | return resultobj; | |
15509 | fail: | |
15510 | return NULL; | |
15511 | } | |
15512 | ||
15513 | ||
15514 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15515 | PyObject *resultobj; | |
15516 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15517 | PyObject * obj0 = 0 ; | |
15518 | char *kwnames[] = { | |
15519 | (char *) "self", NULL | |
15520 | }; | |
15521 | ||
15522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15525 | { | |
15526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15527 | (arg1)->Toggle(); | |
15528 | ||
15529 | wxPyEndAllowThreads(__tstate); | |
15530 | if (PyErr_Occurred()) SWIG_fail; | |
15531 | } | |
15532 | Py_INCREF(Py_None); resultobj = Py_None; | |
15533 | return resultobj; | |
15534 | fail: | |
15535 | return NULL; | |
15536 | } | |
15537 | ||
15538 | ||
15539 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15540 | PyObject *resultobj; | |
15541 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15542 | bool arg2 ; | |
15543 | bool result; | |
15544 | PyObject * obj0 = 0 ; | |
15545 | PyObject * obj1 = 0 ; | |
15546 | char *kwnames[] = { | |
15547 | (char *) "self",(char *) "toggle", NULL | |
15548 | }; | |
15549 | ||
15550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15553 | arg2 = (bool) SWIG_AsBool(obj1); | |
15554 | if (PyErr_Occurred()) SWIG_fail; | |
15555 | { | |
15556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15557 | result = (bool)(arg1)->SetToggle(arg2); | |
15558 | ||
15559 | wxPyEndAllowThreads(__tstate); | |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
15561 | } | |
15562 | { | |
15563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15564 | } | |
15565 | return resultobj; | |
15566 | fail: | |
15567 | return NULL; | |
15568 | } | |
15569 | ||
15570 | ||
15571 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15572 | PyObject *resultobj; | |
15573 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15574 | wxString *arg2 = 0 ; | |
15575 | bool result; | |
15576 | bool temp2 = False ; | |
15577 | PyObject * obj0 = 0 ; | |
15578 | PyObject * obj1 = 0 ; | |
15579 | char *kwnames[] = { | |
15580 | (char *) "self",(char *) "help", NULL | |
15581 | }; | |
15582 | ||
15583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15586 | { | |
15587 | arg2 = wxString_in_helper(obj1); | |
15588 | if (arg2 == NULL) SWIG_fail; | |
15589 | temp2 = True; | |
15590 | } | |
15591 | { | |
15592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15593 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15594 | ||
15595 | wxPyEndAllowThreads(__tstate); | |
15596 | if (PyErr_Occurred()) SWIG_fail; | |
15597 | } | |
15598 | { | |
15599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15600 | } | |
15601 | { | |
15602 | if (temp2) | |
15603 | delete arg2; | |
15604 | } | |
15605 | return resultobj; | |
15606 | fail: | |
15607 | { | |
15608 | if (temp2) | |
15609 | delete arg2; | |
15610 | } | |
15611 | return NULL; | |
15612 | } | |
15613 | ||
15614 | ||
15615 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15616 | PyObject *resultobj; | |
15617 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15618 | wxString *arg2 = 0 ; | |
15619 | bool result; | |
15620 | bool temp2 = False ; | |
15621 | PyObject * obj0 = 0 ; | |
15622 | PyObject * obj1 = 0 ; | |
15623 | char *kwnames[] = { | |
15624 | (char *) "self",(char *) "help", NULL | |
15625 | }; | |
15626 | ||
15627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15630 | { | |
15631 | arg2 = wxString_in_helper(obj1); | |
15632 | if (arg2 == NULL) SWIG_fail; | |
15633 | temp2 = True; | |
15634 | } | |
15635 | { | |
15636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15637 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15638 | ||
15639 | wxPyEndAllowThreads(__tstate); | |
15640 | if (PyErr_Occurred()) SWIG_fail; | |
15641 | } | |
15642 | { | |
15643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15644 | } | |
15645 | { | |
15646 | if (temp2) | |
15647 | delete arg2; | |
15648 | } | |
15649 | return resultobj; | |
15650 | fail: | |
15651 | { | |
15652 | if (temp2) | |
15653 | delete arg2; | |
15654 | } | |
15655 | return NULL; | |
15656 | } | |
15657 | ||
15658 | ||
15659 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15660 | PyObject *resultobj; | |
15661 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15662 | wxBitmap *arg2 = 0 ; | |
15663 | PyObject * obj0 = 0 ; | |
15664 | PyObject * obj1 = 0 ; | |
15665 | char *kwnames[] = { | |
15666 | (char *) "self",(char *) "bmp", NULL | |
15667 | }; | |
15668 | ||
15669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15672 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15673 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15674 | SWIG_fail; | |
15675 | if (arg2 == NULL) { | |
15676 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15677 | SWIG_fail; | |
15678 | } | |
15679 | { | |
15680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15681 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15682 | ||
15683 | wxPyEndAllowThreads(__tstate); | |
15684 | if (PyErr_Occurred()) SWIG_fail; | |
15685 | } | |
15686 | Py_INCREF(Py_None); resultobj = Py_None; | |
15687 | return resultobj; | |
15688 | fail: | |
15689 | return NULL; | |
15690 | } | |
15691 | ||
15692 | ||
15693 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15694 | PyObject *resultobj; | |
15695 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15696 | wxBitmap *arg2 = 0 ; | |
15697 | PyObject * obj0 = 0 ; | |
15698 | PyObject * obj1 = 0 ; | |
15699 | char *kwnames[] = { | |
15700 | (char *) "self",(char *) "bmp", NULL | |
15701 | }; | |
15702 | ||
15703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15707 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15708 | SWIG_fail; | |
15709 | if (arg2 == NULL) { | |
15710 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15711 | SWIG_fail; | |
15712 | } | |
15713 | { | |
15714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15715 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15716 | ||
15717 | wxPyEndAllowThreads(__tstate); | |
15718 | if (PyErr_Occurred()) SWIG_fail; | |
15719 | } | |
15720 | Py_INCREF(Py_None); resultobj = Py_None; | |
15721 | return resultobj; | |
15722 | fail: | |
15723 | return NULL; | |
15724 | } | |
15725 | ||
15726 | ||
15727 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15728 | PyObject *resultobj; | |
15729 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15730 | wxString *arg2 = 0 ; | |
15731 | bool temp2 = False ; | |
15732 | PyObject * obj0 = 0 ; | |
15733 | PyObject * obj1 = 0 ; | |
15734 | char *kwnames[] = { | |
15735 | (char *) "self",(char *) "label", NULL | |
15736 | }; | |
15737 | ||
15738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15741 | { | |
15742 | arg2 = wxString_in_helper(obj1); | |
15743 | if (arg2 == NULL) SWIG_fail; | |
15744 | temp2 = True; | |
15745 | } | |
15746 | { | |
15747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15748 | (arg1)->SetLabel((wxString const &)*arg2); | |
15749 | ||
15750 | wxPyEndAllowThreads(__tstate); | |
15751 | if (PyErr_Occurred()) SWIG_fail; | |
15752 | } | |
15753 | Py_INCREF(Py_None); resultobj = Py_None; | |
15754 | { | |
15755 | if (temp2) | |
15756 | delete arg2; | |
15757 | } | |
15758 | return resultobj; | |
15759 | fail: | |
15760 | { | |
15761 | if (temp2) | |
15762 | delete arg2; | |
15763 | } | |
15764 | return NULL; | |
15765 | } | |
15766 | ||
15767 | ||
15768 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15769 | PyObject *resultobj; | |
15770 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15771 | PyObject * obj0 = 0 ; | |
15772 | char *kwnames[] = { | |
15773 | (char *) "self", NULL | |
15774 | }; | |
15775 | ||
15776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15779 | { | |
15780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15781 | (arg1)->Detach(); | |
15782 | ||
15783 | wxPyEndAllowThreads(__tstate); | |
15784 | if (PyErr_Occurred()) SWIG_fail; | |
15785 | } | |
15786 | Py_INCREF(Py_None); resultobj = Py_None; | |
15787 | return resultobj; | |
15788 | fail: | |
15789 | return NULL; | |
15790 | } | |
15791 | ||
15792 | ||
15793 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15794 | PyObject *resultobj; | |
15795 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15796 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15797 | PyObject * obj0 = 0 ; | |
15798 | PyObject * obj1 = 0 ; | |
15799 | char *kwnames[] = { | |
15800 | (char *) "self",(char *) "tbar", NULL | |
15801 | }; | |
15802 | ||
15803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
15807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15808 | { | |
15809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15810 | (arg1)->Attach(arg2); | |
15811 | ||
15812 | wxPyEndAllowThreads(__tstate); | |
15813 | if (PyErr_Occurred()) SWIG_fail; | |
15814 | } | |
15815 | Py_INCREF(Py_None); resultobj = Py_None; | |
15816 | return resultobj; | |
15817 | fail: | |
15818 | return NULL; | |
15819 | } | |
15820 | ||
15821 | ||
15822 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15823 | PyObject *resultobj; | |
15824 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15825 | PyObject *result; | |
15826 | PyObject * obj0 = 0 ; | |
15827 | char *kwnames[] = { | |
15828 | (char *) "self", NULL | |
15829 | }; | |
15830 | ||
15831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15834 | { | |
15835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15836 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15837 | ||
15838 | wxPyEndAllowThreads(__tstate); | |
15839 | if (PyErr_Occurred()) SWIG_fail; | |
15840 | } | |
15841 | resultobj = result; | |
15842 | return resultobj; | |
15843 | fail: | |
15844 | return NULL; | |
15845 | } | |
15846 | ||
15847 | ||
15848 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15849 | PyObject *resultobj; | |
15850 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15851 | PyObject *arg2 = (PyObject *) 0 ; | |
15852 | PyObject * obj0 = 0 ; | |
15853 | PyObject * obj1 = 0 ; | |
15854 | char *kwnames[] = { | |
15855 | (char *) "self",(char *) "clientData", NULL | |
15856 | }; | |
15857 | ||
15858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15861 | arg2 = obj1; | |
15862 | { | |
15863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15864 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15865 | ||
15866 | wxPyEndAllowThreads(__tstate); | |
15867 | if (PyErr_Occurred()) SWIG_fail; | |
15868 | } | |
15869 | Py_INCREF(Py_None); resultobj = Py_None; | |
15870 | return resultobj; | |
15871 | fail: | |
15872 | return NULL; | |
15873 | } | |
15874 | ||
15875 | ||
15876 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15877 | PyObject *obj; | |
15878 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15879 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15880 | Py_INCREF(obj); | |
15881 | return Py_BuildValue((char *)""); | |
15882 | } | |
15883 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15884 | PyObject *resultobj; | |
15885 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15886 | int arg2 ; | |
15887 | wxString *arg3 = 0 ; | |
15888 | wxBitmap *arg4 = 0 ; | |
15889 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15890 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15891 | int arg6 = (int) wxITEM_NORMAL ; | |
15892 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15893 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15894 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15895 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15896 | PyObject *arg9 = (PyObject *) NULL ; | |
15897 | wxToolBarToolBase *result; | |
15898 | bool temp3 = False ; | |
15899 | bool temp7 = False ; | |
15900 | bool temp8 = False ; | |
15901 | PyObject * obj0 = 0 ; | |
15902 | PyObject * obj1 = 0 ; | |
15903 | PyObject * obj2 = 0 ; | |
15904 | PyObject * obj3 = 0 ; | |
15905 | PyObject * obj4 = 0 ; | |
15906 | PyObject * obj5 = 0 ; | |
15907 | PyObject * obj6 = 0 ; | |
15908 | PyObject * obj7 = 0 ; | |
15909 | PyObject * obj8 = 0 ; | |
15910 | char *kwnames[] = { | |
15911 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15912 | }; | |
15913 | ||
15914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
15915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
15916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15917 | arg2 = (int) SWIG_AsInt(obj1); | |
15918 | if (PyErr_Occurred()) SWIG_fail; | |
15919 | { | |
15920 | arg3 = wxString_in_helper(obj2); | |
15921 | if (arg3 == NULL) SWIG_fail; | |
15922 | temp3 = True; | |
15923 | } | |
15924 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
15925 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15926 | SWIG_fail; | |
15927 | if (arg4 == NULL) { | |
15928 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15929 | SWIG_fail; | |
15930 | } | |
15931 | if (obj4) { | |
15932 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
15933 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15934 | SWIG_fail; | |
15935 | if (arg5 == NULL) { | |
15936 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15937 | SWIG_fail; | |
15938 | } | |
15939 | } | |
15940 | if (obj5) { | |
15941 | arg6 = (wxItemKind) SWIG_AsInt(obj5); | |
15942 | if (PyErr_Occurred()) SWIG_fail; | |
15943 | } | |
15944 | if (obj6) { | |
15945 | { | |
15946 | arg7 = wxString_in_helper(obj6); | |
15947 | if (arg7 == NULL) SWIG_fail; | |
15948 | temp7 = True; | |
15949 | } | |
15950 | } | |
15951 | if (obj7) { | |
15952 | { | |
15953 | arg8 = wxString_in_helper(obj7); | |
15954 | if (arg8 == NULL) SWIG_fail; | |
15955 | temp8 = True; | |
15956 | } | |
15957 | } | |
15958 | if (obj8) { | |
15959 | arg9 = obj8; | |
15960 | } | |
15961 | { | |
15962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15963 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
15964 | ||
15965 | wxPyEndAllowThreads(__tstate); | |
15966 | if (PyErr_Occurred()) SWIG_fail; | |
15967 | } | |
15968 | { | |
15969 | resultobj = wxPyMake_wxObject(result); | |
15970 | } | |
15971 | { | |
15972 | if (temp3) | |
15973 | delete arg3; | |
15974 | } | |
15975 | { | |
15976 | if (temp7) | |
15977 | delete arg7; | |
15978 | } | |
15979 | { | |
15980 | if (temp8) | |
15981 | delete arg8; | |
15982 | } | |
15983 | return resultobj; | |
15984 | fail: | |
15985 | { | |
15986 | if (temp3) | |
15987 | delete arg3; | |
15988 | } | |
15989 | { | |
15990 | if (temp7) | |
15991 | delete arg7; | |
15992 | } | |
15993 | { | |
15994 | if (temp8) | |
15995 | delete arg8; | |
15996 | } | |
15997 | return NULL; | |
15998 | } | |
15999 | ||
16000 | ||
16001 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16002 | PyObject *resultobj; | |
16003 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16004 | size_t arg2 ; | |
16005 | int arg3 ; | |
16006 | wxString *arg4 = 0 ; | |
16007 | wxBitmap *arg5 = 0 ; | |
16008 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
16009 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
16010 | int arg7 = (int) wxITEM_NORMAL ; | |
16011 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16012 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16013 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
16014 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16015 | PyObject *arg10 = (PyObject *) NULL ; | |
16016 | wxToolBarToolBase *result; | |
16017 | bool temp4 = False ; | |
16018 | bool temp8 = False ; | |
16019 | bool temp9 = False ; | |
16020 | PyObject * obj0 = 0 ; | |
16021 | PyObject * obj1 = 0 ; | |
16022 | PyObject * obj2 = 0 ; | |
16023 | PyObject * obj3 = 0 ; | |
16024 | PyObject * obj4 = 0 ; | |
16025 | PyObject * obj5 = 0 ; | |
16026 | PyObject * obj6 = 0 ; | |
16027 | PyObject * obj7 = 0 ; | |
16028 | PyObject * obj8 = 0 ; | |
16029 | PyObject * obj9 = 0 ; | |
16030 | char *kwnames[] = { | |
16031 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16032 | }; | |
16033 | ||
16034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
16035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16037 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16038 | if (PyErr_Occurred()) SWIG_fail; | |
16039 | arg3 = (int) SWIG_AsInt(obj2); | |
16040 | if (PyErr_Occurred()) SWIG_fail; | |
16041 | { | |
16042 | arg4 = wxString_in_helper(obj3); | |
16043 | if (arg4 == NULL) SWIG_fail; | |
16044 | temp4 = True; | |
16045 | } | |
16046 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
16047 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16048 | SWIG_fail; | |
16049 | if (arg5 == NULL) { | |
16050 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16051 | SWIG_fail; | |
16052 | } | |
16053 | if (obj5) { | |
16054 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, | |
16055 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16056 | SWIG_fail; | |
16057 | if (arg6 == NULL) { | |
16058 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16059 | SWIG_fail; | |
16060 | } | |
16061 | } | |
16062 | if (obj6) { | |
16063 | arg7 = (wxItemKind) SWIG_AsInt(obj6); | |
16064 | if (PyErr_Occurred()) SWIG_fail; | |
16065 | } | |
16066 | if (obj7) { | |
16067 | { | |
16068 | arg8 = wxString_in_helper(obj7); | |
16069 | if (arg8 == NULL) SWIG_fail; | |
16070 | temp8 = True; | |
16071 | } | |
16072 | } | |
16073 | if (obj8) { | |
16074 | { | |
16075 | arg9 = wxString_in_helper(obj8); | |
16076 | if (arg9 == NULL) SWIG_fail; | |
16077 | temp9 = True; | |
16078 | } | |
16079 | } | |
16080 | if (obj9) { | |
16081 | arg10 = obj9; | |
16082 | } | |
16083 | { | |
16084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16085 | result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,(wxItemKind )arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); | |
16086 | ||
16087 | wxPyEndAllowThreads(__tstate); | |
16088 | if (PyErr_Occurred()) SWIG_fail; | |
16089 | } | |
16090 | { | |
16091 | resultobj = wxPyMake_wxObject(result); | |
16092 | } | |
16093 | { | |
16094 | if (temp4) | |
16095 | delete arg4; | |
16096 | } | |
16097 | { | |
16098 | if (temp8) | |
16099 | delete arg8; | |
16100 | } | |
16101 | { | |
16102 | if (temp9) | |
16103 | delete arg9; | |
16104 | } | |
16105 | return resultobj; | |
16106 | fail: | |
16107 | { | |
16108 | if (temp4) | |
16109 | delete arg4; | |
16110 | } | |
16111 | { | |
16112 | if (temp8) | |
16113 | delete arg8; | |
16114 | } | |
16115 | { | |
16116 | if (temp9) | |
16117 | delete arg9; | |
16118 | } | |
16119 | return NULL; | |
16120 | } | |
16121 | ||
16122 | ||
16123 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16124 | PyObject *resultobj; | |
16125 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16126 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
16127 | wxToolBarToolBase *result; | |
16128 | PyObject * obj0 = 0 ; | |
16129 | PyObject * obj1 = 0 ; | |
16130 | char *kwnames[] = { | |
16131 | (char *) "self",(char *) "tool", NULL | |
16132 | }; | |
16133 | ||
16134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
16135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16137 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
16138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16139 | { | |
16140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16141 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
16142 | ||
16143 | wxPyEndAllowThreads(__tstate); | |
16144 | if (PyErr_Occurred()) SWIG_fail; | |
16145 | } | |
16146 | { | |
16147 | resultobj = wxPyMake_wxObject(result); | |
16148 | } | |
16149 | return resultobj; | |
16150 | fail: | |
16151 | return NULL; | |
16152 | } | |
16153 | ||
16154 | ||
16155 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16156 | PyObject *resultobj; | |
16157 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16158 | size_t arg2 ; | |
16159 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
16160 | wxToolBarToolBase *result; | |
16161 | PyObject * obj0 = 0 ; | |
16162 | PyObject * obj1 = 0 ; | |
16163 | PyObject * obj2 = 0 ; | |
16164 | char *kwnames[] = { | |
16165 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
16166 | }; | |
16167 | ||
16168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16171 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16172 | if (PyErr_Occurred()) SWIG_fail; | |
16173 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
16174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16175 | { | |
16176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16177 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
16178 | ||
16179 | wxPyEndAllowThreads(__tstate); | |
16180 | if (PyErr_Occurred()) SWIG_fail; | |
16181 | } | |
16182 | { | |
16183 | resultobj = wxPyMake_wxObject(result); | |
16184 | } | |
16185 | return resultobj; | |
16186 | fail: | |
16187 | return NULL; | |
16188 | } | |
16189 | ||
16190 | ||
16191 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16192 | PyObject *resultobj; | |
16193 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16194 | wxControl *arg2 = (wxControl *) 0 ; | |
16195 | wxToolBarToolBase *result; | |
16196 | PyObject * obj0 = 0 ; | |
16197 | PyObject * obj1 = 0 ; | |
16198 | char *kwnames[] = { | |
16199 | (char *) "self",(char *) "control", NULL | |
16200 | }; | |
16201 | ||
16202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
16203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16205 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
16206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16207 | { | |
16208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16209 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
16210 | ||
16211 | wxPyEndAllowThreads(__tstate); | |
16212 | if (PyErr_Occurred()) SWIG_fail; | |
16213 | } | |
16214 | { | |
16215 | resultobj = wxPyMake_wxObject(result); | |
16216 | } | |
16217 | return resultobj; | |
16218 | fail: | |
16219 | return NULL; | |
16220 | } | |
16221 | ||
16222 | ||
16223 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16224 | PyObject *resultobj; | |
16225 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16226 | size_t arg2 ; | |
16227 | wxControl *arg3 = (wxControl *) 0 ; | |
16228 | wxToolBarToolBase *result; | |
16229 | PyObject * obj0 = 0 ; | |
16230 | PyObject * obj1 = 0 ; | |
16231 | PyObject * obj2 = 0 ; | |
16232 | char *kwnames[] = { | |
16233 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
16234 | }; | |
16235 | ||
16236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16239 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16240 | if (PyErr_Occurred()) SWIG_fail; | |
16241 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
16242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16243 | { | |
16244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16245 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
16246 | ||
16247 | wxPyEndAllowThreads(__tstate); | |
16248 | if (PyErr_Occurred()) SWIG_fail; | |
16249 | } | |
16250 | { | |
16251 | resultobj = wxPyMake_wxObject(result); | |
16252 | } | |
16253 | return resultobj; | |
16254 | fail: | |
16255 | return NULL; | |
16256 | } | |
16257 | ||
16258 | ||
16259 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16260 | PyObject *resultobj; | |
16261 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16262 | int arg2 ; | |
16263 | wxControl *result; | |
16264 | PyObject * obj0 = 0 ; | |
16265 | PyObject * obj1 = 0 ; | |
16266 | char *kwnames[] = { | |
16267 | (char *) "self",(char *) "id", NULL | |
16268 | }; | |
16269 | ||
16270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
16271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16273 | arg2 = (int) SWIG_AsInt(obj1); | |
16274 | if (PyErr_Occurred()) SWIG_fail; | |
16275 | { | |
16276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16277 | result = (wxControl *)(arg1)->FindControl(arg2); | |
16278 | ||
16279 | wxPyEndAllowThreads(__tstate); | |
16280 | if (PyErr_Occurred()) SWIG_fail; | |
16281 | } | |
16282 | { | |
16283 | resultobj = wxPyMake_wxObject(result); | |
16284 | } | |
16285 | return resultobj; | |
16286 | fail: | |
16287 | return NULL; | |
16288 | } | |
16289 | ||
16290 | ||
16291 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16292 | PyObject *resultobj; | |
16293 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16294 | wxToolBarToolBase *result; | |
16295 | PyObject * obj0 = 0 ; | |
16296 | char *kwnames[] = { | |
16297 | (char *) "self", NULL | |
16298 | }; | |
16299 | ||
16300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
16301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16303 | { | |
16304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16305 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
16306 | ||
16307 | wxPyEndAllowThreads(__tstate); | |
16308 | if (PyErr_Occurred()) SWIG_fail; | |
16309 | } | |
16310 | { | |
16311 | resultobj = wxPyMake_wxObject(result); | |
16312 | } | |
16313 | return resultobj; | |
16314 | fail: | |
16315 | return NULL; | |
16316 | } | |
16317 | ||
16318 | ||
16319 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16320 | PyObject *resultobj; | |
16321 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16322 | size_t arg2 ; | |
16323 | wxToolBarToolBase *result; | |
16324 | PyObject * obj0 = 0 ; | |
16325 | PyObject * obj1 = 0 ; | |
16326 | char *kwnames[] = { | |
16327 | (char *) "self",(char *) "pos", NULL | |
16328 | }; | |
16329 | ||
16330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
16331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16333 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16334 | if (PyErr_Occurred()) SWIG_fail; | |
16335 | { | |
16336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16337 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
16338 | ||
16339 | wxPyEndAllowThreads(__tstate); | |
16340 | if (PyErr_Occurred()) SWIG_fail; | |
16341 | } | |
16342 | { | |
16343 | resultobj = wxPyMake_wxObject(result); | |
16344 | } | |
16345 | return resultobj; | |
16346 | fail: | |
16347 | return NULL; | |
16348 | } | |
16349 | ||
16350 | ||
16351 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16352 | PyObject *resultobj; | |
16353 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16354 | int arg2 ; | |
16355 | wxToolBarToolBase *result; | |
16356 | PyObject * obj0 = 0 ; | |
16357 | PyObject * obj1 = 0 ; | |
16358 | char *kwnames[] = { | |
16359 | (char *) "self",(char *) "id", NULL | |
16360 | }; | |
16361 | ||
16362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
16363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16365 | arg2 = (int) SWIG_AsInt(obj1); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | { | |
16368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16369 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
16370 | ||
16371 | wxPyEndAllowThreads(__tstate); | |
16372 | if (PyErr_Occurred()) SWIG_fail; | |
16373 | } | |
16374 | { | |
16375 | resultobj = wxPyMake_wxObject(result); | |
16376 | } | |
16377 | return resultobj; | |
16378 | fail: | |
16379 | return NULL; | |
16380 | } | |
16381 | ||
16382 | ||
16383 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16384 | PyObject *resultobj; | |
16385 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16386 | size_t arg2 ; | |
16387 | bool result; | |
16388 | PyObject * obj0 = 0 ; | |
16389 | PyObject * obj1 = 0 ; | |
16390 | char *kwnames[] = { | |
16391 | (char *) "self",(char *) "pos", NULL | |
16392 | }; | |
16393 | ||
16394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
16395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16397 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16398 | if (PyErr_Occurred()) SWIG_fail; | |
16399 | { | |
16400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16401 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
16402 | ||
16403 | wxPyEndAllowThreads(__tstate); | |
16404 | if (PyErr_Occurred()) SWIG_fail; | |
16405 | } | |
16406 | { | |
16407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16408 | } | |
16409 | return resultobj; | |
16410 | fail: | |
16411 | return NULL; | |
16412 | } | |
16413 | ||
16414 | ||
16415 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16416 | PyObject *resultobj; | |
16417 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16418 | int arg2 ; | |
16419 | bool result; | |
16420 | PyObject * obj0 = 0 ; | |
16421 | PyObject * obj1 = 0 ; | |
16422 | char *kwnames[] = { | |
16423 | (char *) "self",(char *) "id", NULL | |
16424 | }; | |
16425 | ||
16426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
16427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16429 | arg2 = (int) SWIG_AsInt(obj1); | |
16430 | if (PyErr_Occurred()) SWIG_fail; | |
16431 | { | |
16432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16433 | result = (bool)(arg1)->DeleteTool(arg2); | |
16434 | ||
16435 | wxPyEndAllowThreads(__tstate); | |
16436 | if (PyErr_Occurred()) SWIG_fail; | |
16437 | } | |
16438 | { | |
16439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16440 | } | |
16441 | return resultobj; | |
16442 | fail: | |
16443 | return NULL; | |
16444 | } | |
16445 | ||
16446 | ||
16447 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16448 | PyObject *resultobj; | |
16449 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16450 | PyObject * obj0 = 0 ; | |
16451 | char *kwnames[] = { | |
16452 | (char *) "self", NULL | |
16453 | }; | |
16454 | ||
16455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
16456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16458 | { | |
16459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16460 | (arg1)->ClearTools(); | |
16461 | ||
16462 | wxPyEndAllowThreads(__tstate); | |
16463 | if (PyErr_Occurred()) SWIG_fail; | |
16464 | } | |
16465 | Py_INCREF(Py_None); resultobj = Py_None; | |
16466 | return resultobj; | |
16467 | fail: | |
16468 | return NULL; | |
16469 | } | |
16470 | ||
16471 | ||
16472 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16473 | PyObject *resultobj; | |
16474 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16475 | bool result; | |
16476 | PyObject * obj0 = 0 ; | |
16477 | char *kwnames[] = { | |
16478 | (char *) "self", NULL | |
16479 | }; | |
16480 | ||
16481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
16482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16484 | { | |
16485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16486 | result = (bool)(arg1)->Realize(); | |
16487 | ||
16488 | wxPyEndAllowThreads(__tstate); | |
16489 | if (PyErr_Occurred()) SWIG_fail; | |
16490 | } | |
16491 | { | |
16492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16493 | } | |
16494 | return resultobj; | |
16495 | fail: | |
16496 | return NULL; | |
16497 | } | |
16498 | ||
16499 | ||
16500 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16501 | PyObject *resultobj; | |
16502 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16503 | int arg2 ; | |
16504 | bool arg3 ; | |
16505 | PyObject * obj0 = 0 ; | |
16506 | PyObject * obj1 = 0 ; | |
16507 | PyObject * obj2 = 0 ; | |
16508 | char *kwnames[] = { | |
16509 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
16510 | }; | |
16511 | ||
16512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16515 | arg2 = (int) SWIG_AsInt(obj1); | |
16516 | if (PyErr_Occurred()) SWIG_fail; | |
16517 | arg3 = (bool) SWIG_AsBool(obj2); | |
16518 | if (PyErr_Occurred()) SWIG_fail; | |
16519 | { | |
16520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16521 | (arg1)->EnableTool(arg2,arg3); | |
16522 | ||
16523 | wxPyEndAllowThreads(__tstate); | |
16524 | if (PyErr_Occurred()) SWIG_fail; | |
16525 | } | |
16526 | Py_INCREF(Py_None); resultobj = Py_None; | |
16527 | return resultobj; | |
16528 | fail: | |
16529 | return NULL; | |
16530 | } | |
16531 | ||
16532 | ||
16533 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16534 | PyObject *resultobj; | |
16535 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16536 | int arg2 ; | |
16537 | bool arg3 ; | |
16538 | PyObject * obj0 = 0 ; | |
16539 | PyObject * obj1 = 0 ; | |
16540 | PyObject * obj2 = 0 ; | |
16541 | char *kwnames[] = { | |
16542 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16543 | }; | |
16544 | ||
16545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16548 | arg2 = (int) SWIG_AsInt(obj1); | |
16549 | if (PyErr_Occurred()) SWIG_fail; | |
16550 | arg3 = (bool) SWIG_AsBool(obj2); | |
16551 | if (PyErr_Occurred()) SWIG_fail; | |
16552 | { | |
16553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16554 | (arg1)->ToggleTool(arg2,arg3); | |
16555 | ||
16556 | wxPyEndAllowThreads(__tstate); | |
16557 | if (PyErr_Occurred()) SWIG_fail; | |
16558 | } | |
16559 | Py_INCREF(Py_None); resultobj = Py_None; | |
16560 | return resultobj; | |
16561 | fail: | |
16562 | return NULL; | |
16563 | } | |
16564 | ||
16565 | ||
16566 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16567 | PyObject *resultobj; | |
16568 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16569 | int arg2 ; | |
16570 | bool arg3 ; | |
16571 | PyObject * obj0 = 0 ; | |
16572 | PyObject * obj1 = 0 ; | |
16573 | PyObject * obj2 = 0 ; | |
16574 | char *kwnames[] = { | |
16575 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16576 | }; | |
16577 | ||
16578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16581 | arg2 = (int) SWIG_AsInt(obj1); | |
16582 | if (PyErr_Occurred()) SWIG_fail; | |
16583 | arg3 = (bool) SWIG_AsBool(obj2); | |
16584 | if (PyErr_Occurred()) SWIG_fail; | |
16585 | { | |
16586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16587 | (arg1)->SetToggle(arg2,arg3); | |
16588 | ||
16589 | wxPyEndAllowThreads(__tstate); | |
16590 | if (PyErr_Occurred()) SWIG_fail; | |
16591 | } | |
16592 | Py_INCREF(Py_None); resultobj = Py_None; | |
16593 | return resultobj; | |
16594 | fail: | |
16595 | return NULL; | |
16596 | } | |
16597 | ||
16598 | ||
16599 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16600 | PyObject *resultobj; | |
16601 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16602 | int arg2 ; | |
16603 | PyObject *result; | |
16604 | PyObject * obj0 = 0 ; | |
16605 | PyObject * obj1 = 0 ; | |
16606 | char *kwnames[] = { | |
16607 | (char *) "self",(char *) "id", NULL | |
16608 | }; | |
16609 | ||
16610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
16611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16613 | arg2 = (int) SWIG_AsInt(obj1); | |
16614 | if (PyErr_Occurred()) SWIG_fail; | |
16615 | { | |
16616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16617 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16618 | ||
16619 | wxPyEndAllowThreads(__tstate); | |
16620 | if (PyErr_Occurred()) SWIG_fail; | |
16621 | } | |
16622 | resultobj = result; | |
16623 | return resultobj; | |
16624 | fail: | |
16625 | return NULL; | |
16626 | } | |
16627 | ||
16628 | ||
16629 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16630 | PyObject *resultobj; | |
16631 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16632 | int arg2 ; | |
16633 | PyObject *arg3 = (PyObject *) 0 ; | |
16634 | PyObject * obj0 = 0 ; | |
16635 | PyObject * obj1 = 0 ; | |
16636 | PyObject * obj2 = 0 ; | |
16637 | char *kwnames[] = { | |
16638 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16639 | }; | |
16640 | ||
16641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16644 | arg2 = (int) SWIG_AsInt(obj1); | |
16645 | if (PyErr_Occurred()) SWIG_fail; | |
16646 | arg3 = obj2; | |
16647 | { | |
16648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16649 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16650 | ||
16651 | wxPyEndAllowThreads(__tstate); | |
16652 | if (PyErr_Occurred()) SWIG_fail; | |
16653 | } | |
16654 | Py_INCREF(Py_None); resultobj = Py_None; | |
16655 | return resultobj; | |
16656 | fail: | |
16657 | return NULL; | |
16658 | } | |
16659 | ||
16660 | ||
16661 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16662 | PyObject *resultobj; | |
16663 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16664 | int arg2 ; | |
16665 | int result; | |
16666 | PyObject * obj0 = 0 ; | |
16667 | PyObject * obj1 = 0 ; | |
16668 | char *kwnames[] = { | |
16669 | (char *) "self",(char *) "id", NULL | |
16670 | }; | |
16671 | ||
16672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
16673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16675 | arg2 = (int) SWIG_AsInt(obj1); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | { | |
16678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16679 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16680 | ||
16681 | wxPyEndAllowThreads(__tstate); | |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
16683 | } | |
16684 | resultobj = SWIG_FromInt((int)result); | |
16685 | return resultobj; | |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
16691 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16692 | PyObject *resultobj; | |
16693 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16694 | int arg2 ; | |
16695 | bool result; | |
16696 | PyObject * obj0 = 0 ; | |
16697 | PyObject * obj1 = 0 ; | |
16698 | char *kwnames[] = { | |
16699 | (char *) "self",(char *) "id", NULL | |
16700 | }; | |
16701 | ||
16702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
16703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16705 | arg2 = (int) SWIG_AsInt(obj1); | |
16706 | if (PyErr_Occurred()) SWIG_fail; | |
16707 | { | |
16708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16709 | result = (bool)(arg1)->GetToolState(arg2); | |
16710 | ||
16711 | wxPyEndAllowThreads(__tstate); | |
16712 | if (PyErr_Occurred()) SWIG_fail; | |
16713 | } | |
16714 | { | |
16715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16716 | } | |
16717 | return resultobj; | |
16718 | fail: | |
16719 | return NULL; | |
16720 | } | |
16721 | ||
16722 | ||
16723 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16724 | PyObject *resultobj; | |
16725 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16726 | int arg2 ; | |
16727 | bool result; | |
16728 | PyObject * obj0 = 0 ; | |
16729 | PyObject * obj1 = 0 ; | |
16730 | char *kwnames[] = { | |
16731 | (char *) "self",(char *) "id", NULL | |
16732 | }; | |
16733 | ||
16734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
16735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16737 | arg2 = (int) SWIG_AsInt(obj1); | |
16738 | if (PyErr_Occurred()) SWIG_fail; | |
16739 | { | |
16740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16741 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16742 | ||
16743 | wxPyEndAllowThreads(__tstate); | |
16744 | if (PyErr_Occurred()) SWIG_fail; | |
16745 | } | |
16746 | { | |
16747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16748 | } | |
16749 | return resultobj; | |
16750 | fail: | |
16751 | return NULL; | |
16752 | } | |
16753 | ||
16754 | ||
16755 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16756 | PyObject *resultobj; | |
16757 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16758 | int arg2 ; | |
16759 | wxString *arg3 = 0 ; | |
16760 | bool temp3 = False ; | |
16761 | PyObject * obj0 = 0 ; | |
16762 | PyObject * obj1 = 0 ; | |
16763 | PyObject * obj2 = 0 ; | |
16764 | char *kwnames[] = { | |
16765 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16766 | }; | |
16767 | ||
16768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16771 | arg2 = (int) SWIG_AsInt(obj1); | |
16772 | if (PyErr_Occurred()) SWIG_fail; | |
16773 | { | |
16774 | arg3 = wxString_in_helper(obj2); | |
16775 | if (arg3 == NULL) SWIG_fail; | |
16776 | temp3 = True; | |
16777 | } | |
16778 | { | |
16779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16780 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16781 | ||
16782 | wxPyEndAllowThreads(__tstate); | |
16783 | if (PyErr_Occurred()) SWIG_fail; | |
16784 | } | |
16785 | Py_INCREF(Py_None); resultobj = Py_None; | |
16786 | { | |
16787 | if (temp3) | |
16788 | delete arg3; | |
16789 | } | |
16790 | return resultobj; | |
16791 | fail: | |
16792 | { | |
16793 | if (temp3) | |
16794 | delete arg3; | |
16795 | } | |
16796 | return NULL; | |
16797 | } | |
16798 | ||
16799 | ||
16800 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16801 | PyObject *resultobj; | |
16802 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16803 | int arg2 ; | |
16804 | wxString result; | |
16805 | PyObject * obj0 = 0 ; | |
16806 | PyObject * obj1 = 0 ; | |
16807 | char *kwnames[] = { | |
16808 | (char *) "self",(char *) "id", NULL | |
16809 | }; | |
16810 | ||
16811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
16812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16814 | arg2 = (int) SWIG_AsInt(obj1); | |
16815 | if (PyErr_Occurred()) SWIG_fail; | |
16816 | { | |
16817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16818 | result = (arg1)->GetToolShortHelp(arg2); | |
16819 | ||
16820 | wxPyEndAllowThreads(__tstate); | |
16821 | if (PyErr_Occurred()) SWIG_fail; | |
16822 | } | |
16823 | { | |
16824 | #if wxUSE_UNICODE | |
16825 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16826 | #else | |
16827 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16828 | #endif | |
16829 | } | |
16830 | return resultobj; | |
16831 | fail: | |
16832 | return NULL; | |
16833 | } | |
16834 | ||
16835 | ||
16836 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16837 | PyObject *resultobj; | |
16838 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16839 | int arg2 ; | |
16840 | wxString *arg3 = 0 ; | |
16841 | bool temp3 = False ; | |
16842 | PyObject * obj0 = 0 ; | |
16843 | PyObject * obj1 = 0 ; | |
16844 | PyObject * obj2 = 0 ; | |
16845 | char *kwnames[] = { | |
16846 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16847 | }; | |
16848 | ||
16849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16852 | arg2 = (int) SWIG_AsInt(obj1); | |
16853 | if (PyErr_Occurred()) SWIG_fail; | |
16854 | { | |
16855 | arg3 = wxString_in_helper(obj2); | |
16856 | if (arg3 == NULL) SWIG_fail; | |
16857 | temp3 = True; | |
16858 | } | |
16859 | { | |
16860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16861 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16862 | ||
16863 | wxPyEndAllowThreads(__tstate); | |
16864 | if (PyErr_Occurred()) SWIG_fail; | |
16865 | } | |
16866 | Py_INCREF(Py_None); resultobj = Py_None; | |
16867 | { | |
16868 | if (temp3) | |
16869 | delete arg3; | |
16870 | } | |
16871 | return resultobj; | |
16872 | fail: | |
16873 | { | |
16874 | if (temp3) | |
16875 | delete arg3; | |
16876 | } | |
16877 | return NULL; | |
16878 | } | |
16879 | ||
16880 | ||
16881 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16882 | PyObject *resultobj; | |
16883 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16884 | int arg2 ; | |
16885 | wxString result; | |
16886 | PyObject * obj0 = 0 ; | |
16887 | PyObject * obj1 = 0 ; | |
16888 | char *kwnames[] = { | |
16889 | (char *) "self",(char *) "id", NULL | |
16890 | }; | |
16891 | ||
16892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
16893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16895 | arg2 = (int) SWIG_AsInt(obj1); | |
16896 | if (PyErr_Occurred()) SWIG_fail; | |
16897 | { | |
16898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16899 | result = (arg1)->GetToolLongHelp(arg2); | |
16900 | ||
16901 | wxPyEndAllowThreads(__tstate); | |
16902 | if (PyErr_Occurred()) SWIG_fail; | |
16903 | } | |
16904 | { | |
16905 | #if wxUSE_UNICODE | |
16906 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16907 | #else | |
16908 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16909 | #endif | |
16910 | } | |
16911 | return resultobj; | |
16912 | fail: | |
16913 | return NULL; | |
16914 | } | |
16915 | ||
16916 | ||
16917 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16918 | PyObject *resultobj; | |
16919 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16920 | int arg2 ; | |
16921 | int arg3 ; | |
16922 | PyObject * obj0 = 0 ; | |
16923 | PyObject * obj1 = 0 ; | |
16924 | PyObject * obj2 = 0 ; | |
16925 | char *kwnames[] = { | |
16926 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16927 | }; | |
16928 | ||
16929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16932 | arg2 = (int) SWIG_AsInt(obj1); | |
16933 | if (PyErr_Occurred()) SWIG_fail; | |
16934 | arg3 = (int) SWIG_AsInt(obj2); | |
16935 | if (PyErr_Occurred()) SWIG_fail; | |
16936 | { | |
16937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16938 | (arg1)->SetMargins(arg2,arg3); | |
16939 | ||
16940 | wxPyEndAllowThreads(__tstate); | |
16941 | if (PyErr_Occurred()) SWIG_fail; | |
16942 | } | |
16943 | Py_INCREF(Py_None); resultobj = Py_None; | |
16944 | return resultobj; | |
16945 | fail: | |
16946 | return NULL; | |
16947 | } | |
16948 | ||
16949 | ||
16950 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16951 | PyObject *resultobj; | |
16952 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16953 | wxSize *arg2 = 0 ; | |
16954 | wxSize temp2 ; | |
16955 | PyObject * obj0 = 0 ; | |
16956 | PyObject * obj1 = 0 ; | |
16957 | char *kwnames[] = { | |
16958 | (char *) "self",(char *) "size", NULL | |
16959 | }; | |
16960 | ||
16961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
16962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16964 | { | |
16965 | arg2 = &temp2; | |
16966 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16967 | } | |
16968 | { | |
16969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16970 | (arg1)->SetMargins((wxSize const &)*arg2); | |
16971 | ||
16972 | wxPyEndAllowThreads(__tstate); | |
16973 | if (PyErr_Occurred()) SWIG_fail; | |
16974 | } | |
16975 | Py_INCREF(Py_None); resultobj = Py_None; | |
16976 | return resultobj; | |
16977 | fail: | |
16978 | return NULL; | |
16979 | } | |
16980 | ||
16981 | ||
16982 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16983 | PyObject *resultobj; | |
16984 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16985 | int arg2 ; | |
16986 | PyObject * obj0 = 0 ; | |
16987 | PyObject * obj1 = 0 ; | |
16988 | char *kwnames[] = { | |
16989 | (char *) "self",(char *) "packing", NULL | |
16990 | }; | |
16991 | ||
16992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
16993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16995 | arg2 = (int) SWIG_AsInt(obj1); | |
16996 | if (PyErr_Occurred()) SWIG_fail; | |
16997 | { | |
16998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16999 | (arg1)->SetToolPacking(arg2); | |
17000 | ||
17001 | wxPyEndAllowThreads(__tstate); | |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
17003 | } | |
17004 | Py_INCREF(Py_None); resultobj = Py_None; | |
17005 | return resultobj; | |
17006 | fail: | |
17007 | return NULL; | |
17008 | } | |
17009 | ||
17010 | ||
17011 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17012 | PyObject *resultobj; | |
17013 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17014 | int arg2 ; | |
17015 | PyObject * obj0 = 0 ; | |
17016 | PyObject * obj1 = 0 ; | |
17017 | char *kwnames[] = { | |
17018 | (char *) "self",(char *) "separation", NULL | |
17019 | }; | |
17020 | ||
17021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
17022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17024 | arg2 = (int) SWIG_AsInt(obj1); | |
17025 | if (PyErr_Occurred()) SWIG_fail; | |
17026 | { | |
17027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17028 | (arg1)->SetToolSeparation(arg2); | |
17029 | ||
17030 | wxPyEndAllowThreads(__tstate); | |
17031 | if (PyErr_Occurred()) SWIG_fail; | |
17032 | } | |
17033 | Py_INCREF(Py_None); resultobj = Py_None; | |
17034 | return resultobj; | |
17035 | fail: | |
17036 | return NULL; | |
17037 | } | |
17038 | ||
17039 | ||
17040 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17041 | PyObject *resultobj; | |
17042 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17043 | wxSize result; | |
17044 | PyObject * obj0 = 0 ; | |
17045 | char *kwnames[] = { | |
17046 | (char *) "self", NULL | |
17047 | }; | |
17048 | ||
17049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
17050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17052 | { | |
17053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17054 | result = (arg1)->GetToolMargins(); | |
17055 | ||
17056 | wxPyEndAllowThreads(__tstate); | |
17057 | if (PyErr_Occurred()) SWIG_fail; | |
17058 | } | |
17059 | { | |
17060 | wxSize * resultptr; | |
17061 | resultptr = new wxSize((wxSize &) result); | |
17062 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17063 | } | |
17064 | return resultobj; | |
17065 | fail: | |
17066 | return NULL; | |
17067 | } | |
17068 | ||
17069 | ||
17070 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17071 | PyObject *resultobj; | |
17072 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17073 | wxSize result; | |
17074 | PyObject * obj0 = 0 ; | |
17075 | char *kwnames[] = { | |
17076 | (char *) "self", NULL | |
17077 | }; | |
17078 | ||
17079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
17080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17082 | { | |
17083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17084 | result = (arg1)->GetMargins(); | |
17085 | ||
17086 | wxPyEndAllowThreads(__tstate); | |
17087 | if (PyErr_Occurred()) SWIG_fail; | |
17088 | } | |
17089 | { | |
17090 | wxSize * resultptr; | |
17091 | resultptr = new wxSize((wxSize &) result); | |
17092 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17093 | } | |
17094 | return resultobj; | |
17095 | fail: | |
17096 | return NULL; | |
17097 | } | |
17098 | ||
17099 | ||
17100 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17101 | PyObject *resultobj; | |
17102 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17103 | int result; | |
17104 | PyObject * obj0 = 0 ; | |
17105 | char *kwnames[] = { | |
17106 | (char *) "self", NULL | |
17107 | }; | |
17108 | ||
17109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
17110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17112 | { | |
17113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17114 | result = (int)(arg1)->GetToolPacking(); | |
17115 | ||
17116 | wxPyEndAllowThreads(__tstate); | |
17117 | if (PyErr_Occurred()) SWIG_fail; | |
17118 | } | |
17119 | resultobj = SWIG_FromInt((int)result); | |
17120 | return resultobj; | |
17121 | fail: | |
17122 | return NULL; | |
17123 | } | |
17124 | ||
17125 | ||
17126 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17127 | PyObject *resultobj; | |
17128 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17129 | int result; | |
17130 | PyObject * obj0 = 0 ; | |
17131 | char *kwnames[] = { | |
17132 | (char *) "self", NULL | |
17133 | }; | |
17134 | ||
17135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
17136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17138 | { | |
17139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17140 | result = (int)(arg1)->GetToolSeparation(); | |
17141 | ||
17142 | wxPyEndAllowThreads(__tstate); | |
17143 | if (PyErr_Occurred()) SWIG_fail; | |
17144 | } | |
17145 | resultobj = SWIG_FromInt((int)result); | |
17146 | return resultobj; | |
17147 | fail: | |
17148 | return NULL; | |
17149 | } | |
17150 | ||
17151 | ||
17152 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17153 | PyObject *resultobj; | |
17154 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17155 | int arg2 ; | |
17156 | PyObject * obj0 = 0 ; | |
17157 | PyObject * obj1 = 0 ; | |
17158 | char *kwnames[] = { | |
17159 | (char *) "self",(char *) "nRows", NULL | |
17160 | }; | |
17161 | ||
17162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
17163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17165 | arg2 = (int) SWIG_AsInt(obj1); | |
17166 | if (PyErr_Occurred()) SWIG_fail; | |
17167 | { | |
17168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17169 | (arg1)->SetRows(arg2); | |
17170 | ||
17171 | wxPyEndAllowThreads(__tstate); | |
17172 | if (PyErr_Occurred()) SWIG_fail; | |
17173 | } | |
17174 | Py_INCREF(Py_None); resultobj = Py_None; | |
17175 | return resultobj; | |
17176 | fail: | |
17177 | return NULL; | |
17178 | } | |
17179 | ||
17180 | ||
17181 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17182 | PyObject *resultobj; | |
17183 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17184 | int arg2 ; | |
17185 | int arg3 ; | |
17186 | PyObject * obj0 = 0 ; | |
17187 | PyObject * obj1 = 0 ; | |
17188 | PyObject * obj2 = 0 ; | |
17189 | char *kwnames[] = { | |
17190 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
17191 | }; | |
17192 | ||
17193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17196 | arg2 = (int) SWIG_AsInt(obj1); | |
17197 | if (PyErr_Occurred()) SWIG_fail; | |
17198 | arg3 = (int) SWIG_AsInt(obj2); | |
17199 | if (PyErr_Occurred()) SWIG_fail; | |
17200 | { | |
17201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17202 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
17203 | ||
17204 | wxPyEndAllowThreads(__tstate); | |
17205 | if (PyErr_Occurred()) SWIG_fail; | |
17206 | } | |
17207 | Py_INCREF(Py_None); resultobj = Py_None; | |
17208 | return resultobj; | |
17209 | fail: | |
17210 | return NULL; | |
17211 | } | |
17212 | ||
17213 | ||
17214 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17215 | PyObject *resultobj; | |
17216 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17217 | int result; | |
17218 | PyObject * obj0 = 0 ; | |
17219 | char *kwnames[] = { | |
17220 | (char *) "self", NULL | |
17221 | }; | |
17222 | ||
17223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
17224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17226 | { | |
17227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17228 | result = (int)(arg1)->GetMaxRows(); | |
17229 | ||
17230 | wxPyEndAllowThreads(__tstate); | |
17231 | if (PyErr_Occurred()) SWIG_fail; | |
17232 | } | |
17233 | resultobj = SWIG_FromInt((int)result); | |
17234 | return resultobj; | |
17235 | fail: | |
17236 | return NULL; | |
17237 | } | |
17238 | ||
17239 | ||
17240 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17241 | PyObject *resultobj; | |
17242 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17243 | int result; | |
17244 | PyObject * obj0 = 0 ; | |
17245 | char *kwnames[] = { | |
17246 | (char *) "self", NULL | |
17247 | }; | |
17248 | ||
17249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
17250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17252 | { | |
17253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17254 | result = (int)(arg1)->GetMaxCols(); | |
17255 | ||
17256 | wxPyEndAllowThreads(__tstate); | |
17257 | if (PyErr_Occurred()) SWIG_fail; | |
17258 | } | |
17259 | resultobj = SWIG_FromInt((int)result); | |
17260 | return resultobj; | |
17261 | fail: | |
17262 | return NULL; | |
17263 | } | |
17264 | ||
17265 | ||
17266 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17267 | PyObject *resultobj; | |
17268 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17269 | wxSize *arg2 = 0 ; | |
17270 | wxSize temp2 ; | |
17271 | PyObject * obj0 = 0 ; | |
17272 | PyObject * obj1 = 0 ; | |
17273 | char *kwnames[] = { | |
17274 | (char *) "self",(char *) "size", NULL | |
17275 | }; | |
17276 | ||
17277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
17278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17280 | { | |
17281 | arg2 = &temp2; | |
17282 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17283 | } | |
17284 | { | |
17285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17286 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
17287 | ||
17288 | wxPyEndAllowThreads(__tstate); | |
17289 | if (PyErr_Occurred()) SWIG_fail; | |
17290 | } | |
17291 | Py_INCREF(Py_None); resultobj = Py_None; | |
17292 | return resultobj; | |
17293 | fail: | |
17294 | return NULL; | |
17295 | } | |
17296 | ||
17297 | ||
17298 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17299 | PyObject *resultobj; | |
17300 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17301 | wxSize result; | |
17302 | PyObject * obj0 = 0 ; | |
17303 | char *kwnames[] = { | |
17304 | (char *) "self", NULL | |
17305 | }; | |
17306 | ||
17307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
17308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17310 | { | |
17311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17312 | result = (arg1)->GetToolBitmapSize(); | |
17313 | ||
17314 | wxPyEndAllowThreads(__tstate); | |
17315 | if (PyErr_Occurred()) SWIG_fail; | |
17316 | } | |
17317 | { | |
17318 | wxSize * resultptr; | |
17319 | resultptr = new wxSize((wxSize &) result); | |
17320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17321 | } | |
17322 | return resultobj; | |
17323 | fail: | |
17324 | return NULL; | |
17325 | } | |
17326 | ||
17327 | ||
17328 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17329 | PyObject *resultobj; | |
17330 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17331 | wxSize result; | |
17332 | PyObject * obj0 = 0 ; | |
17333 | char *kwnames[] = { | |
17334 | (char *) "self", NULL | |
17335 | }; | |
17336 | ||
17337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
17338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17340 | { | |
17341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17342 | result = (arg1)->GetToolSize(); | |
17343 | ||
17344 | wxPyEndAllowThreads(__tstate); | |
17345 | if (PyErr_Occurred()) SWIG_fail; | |
17346 | } | |
17347 | { | |
17348 | wxSize * resultptr; | |
17349 | resultptr = new wxSize((wxSize &) result); | |
17350 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17351 | } | |
17352 | return resultobj; | |
17353 | fail: | |
17354 | return NULL; | |
17355 | } | |
17356 | ||
17357 | ||
17358 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17359 | PyObject *resultobj; | |
17360 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17361 | int arg2 ; | |
17362 | int arg3 ; | |
17363 | wxToolBarToolBase *result; | |
17364 | PyObject * obj0 = 0 ; | |
17365 | PyObject * obj1 = 0 ; | |
17366 | PyObject * obj2 = 0 ; | |
17367 | char *kwnames[] = { | |
17368 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17369 | }; | |
17370 | ||
17371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17374 | arg2 = (int) SWIG_AsInt(obj1); | |
17375 | if (PyErr_Occurred()) SWIG_fail; | |
17376 | arg3 = (int) SWIG_AsInt(obj2); | |
17377 | if (PyErr_Occurred()) SWIG_fail; | |
17378 | { | |
17379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17380 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17381 | ||
17382 | wxPyEndAllowThreads(__tstate); | |
17383 | if (PyErr_Occurred()) SWIG_fail; | |
17384 | } | |
17385 | { | |
17386 | resultobj = wxPyMake_wxObject(result); | |
17387 | } | |
17388 | return resultobj; | |
17389 | fail: | |
17390 | return NULL; | |
17391 | } | |
17392 | ||
17393 | ||
17394 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17395 | PyObject *resultobj; | |
17396 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17397 | int arg2 ; | |
17398 | wxToolBarToolBase *result; | |
17399 | PyObject * obj0 = 0 ; | |
17400 | PyObject * obj1 = 0 ; | |
17401 | char *kwnames[] = { | |
17402 | (char *) "self",(char *) "toolid", NULL | |
17403 | }; | |
17404 | ||
17405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
17406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17408 | arg2 = (int) SWIG_AsInt(obj1); | |
17409 | if (PyErr_Occurred()) SWIG_fail; | |
17410 | { | |
17411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17412 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
17413 | ||
17414 | wxPyEndAllowThreads(__tstate); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | } | |
17417 | { | |
17418 | resultobj = wxPyMake_wxObject(result); | |
17419 | } | |
17420 | return resultobj; | |
17421 | fail: | |
17422 | return NULL; | |
17423 | } | |
17424 | ||
17425 | ||
17426 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17427 | PyObject *resultobj; | |
17428 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17429 | bool result; | |
17430 | PyObject * obj0 = 0 ; | |
17431 | char *kwnames[] = { | |
17432 | (char *) "self", NULL | |
17433 | }; | |
17434 | ||
17435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
17436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17438 | { | |
17439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17440 | result = (bool)(arg1)->IsVertical(); | |
17441 | ||
17442 | wxPyEndAllowThreads(__tstate); | |
17443 | if (PyErr_Occurred()) SWIG_fail; | |
17444 | } | |
17445 | { | |
17446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17447 | } | |
17448 | return resultobj; | |
17449 | fail: | |
17450 | return NULL; | |
17451 | } | |
17452 | ||
17453 | ||
17454 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
17455 | PyObject *obj; | |
17456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17457 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
17458 | Py_INCREF(obj); | |
17459 | return Py_BuildValue((char *)""); | |
17460 | } | |
17461 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17462 | PyObject *resultobj; | |
17463 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17464 | int arg2 ; | |
17465 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17466 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17467 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17468 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17469 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17470 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
17471 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17472 | wxToolBar *result; | |
17473 | wxPoint temp3 ; | |
17474 | wxSize temp4 ; | |
17475 | bool temp6 = False ; | |
17476 | PyObject * obj0 = 0 ; | |
17477 | PyObject * obj1 = 0 ; | |
17478 | PyObject * obj2 = 0 ; | |
17479 | PyObject * obj3 = 0 ; | |
17480 | PyObject * obj4 = 0 ; | |
17481 | PyObject * obj5 = 0 ; | |
17482 | char *kwnames[] = { | |
17483 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17484 | }; | |
17485 | ||
17486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
17488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17489 | arg2 = (int) SWIG_AsInt(obj1); | |
17490 | if (PyErr_Occurred()) SWIG_fail; | |
17491 | if (obj2) { | |
17492 | { | |
17493 | arg3 = &temp3; | |
17494 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17495 | } | |
17496 | } | |
17497 | if (obj3) { | |
17498 | { | |
17499 | arg4 = &temp4; | |
17500 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17501 | } | |
17502 | } | |
17503 | if (obj4) { | |
17504 | arg5 = (long) SWIG_AsLong(obj4); | |
17505 | if (PyErr_Occurred()) SWIG_fail; | |
17506 | } | |
17507 | if (obj5) { | |
17508 | { | |
17509 | arg6 = wxString_in_helper(obj5); | |
17510 | if (arg6 == NULL) SWIG_fail; | |
17511 | temp6 = True; | |
17512 | } | |
17513 | } | |
17514 | { | |
17515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17516 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17517 | ||
17518 | wxPyEndAllowThreads(__tstate); | |
17519 | if (PyErr_Occurred()) SWIG_fail; | |
17520 | } | |
17521 | { | |
17522 | resultobj = wxPyMake_wxObject(result); | |
17523 | } | |
17524 | { | |
17525 | if (temp6) | |
17526 | delete arg6; | |
17527 | } | |
17528 | return resultobj; | |
17529 | fail: | |
17530 | { | |
17531 | if (temp6) | |
17532 | delete arg6; | |
17533 | } | |
17534 | return NULL; | |
17535 | } | |
17536 | ||
17537 | ||
17538 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17539 | PyObject *resultobj; | |
17540 | wxToolBar *result; | |
17541 | char *kwnames[] = { | |
17542 | NULL | |
17543 | }; | |
17544 | ||
17545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17546 | { | |
17547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17548 | result = (wxToolBar *)new wxToolBar(); | |
17549 | ||
17550 | wxPyEndAllowThreads(__tstate); | |
17551 | if (PyErr_Occurred()) SWIG_fail; | |
17552 | } | |
17553 | { | |
17554 | resultobj = wxPyMake_wxObject(result); | |
17555 | } | |
17556 | return resultobj; | |
17557 | fail: | |
17558 | return NULL; | |
17559 | } | |
17560 | ||
17561 | ||
17562 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17563 | PyObject *resultobj; | |
17564 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17565 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17566 | int arg3 ; | |
17567 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17568 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17569 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17570 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17571 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17572 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17573 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17574 | bool result; | |
17575 | wxPoint temp4 ; | |
17576 | wxSize temp5 ; | |
17577 | bool temp7 = False ; | |
17578 | PyObject * obj0 = 0 ; | |
17579 | PyObject * obj1 = 0 ; | |
17580 | PyObject * obj2 = 0 ; | |
17581 | PyObject * obj3 = 0 ; | |
17582 | PyObject * obj4 = 0 ; | |
17583 | PyObject * obj5 = 0 ; | |
17584 | PyObject * obj6 = 0 ; | |
17585 | char *kwnames[] = { | |
17586 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17587 | }; | |
17588 | ||
17589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, | |
17591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17592 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17594 | arg3 = (int) SWIG_AsInt(obj2); | |
17595 | if (PyErr_Occurred()) SWIG_fail; | |
17596 | if (obj3) { | |
17597 | { | |
17598 | arg4 = &temp4; | |
17599 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17600 | } | |
17601 | } | |
17602 | if (obj4) { | |
17603 | { | |
17604 | arg5 = &temp5; | |
17605 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17606 | } | |
17607 | } | |
17608 | if (obj5) { | |
17609 | arg6 = (long) SWIG_AsLong(obj5); | |
17610 | if (PyErr_Occurred()) SWIG_fail; | |
17611 | } | |
17612 | if (obj6) { | |
17613 | { | |
17614 | arg7 = wxString_in_helper(obj6); | |
17615 | if (arg7 == NULL) SWIG_fail; | |
17616 | temp7 = True; | |
17617 | } | |
17618 | } | |
17619 | { | |
17620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17621 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17622 | ||
17623 | wxPyEndAllowThreads(__tstate); | |
17624 | if (PyErr_Occurred()) SWIG_fail; | |
17625 | } | |
17626 | { | |
17627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17628 | } | |
17629 | { | |
17630 | if (temp7) | |
17631 | delete arg7; | |
17632 | } | |
17633 | return resultobj; | |
17634 | fail: | |
17635 | { | |
17636 | if (temp7) | |
17637 | delete arg7; | |
17638 | } | |
17639 | return NULL; | |
17640 | } | |
17641 | ||
17642 | ||
17643 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17644 | PyObject *resultobj; | |
17645 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17646 | int arg2 ; | |
17647 | int arg3 ; | |
17648 | wxToolBarToolBase *result; | |
17649 | PyObject * obj0 = 0 ; | |
17650 | PyObject * obj1 = 0 ; | |
17651 | PyObject * obj2 = 0 ; | |
17652 | char *kwnames[] = { | |
17653 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17654 | }; | |
17655 | ||
17656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, | |
17658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17659 | arg2 = (int) SWIG_AsInt(obj1); | |
17660 | if (PyErr_Occurred()) SWIG_fail; | |
17661 | arg3 = (int) SWIG_AsInt(obj2); | |
17662 | if (PyErr_Occurred()) SWIG_fail; | |
17663 | { | |
17664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17665 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17666 | ||
17667 | wxPyEndAllowThreads(__tstate); | |
17668 | if (PyErr_Occurred()) SWIG_fail; | |
17669 | } | |
17670 | { | |
17671 | resultobj = wxPyMake_wxObject(result); | |
17672 | } | |
17673 | return resultobj; | |
17674 | fail: | |
17675 | return NULL; | |
17676 | } | |
17677 | ||
17678 | ||
17679 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17680 | PyObject *obj; | |
17681 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17682 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17683 | Py_INCREF(obj); | |
17684 | return Py_BuildValue((char *)""); | |
17685 | } | |
17686 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { | |
17687 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
17688 | return 1; | |
17689 | } | |
17690 | ||
17691 | ||
17692 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17693 | PyObject *pyobj; | |
17694 | ||
17695 | { | |
17696 | #if wxUSE_UNICODE | |
17697 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17698 | #else | |
17699 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17700 | #endif | |
17701 | } | |
17702 | return pyobj; | |
17703 | } | |
17704 | ||
17705 | ||
17706 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17707 | PyObject *resultobj; | |
17708 | wxColour const &arg1_defvalue = wxNullColour ; | |
17709 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17710 | wxColour const &arg2_defvalue = wxNullColour ; | |
17711 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17712 | wxFont const &arg3_defvalue = wxNullFont ; | |
17713 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17714 | wxListItemAttr *result; | |
17715 | wxColour temp1 ; | |
17716 | wxColour temp2 ; | |
17717 | PyObject * obj0 = 0 ; | |
17718 | PyObject * obj1 = 0 ; | |
17719 | PyObject * obj2 = 0 ; | |
17720 | char *kwnames[] = { | |
17721 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17722 | }; | |
17723 | ||
17724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17725 | if (obj0) { | |
17726 | { | |
17727 | arg1 = &temp1; | |
17728 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17729 | } | |
17730 | } | |
17731 | if (obj1) { | |
17732 | { | |
17733 | arg2 = &temp2; | |
17734 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17735 | } | |
17736 | } | |
17737 | if (obj2) { | |
17738 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
17739 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17740 | SWIG_fail; | |
17741 | if (arg3 == NULL) { | |
17742 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17743 | SWIG_fail; | |
17744 | } | |
17745 | } | |
17746 | { | |
17747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17748 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17749 | ||
17750 | wxPyEndAllowThreads(__tstate); | |
17751 | if (PyErr_Occurred()) SWIG_fail; | |
17752 | } | |
17753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); | |
17754 | return resultobj; | |
17755 | fail: | |
17756 | return NULL; | |
17757 | } | |
17758 | ||
17759 | ||
17760 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17761 | PyObject *resultobj; | |
17762 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17763 | wxColour *arg2 = 0 ; | |
17764 | wxColour temp2 ; | |
17765 | PyObject * obj0 = 0 ; | |
17766 | PyObject * obj1 = 0 ; | |
17767 | char *kwnames[] = { | |
17768 | (char *) "self",(char *) "colText", NULL | |
17769 | }; | |
17770 | ||
17771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
17773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17774 | { | |
17775 | arg2 = &temp2; | |
17776 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17777 | } | |
17778 | { | |
17779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17780 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17781 | ||
17782 | wxPyEndAllowThreads(__tstate); | |
17783 | if (PyErr_Occurred()) SWIG_fail; | |
17784 | } | |
17785 | Py_INCREF(Py_None); resultobj = Py_None; | |
17786 | return resultobj; | |
17787 | fail: | |
17788 | return NULL; | |
17789 | } | |
17790 | ||
17791 | ||
17792 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17793 | PyObject *resultobj; | |
17794 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17795 | wxColour *arg2 = 0 ; | |
17796 | wxColour temp2 ; | |
17797 | PyObject * obj0 = 0 ; | |
17798 | PyObject * obj1 = 0 ; | |
17799 | char *kwnames[] = { | |
17800 | (char *) "self",(char *) "colBack", NULL | |
17801 | }; | |
17802 | ||
17803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
17805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17806 | { | |
17807 | arg2 = &temp2; | |
17808 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17809 | } | |
17810 | { | |
17811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17812 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17813 | ||
17814 | wxPyEndAllowThreads(__tstate); | |
17815 | if (PyErr_Occurred()) SWIG_fail; | |
17816 | } | |
17817 | Py_INCREF(Py_None); resultobj = Py_None; | |
17818 | return resultobj; | |
17819 | fail: | |
17820 | return NULL; | |
17821 | } | |
17822 | ||
17823 | ||
17824 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17825 | PyObject *resultobj; | |
17826 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17827 | wxFont *arg2 = 0 ; | |
17828 | PyObject * obj0 = 0 ; | |
17829 | PyObject * obj1 = 0 ; | |
17830 | char *kwnames[] = { | |
17831 | (char *) "self",(char *) "font", NULL | |
17832 | }; | |
17833 | ||
17834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
17836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17837 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17838 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17839 | SWIG_fail; | |
17840 | if (arg2 == NULL) { | |
17841 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17842 | SWIG_fail; | |
17843 | } | |
17844 | { | |
17845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17846 | (arg1)->SetFont((wxFont const &)*arg2); | |
17847 | ||
17848 | wxPyEndAllowThreads(__tstate); | |
17849 | if (PyErr_Occurred()) SWIG_fail; | |
17850 | } | |
17851 | Py_INCREF(Py_None); resultobj = Py_None; | |
17852 | return resultobj; | |
17853 | fail: | |
17854 | return NULL; | |
17855 | } | |
17856 | ||
17857 | ||
17858 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17859 | PyObject *resultobj; | |
17860 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17861 | bool result; | |
17862 | PyObject * obj0 = 0 ; | |
17863 | char *kwnames[] = { | |
17864 | (char *) "self", NULL | |
17865 | }; | |
17866 | ||
17867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
17868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
17869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17870 | { | |
17871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17872 | result = (bool)(arg1)->HasTextColour(); | |
17873 | ||
17874 | wxPyEndAllowThreads(__tstate); | |
17875 | if (PyErr_Occurred()) SWIG_fail; | |
17876 | } | |
17877 | { | |
17878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17879 | } | |
17880 | return resultobj; | |
17881 | fail: | |
17882 | return NULL; | |
17883 | } | |
17884 | ||
17885 | ||
17886 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17887 | PyObject *resultobj; | |
17888 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17889 | bool result; | |
17890 | PyObject * obj0 = 0 ; | |
17891 | char *kwnames[] = { | |
17892 | (char *) "self", NULL | |
17893 | }; | |
17894 | ||
17895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
17896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
17897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17898 | { | |
17899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17900 | result = (bool)(arg1)->HasBackgroundColour(); | |
17901 | ||
17902 | wxPyEndAllowThreads(__tstate); | |
17903 | if (PyErr_Occurred()) SWIG_fail; | |
17904 | } | |
17905 | { | |
17906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17907 | } | |
17908 | return resultobj; | |
17909 | fail: | |
17910 | return NULL; | |
17911 | } | |
17912 | ||
17913 | ||
17914 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17915 | PyObject *resultobj; | |
17916 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17917 | bool result; | |
17918 | PyObject * obj0 = 0 ; | |
17919 | char *kwnames[] = { | |
17920 | (char *) "self", NULL | |
17921 | }; | |
17922 | ||
17923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
17924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
17925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17926 | { | |
17927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17928 | result = (bool)(arg1)->HasFont(); | |
17929 | ||
17930 | wxPyEndAllowThreads(__tstate); | |
17931 | if (PyErr_Occurred()) SWIG_fail; | |
17932 | } | |
17933 | { | |
17934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17935 | } | |
17936 | return resultobj; | |
17937 | fail: | |
17938 | return NULL; | |
17939 | } | |
17940 | ||
17941 | ||
17942 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17943 | PyObject *resultobj; | |
17944 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17945 | wxColour result; | |
17946 | PyObject * obj0 = 0 ; | |
17947 | char *kwnames[] = { | |
17948 | (char *) "self", NULL | |
17949 | }; | |
17950 | ||
17951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
17952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
17953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17954 | { | |
17955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17956 | result = (arg1)->GetTextColour(); | |
17957 | ||
17958 | wxPyEndAllowThreads(__tstate); | |
17959 | if (PyErr_Occurred()) SWIG_fail; | |
17960 | } | |
17961 | { | |
17962 | wxColour * resultptr; | |
17963 | resultptr = new wxColour((wxColour &) result); | |
17964 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17965 | } | |
17966 | return resultobj; | |
17967 | fail: | |
17968 | return NULL; | |
17969 | } | |
17970 | ||
17971 | ||
17972 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17973 | PyObject *resultobj; | |
17974 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17975 | wxColour result; | |
17976 | PyObject * obj0 = 0 ; | |
17977 | char *kwnames[] = { | |
17978 | (char *) "self", NULL | |
17979 | }; | |
17980 | ||
17981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
17982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
17983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17984 | { | |
17985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17986 | result = (arg1)->GetBackgroundColour(); | |
17987 | ||
17988 | wxPyEndAllowThreads(__tstate); | |
17989 | if (PyErr_Occurred()) SWIG_fail; | |
17990 | } | |
17991 | { | |
17992 | wxColour * resultptr; | |
17993 | resultptr = new wxColour((wxColour &) result); | |
17994 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17995 | } | |
17996 | return resultobj; | |
17997 | fail: | |
17998 | return NULL; | |
17999 | } | |
18000 | ||
18001 | ||
18002 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18003 | PyObject *resultobj; | |
18004 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18005 | wxFont result; | |
18006 | PyObject * obj0 = 0 ; | |
18007 | char *kwnames[] = { | |
18008 | (char *) "self", NULL | |
18009 | }; | |
18010 | ||
18011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
18012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18014 | { | |
18015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18016 | result = (arg1)->GetFont(); | |
18017 | ||
18018 | wxPyEndAllowThreads(__tstate); | |
18019 | if (PyErr_Occurred()) SWIG_fail; | |
18020 | } | |
18021 | { | |
18022 | wxFont * resultptr; | |
18023 | resultptr = new wxFont((wxFont &) result); | |
18024 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
18025 | } | |
18026 | return resultobj; | |
18027 | fail: | |
18028 | return NULL; | |
18029 | } | |
18030 | ||
18031 | ||
18032 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18033 | PyObject *resultobj; | |
18034 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18035 | PyObject * obj0 = 0 ; | |
18036 | char *kwnames[] = { | |
18037 | (char *) "self", NULL | |
18038 | }; | |
18039 | ||
18040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
18041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18043 | { | |
18044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18045 | wxListItemAttr_Destroy(arg1); | |
18046 | ||
18047 | wxPyEndAllowThreads(__tstate); | |
18048 | if (PyErr_Occurred()) SWIG_fail; | |
18049 | } | |
18050 | Py_INCREF(Py_None); resultobj = Py_None; | |
18051 | return resultobj; | |
18052 | fail: | |
18053 | return NULL; | |
18054 | } | |
18055 | ||
18056 | ||
18057 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
18058 | PyObject *obj; | |
18059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18060 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
18061 | Py_INCREF(obj); | |
18062 | return Py_BuildValue((char *)""); | |
18063 | } | |
18064 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18065 | PyObject *resultobj; | |
18066 | wxListItem *result; | |
18067 | char *kwnames[] = { | |
18068 | NULL | |
18069 | }; | |
18070 | ||
18071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
18072 | { | |
18073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18074 | result = (wxListItem *)new wxListItem(); | |
18075 | ||
18076 | wxPyEndAllowThreads(__tstate); | |
18077 | if (PyErr_Occurred()) SWIG_fail; | |
18078 | } | |
18079 | { | |
18080 | resultobj = wxPyMake_wxObject(result); | |
18081 | } | |
18082 | return resultobj; | |
18083 | fail: | |
18084 | return NULL; | |
18085 | } | |
18086 | ||
18087 | ||
18088 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18089 | PyObject *resultobj; | |
18090 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18091 | PyObject * obj0 = 0 ; | |
18092 | char *kwnames[] = { | |
18093 | (char *) "self", NULL | |
18094 | }; | |
18095 | ||
18096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
18097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18099 | { | |
18100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18101 | delete arg1; | |
18102 | ||
18103 | wxPyEndAllowThreads(__tstate); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
18105 | } | |
18106 | Py_INCREF(Py_None); resultobj = Py_None; | |
18107 | return resultobj; | |
18108 | fail: | |
18109 | return NULL; | |
18110 | } | |
18111 | ||
18112 | ||
18113 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18114 | PyObject *resultobj; | |
18115 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18116 | PyObject * obj0 = 0 ; | |
18117 | char *kwnames[] = { | |
18118 | (char *) "self", NULL | |
18119 | }; | |
18120 | ||
18121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
18122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18124 | { | |
18125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18126 | (arg1)->Clear(); | |
18127 | ||
18128 | wxPyEndAllowThreads(__tstate); | |
18129 | if (PyErr_Occurred()) SWIG_fail; | |
18130 | } | |
18131 | Py_INCREF(Py_None); resultobj = Py_None; | |
18132 | return resultobj; | |
18133 | fail: | |
18134 | return NULL; | |
18135 | } | |
18136 | ||
18137 | ||
18138 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18139 | PyObject *resultobj; | |
18140 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18141 | PyObject * obj0 = 0 ; | |
18142 | char *kwnames[] = { | |
18143 | (char *) "self", NULL | |
18144 | }; | |
18145 | ||
18146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
18147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18149 | { | |
18150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18151 | (arg1)->ClearAttributes(); | |
18152 | ||
18153 | wxPyEndAllowThreads(__tstate); | |
18154 | if (PyErr_Occurred()) SWIG_fail; | |
18155 | } | |
18156 | Py_INCREF(Py_None); resultobj = Py_None; | |
18157 | return resultobj; | |
18158 | fail: | |
18159 | return NULL; | |
18160 | } | |
18161 | ||
18162 | ||
18163 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18164 | PyObject *resultobj; | |
18165 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18166 | long arg2 ; | |
18167 | PyObject * obj0 = 0 ; | |
18168 | PyObject * obj1 = 0 ; | |
18169 | char *kwnames[] = { | |
18170 | (char *) "self",(char *) "mask", NULL | |
18171 | }; | |
18172 | ||
18173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
18174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18176 | arg2 = (long) SWIG_AsLong(obj1); | |
18177 | if (PyErr_Occurred()) SWIG_fail; | |
18178 | { | |
18179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18180 | (arg1)->SetMask(arg2); | |
18181 | ||
18182 | wxPyEndAllowThreads(__tstate); | |
18183 | if (PyErr_Occurred()) SWIG_fail; | |
18184 | } | |
18185 | Py_INCREF(Py_None); resultobj = Py_None; | |
18186 | return resultobj; | |
18187 | fail: | |
18188 | return NULL; | |
18189 | } | |
18190 | ||
18191 | ||
18192 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18193 | PyObject *resultobj; | |
18194 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18195 | long arg2 ; | |
18196 | PyObject * obj0 = 0 ; | |
18197 | PyObject * obj1 = 0 ; | |
18198 | char *kwnames[] = { | |
18199 | (char *) "self",(char *) "id", NULL | |
18200 | }; | |
18201 | ||
18202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
18203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18205 | arg2 = (long) SWIG_AsLong(obj1); | |
18206 | if (PyErr_Occurred()) SWIG_fail; | |
18207 | { | |
18208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18209 | (arg1)->SetId(arg2); | |
18210 | ||
18211 | wxPyEndAllowThreads(__tstate); | |
18212 | if (PyErr_Occurred()) SWIG_fail; | |
18213 | } | |
18214 | Py_INCREF(Py_None); resultobj = Py_None; | |
18215 | return resultobj; | |
18216 | fail: | |
18217 | return NULL; | |
18218 | } | |
18219 | ||
18220 | ||
18221 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18222 | PyObject *resultobj; | |
18223 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18224 | int arg2 ; | |
18225 | PyObject * obj0 = 0 ; | |
18226 | PyObject * obj1 = 0 ; | |
18227 | char *kwnames[] = { | |
18228 | (char *) "self",(char *) "col", NULL | |
18229 | }; | |
18230 | ||
18231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
18232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18234 | arg2 = (int) SWIG_AsInt(obj1); | |
18235 | if (PyErr_Occurred()) SWIG_fail; | |
18236 | { | |
18237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18238 | (arg1)->SetColumn(arg2); | |
18239 | ||
18240 | wxPyEndAllowThreads(__tstate); | |
18241 | if (PyErr_Occurred()) SWIG_fail; | |
18242 | } | |
18243 | Py_INCREF(Py_None); resultobj = Py_None; | |
18244 | return resultobj; | |
18245 | fail: | |
18246 | return NULL; | |
18247 | } | |
18248 | ||
18249 | ||
18250 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18251 | PyObject *resultobj; | |
18252 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18253 | long arg2 ; | |
18254 | PyObject * obj0 = 0 ; | |
18255 | PyObject * obj1 = 0 ; | |
18256 | char *kwnames[] = { | |
18257 | (char *) "self",(char *) "state", NULL | |
18258 | }; | |
18259 | ||
18260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
18261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18263 | arg2 = (long) SWIG_AsLong(obj1); | |
18264 | if (PyErr_Occurred()) SWIG_fail; | |
18265 | { | |
18266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18267 | (arg1)->SetState(arg2); | |
18268 | ||
18269 | wxPyEndAllowThreads(__tstate); | |
18270 | if (PyErr_Occurred()) SWIG_fail; | |
18271 | } | |
18272 | Py_INCREF(Py_None); resultobj = Py_None; | |
18273 | return resultobj; | |
18274 | fail: | |
18275 | return NULL; | |
18276 | } | |
18277 | ||
18278 | ||
18279 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18280 | PyObject *resultobj; | |
18281 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18282 | long arg2 ; | |
18283 | PyObject * obj0 = 0 ; | |
18284 | PyObject * obj1 = 0 ; | |
18285 | char *kwnames[] = { | |
18286 | (char *) "self",(char *) "stateMask", NULL | |
18287 | }; | |
18288 | ||
18289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
18290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18292 | arg2 = (long) SWIG_AsLong(obj1); | |
18293 | if (PyErr_Occurred()) SWIG_fail; | |
18294 | { | |
18295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18296 | (arg1)->SetStateMask(arg2); | |
18297 | ||
18298 | wxPyEndAllowThreads(__tstate); | |
18299 | if (PyErr_Occurred()) SWIG_fail; | |
18300 | } | |
18301 | Py_INCREF(Py_None); resultobj = Py_None; | |
18302 | return resultobj; | |
18303 | fail: | |
18304 | return NULL; | |
18305 | } | |
18306 | ||
18307 | ||
18308 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18309 | PyObject *resultobj; | |
18310 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18311 | wxString *arg2 = 0 ; | |
18312 | bool temp2 = False ; | |
18313 | PyObject * obj0 = 0 ; | |
18314 | PyObject * obj1 = 0 ; | |
18315 | char *kwnames[] = { | |
18316 | (char *) "self",(char *) "text", NULL | |
18317 | }; | |
18318 | ||
18319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18322 | { | |
18323 | arg2 = wxString_in_helper(obj1); | |
18324 | if (arg2 == NULL) SWIG_fail; | |
18325 | temp2 = True; | |
18326 | } | |
18327 | { | |
18328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18329 | (arg1)->SetText((wxString const &)*arg2); | |
18330 | ||
18331 | wxPyEndAllowThreads(__tstate); | |
18332 | if (PyErr_Occurred()) SWIG_fail; | |
18333 | } | |
18334 | Py_INCREF(Py_None); resultobj = Py_None; | |
18335 | { | |
18336 | if (temp2) | |
18337 | delete arg2; | |
18338 | } | |
18339 | return resultobj; | |
18340 | fail: | |
18341 | { | |
18342 | if (temp2) | |
18343 | delete arg2; | |
18344 | } | |
18345 | return NULL; | |
18346 | } | |
18347 | ||
18348 | ||
18349 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18350 | PyObject *resultobj; | |
18351 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18352 | int arg2 ; | |
18353 | PyObject * obj0 = 0 ; | |
18354 | PyObject * obj1 = 0 ; | |
18355 | char *kwnames[] = { | |
18356 | (char *) "self",(char *) "image", NULL | |
18357 | }; | |
18358 | ||
18359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
18360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18362 | arg2 = (int) SWIG_AsInt(obj1); | |
18363 | if (PyErr_Occurred()) SWIG_fail; | |
18364 | { | |
18365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18366 | (arg1)->SetImage(arg2); | |
18367 | ||
18368 | wxPyEndAllowThreads(__tstate); | |
18369 | if (PyErr_Occurred()) SWIG_fail; | |
18370 | } | |
18371 | Py_INCREF(Py_None); resultobj = Py_None; | |
18372 | return resultobj; | |
18373 | fail: | |
18374 | return NULL; | |
18375 | } | |
18376 | ||
18377 | ||
18378 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18379 | PyObject *resultobj; | |
18380 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18381 | long arg2 ; | |
18382 | PyObject * obj0 = 0 ; | |
18383 | PyObject * obj1 = 0 ; | |
18384 | char *kwnames[] = { | |
18385 | (char *) "self",(char *) "data", NULL | |
18386 | }; | |
18387 | ||
18388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
18389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18391 | arg2 = (long) SWIG_AsLong(obj1); | |
18392 | if (PyErr_Occurred()) SWIG_fail; | |
18393 | { | |
18394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18395 | (arg1)->SetData(arg2); | |
18396 | ||
18397 | wxPyEndAllowThreads(__tstate); | |
18398 | if (PyErr_Occurred()) SWIG_fail; | |
18399 | } | |
18400 | Py_INCREF(Py_None); resultobj = Py_None; | |
18401 | return resultobj; | |
18402 | fail: | |
18403 | return NULL; | |
18404 | } | |
18405 | ||
18406 | ||
18407 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18408 | PyObject *resultobj; | |
18409 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18410 | int arg2 ; | |
18411 | PyObject * obj0 = 0 ; | |
18412 | PyObject * obj1 = 0 ; | |
18413 | char *kwnames[] = { | |
18414 | (char *) "self",(char *) "width", NULL | |
18415 | }; | |
18416 | ||
18417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
18418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18420 | arg2 = (int) SWIG_AsInt(obj1); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | { | |
18423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18424 | (arg1)->SetWidth(arg2); | |
18425 | ||
18426 | wxPyEndAllowThreads(__tstate); | |
18427 | if (PyErr_Occurred()) SWIG_fail; | |
18428 | } | |
18429 | Py_INCREF(Py_None); resultobj = Py_None; | |
18430 | return resultobj; | |
18431 | fail: | |
18432 | return NULL; | |
18433 | } | |
18434 | ||
18435 | ||
18436 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18437 | PyObject *resultobj; | |
18438 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18439 | int arg2 ; | |
18440 | PyObject * obj0 = 0 ; | |
18441 | PyObject * obj1 = 0 ; | |
18442 | char *kwnames[] = { | |
18443 | (char *) "self",(char *) "align", NULL | |
18444 | }; | |
18445 | ||
18446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
18447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18449 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
18450 | if (PyErr_Occurred()) SWIG_fail; | |
18451 | { | |
18452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18453 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
18454 | ||
18455 | wxPyEndAllowThreads(__tstate); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
18457 | } | |
18458 | Py_INCREF(Py_None); resultobj = Py_None; | |
18459 | return resultobj; | |
18460 | fail: | |
18461 | return NULL; | |
18462 | } | |
18463 | ||
18464 | ||
18465 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18466 | PyObject *resultobj; | |
18467 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18468 | wxColour *arg2 = 0 ; | |
18469 | wxColour temp2 ; | |
18470 | PyObject * obj0 = 0 ; | |
18471 | PyObject * obj1 = 0 ; | |
18472 | char *kwnames[] = { | |
18473 | (char *) "self",(char *) "colText", NULL | |
18474 | }; | |
18475 | ||
18476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18479 | { | |
18480 | arg2 = &temp2; | |
18481 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18482 | } | |
18483 | { | |
18484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18485 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18486 | ||
18487 | wxPyEndAllowThreads(__tstate); | |
18488 | if (PyErr_Occurred()) SWIG_fail; | |
18489 | } | |
18490 | Py_INCREF(Py_None); resultobj = Py_None; | |
18491 | return resultobj; | |
18492 | fail: | |
18493 | return NULL; | |
18494 | } | |
18495 | ||
18496 | ||
18497 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18498 | PyObject *resultobj; | |
18499 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18500 | wxColour *arg2 = 0 ; | |
18501 | wxColour temp2 ; | |
18502 | PyObject * obj0 = 0 ; | |
18503 | PyObject * obj1 = 0 ; | |
18504 | char *kwnames[] = { | |
18505 | (char *) "self",(char *) "colBack", NULL | |
18506 | }; | |
18507 | ||
18508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18511 | { | |
18512 | arg2 = &temp2; | |
18513 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18514 | } | |
18515 | { | |
18516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18517 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18518 | ||
18519 | wxPyEndAllowThreads(__tstate); | |
18520 | if (PyErr_Occurred()) SWIG_fail; | |
18521 | } | |
18522 | Py_INCREF(Py_None); resultobj = Py_None; | |
18523 | return resultobj; | |
18524 | fail: | |
18525 | return NULL; | |
18526 | } | |
18527 | ||
18528 | ||
18529 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18530 | PyObject *resultobj; | |
18531 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18532 | wxFont *arg2 = 0 ; | |
18533 | PyObject * obj0 = 0 ; | |
18534 | PyObject * obj1 = 0 ; | |
18535 | char *kwnames[] = { | |
18536 | (char *) "self",(char *) "font", NULL | |
18537 | }; | |
18538 | ||
18539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18542 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18543 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18544 | SWIG_fail; | |
18545 | if (arg2 == NULL) { | |
18546 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18547 | SWIG_fail; | |
18548 | } | |
18549 | { | |
18550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18551 | (arg1)->SetFont((wxFont const &)*arg2); | |
18552 | ||
18553 | wxPyEndAllowThreads(__tstate); | |
18554 | if (PyErr_Occurred()) SWIG_fail; | |
18555 | } | |
18556 | Py_INCREF(Py_None); resultobj = Py_None; | |
18557 | return resultobj; | |
18558 | fail: | |
18559 | return NULL; | |
18560 | } | |
18561 | ||
18562 | ||
18563 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18564 | PyObject *resultobj; | |
18565 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18566 | long result; | |
18567 | PyObject * obj0 = 0 ; | |
18568 | char *kwnames[] = { | |
18569 | (char *) "self", NULL | |
18570 | }; | |
18571 | ||
18572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
18573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18575 | { | |
18576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18577 | result = (long)(arg1)->GetMask(); | |
18578 | ||
18579 | wxPyEndAllowThreads(__tstate); | |
18580 | if (PyErr_Occurred()) SWIG_fail; | |
18581 | } | |
18582 | resultobj = SWIG_FromLong((long)result); | |
18583 | return resultobj; | |
18584 | fail: | |
18585 | return NULL; | |
18586 | } | |
18587 | ||
18588 | ||
18589 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18590 | PyObject *resultobj; | |
18591 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18592 | long result; | |
18593 | PyObject * obj0 = 0 ; | |
18594 | char *kwnames[] = { | |
18595 | (char *) "self", NULL | |
18596 | }; | |
18597 | ||
18598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
18599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18601 | { | |
18602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18603 | result = (long)(arg1)->GetId(); | |
18604 | ||
18605 | wxPyEndAllowThreads(__tstate); | |
18606 | if (PyErr_Occurred()) SWIG_fail; | |
18607 | } | |
18608 | resultobj = SWIG_FromLong((long)result); | |
18609 | return resultobj; | |
18610 | fail: | |
18611 | return NULL; | |
18612 | } | |
18613 | ||
18614 | ||
18615 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18616 | PyObject *resultobj; | |
18617 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18618 | int result; | |
18619 | PyObject * obj0 = 0 ; | |
18620 | char *kwnames[] = { | |
18621 | (char *) "self", NULL | |
18622 | }; | |
18623 | ||
18624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
18625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18627 | { | |
18628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18629 | result = (int)(arg1)->GetColumn(); | |
18630 | ||
18631 | wxPyEndAllowThreads(__tstate); | |
18632 | if (PyErr_Occurred()) SWIG_fail; | |
18633 | } | |
18634 | resultobj = SWIG_FromInt((int)result); | |
18635 | return resultobj; | |
18636 | fail: | |
18637 | return NULL; | |
18638 | } | |
18639 | ||
18640 | ||
18641 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18642 | PyObject *resultobj; | |
18643 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18644 | long result; | |
18645 | PyObject * obj0 = 0 ; | |
18646 | char *kwnames[] = { | |
18647 | (char *) "self", NULL | |
18648 | }; | |
18649 | ||
18650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
18651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18653 | { | |
18654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18655 | result = (long)(arg1)->GetState(); | |
18656 | ||
18657 | wxPyEndAllowThreads(__tstate); | |
18658 | if (PyErr_Occurred()) SWIG_fail; | |
18659 | } | |
18660 | resultobj = SWIG_FromLong((long)result); | |
18661 | return resultobj; | |
18662 | fail: | |
18663 | return NULL; | |
18664 | } | |
18665 | ||
18666 | ||
18667 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18668 | PyObject *resultobj; | |
18669 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18670 | wxString *result; | |
18671 | PyObject * obj0 = 0 ; | |
18672 | char *kwnames[] = { | |
18673 | (char *) "self", NULL | |
18674 | }; | |
18675 | ||
18676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
18677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18679 | { | |
18680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18681 | { | |
18682 | wxString const &_result_ref = (arg1)->GetText(); | |
18683 | result = (wxString *) &_result_ref; | |
18684 | } | |
18685 | ||
18686 | wxPyEndAllowThreads(__tstate); | |
18687 | if (PyErr_Occurred()) SWIG_fail; | |
18688 | } | |
18689 | { | |
18690 | #if wxUSE_UNICODE | |
18691 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18692 | #else | |
18693 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18694 | #endif | |
18695 | } | |
18696 | return resultobj; | |
18697 | fail: | |
18698 | return NULL; | |
18699 | } | |
18700 | ||
18701 | ||
18702 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18703 | PyObject *resultobj; | |
18704 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18705 | int result; | |
18706 | PyObject * obj0 = 0 ; | |
18707 | char *kwnames[] = { | |
18708 | (char *) "self", NULL | |
18709 | }; | |
18710 | ||
18711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
18712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18714 | { | |
18715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18716 | result = (int)(arg1)->GetImage(); | |
18717 | ||
18718 | wxPyEndAllowThreads(__tstate); | |
18719 | if (PyErr_Occurred()) SWIG_fail; | |
18720 | } | |
18721 | resultobj = SWIG_FromInt((int)result); | |
18722 | return resultobj; | |
18723 | fail: | |
18724 | return NULL; | |
18725 | } | |
18726 | ||
18727 | ||
18728 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18729 | PyObject *resultobj; | |
18730 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18731 | long result; | |
18732 | PyObject * obj0 = 0 ; | |
18733 | char *kwnames[] = { | |
18734 | (char *) "self", NULL | |
18735 | }; | |
18736 | ||
18737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
18738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18740 | { | |
18741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18742 | result = (long)(arg1)->GetData(); | |
18743 | ||
18744 | wxPyEndAllowThreads(__tstate); | |
18745 | if (PyErr_Occurred()) SWIG_fail; | |
18746 | } | |
18747 | resultobj = SWIG_FromLong((long)result); | |
18748 | return resultobj; | |
18749 | fail: | |
18750 | return NULL; | |
18751 | } | |
18752 | ||
18753 | ||
18754 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18755 | PyObject *resultobj; | |
18756 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18757 | int result; | |
18758 | PyObject * obj0 = 0 ; | |
18759 | char *kwnames[] = { | |
18760 | (char *) "self", NULL | |
18761 | }; | |
18762 | ||
18763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
18764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18766 | { | |
18767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18768 | result = (int)(arg1)->GetWidth(); | |
18769 | ||
18770 | wxPyEndAllowThreads(__tstate); | |
18771 | if (PyErr_Occurred()) SWIG_fail; | |
18772 | } | |
18773 | resultobj = SWIG_FromInt((int)result); | |
18774 | return resultobj; | |
18775 | fail: | |
18776 | return NULL; | |
18777 | } | |
18778 | ||
18779 | ||
18780 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18781 | PyObject *resultobj; | |
18782 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18783 | int result; | |
18784 | PyObject * obj0 = 0 ; | |
18785 | char *kwnames[] = { | |
18786 | (char *) "self", NULL | |
18787 | }; | |
18788 | ||
18789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
18790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18792 | { | |
18793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18794 | result = (int)(arg1)->GetAlign(); | |
18795 | ||
18796 | wxPyEndAllowThreads(__tstate); | |
18797 | if (PyErr_Occurred()) SWIG_fail; | |
18798 | } | |
18799 | resultobj = SWIG_FromInt((int)result); | |
18800 | return resultobj; | |
18801 | fail: | |
18802 | return NULL; | |
18803 | } | |
18804 | ||
18805 | ||
18806 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18807 | PyObject *resultobj; | |
18808 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18809 | wxListItemAttr *result; | |
18810 | PyObject * obj0 = 0 ; | |
18811 | char *kwnames[] = { | |
18812 | (char *) "self", NULL | |
18813 | }; | |
18814 | ||
18815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
18816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18818 | { | |
18819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18820 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18821 | ||
18822 | wxPyEndAllowThreads(__tstate); | |
18823 | if (PyErr_Occurred()) SWIG_fail; | |
18824 | } | |
18825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); | |
18826 | return resultobj; | |
18827 | fail: | |
18828 | return NULL; | |
18829 | } | |
18830 | ||
18831 | ||
18832 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18833 | PyObject *resultobj; | |
18834 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18835 | bool result; | |
18836 | PyObject * obj0 = 0 ; | |
18837 | char *kwnames[] = { | |
18838 | (char *) "self", NULL | |
18839 | }; | |
18840 | ||
18841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
18842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18844 | { | |
18845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18846 | result = (bool)(arg1)->HasAttributes(); | |
18847 | ||
18848 | wxPyEndAllowThreads(__tstate); | |
18849 | if (PyErr_Occurred()) SWIG_fail; | |
18850 | } | |
18851 | { | |
18852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18853 | } | |
18854 | return resultobj; | |
18855 | fail: | |
18856 | return NULL; | |
18857 | } | |
18858 | ||
18859 | ||
18860 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18861 | PyObject *resultobj; | |
18862 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18863 | wxColour result; | |
18864 | PyObject * obj0 = 0 ; | |
18865 | char *kwnames[] = { | |
18866 | (char *) "self", NULL | |
18867 | }; | |
18868 | ||
18869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
18870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18872 | { | |
18873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18874 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18875 | ||
18876 | wxPyEndAllowThreads(__tstate); | |
18877 | if (PyErr_Occurred()) SWIG_fail; | |
18878 | } | |
18879 | { | |
18880 | wxColour * resultptr; | |
18881 | resultptr = new wxColour((wxColour &) result); | |
18882 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18883 | } | |
18884 | return resultobj; | |
18885 | fail: | |
18886 | return NULL; | |
18887 | } | |
18888 | ||
18889 | ||
18890 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18891 | PyObject *resultobj; | |
18892 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18893 | wxColour result; | |
18894 | PyObject * obj0 = 0 ; | |
18895 | char *kwnames[] = { | |
18896 | (char *) "self", NULL | |
18897 | }; | |
18898 | ||
18899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18902 | { | |
18903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18904 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
18905 | ||
18906 | wxPyEndAllowThreads(__tstate); | |
18907 | if (PyErr_Occurred()) SWIG_fail; | |
18908 | } | |
18909 | { | |
18910 | wxColour * resultptr; | |
18911 | resultptr = new wxColour((wxColour &) result); | |
18912 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18913 | } | |
18914 | return resultobj; | |
18915 | fail: | |
18916 | return NULL; | |
18917 | } | |
18918 | ||
18919 | ||
18920 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18921 | PyObject *resultobj; | |
18922 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18923 | wxFont result; | |
18924 | PyObject * obj0 = 0 ; | |
18925 | char *kwnames[] = { | |
18926 | (char *) "self", NULL | |
18927 | }; | |
18928 | ||
18929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
18930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18932 | { | |
18933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18934 | result = ((wxListItem const *)arg1)->GetFont(); | |
18935 | ||
18936 | wxPyEndAllowThreads(__tstate); | |
18937 | if (PyErr_Occurred()) SWIG_fail; | |
18938 | } | |
18939 | { | |
18940 | wxFont * resultptr; | |
18941 | resultptr = new wxFont((wxFont &) result); | |
18942 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
18943 | } | |
18944 | return resultobj; | |
18945 | fail: | |
18946 | return NULL; | |
18947 | } | |
18948 | ||
18949 | ||
18950 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18951 | PyObject *resultobj; | |
18952 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18953 | long arg2 ; | |
18954 | PyObject * obj0 = 0 ; | |
18955 | PyObject * obj1 = 0 ; | |
18956 | char *kwnames[] = { | |
18957 | (char *) "self",(char *) "m_mask", NULL | |
18958 | }; | |
18959 | ||
18960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
18961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18963 | arg2 = (long) SWIG_AsLong(obj1); | |
18964 | if (PyErr_Occurred()) SWIG_fail; | |
18965 | if (arg1) (arg1)->m_mask = arg2; | |
18966 | ||
18967 | Py_INCREF(Py_None); resultobj = Py_None; | |
18968 | return resultobj; | |
18969 | fail: | |
18970 | return NULL; | |
18971 | } | |
18972 | ||
18973 | ||
18974 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18975 | PyObject *resultobj; | |
18976 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18977 | long result; | |
18978 | PyObject * obj0 = 0 ; | |
18979 | char *kwnames[] = { | |
18980 | (char *) "self", NULL | |
18981 | }; | |
18982 | ||
18983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
18984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18986 | result = (long) ((arg1)->m_mask); | |
18987 | ||
18988 | resultobj = SWIG_FromLong((long)result); | |
18989 | return resultobj; | |
18990 | fail: | |
18991 | return NULL; | |
18992 | } | |
18993 | ||
18994 | ||
18995 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18996 | PyObject *resultobj; | |
18997 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18998 | long arg2 ; | |
18999 | PyObject * obj0 = 0 ; | |
19000 | PyObject * obj1 = 0 ; | |
19001 | char *kwnames[] = { | |
19002 | (char *) "self",(char *) "m_itemId", NULL | |
19003 | }; | |
19004 | ||
19005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
19006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19008 | arg2 = (long) SWIG_AsLong(obj1); | |
19009 | if (PyErr_Occurred()) SWIG_fail; | |
19010 | if (arg1) (arg1)->m_itemId = arg2; | |
19011 | ||
19012 | Py_INCREF(Py_None); resultobj = Py_None; | |
19013 | return resultobj; | |
19014 | fail: | |
19015 | return NULL; | |
19016 | } | |
19017 | ||
19018 | ||
19019 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19020 | PyObject *resultobj; | |
19021 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19022 | long result; | |
19023 | PyObject * obj0 = 0 ; | |
19024 | char *kwnames[] = { | |
19025 | (char *) "self", NULL | |
19026 | }; | |
19027 | ||
19028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
19029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19031 | result = (long) ((arg1)->m_itemId); | |
19032 | ||
19033 | resultobj = SWIG_FromLong((long)result); | |
19034 | return resultobj; | |
19035 | fail: | |
19036 | return NULL; | |
19037 | } | |
19038 | ||
19039 | ||
19040 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19041 | PyObject *resultobj; | |
19042 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19043 | int arg2 ; | |
19044 | PyObject * obj0 = 0 ; | |
19045 | PyObject * obj1 = 0 ; | |
19046 | char *kwnames[] = { | |
19047 | (char *) "self",(char *) "m_col", NULL | |
19048 | }; | |
19049 | ||
19050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
19051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19053 | arg2 = (int) SWIG_AsInt(obj1); | |
19054 | if (PyErr_Occurred()) SWIG_fail; | |
19055 | if (arg1) (arg1)->m_col = arg2; | |
19056 | ||
19057 | Py_INCREF(Py_None); resultobj = Py_None; | |
19058 | return resultobj; | |
19059 | fail: | |
19060 | return NULL; | |
19061 | } | |
19062 | ||
19063 | ||
19064 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19065 | PyObject *resultobj; | |
19066 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19067 | int result; | |
19068 | PyObject * obj0 = 0 ; | |
19069 | char *kwnames[] = { | |
19070 | (char *) "self", NULL | |
19071 | }; | |
19072 | ||
19073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
19074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19076 | result = (int) ((arg1)->m_col); | |
19077 | ||
19078 | resultobj = SWIG_FromInt((int)result); | |
19079 | return resultobj; | |
19080 | fail: | |
19081 | return NULL; | |
19082 | } | |
19083 | ||
19084 | ||
19085 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19086 | PyObject *resultobj; | |
19087 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19088 | long arg2 ; | |
19089 | PyObject * obj0 = 0 ; | |
19090 | PyObject * obj1 = 0 ; | |
19091 | char *kwnames[] = { | |
19092 | (char *) "self",(char *) "m_state", NULL | |
19093 | }; | |
19094 | ||
19095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
19096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19098 | arg2 = (long) SWIG_AsLong(obj1); | |
19099 | if (PyErr_Occurred()) SWIG_fail; | |
19100 | if (arg1) (arg1)->m_state = arg2; | |
19101 | ||
19102 | Py_INCREF(Py_None); resultobj = Py_None; | |
19103 | return resultobj; | |
19104 | fail: | |
19105 | return NULL; | |
19106 | } | |
19107 | ||
19108 | ||
19109 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19110 | PyObject *resultobj; | |
19111 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19112 | long result; | |
19113 | PyObject * obj0 = 0 ; | |
19114 | char *kwnames[] = { | |
19115 | (char *) "self", NULL | |
19116 | }; | |
19117 | ||
19118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
19119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19121 | result = (long) ((arg1)->m_state); | |
19122 | ||
19123 | resultobj = SWIG_FromLong((long)result); | |
19124 | return resultobj; | |
19125 | fail: | |
19126 | return NULL; | |
19127 | } | |
19128 | ||
19129 | ||
19130 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19131 | PyObject *resultobj; | |
19132 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19133 | long arg2 ; | |
19134 | PyObject * obj0 = 0 ; | |
19135 | PyObject * obj1 = 0 ; | |
19136 | char *kwnames[] = { | |
19137 | (char *) "self",(char *) "m_stateMask", NULL | |
19138 | }; | |
19139 | ||
19140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
19141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19143 | arg2 = (long) SWIG_AsLong(obj1); | |
19144 | if (PyErr_Occurred()) SWIG_fail; | |
19145 | if (arg1) (arg1)->m_stateMask = arg2; | |
19146 | ||
19147 | Py_INCREF(Py_None); resultobj = Py_None; | |
19148 | return resultobj; | |
19149 | fail: | |
19150 | return NULL; | |
19151 | } | |
19152 | ||
19153 | ||
19154 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19155 | PyObject *resultobj; | |
19156 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19157 | long result; | |
19158 | PyObject * obj0 = 0 ; | |
19159 | char *kwnames[] = { | |
19160 | (char *) "self", NULL | |
19161 | }; | |
19162 | ||
19163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
19164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19166 | result = (long) ((arg1)->m_stateMask); | |
19167 | ||
19168 | resultobj = SWIG_FromLong((long)result); | |
19169 | return resultobj; | |
19170 | fail: | |
19171 | return NULL; | |
19172 | } | |
19173 | ||
19174 | ||
19175 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19176 | PyObject *resultobj; | |
19177 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19178 | wxString *arg2 = (wxString *) 0 ; | |
19179 | bool temp2 = False ; | |
19180 | PyObject * obj0 = 0 ; | |
19181 | PyObject * obj1 = 0 ; | |
19182 | char *kwnames[] = { | |
19183 | (char *) "self",(char *) "m_text", NULL | |
19184 | }; | |
19185 | ||
19186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
19187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19189 | { | |
19190 | arg2 = wxString_in_helper(obj1); | |
19191 | if (arg2 == NULL) SWIG_fail; | |
19192 | temp2 = True; | |
19193 | } | |
19194 | if (arg1) (arg1)->m_text = *arg2; | |
19195 | ||
19196 | Py_INCREF(Py_None); resultobj = Py_None; | |
19197 | { | |
19198 | if (temp2) | |
19199 | delete arg2; | |
19200 | } | |
19201 | return resultobj; | |
19202 | fail: | |
19203 | { | |
19204 | if (temp2) | |
19205 | delete arg2; | |
19206 | } | |
19207 | return NULL; | |
19208 | } | |
19209 | ||
19210 | ||
19211 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19212 | PyObject *resultobj; | |
19213 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19214 | wxString *result; | |
19215 | PyObject * obj0 = 0 ; | |
19216 | char *kwnames[] = { | |
19217 | (char *) "self", NULL | |
19218 | }; | |
19219 | ||
19220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
19221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19223 | result = (wxString *)& ((arg1)->m_text); | |
19224 | ||
19225 | { | |
19226 | #if wxUSE_UNICODE | |
19227 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19228 | #else | |
19229 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19230 | #endif | |
19231 | } | |
19232 | return resultobj; | |
19233 | fail: | |
19234 | return NULL; | |
19235 | } | |
19236 | ||
19237 | ||
19238 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19239 | PyObject *resultobj; | |
19240 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19241 | int arg2 ; | |
19242 | PyObject * obj0 = 0 ; | |
19243 | PyObject * obj1 = 0 ; | |
19244 | char *kwnames[] = { | |
19245 | (char *) "self",(char *) "m_image", NULL | |
19246 | }; | |
19247 | ||
19248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
19249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19251 | arg2 = (int) SWIG_AsInt(obj1); | |
19252 | if (PyErr_Occurred()) SWIG_fail; | |
19253 | if (arg1) (arg1)->m_image = arg2; | |
19254 | ||
19255 | Py_INCREF(Py_None); resultobj = Py_None; | |
19256 | return resultobj; | |
19257 | fail: | |
19258 | return NULL; | |
19259 | } | |
19260 | ||
19261 | ||
19262 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19263 | PyObject *resultobj; | |
19264 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19265 | int result; | |
19266 | PyObject * obj0 = 0 ; | |
19267 | char *kwnames[] = { | |
19268 | (char *) "self", NULL | |
19269 | }; | |
19270 | ||
19271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
19272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19274 | result = (int) ((arg1)->m_image); | |
19275 | ||
19276 | resultobj = SWIG_FromInt((int)result); | |
19277 | return resultobj; | |
19278 | fail: | |
19279 | return NULL; | |
19280 | } | |
19281 | ||
19282 | ||
19283 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19284 | PyObject *resultobj; | |
19285 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19286 | long arg2 ; | |
19287 | PyObject * obj0 = 0 ; | |
19288 | PyObject * obj1 = 0 ; | |
19289 | char *kwnames[] = { | |
19290 | (char *) "self",(char *) "m_data", NULL | |
19291 | }; | |
19292 | ||
19293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
19294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19296 | arg2 = (long) SWIG_AsLong(obj1); | |
19297 | if (PyErr_Occurred()) SWIG_fail; | |
19298 | if (arg1) (arg1)->m_data = arg2; | |
19299 | ||
19300 | Py_INCREF(Py_None); resultobj = Py_None; | |
19301 | return resultobj; | |
19302 | fail: | |
19303 | return NULL; | |
19304 | } | |
19305 | ||
19306 | ||
19307 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19308 | PyObject *resultobj; | |
19309 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19310 | long result; | |
19311 | PyObject * obj0 = 0 ; | |
19312 | char *kwnames[] = { | |
19313 | (char *) "self", NULL | |
19314 | }; | |
19315 | ||
19316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
19317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19319 | result = (long) ((arg1)->m_data); | |
19320 | ||
19321 | resultobj = SWIG_FromLong((long)result); | |
19322 | return resultobj; | |
19323 | fail: | |
19324 | return NULL; | |
19325 | } | |
19326 | ||
19327 | ||
19328 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19329 | PyObject *resultobj; | |
19330 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19331 | int arg2 ; | |
19332 | PyObject * obj0 = 0 ; | |
19333 | PyObject * obj1 = 0 ; | |
19334 | char *kwnames[] = { | |
19335 | (char *) "self",(char *) "m_format", NULL | |
19336 | }; | |
19337 | ||
19338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
19339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19341 | arg2 = (int) SWIG_AsInt(obj1); | |
19342 | if (PyErr_Occurred()) SWIG_fail; | |
19343 | if (arg1) (arg1)->m_format = arg2; | |
19344 | ||
19345 | Py_INCREF(Py_None); resultobj = Py_None; | |
19346 | return resultobj; | |
19347 | fail: | |
19348 | return NULL; | |
19349 | } | |
19350 | ||
19351 | ||
19352 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19353 | PyObject *resultobj; | |
19354 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19355 | int result; | |
19356 | PyObject * obj0 = 0 ; | |
19357 | char *kwnames[] = { | |
19358 | (char *) "self", NULL | |
19359 | }; | |
19360 | ||
19361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
19362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19364 | result = (int) ((arg1)->m_format); | |
19365 | ||
19366 | resultobj = SWIG_FromInt((int)result); | |
19367 | return resultobj; | |
19368 | fail: | |
19369 | return NULL; | |
19370 | } | |
19371 | ||
19372 | ||
19373 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19374 | PyObject *resultobj; | |
19375 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19376 | int arg2 ; | |
19377 | PyObject * obj0 = 0 ; | |
19378 | PyObject * obj1 = 0 ; | |
19379 | char *kwnames[] = { | |
19380 | (char *) "self",(char *) "m_width", NULL | |
19381 | }; | |
19382 | ||
19383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
19384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19386 | arg2 = (int) SWIG_AsInt(obj1); | |
19387 | if (PyErr_Occurred()) SWIG_fail; | |
19388 | if (arg1) (arg1)->m_width = arg2; | |
19389 | ||
19390 | Py_INCREF(Py_None); resultobj = Py_None; | |
19391 | return resultobj; | |
19392 | fail: | |
19393 | return NULL; | |
19394 | } | |
19395 | ||
19396 | ||
19397 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19398 | PyObject *resultobj; | |
19399 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19400 | int result; | |
19401 | PyObject * obj0 = 0 ; | |
19402 | char *kwnames[] = { | |
19403 | (char *) "self", NULL | |
19404 | }; | |
19405 | ||
19406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
19407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19409 | result = (int) ((arg1)->m_width); | |
19410 | ||
19411 | resultobj = SWIG_FromInt((int)result); | |
19412 | return resultobj; | |
19413 | fail: | |
19414 | return NULL; | |
19415 | } | |
19416 | ||
19417 | ||
19418 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
19419 | PyObject *obj; | |
19420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19421 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
19422 | Py_INCREF(obj); | |
19423 | return Py_BuildValue((char *)""); | |
19424 | } | |
19425 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19426 | PyObject *resultobj; | |
19427 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19428 | int arg2 = (int) 0 ; | |
19429 | wxListEvent *result; | |
19430 | PyObject * obj0 = 0 ; | |
19431 | PyObject * obj1 = 0 ; | |
19432 | char *kwnames[] = { | |
19433 | (char *) "commandType",(char *) "id", NULL | |
19434 | }; | |
19435 | ||
19436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
19437 | if (obj0) { | |
19438 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
19439 | if (PyErr_Occurred()) SWIG_fail; | |
19440 | } | |
19441 | if (obj1) { | |
19442 | arg2 = (int) SWIG_AsInt(obj1); | |
19443 | if (PyErr_Occurred()) SWIG_fail; | |
19444 | } | |
19445 | { | |
19446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19447 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
19448 | ||
19449 | wxPyEndAllowThreads(__tstate); | |
19450 | if (PyErr_Occurred()) SWIG_fail; | |
19451 | } | |
19452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); | |
19453 | return resultobj; | |
19454 | fail: | |
19455 | return NULL; | |
19456 | } | |
19457 | ||
19458 | ||
19459 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19460 | PyObject *resultobj; | |
19461 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19462 | int arg2 ; | |
19463 | PyObject * obj0 = 0 ; | |
19464 | PyObject * obj1 = 0 ; | |
19465 | char *kwnames[] = { | |
19466 | (char *) "self",(char *) "m_code", NULL | |
19467 | }; | |
19468 | ||
19469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
19470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19472 | arg2 = (int) SWIG_AsInt(obj1); | |
19473 | if (PyErr_Occurred()) SWIG_fail; | |
19474 | if (arg1) (arg1)->m_code = arg2; | |
19475 | ||
19476 | Py_INCREF(Py_None); resultobj = Py_None; | |
19477 | return resultobj; | |
19478 | fail: | |
19479 | return NULL; | |
19480 | } | |
19481 | ||
19482 | ||
19483 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19484 | PyObject *resultobj; | |
19485 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19486 | int result; | |
19487 | PyObject * obj0 = 0 ; | |
19488 | char *kwnames[] = { | |
19489 | (char *) "self", NULL | |
19490 | }; | |
19491 | ||
19492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
19493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19495 | result = (int) ((arg1)->m_code); | |
19496 | ||
19497 | resultobj = SWIG_FromInt((int)result); | |
19498 | return resultobj; | |
19499 | fail: | |
19500 | return NULL; | |
19501 | } | |
19502 | ||
19503 | ||
19504 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19505 | PyObject *resultobj; | |
19506 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19507 | long arg2 ; | |
19508 | PyObject * obj0 = 0 ; | |
19509 | PyObject * obj1 = 0 ; | |
19510 | char *kwnames[] = { | |
19511 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
19512 | }; | |
19513 | ||
19514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
19515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19517 | arg2 = (long) SWIG_AsLong(obj1); | |
19518 | if (PyErr_Occurred()) SWIG_fail; | |
19519 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
19520 | ||
19521 | Py_INCREF(Py_None); resultobj = Py_None; | |
19522 | return resultobj; | |
19523 | fail: | |
19524 | return NULL; | |
19525 | } | |
19526 | ||
19527 | ||
19528 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19529 | PyObject *resultobj; | |
19530 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19531 | long result; | |
19532 | PyObject * obj0 = 0 ; | |
19533 | char *kwnames[] = { | |
19534 | (char *) "self", NULL | |
19535 | }; | |
19536 | ||
19537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
19538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19540 | result = (long) ((arg1)->m_oldItemIndex); | |
19541 | ||
19542 | resultobj = SWIG_FromLong((long)result); | |
19543 | return resultobj; | |
19544 | fail: | |
19545 | return NULL; | |
19546 | } | |
19547 | ||
19548 | ||
19549 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19550 | PyObject *resultobj; | |
19551 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19552 | long arg2 ; | |
19553 | PyObject * obj0 = 0 ; | |
19554 | PyObject * obj1 = 0 ; | |
19555 | char *kwnames[] = { | |
19556 | (char *) "self",(char *) "m_itemIndex", NULL | |
19557 | }; | |
19558 | ||
19559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
19560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19562 | arg2 = (long) SWIG_AsLong(obj1); | |
19563 | if (PyErr_Occurred()) SWIG_fail; | |
19564 | if (arg1) (arg1)->m_itemIndex = arg2; | |
19565 | ||
19566 | Py_INCREF(Py_None); resultobj = Py_None; | |
19567 | return resultobj; | |
19568 | fail: | |
19569 | return NULL; | |
19570 | } | |
19571 | ||
19572 | ||
19573 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19574 | PyObject *resultobj; | |
19575 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19576 | long result; | |
19577 | PyObject * obj0 = 0 ; | |
19578 | char *kwnames[] = { | |
19579 | (char *) "self", NULL | |
19580 | }; | |
19581 | ||
19582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
19583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19585 | result = (long) ((arg1)->m_itemIndex); | |
19586 | ||
19587 | resultobj = SWIG_FromLong((long)result); | |
19588 | return resultobj; | |
19589 | fail: | |
19590 | return NULL; | |
19591 | } | |
19592 | ||
19593 | ||
19594 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19595 | PyObject *resultobj; | |
19596 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19597 | int arg2 ; | |
19598 | PyObject * obj0 = 0 ; | |
19599 | PyObject * obj1 = 0 ; | |
19600 | char *kwnames[] = { | |
19601 | (char *) "self",(char *) "m_col", NULL | |
19602 | }; | |
19603 | ||
19604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
19605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19607 | arg2 = (int) SWIG_AsInt(obj1); | |
19608 | if (PyErr_Occurred()) SWIG_fail; | |
19609 | if (arg1) (arg1)->m_col = arg2; | |
19610 | ||
19611 | Py_INCREF(Py_None); resultobj = Py_None; | |
19612 | return resultobj; | |
19613 | fail: | |
19614 | return NULL; | |
19615 | } | |
19616 | ||
19617 | ||
19618 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19619 | PyObject *resultobj; | |
19620 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19621 | int result; | |
19622 | PyObject * obj0 = 0 ; | |
19623 | char *kwnames[] = { | |
19624 | (char *) "self", NULL | |
19625 | }; | |
19626 | ||
19627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
19628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19630 | result = (int) ((arg1)->m_col); | |
19631 | ||
19632 | resultobj = SWIG_FromInt((int)result); | |
19633 | return resultobj; | |
19634 | fail: | |
19635 | return NULL; | |
19636 | } | |
19637 | ||
19638 | ||
19639 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19640 | PyObject *resultobj; | |
19641 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19642 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19643 | PyObject * obj0 = 0 ; | |
19644 | PyObject * obj1 = 0 ; | |
19645 | char *kwnames[] = { | |
19646 | (char *) "self",(char *) "m_pointDrag", NULL | |
19647 | }; | |
19648 | ||
19649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
19650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19652 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
19653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19654 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
19655 | ||
19656 | Py_INCREF(Py_None); resultobj = Py_None; | |
19657 | return resultobj; | |
19658 | fail: | |
19659 | return NULL; | |
19660 | } | |
19661 | ||
19662 | ||
19663 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19664 | PyObject *resultobj; | |
19665 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19666 | wxPoint *result; | |
19667 | PyObject * obj0 = 0 ; | |
19668 | char *kwnames[] = { | |
19669 | (char *) "self", NULL | |
19670 | }; | |
19671 | ||
19672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
19673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19675 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
19676 | ||
19677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
19678 | return resultobj; | |
19679 | fail: | |
19680 | return NULL; | |
19681 | } | |
19682 | ||
19683 | ||
19684 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19685 | PyObject *resultobj; | |
19686 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19687 | wxListItem *result; | |
19688 | PyObject * obj0 = 0 ; | |
19689 | char *kwnames[] = { | |
19690 | (char *) "self", NULL | |
19691 | }; | |
19692 | ||
19693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
19694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19696 | result = (wxListItem *)& ((arg1)->m_item); | |
19697 | ||
19698 | { | |
19699 | resultobj = wxPyMake_wxObject(result); | |
19700 | } | |
19701 | return resultobj; | |
19702 | fail: | |
19703 | return NULL; | |
19704 | } | |
19705 | ||
19706 | ||
19707 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19708 | PyObject *resultobj; | |
19709 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19710 | int result; | |
19711 | PyObject * obj0 = 0 ; | |
19712 | char *kwnames[] = { | |
19713 | (char *) "self", NULL | |
19714 | }; | |
19715 | ||
19716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
19717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19719 | { | |
19720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19721 | result = (int)(arg1)->GetKeyCode(); | |
19722 | ||
19723 | wxPyEndAllowThreads(__tstate); | |
19724 | if (PyErr_Occurred()) SWIG_fail; | |
19725 | } | |
19726 | resultobj = SWIG_FromInt((int)result); | |
19727 | return resultobj; | |
19728 | fail: | |
19729 | return NULL; | |
19730 | } | |
19731 | ||
19732 | ||
19733 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19734 | PyObject *resultobj; | |
19735 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19736 | long result; | |
19737 | PyObject * obj0 = 0 ; | |
19738 | char *kwnames[] = { | |
19739 | (char *) "self", NULL | |
19740 | }; | |
19741 | ||
19742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
19743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19745 | { | |
19746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19747 | result = (long)(arg1)->GetIndex(); | |
19748 | ||
19749 | wxPyEndAllowThreads(__tstate); | |
19750 | if (PyErr_Occurred()) SWIG_fail; | |
19751 | } | |
19752 | resultobj = SWIG_FromLong((long)result); | |
19753 | return resultobj; | |
19754 | fail: | |
19755 | return NULL; | |
19756 | } | |
19757 | ||
19758 | ||
19759 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19760 | PyObject *resultobj; | |
19761 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19762 | int result; | |
19763 | PyObject * obj0 = 0 ; | |
19764 | char *kwnames[] = { | |
19765 | (char *) "self", NULL | |
19766 | }; | |
19767 | ||
19768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
19769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19771 | { | |
19772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19773 | result = (int)(arg1)->GetColumn(); | |
19774 | ||
19775 | wxPyEndAllowThreads(__tstate); | |
19776 | if (PyErr_Occurred()) SWIG_fail; | |
19777 | } | |
19778 | resultobj = SWIG_FromInt((int)result); | |
19779 | return resultobj; | |
19780 | fail: | |
19781 | return NULL; | |
19782 | } | |
19783 | ||
19784 | ||
19785 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19786 | PyObject *resultobj; | |
19787 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19788 | wxPoint result; | |
19789 | PyObject * obj0 = 0 ; | |
19790 | char *kwnames[] = { | |
19791 | (char *) "self", NULL | |
19792 | }; | |
19793 | ||
19794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
19795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19797 | { | |
19798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19799 | result = (arg1)->GetPoint(); | |
19800 | ||
19801 | wxPyEndAllowThreads(__tstate); | |
19802 | if (PyErr_Occurred()) SWIG_fail; | |
19803 | } | |
19804 | { | |
19805 | wxPoint * resultptr; | |
19806 | resultptr = new wxPoint((wxPoint &) result); | |
19807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19808 | } | |
19809 | return resultobj; | |
19810 | fail: | |
19811 | return NULL; | |
19812 | } | |
19813 | ||
19814 | ||
19815 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19816 | PyObject *resultobj; | |
19817 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19818 | wxString *result; | |
19819 | PyObject * obj0 = 0 ; | |
19820 | char *kwnames[] = { | |
19821 | (char *) "self", NULL | |
19822 | }; | |
19823 | ||
19824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
19825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19827 | { | |
19828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19829 | { | |
19830 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19831 | result = (wxString *) &_result_ref; | |
19832 | } | |
19833 | ||
19834 | wxPyEndAllowThreads(__tstate); | |
19835 | if (PyErr_Occurred()) SWIG_fail; | |
19836 | } | |
19837 | { | |
19838 | #if wxUSE_UNICODE | |
19839 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19840 | #else | |
19841 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19842 | #endif | |
19843 | } | |
19844 | return resultobj; | |
19845 | fail: | |
19846 | return NULL; | |
19847 | } | |
19848 | ||
19849 | ||
19850 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19851 | PyObject *resultobj; | |
19852 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19853 | wxString *result; | |
19854 | PyObject * obj0 = 0 ; | |
19855 | char *kwnames[] = { | |
19856 | (char *) "self", NULL | |
19857 | }; | |
19858 | ||
19859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
19860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19862 | { | |
19863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19864 | { | |
19865 | wxString const &_result_ref = (arg1)->GetText(); | |
19866 | result = (wxString *) &_result_ref; | |
19867 | } | |
19868 | ||
19869 | wxPyEndAllowThreads(__tstate); | |
19870 | if (PyErr_Occurred()) SWIG_fail; | |
19871 | } | |
19872 | { | |
19873 | #if wxUSE_UNICODE | |
19874 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19875 | #else | |
19876 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19877 | #endif | |
19878 | } | |
19879 | return resultobj; | |
19880 | fail: | |
19881 | return NULL; | |
19882 | } | |
19883 | ||
19884 | ||
19885 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19886 | PyObject *resultobj; | |
19887 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19888 | int result; | |
19889 | PyObject * obj0 = 0 ; | |
19890 | char *kwnames[] = { | |
19891 | (char *) "self", NULL | |
19892 | }; | |
19893 | ||
19894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
19895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19897 | { | |
19898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19899 | result = (int)(arg1)->GetImage(); | |
19900 | ||
19901 | wxPyEndAllowThreads(__tstate); | |
19902 | if (PyErr_Occurred()) SWIG_fail; | |
19903 | } | |
19904 | resultobj = SWIG_FromInt((int)result); | |
19905 | return resultobj; | |
19906 | fail: | |
19907 | return NULL; | |
19908 | } | |
19909 | ||
19910 | ||
19911 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19912 | PyObject *resultobj; | |
19913 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19914 | long result; | |
19915 | PyObject * obj0 = 0 ; | |
19916 | char *kwnames[] = { | |
19917 | (char *) "self", NULL | |
19918 | }; | |
19919 | ||
19920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
19921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19923 | { | |
19924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19925 | result = (long)(arg1)->GetData(); | |
19926 | ||
19927 | wxPyEndAllowThreads(__tstate); | |
19928 | if (PyErr_Occurred()) SWIG_fail; | |
19929 | } | |
19930 | resultobj = SWIG_FromLong((long)result); | |
19931 | return resultobj; | |
19932 | fail: | |
19933 | return NULL; | |
19934 | } | |
19935 | ||
19936 | ||
19937 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19938 | PyObject *resultobj; | |
19939 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19940 | long result; | |
19941 | PyObject * obj0 = 0 ; | |
19942 | char *kwnames[] = { | |
19943 | (char *) "self", NULL | |
19944 | }; | |
19945 | ||
19946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
19947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19949 | { | |
19950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19951 | result = (long)(arg1)->GetMask(); | |
19952 | ||
19953 | wxPyEndAllowThreads(__tstate); | |
19954 | if (PyErr_Occurred()) SWIG_fail; | |
19955 | } | |
19956 | resultobj = SWIG_FromLong((long)result); | |
19957 | return resultobj; | |
19958 | fail: | |
19959 | return NULL; | |
19960 | } | |
19961 | ||
19962 | ||
19963 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19964 | PyObject *resultobj; | |
19965 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19966 | wxListItem *result; | |
19967 | PyObject * obj0 = 0 ; | |
19968 | char *kwnames[] = { | |
19969 | (char *) "self", NULL | |
19970 | }; | |
19971 | ||
19972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
19973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19975 | { | |
19976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19977 | { | |
19978 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
19979 | result = (wxListItem *) &_result_ref; | |
19980 | } | |
19981 | ||
19982 | wxPyEndAllowThreads(__tstate); | |
19983 | if (PyErr_Occurred()) SWIG_fail; | |
19984 | } | |
19985 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); | |
19986 | return resultobj; | |
19987 | fail: | |
19988 | return NULL; | |
19989 | } | |
19990 | ||
19991 | ||
19992 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19993 | PyObject *resultobj; | |
19994 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19995 | long result; | |
19996 | PyObject * obj0 = 0 ; | |
19997 | char *kwnames[] = { | |
19998 | (char *) "self", NULL | |
19999 | }; | |
20000 | ||
20001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
20002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20004 | { | |
20005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20006 | result = (long)(arg1)->GetCacheFrom(); | |
20007 | ||
20008 | wxPyEndAllowThreads(__tstate); | |
20009 | if (PyErr_Occurred()) SWIG_fail; | |
20010 | } | |
20011 | resultobj = SWIG_FromLong((long)result); | |
20012 | return resultobj; | |
20013 | fail: | |
20014 | return NULL; | |
20015 | } | |
20016 | ||
20017 | ||
20018 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20019 | PyObject *resultobj; | |
20020 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20021 | long result; | |
20022 | PyObject * obj0 = 0 ; | |
20023 | char *kwnames[] = { | |
20024 | (char *) "self", NULL | |
20025 | }; | |
20026 | ||
20027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
20028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20030 | { | |
20031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20032 | result = (long)(arg1)->GetCacheTo(); | |
20033 | ||
20034 | wxPyEndAllowThreads(__tstate); | |
20035 | if (PyErr_Occurred()) SWIG_fail; | |
20036 | } | |
20037 | resultobj = SWIG_FromLong((long)result); | |
20038 | return resultobj; | |
20039 | fail: | |
20040 | return NULL; | |
20041 | } | |
20042 | ||
20043 | ||
20044 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20045 | PyObject *resultobj; | |
20046 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20047 | bool result; | |
20048 | PyObject * obj0 = 0 ; | |
20049 | char *kwnames[] = { | |
20050 | (char *) "self", NULL | |
20051 | }; | |
20052 | ||
20053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
20054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20056 | { | |
20057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20058 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
20059 | ||
20060 | wxPyEndAllowThreads(__tstate); | |
20061 | if (PyErr_Occurred()) SWIG_fail; | |
20062 | } | |
20063 | { | |
20064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20065 | } | |
20066 | return resultobj; | |
20067 | fail: | |
20068 | return NULL; | |
20069 | } | |
20070 | ||
20071 | ||
20072 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20073 | PyObject *resultobj; | |
20074 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20075 | bool arg2 ; | |
20076 | PyObject * obj0 = 0 ; | |
20077 | PyObject * obj1 = 0 ; | |
20078 | char *kwnames[] = { | |
20079 | (char *) "self",(char *) "editCancelled", NULL | |
20080 | }; | |
20081 | ||
20082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
20083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20085 | arg2 = (bool) SWIG_AsBool(obj1); | |
20086 | if (PyErr_Occurred()) SWIG_fail; | |
20087 | { | |
20088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20089 | (arg1)->SetEditCanceled(arg2); | |
20090 | ||
20091 | wxPyEndAllowThreads(__tstate); | |
20092 | if (PyErr_Occurred()) SWIG_fail; | |
20093 | } | |
20094 | Py_INCREF(Py_None); resultobj = Py_None; | |
20095 | return resultobj; | |
20096 | fail: | |
20097 | return NULL; | |
20098 | } | |
20099 | ||
20100 | ||
20101 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
20102 | PyObject *obj; | |
20103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20104 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
20105 | Py_INCREF(obj); | |
20106 | return Py_BuildValue((char *)""); | |
20107 | } | |
20108 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20109 | PyObject *resultobj; | |
20110 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20111 | int arg2 = (int) -1 ; | |
20112 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20113 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20114 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20115 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20116 | long arg5 = (long) wxLC_ICON ; | |
20117 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20118 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
20119 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
20120 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20121 | wxPyListCtrl *result; | |
20122 | wxPoint temp3 ; | |
20123 | wxSize temp4 ; | |
20124 | bool temp7 = False ; | |
20125 | PyObject * obj0 = 0 ; | |
20126 | PyObject * obj1 = 0 ; | |
20127 | PyObject * obj2 = 0 ; | |
20128 | PyObject * obj3 = 0 ; | |
20129 | PyObject * obj4 = 0 ; | |
20130 | PyObject * obj5 = 0 ; | |
20131 | PyObject * obj6 = 0 ; | |
20132 | char *kwnames[] = { | |
20133 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20134 | }; | |
20135 | ||
20136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
20137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20139 | if (obj1) { | |
20140 | arg2 = (int) SWIG_AsInt(obj1); | |
20141 | if (PyErr_Occurred()) SWIG_fail; | |
20142 | } | |
20143 | if (obj2) { | |
20144 | { | |
20145 | arg3 = &temp3; | |
20146 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20147 | } | |
20148 | } | |
20149 | if (obj3) { | |
20150 | { | |
20151 | arg4 = &temp4; | |
20152 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20153 | } | |
20154 | } | |
20155 | if (obj4) { | |
20156 | arg5 = (long) SWIG_AsLong(obj4); | |
20157 | if (PyErr_Occurred()) SWIG_fail; | |
20158 | } | |
20159 | if (obj5) { | |
20160 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
20161 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20162 | SWIG_fail; | |
20163 | if (arg6 == NULL) { | |
20164 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20165 | SWIG_fail; | |
20166 | } | |
20167 | } | |
20168 | if (obj6) { | |
20169 | { | |
20170 | arg7 = wxString_in_helper(obj6); | |
20171 | if (arg7 == NULL) SWIG_fail; | |
20172 | temp7 = True; | |
20173 | } | |
20174 | } | |
20175 | { | |
20176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20177 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20178 | ||
20179 | wxPyEndAllowThreads(__tstate); | |
20180 | if (PyErr_Occurred()) SWIG_fail; | |
20181 | } | |
20182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
20183 | { | |
20184 | if (temp7) | |
20185 | delete arg7; | |
20186 | } | |
20187 | return resultobj; | |
20188 | fail: | |
20189 | { | |
20190 | if (temp7) | |
20191 | delete arg7; | |
20192 | } | |
20193 | return NULL; | |
20194 | } | |
20195 | ||
20196 | ||
20197 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20198 | PyObject *resultobj; | |
20199 | wxPyListCtrl *result; | |
20200 | char *kwnames[] = { | |
20201 | NULL | |
20202 | }; | |
20203 | ||
20204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
20205 | { | |
20206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20207 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
20208 | ||
20209 | wxPyEndAllowThreads(__tstate); | |
20210 | if (PyErr_Occurred()) SWIG_fail; | |
20211 | } | |
20212 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
20213 | return resultobj; | |
20214 | fail: | |
20215 | return NULL; | |
20216 | } | |
20217 | ||
20218 | ||
20219 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20220 | PyObject *resultobj; | |
20221 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20222 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20223 | int arg3 = (int) -1 ; | |
20224 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20225 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20226 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20227 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20228 | long arg6 = (long) wxLC_ICON ; | |
20229 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20230 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
20231 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
20232 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20233 | bool result; | |
20234 | wxPoint temp4 ; | |
20235 | wxSize temp5 ; | |
20236 | bool temp8 = False ; | |
20237 | PyObject * obj0 = 0 ; | |
20238 | PyObject * obj1 = 0 ; | |
20239 | PyObject * obj2 = 0 ; | |
20240 | PyObject * obj3 = 0 ; | |
20241 | PyObject * obj4 = 0 ; | |
20242 | PyObject * obj5 = 0 ; | |
20243 | PyObject * obj6 = 0 ; | |
20244 | PyObject * obj7 = 0 ; | |
20245 | char *kwnames[] = { | |
20246 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20247 | }; | |
20248 | ||
20249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
20250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20252 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20254 | if (obj2) { | |
20255 | arg3 = (int) SWIG_AsInt(obj2); | |
20256 | if (PyErr_Occurred()) SWIG_fail; | |
20257 | } | |
20258 | if (obj3) { | |
20259 | { | |
20260 | arg4 = &temp4; | |
20261 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20262 | } | |
20263 | } | |
20264 | if (obj4) { | |
20265 | { | |
20266 | arg5 = &temp5; | |
20267 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20268 | } | |
20269 | } | |
20270 | if (obj5) { | |
20271 | arg6 = (long) SWIG_AsLong(obj5); | |
20272 | if (PyErr_Occurred()) SWIG_fail; | |
20273 | } | |
20274 | if (obj6) { | |
20275 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
20276 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20277 | SWIG_fail; | |
20278 | if (arg7 == NULL) { | |
20279 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20280 | SWIG_fail; | |
20281 | } | |
20282 | } | |
20283 | if (obj7) { | |
20284 | { | |
20285 | arg8 = wxString_in_helper(obj7); | |
20286 | if (arg8 == NULL) SWIG_fail; | |
20287 | temp8 = True; | |
20288 | } | |
20289 | } | |
20290 | { | |
20291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20292 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20293 | ||
20294 | wxPyEndAllowThreads(__tstate); | |
20295 | if (PyErr_Occurred()) SWIG_fail; | |
20296 | } | |
20297 | { | |
20298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20299 | } | |
20300 | { | |
20301 | if (temp8) | |
20302 | delete arg8; | |
20303 | } | |
20304 | return resultobj; | |
20305 | fail: | |
20306 | { | |
20307 | if (temp8) | |
20308 | delete arg8; | |
20309 | } | |
20310 | return NULL; | |
20311 | } | |
20312 | ||
20313 | ||
20314 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20315 | PyObject *resultobj; | |
20316 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20317 | PyObject *arg2 = (PyObject *) 0 ; | |
20318 | PyObject *arg3 = (PyObject *) 0 ; | |
20319 | PyObject * obj0 = 0 ; | |
20320 | PyObject * obj1 = 0 ; | |
20321 | PyObject * obj2 = 0 ; | |
20322 | char *kwnames[] = { | |
20323 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20324 | }; | |
20325 | ||
20326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20329 | arg2 = obj1; | |
20330 | arg3 = obj2; | |
20331 | { | |
20332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20333 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20334 | ||
20335 | wxPyEndAllowThreads(__tstate); | |
20336 | if (PyErr_Occurred()) SWIG_fail; | |
20337 | } | |
20338 | Py_INCREF(Py_None); resultobj = Py_None; | |
20339 | return resultobj; | |
20340 | fail: | |
20341 | return NULL; | |
20342 | } | |
20343 | ||
20344 | ||
20345 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20346 | PyObject *resultobj; | |
20347 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20348 | wxColour *arg2 = 0 ; | |
20349 | bool result; | |
20350 | wxColour temp2 ; | |
20351 | PyObject * obj0 = 0 ; | |
20352 | PyObject * obj1 = 0 ; | |
20353 | char *kwnames[] = { | |
20354 | (char *) "self",(char *) "col", NULL | |
20355 | }; | |
20356 | ||
20357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20360 | { | |
20361 | arg2 = &temp2; | |
20362 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20363 | } | |
20364 | { | |
20365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20366 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
20367 | ||
20368 | wxPyEndAllowThreads(__tstate); | |
20369 | if (PyErr_Occurred()) SWIG_fail; | |
20370 | } | |
20371 | { | |
20372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20373 | } | |
20374 | return resultobj; | |
20375 | fail: | |
20376 | return NULL; | |
20377 | } | |
20378 | ||
20379 | ||
20380 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20381 | PyObject *resultobj; | |
20382 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20383 | wxColour *arg2 = 0 ; | |
20384 | bool result; | |
20385 | wxColour temp2 ; | |
20386 | PyObject * obj0 = 0 ; | |
20387 | PyObject * obj1 = 0 ; | |
20388 | char *kwnames[] = { | |
20389 | (char *) "self",(char *) "col", NULL | |
20390 | }; | |
20391 | ||
20392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20395 | { | |
20396 | arg2 = &temp2; | |
20397 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20398 | } | |
20399 | { | |
20400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20401 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20402 | ||
20403 | wxPyEndAllowThreads(__tstate); | |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
20405 | } | |
20406 | { | |
20407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20408 | } | |
20409 | return resultobj; | |
20410 | fail: | |
20411 | return NULL; | |
20412 | } | |
20413 | ||
20414 | ||
20415 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20416 | PyObject *resultobj; | |
20417 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20418 | int arg2 ; | |
20419 | wxListItem *result; | |
20420 | PyObject * obj0 = 0 ; | |
20421 | PyObject * obj1 = 0 ; | |
20422 | char *kwnames[] = { | |
20423 | (char *) "self",(char *) "col", NULL | |
20424 | }; | |
20425 | ||
20426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
20427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20429 | arg2 = (int) SWIG_AsInt(obj1); | |
20430 | if (PyErr_Occurred()) SWIG_fail; | |
20431 | { | |
20432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20433 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
20434 | ||
20435 | wxPyEndAllowThreads(__tstate); | |
20436 | if (PyErr_Occurred()) SWIG_fail; | |
20437 | } | |
20438 | { | |
20439 | resultobj = wxPyMake_wxObject(result); | |
20440 | } | |
20441 | return resultobj; | |
20442 | fail: | |
20443 | return NULL; | |
20444 | } | |
20445 | ||
20446 | ||
20447 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20448 | PyObject *resultobj; | |
20449 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20450 | int arg2 ; | |
20451 | wxListItem *arg3 = 0 ; | |
20452 | bool result; | |
20453 | PyObject * obj0 = 0 ; | |
20454 | PyObject * obj1 = 0 ; | |
20455 | PyObject * obj2 = 0 ; | |
20456 | char *kwnames[] = { | |
20457 | (char *) "self",(char *) "col",(char *) "item", NULL | |
20458 | }; | |
20459 | ||
20460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20463 | arg2 = (int) SWIG_AsInt(obj1); | |
20464 | if (PyErr_Occurred()) SWIG_fail; | |
20465 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
20466 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20467 | SWIG_fail; | |
20468 | if (arg3 == NULL) { | |
20469 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20470 | SWIG_fail; | |
20471 | } | |
20472 | { | |
20473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20474 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
20475 | ||
20476 | wxPyEndAllowThreads(__tstate); | |
20477 | if (PyErr_Occurred()) SWIG_fail; | |
20478 | } | |
20479 | { | |
20480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20481 | } | |
20482 | return resultobj; | |
20483 | fail: | |
20484 | return NULL; | |
20485 | } | |
20486 | ||
20487 | ||
20488 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20489 | PyObject *resultobj; | |
20490 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20491 | int arg2 ; | |
20492 | int result; | |
20493 | PyObject * obj0 = 0 ; | |
20494 | PyObject * obj1 = 0 ; | |
20495 | char *kwnames[] = { | |
20496 | (char *) "self",(char *) "col", NULL | |
20497 | }; | |
20498 | ||
20499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
20500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20502 | arg2 = (int) SWIG_AsInt(obj1); | |
20503 | if (PyErr_Occurred()) SWIG_fail; | |
20504 | { | |
20505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20506 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
20507 | ||
20508 | wxPyEndAllowThreads(__tstate); | |
20509 | if (PyErr_Occurred()) SWIG_fail; | |
20510 | } | |
20511 | resultobj = SWIG_FromInt((int)result); | |
20512 | return resultobj; | |
20513 | fail: | |
20514 | return NULL; | |
20515 | } | |
20516 | ||
20517 | ||
20518 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20519 | PyObject *resultobj; | |
20520 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20521 | int arg2 ; | |
20522 | int arg3 ; | |
20523 | bool result; | |
20524 | PyObject * obj0 = 0 ; | |
20525 | PyObject * obj1 = 0 ; | |
20526 | PyObject * obj2 = 0 ; | |
20527 | char *kwnames[] = { | |
20528 | (char *) "self",(char *) "col",(char *) "width", NULL | |
20529 | }; | |
20530 | ||
20531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20534 | arg2 = (int) SWIG_AsInt(obj1); | |
20535 | if (PyErr_Occurred()) SWIG_fail; | |
20536 | arg3 = (int) SWIG_AsInt(obj2); | |
20537 | if (PyErr_Occurred()) SWIG_fail; | |
20538 | { | |
20539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20540 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
20541 | ||
20542 | wxPyEndAllowThreads(__tstate); | |
20543 | if (PyErr_Occurred()) SWIG_fail; | |
20544 | } | |
20545 | { | |
20546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20547 | } | |
20548 | return resultobj; | |
20549 | fail: | |
20550 | return NULL; | |
20551 | } | |
20552 | ||
20553 | ||
20554 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20555 | PyObject *resultobj; | |
20556 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20557 | int result; | |
20558 | PyObject * obj0 = 0 ; | |
20559 | char *kwnames[] = { | |
20560 | (char *) "self", NULL | |
20561 | }; | |
20562 | ||
20563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
20564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20566 | { | |
20567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20568 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
20569 | ||
20570 | wxPyEndAllowThreads(__tstate); | |
20571 | if (PyErr_Occurred()) SWIG_fail; | |
20572 | } | |
20573 | resultobj = SWIG_FromInt((int)result); | |
20574 | return resultobj; | |
20575 | fail: | |
20576 | return NULL; | |
20577 | } | |
20578 | ||
20579 | ||
20580 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20581 | PyObject *resultobj; | |
20582 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20583 | wxRect result; | |
20584 | PyObject * obj0 = 0 ; | |
20585 | char *kwnames[] = { | |
20586 | (char *) "self", NULL | |
20587 | }; | |
20588 | ||
20589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
20590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20592 | { | |
20593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20594 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20595 | ||
20596 | wxPyEndAllowThreads(__tstate); | |
20597 | if (PyErr_Occurred()) SWIG_fail; | |
20598 | } | |
20599 | { | |
20600 | wxRect * resultptr; | |
20601 | resultptr = new wxRect((wxRect &) result); | |
20602 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
20603 | } | |
20604 | return resultobj; | |
20605 | fail: | |
20606 | return NULL; | |
20607 | } | |
20608 | ||
20609 | ||
20610 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20611 | PyObject *resultobj; | |
20612 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20613 | long arg2 ; | |
20614 | int arg3 = (int) 0 ; | |
20615 | wxListItem *result; | |
20616 | PyObject * obj0 = 0 ; | |
20617 | PyObject * obj1 = 0 ; | |
20618 | PyObject * obj2 = 0 ; | |
20619 | char *kwnames[] = { | |
20620 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20621 | }; | |
20622 | ||
20623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20626 | arg2 = (long) SWIG_AsLong(obj1); | |
20627 | if (PyErr_Occurred()) SWIG_fail; | |
20628 | if (obj2) { | |
20629 | arg3 = (int) SWIG_AsInt(obj2); | |
20630 | if (PyErr_Occurred()) SWIG_fail; | |
20631 | } | |
20632 | { | |
20633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20634 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20635 | ||
20636 | wxPyEndAllowThreads(__tstate); | |
20637 | if (PyErr_Occurred()) SWIG_fail; | |
20638 | } | |
20639 | { | |
20640 | resultobj = wxPyMake_wxObject(result); | |
20641 | } | |
20642 | return resultobj; | |
20643 | fail: | |
20644 | return NULL; | |
20645 | } | |
20646 | ||
20647 | ||
20648 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20649 | PyObject *resultobj; | |
20650 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20651 | wxListItem *arg2 = 0 ; | |
20652 | bool result; | |
20653 | PyObject * obj0 = 0 ; | |
20654 | PyObject * obj1 = 0 ; | |
20655 | char *kwnames[] = { | |
20656 | (char *) "self",(char *) "info", NULL | |
20657 | }; | |
20658 | ||
20659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20662 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
20663 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20664 | SWIG_fail; | |
20665 | if (arg2 == NULL) { | |
20666 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20667 | SWIG_fail; | |
20668 | } | |
20669 | { | |
20670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20671 | result = (bool)(arg1)->SetItem(*arg2); | |
20672 | ||
20673 | wxPyEndAllowThreads(__tstate); | |
20674 | if (PyErr_Occurred()) SWIG_fail; | |
20675 | } | |
20676 | { | |
20677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20678 | } | |
20679 | return resultobj; | |
20680 | fail: | |
20681 | return NULL; | |
20682 | } | |
20683 | ||
20684 | ||
20685 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20686 | PyObject *resultobj; | |
20687 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20688 | long arg2 ; | |
20689 | int arg3 ; | |
20690 | wxString *arg4 = 0 ; | |
20691 | int arg5 = (int) -1 ; | |
20692 | long result; | |
20693 | bool temp4 = False ; | |
20694 | PyObject * obj0 = 0 ; | |
20695 | PyObject * obj1 = 0 ; | |
20696 | PyObject * obj2 = 0 ; | |
20697 | PyObject * obj3 = 0 ; | |
20698 | PyObject * obj4 = 0 ; | |
20699 | char *kwnames[] = { | |
20700 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20701 | }; | |
20702 | ||
20703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
20704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20706 | arg2 = (long) SWIG_AsLong(obj1); | |
20707 | if (PyErr_Occurred()) SWIG_fail; | |
20708 | arg3 = (int) SWIG_AsInt(obj2); | |
20709 | if (PyErr_Occurred()) SWIG_fail; | |
20710 | { | |
20711 | arg4 = wxString_in_helper(obj3); | |
20712 | if (arg4 == NULL) SWIG_fail; | |
20713 | temp4 = True; | |
20714 | } | |
20715 | if (obj4) { | |
20716 | arg5 = (int) SWIG_AsInt(obj4); | |
20717 | if (PyErr_Occurred()) SWIG_fail; | |
20718 | } | |
20719 | { | |
20720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20721 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20722 | ||
20723 | wxPyEndAllowThreads(__tstate); | |
20724 | if (PyErr_Occurred()) SWIG_fail; | |
20725 | } | |
20726 | resultobj = SWIG_FromLong((long)result); | |
20727 | { | |
20728 | if (temp4) | |
20729 | delete arg4; | |
20730 | } | |
20731 | return resultobj; | |
20732 | fail: | |
20733 | { | |
20734 | if (temp4) | |
20735 | delete arg4; | |
20736 | } | |
20737 | return NULL; | |
20738 | } | |
20739 | ||
20740 | ||
20741 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20742 | PyObject *resultobj; | |
20743 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20744 | long arg2 ; | |
20745 | long arg3 ; | |
20746 | int result; | |
20747 | PyObject * obj0 = 0 ; | |
20748 | PyObject * obj1 = 0 ; | |
20749 | PyObject * obj2 = 0 ; | |
20750 | char *kwnames[] = { | |
20751 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20752 | }; | |
20753 | ||
20754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20757 | arg2 = (long) SWIG_AsLong(obj1); | |
20758 | if (PyErr_Occurred()) SWIG_fail; | |
20759 | arg3 = (long) SWIG_AsLong(obj2); | |
20760 | if (PyErr_Occurred()) SWIG_fail; | |
20761 | { | |
20762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20763 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20764 | ||
20765 | wxPyEndAllowThreads(__tstate); | |
20766 | if (PyErr_Occurred()) SWIG_fail; | |
20767 | } | |
20768 | resultobj = SWIG_FromInt((int)result); | |
20769 | return resultobj; | |
20770 | fail: | |
20771 | return NULL; | |
20772 | } | |
20773 | ||
20774 | ||
20775 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20776 | PyObject *resultobj; | |
20777 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20778 | long arg2 ; | |
20779 | long arg3 ; | |
20780 | long arg4 ; | |
20781 | bool result; | |
20782 | PyObject * obj0 = 0 ; | |
20783 | PyObject * obj1 = 0 ; | |
20784 | PyObject * obj2 = 0 ; | |
20785 | PyObject * obj3 = 0 ; | |
20786 | char *kwnames[] = { | |
20787 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20788 | }; | |
20789 | ||
20790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20793 | arg2 = (long) SWIG_AsLong(obj1); | |
20794 | if (PyErr_Occurred()) SWIG_fail; | |
20795 | arg3 = (long) SWIG_AsLong(obj2); | |
20796 | if (PyErr_Occurred()) SWIG_fail; | |
20797 | arg4 = (long) SWIG_AsLong(obj3); | |
20798 | if (PyErr_Occurred()) SWIG_fail; | |
20799 | { | |
20800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20801 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20802 | ||
20803 | wxPyEndAllowThreads(__tstate); | |
20804 | if (PyErr_Occurred()) SWIG_fail; | |
20805 | } | |
20806 | { | |
20807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20808 | } | |
20809 | return resultobj; | |
20810 | fail: | |
20811 | return NULL; | |
20812 | } | |
20813 | ||
20814 | ||
20815 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20816 | PyObject *resultobj; | |
20817 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20818 | long arg2 ; | |
20819 | int arg3 ; | |
20820 | int arg4 ; | |
20821 | bool result; | |
20822 | PyObject * obj0 = 0 ; | |
20823 | PyObject * obj1 = 0 ; | |
20824 | PyObject * obj2 = 0 ; | |
20825 | PyObject * obj3 = 0 ; | |
20826 | char *kwnames[] = { | |
20827 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20828 | }; | |
20829 | ||
20830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20833 | arg2 = (long) SWIG_AsLong(obj1); | |
20834 | if (PyErr_Occurred()) SWIG_fail; | |
20835 | arg3 = (int) SWIG_AsInt(obj2); | |
20836 | if (PyErr_Occurred()) SWIG_fail; | |
20837 | arg4 = (int) SWIG_AsInt(obj3); | |
20838 | if (PyErr_Occurred()) SWIG_fail; | |
20839 | { | |
20840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20841 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20842 | ||
20843 | wxPyEndAllowThreads(__tstate); | |
20844 | if (PyErr_Occurred()) SWIG_fail; | |
20845 | } | |
20846 | { | |
20847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20848 | } | |
20849 | return resultobj; | |
20850 | fail: | |
20851 | return NULL; | |
20852 | } | |
20853 | ||
20854 | ||
20855 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20856 | PyObject *resultobj; | |
20857 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20858 | long arg2 ; | |
20859 | wxString result; | |
20860 | PyObject * obj0 = 0 ; | |
20861 | PyObject * obj1 = 0 ; | |
20862 | char *kwnames[] = { | |
20863 | (char *) "self",(char *) "item", NULL | |
20864 | }; | |
20865 | ||
20866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
20867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20869 | arg2 = (long) SWIG_AsLong(obj1); | |
20870 | if (PyErr_Occurred()) SWIG_fail; | |
20871 | { | |
20872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20873 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20874 | ||
20875 | wxPyEndAllowThreads(__tstate); | |
20876 | if (PyErr_Occurred()) SWIG_fail; | |
20877 | } | |
20878 | { | |
20879 | #if wxUSE_UNICODE | |
20880 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20881 | #else | |
20882 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20883 | #endif | |
20884 | } | |
20885 | return resultobj; | |
20886 | fail: | |
20887 | return NULL; | |
20888 | } | |
20889 | ||
20890 | ||
20891 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20892 | PyObject *resultobj; | |
20893 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20894 | long arg2 ; | |
20895 | wxString *arg3 = 0 ; | |
20896 | bool temp3 = False ; | |
20897 | PyObject * obj0 = 0 ; | |
20898 | PyObject * obj1 = 0 ; | |
20899 | PyObject * obj2 = 0 ; | |
20900 | char *kwnames[] = { | |
20901 | (char *) "self",(char *) "item",(char *) "str", NULL | |
20902 | }; | |
20903 | ||
20904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20907 | arg2 = (long) SWIG_AsLong(obj1); | |
20908 | if (PyErr_Occurred()) SWIG_fail; | |
20909 | { | |
20910 | arg3 = wxString_in_helper(obj2); | |
20911 | if (arg3 == NULL) SWIG_fail; | |
20912 | temp3 = True; | |
20913 | } | |
20914 | { | |
20915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20916 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
20917 | ||
20918 | wxPyEndAllowThreads(__tstate); | |
20919 | if (PyErr_Occurred()) SWIG_fail; | |
20920 | } | |
20921 | Py_INCREF(Py_None); resultobj = Py_None; | |
20922 | { | |
20923 | if (temp3) | |
20924 | delete arg3; | |
20925 | } | |
20926 | return resultobj; | |
20927 | fail: | |
20928 | { | |
20929 | if (temp3) | |
20930 | delete arg3; | |
20931 | } | |
20932 | return NULL; | |
20933 | } | |
20934 | ||
20935 | ||
20936 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20937 | PyObject *resultobj; | |
20938 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20939 | long arg2 ; | |
20940 | long result; | |
20941 | PyObject * obj0 = 0 ; | |
20942 | PyObject * obj1 = 0 ; | |
20943 | char *kwnames[] = { | |
20944 | (char *) "self",(char *) "item", NULL | |
20945 | }; | |
20946 | ||
20947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
20948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20950 | arg2 = (long) SWIG_AsLong(obj1); | |
20951 | if (PyErr_Occurred()) SWIG_fail; | |
20952 | { | |
20953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20954 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
20955 | ||
20956 | wxPyEndAllowThreads(__tstate); | |
20957 | if (PyErr_Occurred()) SWIG_fail; | |
20958 | } | |
20959 | resultobj = SWIG_FromLong((long)result); | |
20960 | return resultobj; | |
20961 | fail: | |
20962 | return NULL; | |
20963 | } | |
20964 | ||
20965 | ||
20966 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20967 | PyObject *resultobj; | |
20968 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20969 | long arg2 ; | |
20970 | long arg3 ; | |
20971 | bool result; | |
20972 | PyObject * obj0 = 0 ; | |
20973 | PyObject * obj1 = 0 ; | |
20974 | PyObject * obj2 = 0 ; | |
20975 | char *kwnames[] = { | |
20976 | (char *) "self",(char *) "item",(char *) "data", NULL | |
20977 | }; | |
20978 | ||
20979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20982 | arg2 = (long) SWIG_AsLong(obj1); | |
20983 | if (PyErr_Occurred()) SWIG_fail; | |
20984 | arg3 = (long) SWIG_AsLong(obj2); | |
20985 | if (PyErr_Occurred()) SWIG_fail; | |
20986 | { | |
20987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20988 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
20989 | ||
20990 | wxPyEndAllowThreads(__tstate); | |
20991 | if (PyErr_Occurred()) SWIG_fail; | |
20992 | } | |
20993 | { | |
20994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20995 | } | |
20996 | return resultobj; | |
20997 | fail: | |
20998 | return NULL; | |
20999 | } | |
21000 | ||
21001 | ||
21002 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21003 | PyObject *resultobj; | |
21004 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21005 | long arg2 ; | |
21006 | wxPoint result; | |
21007 | PyObject * obj0 = 0 ; | |
21008 | PyObject * obj1 = 0 ; | |
21009 | char *kwnames[] = { | |
21010 | (char *) "self",(char *) "item", NULL | |
21011 | }; | |
21012 | ||
21013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
21014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21016 | arg2 = (long) SWIG_AsLong(obj1); | |
21017 | if (PyErr_Occurred()) SWIG_fail; | |
21018 | { | |
21019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21020 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
21021 | ||
21022 | wxPyEndAllowThreads(__tstate); | |
21023 | if (PyErr_Occurred()) SWIG_fail; | |
21024 | } | |
21025 | { | |
21026 | wxPoint * resultptr; | |
21027 | resultptr = new wxPoint((wxPoint &) result); | |
21028 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
21029 | } | |
21030 | return resultobj; | |
21031 | fail: | |
21032 | return NULL; | |
21033 | } | |
21034 | ||
21035 | ||
21036 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21037 | PyObject *resultobj; | |
21038 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21039 | long arg2 ; | |
21040 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
21041 | wxRect result; | |
21042 | PyObject * obj0 = 0 ; | |
21043 | PyObject * obj1 = 0 ; | |
21044 | PyObject * obj2 = 0 ; | |
21045 | char *kwnames[] = { | |
21046 | (char *) "self",(char *) "item",(char *) "code", NULL | |
21047 | }; | |
21048 | ||
21049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21052 | arg2 = (long) SWIG_AsLong(obj1); | |
21053 | if (PyErr_Occurred()) SWIG_fail; | |
21054 | if (obj2) { | |
21055 | arg3 = (int) SWIG_AsInt(obj2); | |
21056 | if (PyErr_Occurred()) SWIG_fail; | |
21057 | } | |
21058 | { | |
21059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21060 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
21061 | ||
21062 | wxPyEndAllowThreads(__tstate); | |
21063 | if (PyErr_Occurred()) SWIG_fail; | |
21064 | } | |
21065 | { | |
21066 | wxRect * resultptr; | |
21067 | resultptr = new wxRect((wxRect &) result); | |
21068 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
21069 | } | |
21070 | return resultobj; | |
21071 | fail: | |
21072 | return NULL; | |
21073 | } | |
21074 | ||
21075 | ||
21076 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21077 | PyObject *resultobj; | |
21078 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21079 | long arg2 ; | |
21080 | wxPoint *arg3 = 0 ; | |
21081 | bool result; | |
21082 | wxPoint temp3 ; | |
21083 | PyObject * obj0 = 0 ; | |
21084 | PyObject * obj1 = 0 ; | |
21085 | PyObject * obj2 = 0 ; | |
21086 | char *kwnames[] = { | |
21087 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
21088 | }; | |
21089 | ||
21090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21093 | arg2 = (long) SWIG_AsLong(obj1); | |
21094 | if (PyErr_Occurred()) SWIG_fail; | |
21095 | { | |
21096 | arg3 = &temp3; | |
21097 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21098 | } | |
21099 | { | |
21100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21101 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
21102 | ||
21103 | wxPyEndAllowThreads(__tstate); | |
21104 | if (PyErr_Occurred()) SWIG_fail; | |
21105 | } | |
21106 | { | |
21107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21108 | } | |
21109 | return resultobj; | |
21110 | fail: | |
21111 | return NULL; | |
21112 | } | |
21113 | ||
21114 | ||
21115 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21116 | PyObject *resultobj; | |
21117 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21118 | int result; | |
21119 | PyObject * obj0 = 0 ; | |
21120 | char *kwnames[] = { | |
21121 | (char *) "self", NULL | |
21122 | }; | |
21123 | ||
21124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
21125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21127 | { | |
21128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21129 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
21130 | ||
21131 | wxPyEndAllowThreads(__tstate); | |
21132 | if (PyErr_Occurred()) SWIG_fail; | |
21133 | } | |
21134 | resultobj = SWIG_FromInt((int)result); | |
21135 | return resultobj; | |
21136 | fail: | |
21137 | return NULL; | |
21138 | } | |
21139 | ||
21140 | ||
21141 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21142 | PyObject *resultobj; | |
21143 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21144 | int result; | |
21145 | PyObject * obj0 = 0 ; | |
21146 | char *kwnames[] = { | |
21147 | (char *) "self", NULL | |
21148 | }; | |
21149 | ||
21150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
21151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21153 | { | |
21154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21155 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
21156 | ||
21157 | wxPyEndAllowThreads(__tstate); | |
21158 | if (PyErr_Occurred()) SWIG_fail; | |
21159 | } | |
21160 | resultobj = SWIG_FromInt((int)result); | |
21161 | return resultobj; | |
21162 | fail: | |
21163 | return NULL; | |
21164 | } | |
21165 | ||
21166 | ||
21167 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21168 | PyObject *resultobj; | |
21169 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21170 | wxSize result; | |
21171 | PyObject * obj0 = 0 ; | |
21172 | char *kwnames[] = { | |
21173 | (char *) "self", NULL | |
21174 | }; | |
21175 | ||
21176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
21177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21179 | { | |
21180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21181 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
21182 | ||
21183 | wxPyEndAllowThreads(__tstate); | |
21184 | if (PyErr_Occurred()) SWIG_fail; | |
21185 | } | |
21186 | { | |
21187 | wxSize * resultptr; | |
21188 | resultptr = new wxSize((wxSize &) result); | |
21189 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
21190 | } | |
21191 | return resultobj; | |
21192 | fail: | |
21193 | return NULL; | |
21194 | } | |
21195 | ||
21196 | ||
21197 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21198 | PyObject *resultobj; | |
21199 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21200 | int arg2 ; | |
21201 | bool arg3 = (bool) False ; | |
21202 | PyObject * obj0 = 0 ; | |
21203 | PyObject * obj1 = 0 ; | |
21204 | PyObject * obj2 = 0 ; | |
21205 | char *kwnames[] = { | |
21206 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
21207 | }; | |
21208 | ||
21209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21212 | arg2 = (int) SWIG_AsInt(obj1); | |
21213 | if (PyErr_Occurred()) SWIG_fail; | |
21214 | if (obj2) { | |
21215 | arg3 = (bool) SWIG_AsBool(obj2); | |
21216 | if (PyErr_Occurred()) SWIG_fail; | |
21217 | } | |
21218 | { | |
21219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21220 | (arg1)->SetItemSpacing(arg2,arg3); | |
21221 | ||
21222 | wxPyEndAllowThreads(__tstate); | |
21223 | if (PyErr_Occurred()) SWIG_fail; | |
21224 | } | |
21225 | Py_INCREF(Py_None); resultobj = Py_None; | |
21226 | return resultobj; | |
21227 | fail: | |
21228 | return NULL; | |
21229 | } | |
21230 | ||
21231 | ||
21232 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21233 | PyObject *resultobj; | |
21234 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21235 | int result; | |
21236 | PyObject * obj0 = 0 ; | |
21237 | char *kwnames[] = { | |
21238 | (char *) "self", NULL | |
21239 | }; | |
21240 | ||
21241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
21242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21244 | { | |
21245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21246 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
21247 | ||
21248 | wxPyEndAllowThreads(__tstate); | |
21249 | if (PyErr_Occurred()) SWIG_fail; | |
21250 | } | |
21251 | resultobj = SWIG_FromInt((int)result); | |
21252 | return resultobj; | |
21253 | fail: | |
21254 | return NULL; | |
21255 | } | |
21256 | ||
21257 | ||
21258 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21259 | PyObject *resultobj; | |
21260 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21261 | wxColour result; | |
21262 | PyObject * obj0 = 0 ; | |
21263 | char *kwnames[] = { | |
21264 | (char *) "self", NULL | |
21265 | }; | |
21266 | ||
21267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
21268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21270 | { | |
21271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21272 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
21273 | ||
21274 | wxPyEndAllowThreads(__tstate); | |
21275 | if (PyErr_Occurred()) SWIG_fail; | |
21276 | } | |
21277 | { | |
21278 | wxColour * resultptr; | |
21279 | resultptr = new wxColour((wxColour &) result); | |
21280 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
21281 | } | |
21282 | return resultobj; | |
21283 | fail: | |
21284 | return NULL; | |
21285 | } | |
21286 | ||
21287 | ||
21288 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21289 | PyObject *resultobj; | |
21290 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21291 | wxColour *arg2 = 0 ; | |
21292 | wxColour temp2 ; | |
21293 | PyObject * obj0 = 0 ; | |
21294 | PyObject * obj1 = 0 ; | |
21295 | char *kwnames[] = { | |
21296 | (char *) "self",(char *) "col", NULL | |
21297 | }; | |
21298 | ||
21299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21302 | { | |
21303 | arg2 = &temp2; | |
21304 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21305 | } | |
21306 | { | |
21307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21308 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21309 | ||
21310 | wxPyEndAllowThreads(__tstate); | |
21311 | if (PyErr_Occurred()) SWIG_fail; | |
21312 | } | |
21313 | Py_INCREF(Py_None); resultobj = Py_None; | |
21314 | return resultobj; | |
21315 | fail: | |
21316 | return NULL; | |
21317 | } | |
21318 | ||
21319 | ||
21320 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21321 | PyObject *resultobj; | |
21322 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21323 | long result; | |
21324 | PyObject * obj0 = 0 ; | |
21325 | char *kwnames[] = { | |
21326 | (char *) "self", NULL | |
21327 | }; | |
21328 | ||
21329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
21330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21332 | { | |
21333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21334 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
21335 | ||
21336 | wxPyEndAllowThreads(__tstate); | |
21337 | if (PyErr_Occurred()) SWIG_fail; | |
21338 | } | |
21339 | resultobj = SWIG_FromLong((long)result); | |
21340 | return resultobj; | |
21341 | fail: | |
21342 | return NULL; | |
21343 | } | |
21344 | ||
21345 | ||
21346 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21347 | PyObject *resultobj; | |
21348 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21349 | long arg2 ; | |
21350 | bool arg3 = (bool) True ; | |
21351 | PyObject * obj0 = 0 ; | |
21352 | PyObject * obj1 = 0 ; | |
21353 | PyObject * obj2 = 0 ; | |
21354 | char *kwnames[] = { | |
21355 | (char *) "self",(char *) "style",(char *) "add", NULL | |
21356 | }; | |
21357 | ||
21358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21361 | arg2 = (long) SWIG_AsLong(obj1); | |
21362 | if (PyErr_Occurred()) SWIG_fail; | |
21363 | if (obj2) { | |
21364 | arg3 = (bool) SWIG_AsBool(obj2); | |
21365 | if (PyErr_Occurred()) SWIG_fail; | |
21366 | } | |
21367 | { | |
21368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21369 | (arg1)->SetSingleStyle(arg2,arg3); | |
21370 | ||
21371 | wxPyEndAllowThreads(__tstate); | |
21372 | if (PyErr_Occurred()) SWIG_fail; | |
21373 | } | |
21374 | Py_INCREF(Py_None); resultobj = Py_None; | |
21375 | return resultobj; | |
21376 | fail: | |
21377 | return NULL; | |
21378 | } | |
21379 | ||
21380 | ||
21381 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21382 | PyObject *resultobj; | |
21383 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21384 | long arg2 ; | |
21385 | PyObject * obj0 = 0 ; | |
21386 | PyObject * obj1 = 0 ; | |
21387 | char *kwnames[] = { | |
21388 | (char *) "self",(char *) "style", NULL | |
21389 | }; | |
21390 | ||
21391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
21392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21394 | arg2 = (long) SWIG_AsLong(obj1); | |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
21396 | { | |
21397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21398 | (arg1)->SetWindowStyleFlag(arg2); | |
21399 | ||
21400 | wxPyEndAllowThreads(__tstate); | |
21401 | if (PyErr_Occurred()) SWIG_fail; | |
21402 | } | |
21403 | Py_INCREF(Py_None); resultobj = Py_None; | |
21404 | return resultobj; | |
21405 | fail: | |
21406 | return NULL; | |
21407 | } | |
21408 | ||
21409 | ||
21410 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21411 | PyObject *resultobj; | |
21412 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21413 | long arg2 ; | |
21414 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
21415 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
21416 | long result; | |
21417 | PyObject * obj0 = 0 ; | |
21418 | PyObject * obj1 = 0 ; | |
21419 | PyObject * obj2 = 0 ; | |
21420 | PyObject * obj3 = 0 ; | |
21421 | char *kwnames[] = { | |
21422 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
21423 | }; | |
21424 | ||
21425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21428 | arg2 = (long) SWIG_AsLong(obj1); | |
21429 | if (PyErr_Occurred()) SWIG_fail; | |
21430 | if (obj2) { | |
21431 | arg3 = (int) SWIG_AsInt(obj2); | |
21432 | if (PyErr_Occurred()) SWIG_fail; | |
21433 | } | |
21434 | if (obj3) { | |
21435 | arg4 = (int) SWIG_AsInt(obj3); | |
21436 | if (PyErr_Occurred()) SWIG_fail; | |
21437 | } | |
21438 | { | |
21439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21440 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
21441 | ||
21442 | wxPyEndAllowThreads(__tstate); | |
21443 | if (PyErr_Occurred()) SWIG_fail; | |
21444 | } | |
21445 | resultobj = SWIG_FromLong((long)result); | |
21446 | return resultobj; | |
21447 | fail: | |
21448 | return NULL; | |
21449 | } | |
21450 | ||
21451 | ||
21452 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21453 | PyObject *resultobj; | |
21454 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21455 | int arg2 ; | |
21456 | wxImageList *result; | |
21457 | PyObject * obj0 = 0 ; | |
21458 | PyObject * obj1 = 0 ; | |
21459 | char *kwnames[] = { | |
21460 | (char *) "self",(char *) "which", NULL | |
21461 | }; | |
21462 | ||
21463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
21464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21466 | arg2 = (int) SWIG_AsInt(obj1); | |
21467 | if (PyErr_Occurred()) SWIG_fail; | |
21468 | { | |
21469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21470 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
21471 | ||
21472 | wxPyEndAllowThreads(__tstate); | |
21473 | if (PyErr_Occurred()) SWIG_fail; | |
21474 | } | |
21475 | { | |
21476 | resultobj = wxPyMake_wxObject(result); | |
21477 | } | |
21478 | return resultobj; | |
21479 | fail: | |
21480 | return NULL; | |
21481 | } | |
21482 | ||
21483 | ||
21484 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21485 | PyObject *resultobj; | |
21486 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21487 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21488 | int arg3 ; | |
21489 | PyObject * obj0 = 0 ; | |
21490 | PyObject * obj1 = 0 ; | |
21491 | PyObject * obj2 = 0 ; | |
21492 | char *kwnames[] = { | |
21493 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21494 | }; | |
21495 | ||
21496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
21500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21501 | arg3 = (int) SWIG_AsInt(obj2); | |
21502 | if (PyErr_Occurred()) SWIG_fail; | |
21503 | { | |
21504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21505 | (arg1)->SetImageList(arg2,arg3); | |
21506 | ||
21507 | wxPyEndAllowThreads(__tstate); | |
21508 | if (PyErr_Occurred()) SWIG_fail; | |
21509 | } | |
21510 | Py_INCREF(Py_None); resultobj = Py_None; | |
21511 | return resultobj; | |
21512 | fail: | |
21513 | return NULL; | |
21514 | } | |
21515 | ||
21516 | ||
21517 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21518 | PyObject *resultobj; | |
21519 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21520 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21521 | int arg3 ; | |
21522 | PyObject * obj0 = 0 ; | |
21523 | PyObject * obj1 = 0 ; | |
21524 | PyObject * obj2 = 0 ; | |
21525 | char *kwnames[] = { | |
21526 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21527 | }; | |
21528 | ||
21529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21532 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
21533 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
21534 | arg3 = (int) SWIG_AsInt(obj2); | |
21535 | if (PyErr_Occurred()) SWIG_fail; | |
21536 | { | |
21537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21538 | (arg1)->AssignImageList(arg2,arg3); | |
21539 | ||
21540 | wxPyEndAllowThreads(__tstate); | |
21541 | if (PyErr_Occurred()) SWIG_fail; | |
21542 | } | |
21543 | Py_INCREF(Py_None); resultobj = Py_None; | |
21544 | return resultobj; | |
21545 | fail: | |
21546 | return NULL; | |
21547 | } | |
21548 | ||
21549 | ||
21550 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21551 | PyObject *resultobj; | |
21552 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21553 | bool result; | |
21554 | PyObject * obj0 = 0 ; | |
21555 | char *kwnames[] = { | |
21556 | (char *) "self", NULL | |
21557 | }; | |
21558 | ||
21559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
21560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21562 | { | |
21563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21564 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
21565 | ||
21566 | wxPyEndAllowThreads(__tstate); | |
21567 | if (PyErr_Occurred()) SWIG_fail; | |
21568 | } | |
21569 | { | |
21570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21571 | } | |
21572 | return resultobj; | |
21573 | fail: | |
21574 | return NULL; | |
21575 | } | |
21576 | ||
21577 | ||
21578 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21579 | PyObject *resultobj; | |
21580 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21581 | bool result; | |
21582 | PyObject * obj0 = 0 ; | |
21583 | char *kwnames[] = { | |
21584 | (char *) "self", NULL | |
21585 | }; | |
21586 | ||
21587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
21588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21590 | { | |
21591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21592 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21593 | ||
21594 | wxPyEndAllowThreads(__tstate); | |
21595 | if (PyErr_Occurred()) SWIG_fail; | |
21596 | } | |
21597 | { | |
21598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21599 | } | |
21600 | return resultobj; | |
21601 | fail: | |
21602 | return NULL; | |
21603 | } | |
21604 | ||
21605 | ||
21606 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21607 | PyObject *resultobj; | |
21608 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21609 | long arg2 ; | |
21610 | PyObject * obj0 = 0 ; | |
21611 | PyObject * obj1 = 0 ; | |
21612 | char *kwnames[] = { | |
21613 | (char *) "self",(char *) "item", NULL | |
21614 | }; | |
21615 | ||
21616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
21617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21619 | arg2 = (long) SWIG_AsLong(obj1); | |
21620 | if (PyErr_Occurred()) SWIG_fail; | |
21621 | { | |
21622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21623 | (arg1)->RefreshItem(arg2); | |
21624 | ||
21625 | wxPyEndAllowThreads(__tstate); | |
21626 | if (PyErr_Occurred()) SWIG_fail; | |
21627 | } | |
21628 | Py_INCREF(Py_None); resultobj = Py_None; | |
21629 | return resultobj; | |
21630 | fail: | |
21631 | return NULL; | |
21632 | } | |
21633 | ||
21634 | ||
21635 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21636 | PyObject *resultobj; | |
21637 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21638 | long arg2 ; | |
21639 | long arg3 ; | |
21640 | PyObject * obj0 = 0 ; | |
21641 | PyObject * obj1 = 0 ; | |
21642 | PyObject * obj2 = 0 ; | |
21643 | char *kwnames[] = { | |
21644 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21645 | }; | |
21646 | ||
21647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21650 | arg2 = (long) SWIG_AsLong(obj1); | |
21651 | if (PyErr_Occurred()) SWIG_fail; | |
21652 | arg3 = (long) SWIG_AsLong(obj2); | |
21653 | if (PyErr_Occurred()) SWIG_fail; | |
21654 | { | |
21655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21656 | (arg1)->RefreshItems(arg2,arg3); | |
21657 | ||
21658 | wxPyEndAllowThreads(__tstate); | |
21659 | if (PyErr_Occurred()) SWIG_fail; | |
21660 | } | |
21661 | Py_INCREF(Py_None); resultobj = Py_None; | |
21662 | return resultobj; | |
21663 | fail: | |
21664 | return NULL; | |
21665 | } | |
21666 | ||
21667 | ||
21668 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21669 | PyObject *resultobj; | |
21670 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21671 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21672 | bool result; | |
21673 | PyObject * obj0 = 0 ; | |
21674 | PyObject * obj1 = 0 ; | |
21675 | char *kwnames[] = { | |
21676 | (char *) "self",(char *) "flag", NULL | |
21677 | }; | |
21678 | ||
21679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
21680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21682 | if (obj1) { | |
21683 | arg2 = (int) SWIG_AsInt(obj1); | |
21684 | if (PyErr_Occurred()) SWIG_fail; | |
21685 | } | |
21686 | { | |
21687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21688 | result = (bool)(arg1)->Arrange(arg2); | |
21689 | ||
21690 | wxPyEndAllowThreads(__tstate); | |
21691 | if (PyErr_Occurred()) SWIG_fail; | |
21692 | } | |
21693 | { | |
21694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21695 | } | |
21696 | return resultobj; | |
21697 | fail: | |
21698 | return NULL; | |
21699 | } | |
21700 | ||
21701 | ||
21702 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21703 | PyObject *resultobj; | |
21704 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21705 | long arg2 ; | |
21706 | bool result; | |
21707 | PyObject * obj0 = 0 ; | |
21708 | PyObject * obj1 = 0 ; | |
21709 | char *kwnames[] = { | |
21710 | (char *) "self",(char *) "item", NULL | |
21711 | }; | |
21712 | ||
21713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
21714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21716 | arg2 = (long) SWIG_AsLong(obj1); | |
21717 | if (PyErr_Occurred()) SWIG_fail; | |
21718 | { | |
21719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21720 | result = (bool)(arg1)->DeleteItem(arg2); | |
21721 | ||
21722 | wxPyEndAllowThreads(__tstate); | |
21723 | if (PyErr_Occurred()) SWIG_fail; | |
21724 | } | |
21725 | { | |
21726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21727 | } | |
21728 | return resultobj; | |
21729 | fail: | |
21730 | return NULL; | |
21731 | } | |
21732 | ||
21733 | ||
21734 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21735 | PyObject *resultobj; | |
21736 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21737 | bool result; | |
21738 | PyObject * obj0 = 0 ; | |
21739 | char *kwnames[] = { | |
21740 | (char *) "self", NULL | |
21741 | }; | |
21742 | ||
21743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
21744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21746 | { | |
21747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21748 | result = (bool)(arg1)->DeleteAllItems(); | |
21749 | ||
21750 | wxPyEndAllowThreads(__tstate); | |
21751 | if (PyErr_Occurred()) SWIG_fail; | |
21752 | } | |
21753 | { | |
21754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21755 | } | |
21756 | return resultobj; | |
21757 | fail: | |
21758 | return NULL; | |
21759 | } | |
21760 | ||
21761 | ||
21762 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21763 | PyObject *resultobj; | |
21764 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21765 | int arg2 ; | |
21766 | bool result; | |
21767 | PyObject * obj0 = 0 ; | |
21768 | PyObject * obj1 = 0 ; | |
21769 | char *kwnames[] = { | |
21770 | (char *) "self",(char *) "col", NULL | |
21771 | }; | |
21772 | ||
21773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
21774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21776 | arg2 = (int) SWIG_AsInt(obj1); | |
21777 | if (PyErr_Occurred()) SWIG_fail; | |
21778 | { | |
21779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21780 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21781 | ||
21782 | wxPyEndAllowThreads(__tstate); | |
21783 | if (PyErr_Occurred()) SWIG_fail; | |
21784 | } | |
21785 | { | |
21786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21787 | } | |
21788 | return resultobj; | |
21789 | fail: | |
21790 | return NULL; | |
21791 | } | |
21792 | ||
21793 | ||
21794 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21795 | PyObject *resultobj; | |
21796 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21797 | bool result; | |
21798 | PyObject * obj0 = 0 ; | |
21799 | char *kwnames[] = { | |
21800 | (char *) "self", NULL | |
21801 | }; | |
21802 | ||
21803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
21804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21806 | { | |
21807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21808 | result = (bool)(arg1)->DeleteAllColumns(); | |
21809 | ||
21810 | wxPyEndAllowThreads(__tstate); | |
21811 | if (PyErr_Occurred()) SWIG_fail; | |
21812 | } | |
21813 | { | |
21814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21815 | } | |
21816 | return resultobj; | |
21817 | fail: | |
21818 | return NULL; | |
21819 | } | |
21820 | ||
21821 | ||
21822 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21823 | PyObject *resultobj; | |
21824 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21825 | PyObject * obj0 = 0 ; | |
21826 | char *kwnames[] = { | |
21827 | (char *) "self", NULL | |
21828 | }; | |
21829 | ||
21830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
21831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21833 | { | |
21834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21835 | (arg1)->ClearAll(); | |
21836 | ||
21837 | wxPyEndAllowThreads(__tstate); | |
21838 | if (PyErr_Occurred()) SWIG_fail; | |
21839 | } | |
21840 | Py_INCREF(Py_None); resultobj = Py_None; | |
21841 | return resultobj; | |
21842 | fail: | |
21843 | return NULL; | |
21844 | } | |
21845 | ||
21846 | ||
21847 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21848 | PyObject *resultobj; | |
21849 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21850 | long arg2 ; | |
21851 | PyObject * obj0 = 0 ; | |
21852 | PyObject * obj1 = 0 ; | |
21853 | char *kwnames[] = { | |
21854 | (char *) "self",(char *) "item", NULL | |
21855 | }; | |
21856 | ||
21857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
21858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21860 | arg2 = (long) SWIG_AsLong(obj1); | |
21861 | if (PyErr_Occurred()) SWIG_fail; | |
21862 | { | |
21863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21864 | (arg1)->EditLabel(arg2); | |
21865 | ||
21866 | wxPyEndAllowThreads(__tstate); | |
21867 | if (PyErr_Occurred()) SWIG_fail; | |
21868 | } | |
21869 | Py_INCREF(Py_None); resultobj = Py_None; | |
21870 | return resultobj; | |
21871 | fail: | |
21872 | return NULL; | |
21873 | } | |
21874 | ||
21875 | ||
21876 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21877 | PyObject *resultobj; | |
21878 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21879 | long arg2 ; | |
21880 | bool result; | |
21881 | PyObject * obj0 = 0 ; | |
21882 | PyObject * obj1 = 0 ; | |
21883 | char *kwnames[] = { | |
21884 | (char *) "self",(char *) "item", NULL | |
21885 | }; | |
21886 | ||
21887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
21888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21890 | arg2 = (long) SWIG_AsLong(obj1); | |
21891 | if (PyErr_Occurred()) SWIG_fail; | |
21892 | { | |
21893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21894 | result = (bool)(arg1)->EnsureVisible(arg2); | |
21895 | ||
21896 | wxPyEndAllowThreads(__tstate); | |
21897 | if (PyErr_Occurred()) SWIG_fail; | |
21898 | } | |
21899 | { | |
21900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21901 | } | |
21902 | return resultobj; | |
21903 | fail: | |
21904 | return NULL; | |
21905 | } | |
21906 | ||
21907 | ||
21908 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21909 | PyObject *resultobj; | |
21910 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21911 | long arg2 ; | |
21912 | wxString *arg3 = 0 ; | |
21913 | bool arg4 = (bool) False ; | |
21914 | long result; | |
21915 | bool temp3 = False ; | |
21916 | PyObject * obj0 = 0 ; | |
21917 | PyObject * obj1 = 0 ; | |
21918 | PyObject * obj2 = 0 ; | |
21919 | PyObject * obj3 = 0 ; | |
21920 | char *kwnames[] = { | |
21921 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
21922 | }; | |
21923 | ||
21924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21927 | arg2 = (long) SWIG_AsLong(obj1); | |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
21929 | { | |
21930 | arg3 = wxString_in_helper(obj2); | |
21931 | if (arg3 == NULL) SWIG_fail; | |
21932 | temp3 = True; | |
21933 | } | |
21934 | if (obj3) { | |
21935 | arg4 = (bool) SWIG_AsBool(obj3); | |
21936 | if (PyErr_Occurred()) SWIG_fail; | |
21937 | } | |
21938 | { | |
21939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21940 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
21941 | ||
21942 | wxPyEndAllowThreads(__tstate); | |
21943 | if (PyErr_Occurred()) SWIG_fail; | |
21944 | } | |
21945 | resultobj = SWIG_FromLong((long)result); | |
21946 | { | |
21947 | if (temp3) | |
21948 | delete arg3; | |
21949 | } | |
21950 | return resultobj; | |
21951 | fail: | |
21952 | { | |
21953 | if (temp3) | |
21954 | delete arg3; | |
21955 | } | |
21956 | return NULL; | |
21957 | } | |
21958 | ||
21959 | ||
21960 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21961 | PyObject *resultobj; | |
21962 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21963 | long arg2 ; | |
21964 | long arg3 ; | |
21965 | long result; | |
21966 | PyObject * obj0 = 0 ; | |
21967 | PyObject * obj1 = 0 ; | |
21968 | PyObject * obj2 = 0 ; | |
21969 | char *kwnames[] = { | |
21970 | (char *) "self",(char *) "start",(char *) "data", NULL | |
21971 | }; | |
21972 | ||
21973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21976 | arg2 = (long) SWIG_AsLong(obj1); | |
21977 | if (PyErr_Occurred()) SWIG_fail; | |
21978 | arg3 = (long) SWIG_AsLong(obj2); | |
21979 | if (PyErr_Occurred()) SWIG_fail; | |
21980 | { | |
21981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21982 | result = (long)(arg1)->FindItem(arg2,arg3); | |
21983 | ||
21984 | wxPyEndAllowThreads(__tstate); | |
21985 | if (PyErr_Occurred()) SWIG_fail; | |
21986 | } | |
21987 | resultobj = SWIG_FromLong((long)result); | |
21988 | return resultobj; | |
21989 | fail: | |
21990 | return NULL; | |
21991 | } | |
21992 | ||
21993 | ||
21994 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21995 | PyObject *resultobj; | |
21996 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21997 | long arg2 ; | |
21998 | wxPoint *arg3 = 0 ; | |
21999 | int arg4 ; | |
22000 | long result; | |
22001 | wxPoint temp3 ; | |
22002 | PyObject * obj0 = 0 ; | |
22003 | PyObject * obj1 = 0 ; | |
22004 | PyObject * obj2 = 0 ; | |
22005 | PyObject * obj3 = 0 ; | |
22006 | char *kwnames[] = { | |
22007 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
22008 | }; | |
22009 | ||
22010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22013 | arg2 = (long) SWIG_AsLong(obj1); | |
22014 | if (PyErr_Occurred()) SWIG_fail; | |
22015 | { | |
22016 | arg3 = &temp3; | |
22017 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22018 | } | |
22019 | arg4 = (int) SWIG_AsInt(obj3); | |
22020 | if (PyErr_Occurred()) SWIG_fail; | |
22021 | { | |
22022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22023 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
22024 | ||
22025 | wxPyEndAllowThreads(__tstate); | |
22026 | if (PyErr_Occurred()) SWIG_fail; | |
22027 | } | |
22028 | resultobj = SWIG_FromLong((long)result); | |
22029 | return resultobj; | |
22030 | fail: | |
22031 | return NULL; | |
22032 | } | |
22033 | ||
22034 | ||
22035 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22036 | PyObject *resultobj; | |
22037 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22038 | wxPoint *arg2 = 0 ; | |
22039 | int *arg3 = 0 ; | |
22040 | long result; | |
22041 | wxPoint temp2 ; | |
22042 | int temp3 ; | |
22043 | PyObject * obj0 = 0 ; | |
22044 | PyObject * obj1 = 0 ; | |
22045 | char *kwnames[] = { | |
22046 | (char *) "self",(char *) "point", NULL | |
22047 | }; | |
22048 | ||
22049 | arg3 = &temp3; | |
22050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
22051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22053 | { | |
22054 | arg2 = &temp2; | |
22055 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22056 | } | |
22057 | { | |
22058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22059 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
22060 | ||
22061 | wxPyEndAllowThreads(__tstate); | |
22062 | if (PyErr_Occurred()) SWIG_fail; | |
22063 | } | |
22064 | resultobj = SWIG_FromLong((long)result); | |
22065 | { | |
22066 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22067 | resultobj = t_output_helper(resultobj,o); | |
22068 | } | |
22069 | return resultobj; | |
22070 | fail: | |
22071 | return NULL; | |
22072 | } | |
22073 | ||
22074 | ||
22075 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22076 | PyObject *resultobj; | |
22077 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22078 | wxListItem *arg2 = 0 ; | |
22079 | long result; | |
22080 | PyObject * obj0 = 0 ; | |
22081 | PyObject * obj1 = 0 ; | |
22082 | char *kwnames[] = { | |
22083 | (char *) "self",(char *) "info", NULL | |
22084 | }; | |
22085 | ||
22086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
22087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
22090 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22091 | SWIG_fail; | |
22092 | if (arg2 == NULL) { | |
22093 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22094 | SWIG_fail; | |
22095 | } | |
22096 | { | |
22097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22098 | result = (long)(arg1)->InsertItem(*arg2); | |
22099 | ||
22100 | wxPyEndAllowThreads(__tstate); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | } | |
22103 | resultobj = SWIG_FromLong((long)result); | |
22104 | return resultobj; | |
22105 | fail: | |
22106 | return NULL; | |
22107 | } | |
22108 | ||
22109 | ||
22110 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22111 | PyObject *resultobj; | |
22112 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22113 | long arg2 ; | |
22114 | wxString *arg3 = 0 ; | |
22115 | long result; | |
22116 | bool temp3 = False ; | |
22117 | PyObject * obj0 = 0 ; | |
22118 | PyObject * obj1 = 0 ; | |
22119 | PyObject * obj2 = 0 ; | |
22120 | char *kwnames[] = { | |
22121 | (char *) "self",(char *) "index",(char *) "label", NULL | |
22122 | }; | |
22123 | ||
22124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22127 | arg2 = (long) SWIG_AsLong(obj1); | |
22128 | if (PyErr_Occurred()) SWIG_fail; | |
22129 | { | |
22130 | arg3 = wxString_in_helper(obj2); | |
22131 | if (arg3 == NULL) SWIG_fail; | |
22132 | temp3 = True; | |
22133 | } | |
22134 | { | |
22135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22136 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
22137 | ||
22138 | wxPyEndAllowThreads(__tstate); | |
22139 | if (PyErr_Occurred()) SWIG_fail; | |
22140 | } | |
22141 | resultobj = SWIG_FromLong((long)result); | |
22142 | { | |
22143 | if (temp3) | |
22144 | delete arg3; | |
22145 | } | |
22146 | return resultobj; | |
22147 | fail: | |
22148 | { | |
22149 | if (temp3) | |
22150 | delete arg3; | |
22151 | } | |
22152 | return NULL; | |
22153 | } | |
22154 | ||
22155 | ||
22156 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22157 | PyObject *resultobj; | |
22158 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22159 | long arg2 ; | |
22160 | int arg3 ; | |
22161 | long result; | |
22162 | PyObject * obj0 = 0 ; | |
22163 | PyObject * obj1 = 0 ; | |
22164 | PyObject * obj2 = 0 ; | |
22165 | char *kwnames[] = { | |
22166 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
22167 | }; | |
22168 | ||
22169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22172 | arg2 = (long) SWIG_AsLong(obj1); | |
22173 | if (PyErr_Occurred()) SWIG_fail; | |
22174 | arg3 = (int) SWIG_AsInt(obj2); | |
22175 | if (PyErr_Occurred()) SWIG_fail; | |
22176 | { | |
22177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22178 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
22179 | ||
22180 | wxPyEndAllowThreads(__tstate); | |
22181 | if (PyErr_Occurred()) SWIG_fail; | |
22182 | } | |
22183 | resultobj = SWIG_FromLong((long)result); | |
22184 | return resultobj; | |
22185 | fail: | |
22186 | return NULL; | |
22187 | } | |
22188 | ||
22189 | ||
22190 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22191 | PyObject *resultobj; | |
22192 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22193 | long arg2 ; | |
22194 | wxString *arg3 = 0 ; | |
22195 | int arg4 ; | |
22196 | long result; | |
22197 | bool temp3 = False ; | |
22198 | PyObject * obj0 = 0 ; | |
22199 | PyObject * obj1 = 0 ; | |
22200 | PyObject * obj2 = 0 ; | |
22201 | PyObject * obj3 = 0 ; | |
22202 | char *kwnames[] = { | |
22203 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
22204 | }; | |
22205 | ||
22206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22209 | arg2 = (long) SWIG_AsLong(obj1); | |
22210 | if (PyErr_Occurred()) SWIG_fail; | |
22211 | { | |
22212 | arg3 = wxString_in_helper(obj2); | |
22213 | if (arg3 == NULL) SWIG_fail; | |
22214 | temp3 = True; | |
22215 | } | |
22216 | arg4 = (int) SWIG_AsInt(obj3); | |
22217 | if (PyErr_Occurred()) SWIG_fail; | |
22218 | { | |
22219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22220 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
22221 | ||
22222 | wxPyEndAllowThreads(__tstate); | |
22223 | if (PyErr_Occurred()) SWIG_fail; | |
22224 | } | |
22225 | resultobj = SWIG_FromLong((long)result); | |
22226 | { | |
22227 | if (temp3) | |
22228 | delete arg3; | |
22229 | } | |
22230 | return resultobj; | |
22231 | fail: | |
22232 | { | |
22233 | if (temp3) | |
22234 | delete arg3; | |
22235 | } | |
22236 | return NULL; | |
22237 | } | |
22238 | ||
22239 | ||
22240 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22241 | PyObject *resultobj; | |
22242 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22243 | long arg2 ; | |
22244 | wxListItem *arg3 = 0 ; | |
22245 | long result; | |
22246 | PyObject * obj0 = 0 ; | |
22247 | PyObject * obj1 = 0 ; | |
22248 | PyObject * obj2 = 0 ; | |
22249 | char *kwnames[] = { | |
22250 | (char *) "self",(char *) "col",(char *) "info", NULL | |
22251 | }; | |
22252 | ||
22253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22256 | arg2 = (long) SWIG_AsLong(obj1); | |
22257 | if (PyErr_Occurred()) SWIG_fail; | |
22258 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
22259 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22260 | SWIG_fail; | |
22261 | if (arg3 == NULL) { | |
22262 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22263 | SWIG_fail; | |
22264 | } | |
22265 | { | |
22266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22267 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
22268 | ||
22269 | wxPyEndAllowThreads(__tstate); | |
22270 | if (PyErr_Occurred()) SWIG_fail; | |
22271 | } | |
22272 | resultobj = SWIG_FromLong((long)result); | |
22273 | return resultobj; | |
22274 | fail: | |
22275 | return NULL; | |
22276 | } | |
22277 | ||
22278 | ||
22279 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22280 | PyObject *resultobj; | |
22281 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22282 | long arg2 ; | |
22283 | wxString *arg3 = 0 ; | |
22284 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
22285 | int arg5 = (int) -1 ; | |
22286 | long result; | |
22287 | bool temp3 = False ; | |
22288 | PyObject * obj0 = 0 ; | |
22289 | PyObject * obj1 = 0 ; | |
22290 | PyObject * obj2 = 0 ; | |
22291 | PyObject * obj3 = 0 ; | |
22292 | PyObject * obj4 = 0 ; | |
22293 | char *kwnames[] = { | |
22294 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
22295 | }; | |
22296 | ||
22297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
22298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22300 | arg2 = (long) SWIG_AsLong(obj1); | |
22301 | if (PyErr_Occurred()) SWIG_fail; | |
22302 | { | |
22303 | arg3 = wxString_in_helper(obj2); | |
22304 | if (arg3 == NULL) SWIG_fail; | |
22305 | temp3 = True; | |
22306 | } | |
22307 | if (obj3) { | |
22308 | arg4 = (int) SWIG_AsInt(obj3); | |
22309 | if (PyErr_Occurred()) SWIG_fail; | |
22310 | } | |
22311 | if (obj4) { | |
22312 | arg5 = (int) SWIG_AsInt(obj4); | |
22313 | if (PyErr_Occurred()) SWIG_fail; | |
22314 | } | |
22315 | { | |
22316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22317 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
22318 | ||
22319 | wxPyEndAllowThreads(__tstate); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | } | |
22322 | resultobj = SWIG_FromLong((long)result); | |
22323 | { | |
22324 | if (temp3) | |
22325 | delete arg3; | |
22326 | } | |
22327 | return resultobj; | |
22328 | fail: | |
22329 | { | |
22330 | if (temp3) | |
22331 | delete arg3; | |
22332 | } | |
22333 | return NULL; | |
22334 | } | |
22335 | ||
22336 | ||
22337 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22338 | PyObject *resultobj; | |
22339 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22340 | long arg2 ; | |
22341 | PyObject * obj0 = 0 ; | |
22342 | PyObject * obj1 = 0 ; | |
22343 | char *kwnames[] = { | |
22344 | (char *) "self",(char *) "count", NULL | |
22345 | }; | |
22346 | ||
22347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
22348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22350 | arg2 = (long) SWIG_AsLong(obj1); | |
22351 | if (PyErr_Occurred()) SWIG_fail; | |
22352 | { | |
22353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22354 | (arg1)->SetItemCount(arg2); | |
22355 | ||
22356 | wxPyEndAllowThreads(__tstate); | |
22357 | if (PyErr_Occurred()) SWIG_fail; | |
22358 | } | |
22359 | Py_INCREF(Py_None); resultobj = Py_None; | |
22360 | return resultobj; | |
22361 | fail: | |
22362 | return NULL; | |
22363 | } | |
22364 | ||
22365 | ||
22366 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22367 | PyObject *resultobj; | |
22368 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22369 | int arg2 ; | |
22370 | int arg3 ; | |
22371 | bool result; | |
22372 | PyObject * obj0 = 0 ; | |
22373 | PyObject * obj1 = 0 ; | |
22374 | PyObject * obj2 = 0 ; | |
22375 | char *kwnames[] = { | |
22376 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
22377 | }; | |
22378 | ||
22379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22382 | arg2 = (int) SWIG_AsInt(obj1); | |
22383 | if (PyErr_Occurred()) SWIG_fail; | |
22384 | arg3 = (int) SWIG_AsInt(obj2); | |
22385 | if (PyErr_Occurred()) SWIG_fail; | |
22386 | { | |
22387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22388 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
22389 | ||
22390 | wxPyEndAllowThreads(__tstate); | |
22391 | if (PyErr_Occurred()) SWIG_fail; | |
22392 | } | |
22393 | { | |
22394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22395 | } | |
22396 | return resultobj; | |
22397 | fail: | |
22398 | return NULL; | |
22399 | } | |
22400 | ||
22401 | ||
22402 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22403 | PyObject *resultobj; | |
22404 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22405 | long arg2 ; | |
22406 | wxColour *arg3 = 0 ; | |
22407 | wxColour temp3 ; | |
22408 | PyObject * obj0 = 0 ; | |
22409 | PyObject * obj1 = 0 ; | |
22410 | PyObject * obj2 = 0 ; | |
22411 | char *kwnames[] = { | |
22412 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22413 | }; | |
22414 | ||
22415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22418 | arg2 = (long) SWIG_AsLong(obj1); | |
22419 | if (PyErr_Occurred()) SWIG_fail; | |
22420 | { | |
22421 | arg3 = &temp3; | |
22422 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22423 | } | |
22424 | { | |
22425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22426 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
22427 | ||
22428 | wxPyEndAllowThreads(__tstate); | |
22429 | if (PyErr_Occurred()) SWIG_fail; | |
22430 | } | |
22431 | Py_INCREF(Py_None); resultobj = Py_None; | |
22432 | return resultobj; | |
22433 | fail: | |
22434 | return NULL; | |
22435 | } | |
22436 | ||
22437 | ||
22438 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22439 | PyObject *resultobj; | |
22440 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22441 | long arg2 ; | |
22442 | wxColour result; | |
22443 | PyObject * obj0 = 0 ; | |
22444 | PyObject * obj1 = 0 ; | |
22445 | char *kwnames[] = { | |
22446 | (char *) "self",(char *) "item", NULL | |
22447 | }; | |
22448 | ||
22449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
22450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22452 | arg2 = (long) SWIG_AsLong(obj1); | |
22453 | if (PyErr_Occurred()) SWIG_fail; | |
22454 | { | |
22455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22456 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
22457 | ||
22458 | wxPyEndAllowThreads(__tstate); | |
22459 | if (PyErr_Occurred()) SWIG_fail; | |
22460 | } | |
22461 | { | |
22462 | wxColour * resultptr; | |
22463 | resultptr = new wxColour((wxColour &) result); | |
22464 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
22465 | } | |
22466 | return resultobj; | |
22467 | fail: | |
22468 | return NULL; | |
22469 | } | |
22470 | ||
22471 | ||
22472 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22473 | PyObject *resultobj; | |
22474 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22475 | long arg2 ; | |
22476 | wxColour *arg3 = 0 ; | |
22477 | wxColour temp3 ; | |
22478 | PyObject * obj0 = 0 ; | |
22479 | PyObject * obj1 = 0 ; | |
22480 | PyObject * obj2 = 0 ; | |
22481 | char *kwnames[] = { | |
22482 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22483 | }; | |
22484 | ||
22485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22488 | arg2 = (long) SWIG_AsLong(obj1); | |
22489 | if (PyErr_Occurred()) SWIG_fail; | |
22490 | { | |
22491 | arg3 = &temp3; | |
22492 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22493 | } | |
22494 | { | |
22495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22496 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
22497 | ||
22498 | wxPyEndAllowThreads(__tstate); | |
22499 | if (PyErr_Occurred()) SWIG_fail; | |
22500 | } | |
22501 | Py_INCREF(Py_None); resultobj = Py_None; | |
22502 | return resultobj; | |
22503 | fail: | |
22504 | return NULL; | |
22505 | } | |
22506 | ||
22507 | ||
22508 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22509 | PyObject *resultobj; | |
22510 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22511 | long arg2 ; | |
22512 | wxColour result; | |
22513 | PyObject * obj0 = 0 ; | |
22514 | PyObject * obj1 = 0 ; | |
22515 | char *kwnames[] = { | |
22516 | (char *) "self",(char *) "item", NULL | |
22517 | }; | |
22518 | ||
22519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22522 | arg2 = (long) SWIG_AsLong(obj1); | |
22523 | if (PyErr_Occurred()) SWIG_fail; | |
22524 | { | |
22525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22526 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
22527 | ||
22528 | wxPyEndAllowThreads(__tstate); | |
22529 | if (PyErr_Occurred()) SWIG_fail; | |
22530 | } | |
22531 | { | |
22532 | wxColour * resultptr; | |
22533 | resultptr = new wxColour((wxColour &) result); | |
22534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
22535 | } | |
22536 | return resultobj; | |
22537 | fail: | |
22538 | return NULL; | |
22539 | } | |
22540 | ||
22541 | ||
22542 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22543 | PyObject *resultobj; | |
22544 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22545 | PyObject *arg2 = (PyObject *) 0 ; | |
22546 | bool result; | |
22547 | PyObject * obj0 = 0 ; | |
22548 | PyObject * obj1 = 0 ; | |
22549 | char *kwnames[] = { | |
22550 | (char *) "self",(char *) "func", NULL | |
22551 | }; | |
22552 | ||
22553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
22554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22556 | arg2 = obj1; | |
22557 | { | |
22558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22559 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
22560 | ||
22561 | wxPyEndAllowThreads(__tstate); | |
22562 | if (PyErr_Occurred()) SWIG_fail; | |
22563 | } | |
22564 | { | |
22565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22566 | } | |
22567 | return resultobj; | |
22568 | fail: | |
22569 | return NULL; | |
22570 | } | |
22571 | ||
22572 | ||
22573 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22574 | PyObject *resultobj; | |
22575 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22576 | wxWindow *result; | |
22577 | PyObject * obj0 = 0 ; | |
22578 | char *kwnames[] = { | |
22579 | (char *) "self", NULL | |
22580 | }; | |
22581 | ||
22582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
22583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22585 | { | |
22586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22587 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22588 | ||
22589 | wxPyEndAllowThreads(__tstate); | |
22590 | if (PyErr_Occurred()) SWIG_fail; | |
22591 | } | |
22592 | { | |
22593 | resultobj = wxPyMake_wxObject(result); | |
22594 | } | |
22595 | return resultobj; | |
22596 | fail: | |
22597 | return NULL; | |
22598 | } | |
22599 | ||
22600 | ||
22601 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
22602 | PyObject *obj; | |
22603 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22604 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22605 | Py_INCREF(obj); | |
22606 | return Py_BuildValue((char *)""); | |
22607 | } | |
22608 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22609 | PyObject *resultobj; | |
22610 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22611 | int arg2 = (int) -1 ; | |
22612 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22613 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22614 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22615 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22616 | long arg5 = (long) wxLC_REPORT ; | |
22617 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22618 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22619 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22620 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22621 | wxListView *result; | |
22622 | wxPoint temp3 ; | |
22623 | wxSize temp4 ; | |
22624 | bool temp7 = False ; | |
22625 | PyObject * obj0 = 0 ; | |
22626 | PyObject * obj1 = 0 ; | |
22627 | PyObject * obj2 = 0 ; | |
22628 | PyObject * obj3 = 0 ; | |
22629 | PyObject * obj4 = 0 ; | |
22630 | PyObject * obj5 = 0 ; | |
22631 | PyObject * obj6 = 0 ; | |
22632 | char *kwnames[] = { | |
22633 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22634 | }; | |
22635 | ||
22636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22639 | if (obj1) { | |
22640 | arg2 = (int) SWIG_AsInt(obj1); | |
22641 | if (PyErr_Occurred()) SWIG_fail; | |
22642 | } | |
22643 | if (obj2) { | |
22644 | { | |
22645 | arg3 = &temp3; | |
22646 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22647 | } | |
22648 | } | |
22649 | if (obj3) { | |
22650 | { | |
22651 | arg4 = &temp4; | |
22652 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22653 | } | |
22654 | } | |
22655 | if (obj4) { | |
22656 | arg5 = (long) SWIG_AsLong(obj4); | |
22657 | if (PyErr_Occurred()) SWIG_fail; | |
22658 | } | |
22659 | if (obj5) { | |
22660 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
22661 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22662 | SWIG_fail; | |
22663 | if (arg6 == NULL) { | |
22664 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22665 | SWIG_fail; | |
22666 | } | |
22667 | } | |
22668 | if (obj6) { | |
22669 | { | |
22670 | arg7 = wxString_in_helper(obj6); | |
22671 | if (arg7 == NULL) SWIG_fail; | |
22672 | temp7 = True; | |
22673 | } | |
22674 | } | |
22675 | { | |
22676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22677 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22678 | ||
22679 | wxPyEndAllowThreads(__tstate); | |
22680 | if (PyErr_Occurred()) SWIG_fail; | |
22681 | } | |
22682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
22683 | { | |
22684 | if (temp7) | |
22685 | delete arg7; | |
22686 | } | |
22687 | return resultobj; | |
22688 | fail: | |
22689 | { | |
22690 | if (temp7) | |
22691 | delete arg7; | |
22692 | } | |
22693 | return NULL; | |
22694 | } | |
22695 | ||
22696 | ||
22697 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22698 | PyObject *resultobj; | |
22699 | wxListView *result; | |
22700 | char *kwnames[] = { | |
22701 | NULL | |
22702 | }; | |
22703 | ||
22704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22705 | { | |
22706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22707 | result = (wxListView *)new wxListView(); | |
22708 | ||
22709 | wxPyEndAllowThreads(__tstate); | |
22710 | if (PyErr_Occurred()) SWIG_fail; | |
22711 | } | |
22712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
22713 | return resultobj; | |
22714 | fail: | |
22715 | return NULL; | |
22716 | } | |
22717 | ||
22718 | ||
22719 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22720 | PyObject *resultobj; | |
22721 | wxListView *arg1 = (wxListView *) 0 ; | |
22722 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22723 | int arg3 = (int) -1 ; | |
22724 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22725 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22726 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22727 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22728 | long arg6 = (long) wxLC_REPORT ; | |
22729 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22730 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22731 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22732 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22733 | bool result; | |
22734 | wxPoint temp4 ; | |
22735 | wxSize temp5 ; | |
22736 | bool temp8 = False ; | |
22737 | PyObject * obj0 = 0 ; | |
22738 | PyObject * obj1 = 0 ; | |
22739 | PyObject * obj2 = 0 ; | |
22740 | PyObject * obj3 = 0 ; | |
22741 | PyObject * obj4 = 0 ; | |
22742 | PyObject * obj5 = 0 ; | |
22743 | PyObject * obj6 = 0 ; | |
22744 | PyObject * obj7 = 0 ; | |
22745 | char *kwnames[] = { | |
22746 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22747 | }; | |
22748 | ||
22749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
22750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
22751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22752 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22754 | if (obj2) { | |
22755 | arg3 = (int) SWIG_AsInt(obj2); | |
22756 | if (PyErr_Occurred()) SWIG_fail; | |
22757 | } | |
22758 | if (obj3) { | |
22759 | { | |
22760 | arg4 = &temp4; | |
22761 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22762 | } | |
22763 | } | |
22764 | if (obj4) { | |
22765 | { | |
22766 | arg5 = &temp5; | |
22767 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22768 | } | |
22769 | } | |
22770 | if (obj5) { | |
22771 | arg6 = (long) SWIG_AsLong(obj5); | |
22772 | if (PyErr_Occurred()) SWIG_fail; | |
22773 | } | |
22774 | if (obj6) { | |
22775 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
22776 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22777 | SWIG_fail; | |
22778 | if (arg7 == NULL) { | |
22779 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22780 | SWIG_fail; | |
22781 | } | |
22782 | } | |
22783 | if (obj7) { | |
22784 | { | |
22785 | arg8 = wxString_in_helper(obj7); | |
22786 | if (arg8 == NULL) SWIG_fail; | |
22787 | temp8 = True; | |
22788 | } | |
22789 | } | |
22790 | { | |
22791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22792 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22793 | ||
22794 | wxPyEndAllowThreads(__tstate); | |
22795 | if (PyErr_Occurred()) SWIG_fail; | |
22796 | } | |
22797 | { | |
22798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22799 | } | |
22800 | { | |
22801 | if (temp8) | |
22802 | delete arg8; | |
22803 | } | |
22804 | return resultobj; | |
22805 | fail: | |
22806 | { | |
22807 | if (temp8) | |
22808 | delete arg8; | |
22809 | } | |
22810 | return NULL; | |
22811 | } | |
22812 | ||
22813 | ||
22814 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22815 | PyObject *resultobj; | |
22816 | wxListView *arg1 = (wxListView *) 0 ; | |
22817 | long arg2 ; | |
22818 | bool arg3 = (bool) True ; | |
22819 | PyObject * obj0 = 0 ; | |
22820 | PyObject * obj1 = 0 ; | |
22821 | PyObject * obj2 = 0 ; | |
22822 | char *kwnames[] = { | |
22823 | (char *) "self",(char *) "n",(char *) "on", NULL | |
22824 | }; | |
22825 | ||
22826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
22828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22829 | arg2 = (long) SWIG_AsLong(obj1); | |
22830 | if (PyErr_Occurred()) SWIG_fail; | |
22831 | if (obj2) { | |
22832 | arg3 = (bool) SWIG_AsBool(obj2); | |
22833 | if (PyErr_Occurred()) SWIG_fail; | |
22834 | } | |
22835 | { | |
22836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22837 | (arg1)->Select(arg2,arg3); | |
22838 | ||
22839 | wxPyEndAllowThreads(__tstate); | |
22840 | if (PyErr_Occurred()) SWIG_fail; | |
22841 | } | |
22842 | Py_INCREF(Py_None); resultobj = Py_None; | |
22843 | return resultobj; | |
22844 | fail: | |
22845 | return NULL; | |
22846 | } | |
22847 | ||
22848 | ||
22849 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22850 | PyObject *resultobj; | |
22851 | wxListView *arg1 = (wxListView *) 0 ; | |
22852 | long arg2 ; | |
22853 | PyObject * obj0 = 0 ; | |
22854 | PyObject * obj1 = 0 ; | |
22855 | char *kwnames[] = { | |
22856 | (char *) "self",(char *) "index", NULL | |
22857 | }; | |
22858 | ||
22859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
22860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
22861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22862 | arg2 = (long) SWIG_AsLong(obj1); | |
22863 | if (PyErr_Occurred()) SWIG_fail; | |
22864 | { | |
22865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22866 | (arg1)->Focus(arg2); | |
22867 | ||
22868 | wxPyEndAllowThreads(__tstate); | |
22869 | if (PyErr_Occurred()) SWIG_fail; | |
22870 | } | |
22871 | Py_INCREF(Py_None); resultobj = Py_None; | |
22872 | return resultobj; | |
22873 | fail: | |
22874 | return NULL; | |
22875 | } | |
22876 | ||
22877 | ||
22878 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22879 | PyObject *resultobj; | |
22880 | wxListView *arg1 = (wxListView *) 0 ; | |
22881 | long result; | |
22882 | PyObject * obj0 = 0 ; | |
22883 | char *kwnames[] = { | |
22884 | (char *) "self", NULL | |
22885 | }; | |
22886 | ||
22887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
22888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
22889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22890 | { | |
22891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22892 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
22893 | ||
22894 | wxPyEndAllowThreads(__tstate); | |
22895 | if (PyErr_Occurred()) SWIG_fail; | |
22896 | } | |
22897 | resultobj = SWIG_FromLong((long)result); | |
22898 | return resultobj; | |
22899 | fail: | |
22900 | return NULL; | |
22901 | } | |
22902 | ||
22903 | ||
22904 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22905 | PyObject *resultobj; | |
22906 | wxListView *arg1 = (wxListView *) 0 ; | |
22907 | long arg2 ; | |
22908 | long result; | |
22909 | PyObject * obj0 = 0 ; | |
22910 | PyObject * obj1 = 0 ; | |
22911 | char *kwnames[] = { | |
22912 | (char *) "self",(char *) "item", NULL | |
22913 | }; | |
22914 | ||
22915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
22916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
22917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22918 | arg2 = (long) SWIG_AsLong(obj1); | |
22919 | if (PyErr_Occurred()) SWIG_fail; | |
22920 | { | |
22921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22922 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
22923 | ||
22924 | wxPyEndAllowThreads(__tstate); | |
22925 | if (PyErr_Occurred()) SWIG_fail; | |
22926 | } | |
22927 | resultobj = SWIG_FromLong((long)result); | |
22928 | return resultobj; | |
22929 | fail: | |
22930 | return NULL; | |
22931 | } | |
22932 | ||
22933 | ||
22934 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22935 | PyObject *resultobj; | |
22936 | wxListView *arg1 = (wxListView *) 0 ; | |
22937 | long result; | |
22938 | PyObject * obj0 = 0 ; | |
22939 | char *kwnames[] = { | |
22940 | (char *) "self", NULL | |
22941 | }; | |
22942 | ||
22943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
22944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
22945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22946 | { | |
22947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22948 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
22949 | ||
22950 | wxPyEndAllowThreads(__tstate); | |
22951 | if (PyErr_Occurred()) SWIG_fail; | |
22952 | } | |
22953 | resultobj = SWIG_FromLong((long)result); | |
22954 | return resultobj; | |
22955 | fail: | |
22956 | return NULL; | |
22957 | } | |
22958 | ||
22959 | ||
22960 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22961 | PyObject *resultobj; | |
22962 | wxListView *arg1 = (wxListView *) 0 ; | |
22963 | long arg2 ; | |
22964 | bool result; | |
22965 | PyObject * obj0 = 0 ; | |
22966 | PyObject * obj1 = 0 ; | |
22967 | char *kwnames[] = { | |
22968 | (char *) "self",(char *) "index", NULL | |
22969 | }; | |
22970 | ||
22971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
22972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
22973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22974 | arg2 = (long) SWIG_AsLong(obj1); | |
22975 | if (PyErr_Occurred()) SWIG_fail; | |
22976 | { | |
22977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22978 | result = (bool)(arg1)->IsSelected(arg2); | |
22979 | ||
22980 | wxPyEndAllowThreads(__tstate); | |
22981 | if (PyErr_Occurred()) SWIG_fail; | |
22982 | } | |
22983 | { | |
22984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22985 | } | |
22986 | return resultobj; | |
22987 | fail: | |
22988 | return NULL; | |
22989 | } | |
22990 | ||
22991 | ||
22992 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22993 | PyObject *resultobj; | |
22994 | wxListView *arg1 = (wxListView *) 0 ; | |
22995 | int arg2 ; | |
22996 | int arg3 ; | |
22997 | PyObject * obj0 = 0 ; | |
22998 | PyObject * obj1 = 0 ; | |
22999 | PyObject * obj2 = 0 ; | |
23000 | char *kwnames[] = { | |
23001 | (char *) "self",(char *) "col",(char *) "image", NULL | |
23002 | }; | |
23003 | ||
23004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23007 | arg2 = (int) SWIG_AsInt(obj1); | |
23008 | if (PyErr_Occurred()) SWIG_fail; | |
23009 | arg3 = (int) SWIG_AsInt(obj2); | |
23010 | if (PyErr_Occurred()) SWIG_fail; | |
23011 | { | |
23012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23013 | (arg1)->SetColumnImage(arg2,arg3); | |
23014 | ||
23015 | wxPyEndAllowThreads(__tstate); | |
23016 | if (PyErr_Occurred()) SWIG_fail; | |
23017 | } | |
23018 | Py_INCREF(Py_None); resultobj = Py_None; | |
23019 | return resultobj; | |
23020 | fail: | |
23021 | return NULL; | |
23022 | } | |
23023 | ||
23024 | ||
23025 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23026 | PyObject *resultobj; | |
23027 | wxListView *arg1 = (wxListView *) 0 ; | |
23028 | int arg2 ; | |
23029 | PyObject * obj0 = 0 ; | |
23030 | PyObject * obj1 = 0 ; | |
23031 | char *kwnames[] = { | |
23032 | (char *) "self",(char *) "col", NULL | |
23033 | }; | |
23034 | ||
23035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
23036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23038 | arg2 = (int) SWIG_AsInt(obj1); | |
23039 | if (PyErr_Occurred()) SWIG_fail; | |
23040 | { | |
23041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23042 | (arg1)->ClearColumnImage(arg2); | |
23043 | ||
23044 | wxPyEndAllowThreads(__tstate); | |
23045 | if (PyErr_Occurred()) SWIG_fail; | |
23046 | } | |
23047 | Py_INCREF(Py_None); resultobj = Py_None; | |
23048 | return resultobj; | |
23049 | fail: | |
23050 | return NULL; | |
23051 | } | |
23052 | ||
23053 | ||
23054 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
23055 | PyObject *obj; | |
23056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23057 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
23058 | Py_INCREF(obj); | |
23059 | return Py_BuildValue((char *)""); | |
23060 | } | |
23061 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { | |
23062 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
23063 | return 1; | |
23064 | } | |
23065 | ||
23066 | ||
23067 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
23068 | PyObject *pyobj; | |
23069 | ||
23070 | { | |
23071 | #if wxUSE_UNICODE | |
23072 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23073 | #else | |
23074 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23075 | #endif | |
23076 | } | |
23077 | return pyobj; | |
23078 | } | |
23079 | ||
23080 | ||
23081 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23082 | PyObject *resultobj; | |
23083 | wxTreeItemId *result; | |
23084 | char *kwnames[] = { | |
23085 | NULL | |
23086 | }; | |
23087 | ||
23088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
23089 | { | |
23090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23091 | result = (wxTreeItemId *)new wxTreeItemId(); | |
23092 | ||
23093 | wxPyEndAllowThreads(__tstate); | |
23094 | if (PyErr_Occurred()) SWIG_fail; | |
23095 | } | |
23096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); | |
23097 | return resultobj; | |
23098 | fail: | |
23099 | return NULL; | |
23100 | } | |
23101 | ||
23102 | ||
23103 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23104 | PyObject *resultobj; | |
23105 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23106 | PyObject * obj0 = 0 ; | |
23107 | char *kwnames[] = { | |
23108 | (char *) "self", NULL | |
23109 | }; | |
23110 | ||
23111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
23112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23114 | { | |
23115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23116 | delete arg1; | |
23117 | ||
23118 | wxPyEndAllowThreads(__tstate); | |
23119 | if (PyErr_Occurred()) SWIG_fail; | |
23120 | } | |
23121 | Py_INCREF(Py_None); resultobj = Py_None; | |
23122 | return resultobj; | |
23123 | fail: | |
23124 | return NULL; | |
23125 | } | |
23126 | ||
23127 | ||
23128 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23129 | PyObject *resultobj; | |
23130 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23131 | bool result; | |
23132 | PyObject * obj0 = 0 ; | |
23133 | char *kwnames[] = { | |
23134 | (char *) "self", NULL | |
23135 | }; | |
23136 | ||
23137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
23138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23140 | { | |
23141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23142 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
23143 | ||
23144 | wxPyEndAllowThreads(__tstate); | |
23145 | if (PyErr_Occurred()) SWIG_fail; | |
23146 | } | |
23147 | { | |
23148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23149 | } | |
23150 | return resultobj; | |
23151 | fail: | |
23152 | return NULL; | |
23153 | } | |
23154 | ||
23155 | ||
23156 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23157 | PyObject *resultobj; | |
23158 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23159 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23160 | bool result; | |
23161 | PyObject * obj0 = 0 ; | |
23162 | PyObject * obj1 = 0 ; | |
23163 | char *kwnames[] = { | |
23164 | (char *) "self",(char *) "other", NULL | |
23165 | }; | |
23166 | ||
23167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
23168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23170 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23172 | { | |
23173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23174 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
23175 | ||
23176 | wxPyEndAllowThreads(__tstate); | |
23177 | if (PyErr_Occurred()) SWIG_fail; | |
23178 | } | |
23179 | { | |
23180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23181 | } | |
23182 | return resultobj; | |
23183 | fail: | |
23184 | return NULL; | |
23185 | } | |
23186 | ||
23187 | ||
23188 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23189 | PyObject *resultobj; | |
23190 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23191 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23192 | bool result; | |
23193 | PyObject * obj0 = 0 ; | |
23194 | PyObject * obj1 = 0 ; | |
23195 | char *kwnames[] = { | |
23196 | (char *) "self",(char *) "other", NULL | |
23197 | }; | |
23198 | ||
23199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23204 | { | |
23205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23206 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
23207 | ||
23208 | wxPyEndAllowThreads(__tstate); | |
23209 | if (PyErr_Occurred()) SWIG_fail; | |
23210 | } | |
23211 | { | |
23212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23213 | } | |
23214 | return resultobj; | |
23215 | fail: | |
23216 | return NULL; | |
23217 | } | |
23218 | ||
23219 | ||
23220 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23221 | PyObject *resultobj; | |
23222 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23223 | void *arg2 = (void *) 0 ; | |
23224 | PyObject * obj0 = 0 ; | |
23225 | PyObject * obj1 = 0 ; | |
23226 | char *kwnames[] = { | |
23227 | (char *) "self",(char *) "m_pItem", NULL | |
23228 | }; | |
23229 | ||
23230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
23231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23233 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
23234 | if (arg1) (arg1)->m_pItem = arg2; | |
23235 | ||
23236 | Py_INCREF(Py_None); resultobj = Py_None; | |
23237 | return resultobj; | |
23238 | fail: | |
23239 | return NULL; | |
23240 | } | |
23241 | ||
23242 | ||
23243 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23244 | PyObject *resultobj; | |
23245 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23246 | void *result; | |
23247 | PyObject * obj0 = 0 ; | |
23248 | char *kwnames[] = { | |
23249 | (char *) "self", NULL | |
23250 | }; | |
23251 | ||
23252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
23253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23255 | result = (void *) ((arg1)->m_pItem); | |
23256 | ||
23257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
23258 | return resultobj; | |
23259 | fail: | |
23260 | return NULL; | |
23261 | } | |
23262 | ||
23263 | ||
23264 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
23265 | PyObject *obj; | |
23266 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23267 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
23268 | Py_INCREF(obj); | |
23269 | return Py_BuildValue((char *)""); | |
23270 | } | |
23271 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23272 | PyObject *resultobj; | |
23273 | PyObject *arg1 = (PyObject *) NULL ; | |
23274 | wxPyTreeItemData *result; | |
23275 | PyObject * obj0 = 0 ; | |
23276 | char *kwnames[] = { | |
23277 | (char *) "obj", NULL | |
23278 | }; | |
23279 | ||
23280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
23281 | if (obj0) { | |
23282 | arg1 = obj0; | |
23283 | } | |
23284 | { | |
23285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23286 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
23287 | ||
23288 | wxPyEndAllowThreads(__tstate); | |
23289 | if (PyErr_Occurred()) SWIG_fail; | |
23290 | } | |
23291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); | |
23292 | return resultobj; | |
23293 | fail: | |
23294 | return NULL; | |
23295 | } | |
23296 | ||
23297 | ||
23298 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23299 | PyObject *resultobj; | |
23300 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23301 | PyObject *result; | |
23302 | PyObject * obj0 = 0 ; | |
23303 | char *kwnames[] = { | |
23304 | (char *) "self", NULL | |
23305 | }; | |
23306 | ||
23307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
23308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
23309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23310 | { | |
23311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23312 | result = (PyObject *)(arg1)->GetData(); | |
23313 | ||
23314 | wxPyEndAllowThreads(__tstate); | |
23315 | if (PyErr_Occurred()) SWIG_fail; | |
23316 | } | |
23317 | resultobj = result; | |
23318 | return resultobj; | |
23319 | fail: | |
23320 | return NULL; | |
23321 | } | |
23322 | ||
23323 | ||
23324 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23325 | PyObject *resultobj; | |
23326 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23327 | PyObject *arg2 = (PyObject *) 0 ; | |
23328 | PyObject * obj0 = 0 ; | |
23329 | PyObject * obj1 = 0 ; | |
23330 | char *kwnames[] = { | |
23331 | (char *) "self",(char *) "obj", NULL | |
23332 | }; | |
23333 | ||
23334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
23336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23337 | arg2 = obj1; | |
23338 | { | |
23339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23340 | (arg1)->SetData(arg2); | |
23341 | ||
23342 | wxPyEndAllowThreads(__tstate); | |
23343 | if (PyErr_Occurred()) SWIG_fail; | |
23344 | } | |
23345 | Py_INCREF(Py_None); resultobj = Py_None; | |
23346 | return resultobj; | |
23347 | fail: | |
23348 | return NULL; | |
23349 | } | |
23350 | ||
23351 | ||
23352 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23353 | PyObject *resultobj; | |
23354 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23355 | wxTreeItemId *result; | |
23356 | PyObject * obj0 = 0 ; | |
23357 | char *kwnames[] = { | |
23358 | (char *) "self", NULL | |
23359 | }; | |
23360 | ||
23361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
23362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
23363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23364 | { | |
23365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23366 | { | |
23367 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
23368 | result = (wxTreeItemId *) &_result_ref; | |
23369 | } | |
23370 | ||
23371 | wxPyEndAllowThreads(__tstate); | |
23372 | if (PyErr_Occurred()) SWIG_fail; | |
23373 | } | |
23374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); | |
23375 | return resultobj; | |
23376 | fail: | |
23377 | return NULL; | |
23378 | } | |
23379 | ||
23380 | ||
23381 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23382 | PyObject *resultobj; | |
23383 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23384 | wxTreeItemId *arg2 = 0 ; | |
23385 | PyObject * obj0 = 0 ; | |
23386 | PyObject * obj1 = 0 ; | |
23387 | char *kwnames[] = { | |
23388 | (char *) "self",(char *) "id", NULL | |
23389 | }; | |
23390 | ||
23391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
23392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
23393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23394 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23395 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23396 | SWIG_fail; | |
23397 | if (arg2 == NULL) { | |
23398 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23399 | SWIG_fail; | |
23400 | } | |
23401 | { | |
23402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23403 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
23404 | ||
23405 | wxPyEndAllowThreads(__tstate); | |
23406 | if (PyErr_Occurred()) SWIG_fail; | |
23407 | } | |
23408 | Py_INCREF(Py_None); resultobj = Py_None; | |
23409 | return resultobj; | |
23410 | fail: | |
23411 | return NULL; | |
23412 | } | |
23413 | ||
23414 | ||
23415 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23416 | PyObject *resultobj; | |
23417 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23418 | PyObject * obj0 = 0 ; | |
23419 | char *kwnames[] = { | |
23420 | (char *) "self", NULL | |
23421 | }; | |
23422 | ||
23423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
23424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
23425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23426 | { | |
23427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23428 | wxPyTreeItemData_Destroy(arg1); | |
23429 | ||
23430 | wxPyEndAllowThreads(__tstate); | |
23431 | if (PyErr_Occurred()) SWIG_fail; | |
23432 | } | |
23433 | Py_INCREF(Py_None); resultobj = Py_None; | |
23434 | return resultobj; | |
23435 | fail: | |
23436 | return NULL; | |
23437 | } | |
23438 | ||
23439 | ||
23440 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
23441 | PyObject *obj; | |
23442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23443 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
23444 | Py_INCREF(obj); | |
23445 | return Py_BuildValue((char *)""); | |
23446 | } | |
23447 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23448 | PyObject *resultobj; | |
23449 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23450 | int arg2 = (int) 0 ; | |
23451 | wxTreeEvent *result; | |
23452 | PyObject * obj0 = 0 ; | |
23453 | PyObject * obj1 = 0 ; | |
23454 | char *kwnames[] = { | |
23455 | (char *) "commandType",(char *) "id", NULL | |
23456 | }; | |
23457 | ||
23458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
23459 | if (obj0) { | |
23460 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
23461 | if (PyErr_Occurred()) SWIG_fail; | |
23462 | } | |
23463 | if (obj1) { | |
23464 | arg2 = (int) SWIG_AsInt(obj1); | |
23465 | if (PyErr_Occurred()) SWIG_fail; | |
23466 | } | |
23467 | { | |
23468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23469 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
23470 | ||
23471 | wxPyEndAllowThreads(__tstate); | |
23472 | if (PyErr_Occurred()) SWIG_fail; | |
23473 | } | |
23474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); | |
23475 | return resultobj; | |
23476 | fail: | |
23477 | return NULL; | |
23478 | } | |
23479 | ||
23480 | ||
23481 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23482 | PyObject *resultobj; | |
23483 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23484 | wxTreeItemId result; | |
23485 | PyObject * obj0 = 0 ; | |
23486 | char *kwnames[] = { | |
23487 | (char *) "self", NULL | |
23488 | }; | |
23489 | ||
23490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
23491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23493 | { | |
23494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23495 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
23496 | ||
23497 | wxPyEndAllowThreads(__tstate); | |
23498 | if (PyErr_Occurred()) SWIG_fail; | |
23499 | } | |
23500 | { | |
23501 | wxTreeItemId * resultptr; | |
23502 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23503 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
23504 | } | |
23505 | return resultobj; | |
23506 | fail: | |
23507 | return NULL; | |
23508 | } | |
23509 | ||
23510 | ||
23511 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23512 | PyObject *resultobj; | |
23513 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23514 | wxTreeItemId *arg2 = 0 ; | |
23515 | PyObject * obj0 = 0 ; | |
23516 | PyObject * obj1 = 0 ; | |
23517 | char *kwnames[] = { | |
23518 | (char *) "self",(char *) "item", NULL | |
23519 | }; | |
23520 | ||
23521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
23522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23524 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23525 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23526 | SWIG_fail; | |
23527 | if (arg2 == NULL) { | |
23528 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23529 | SWIG_fail; | |
23530 | } | |
23531 | { | |
23532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23533 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
23534 | ||
23535 | wxPyEndAllowThreads(__tstate); | |
23536 | if (PyErr_Occurred()) SWIG_fail; | |
23537 | } | |
23538 | Py_INCREF(Py_None); resultobj = Py_None; | |
23539 | return resultobj; | |
23540 | fail: | |
23541 | return NULL; | |
23542 | } | |
23543 | ||
23544 | ||
23545 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23546 | PyObject *resultobj; | |
23547 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23548 | wxTreeItemId result; | |
23549 | PyObject * obj0 = 0 ; | |
23550 | char *kwnames[] = { | |
23551 | (char *) "self", NULL | |
23552 | }; | |
23553 | ||
23554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
23555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23557 | { | |
23558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23559 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
23560 | ||
23561 | wxPyEndAllowThreads(__tstate); | |
23562 | if (PyErr_Occurred()) SWIG_fail; | |
23563 | } | |
23564 | { | |
23565 | wxTreeItemId * resultptr; | |
23566 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23567 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
23568 | } | |
23569 | return resultobj; | |
23570 | fail: | |
23571 | return NULL; | |
23572 | } | |
23573 | ||
23574 | ||
23575 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23576 | PyObject *resultobj; | |
23577 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23578 | wxTreeItemId *arg2 = 0 ; | |
23579 | PyObject * obj0 = 0 ; | |
23580 | PyObject * obj1 = 0 ; | |
23581 | char *kwnames[] = { | |
23582 | (char *) "self",(char *) "item", NULL | |
23583 | }; | |
23584 | ||
23585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
23586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23588 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23589 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23590 | SWIG_fail; | |
23591 | if (arg2 == NULL) { | |
23592 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23593 | SWIG_fail; | |
23594 | } | |
23595 | { | |
23596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23597 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
23598 | ||
23599 | wxPyEndAllowThreads(__tstate); | |
23600 | if (PyErr_Occurred()) SWIG_fail; | |
23601 | } | |
23602 | Py_INCREF(Py_None); resultobj = Py_None; | |
23603 | return resultobj; | |
23604 | fail: | |
23605 | return NULL; | |
23606 | } | |
23607 | ||
23608 | ||
23609 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23610 | PyObject *resultobj; | |
23611 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23612 | wxPoint result; | |
23613 | PyObject * obj0 = 0 ; | |
23614 | char *kwnames[] = { | |
23615 | (char *) "self", NULL | |
23616 | }; | |
23617 | ||
23618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
23619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23621 | { | |
23622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23623 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23624 | ||
23625 | wxPyEndAllowThreads(__tstate); | |
23626 | if (PyErr_Occurred()) SWIG_fail; | |
23627 | } | |
23628 | { | |
23629 | wxPoint * resultptr; | |
23630 | resultptr = new wxPoint((wxPoint &) result); | |
23631 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23632 | } | |
23633 | return resultobj; | |
23634 | fail: | |
23635 | return NULL; | |
23636 | } | |
23637 | ||
23638 | ||
23639 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23640 | PyObject *resultobj; | |
23641 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23642 | wxPoint *arg2 = 0 ; | |
23643 | wxPoint temp2 ; | |
23644 | PyObject * obj0 = 0 ; | |
23645 | PyObject * obj1 = 0 ; | |
23646 | char *kwnames[] = { | |
23647 | (char *) "self",(char *) "pt", NULL | |
23648 | }; | |
23649 | ||
23650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
23651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23653 | { | |
23654 | arg2 = &temp2; | |
23655 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23656 | } | |
23657 | { | |
23658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23659 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
23660 | ||
23661 | wxPyEndAllowThreads(__tstate); | |
23662 | if (PyErr_Occurred()) SWIG_fail; | |
23663 | } | |
23664 | Py_INCREF(Py_None); resultobj = Py_None; | |
23665 | return resultobj; | |
23666 | fail: | |
23667 | return NULL; | |
23668 | } | |
23669 | ||
23670 | ||
23671 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23672 | PyObject *resultobj; | |
23673 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23674 | wxKeyEvent *result; | |
23675 | PyObject * obj0 = 0 ; | |
23676 | char *kwnames[] = { | |
23677 | (char *) "self", NULL | |
23678 | }; | |
23679 | ||
23680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
23681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23683 | { | |
23684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23685 | { | |
23686 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23687 | result = (wxKeyEvent *) &_result_ref; | |
23688 | } | |
23689 | ||
23690 | wxPyEndAllowThreads(__tstate); | |
23691 | if (PyErr_Occurred()) SWIG_fail; | |
23692 | } | |
23693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); | |
23694 | return resultobj; | |
23695 | fail: | |
23696 | return NULL; | |
23697 | } | |
23698 | ||
23699 | ||
23700 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23701 | PyObject *resultobj; | |
23702 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23703 | int result; | |
23704 | PyObject * obj0 = 0 ; | |
23705 | char *kwnames[] = { | |
23706 | (char *) "self", NULL | |
23707 | }; | |
23708 | ||
23709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
23710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23712 | { | |
23713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23714 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23715 | ||
23716 | wxPyEndAllowThreads(__tstate); | |
23717 | if (PyErr_Occurred()) SWIG_fail; | |
23718 | } | |
23719 | resultobj = SWIG_FromInt((int)result); | |
23720 | return resultobj; | |
23721 | fail: | |
23722 | return NULL; | |
23723 | } | |
23724 | ||
23725 | ||
23726 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23727 | PyObject *resultobj; | |
23728 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23729 | wxKeyEvent *arg2 = 0 ; | |
23730 | PyObject * obj0 = 0 ; | |
23731 | PyObject * obj1 = 0 ; | |
23732 | char *kwnames[] = { | |
23733 | (char *) "self",(char *) "evt", NULL | |
23734 | }; | |
23735 | ||
23736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
23737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23739 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
23740 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23741 | SWIG_fail; | |
23742 | if (arg2 == NULL) { | |
23743 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23744 | SWIG_fail; | |
23745 | } | |
23746 | { | |
23747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23748 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
23749 | ||
23750 | wxPyEndAllowThreads(__tstate); | |
23751 | if (PyErr_Occurred()) SWIG_fail; | |
23752 | } | |
23753 | Py_INCREF(Py_None); resultobj = Py_None; | |
23754 | return resultobj; | |
23755 | fail: | |
23756 | return NULL; | |
23757 | } | |
23758 | ||
23759 | ||
23760 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23761 | PyObject *resultobj; | |
23762 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23763 | wxString *result; | |
23764 | PyObject * obj0 = 0 ; | |
23765 | char *kwnames[] = { | |
23766 | (char *) "self", NULL | |
23767 | }; | |
23768 | ||
23769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
23770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23772 | { | |
23773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23774 | { | |
23775 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23776 | result = (wxString *) &_result_ref; | |
23777 | } | |
23778 | ||
23779 | wxPyEndAllowThreads(__tstate); | |
23780 | if (PyErr_Occurred()) SWIG_fail; | |
23781 | } | |
23782 | { | |
23783 | #if wxUSE_UNICODE | |
23784 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23785 | #else | |
23786 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23787 | #endif | |
23788 | } | |
23789 | return resultobj; | |
23790 | fail: | |
23791 | return NULL; | |
23792 | } | |
23793 | ||
23794 | ||
23795 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23796 | PyObject *resultobj; | |
23797 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23798 | wxString *arg2 = 0 ; | |
23799 | bool temp2 = False ; | |
23800 | PyObject * obj0 = 0 ; | |
23801 | PyObject * obj1 = 0 ; | |
23802 | char *kwnames[] = { | |
23803 | (char *) "self",(char *) "label", NULL | |
23804 | }; | |
23805 | ||
23806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
23807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23809 | { | |
23810 | arg2 = wxString_in_helper(obj1); | |
23811 | if (arg2 == NULL) SWIG_fail; | |
23812 | temp2 = True; | |
23813 | } | |
23814 | { | |
23815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23816 | (arg1)->SetLabel((wxString const &)*arg2); | |
23817 | ||
23818 | wxPyEndAllowThreads(__tstate); | |
23819 | if (PyErr_Occurred()) SWIG_fail; | |
23820 | } | |
23821 | Py_INCREF(Py_None); resultobj = Py_None; | |
23822 | { | |
23823 | if (temp2) | |
23824 | delete arg2; | |
23825 | } | |
23826 | return resultobj; | |
23827 | fail: | |
23828 | { | |
23829 | if (temp2) | |
23830 | delete arg2; | |
23831 | } | |
23832 | return NULL; | |
23833 | } | |
23834 | ||
23835 | ||
23836 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23837 | PyObject *resultobj; | |
23838 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23839 | bool result; | |
23840 | PyObject * obj0 = 0 ; | |
23841 | char *kwnames[] = { | |
23842 | (char *) "self", NULL | |
23843 | }; | |
23844 | ||
23845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
23846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23848 | { | |
23849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23850 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
23851 | ||
23852 | wxPyEndAllowThreads(__tstate); | |
23853 | if (PyErr_Occurred()) SWIG_fail; | |
23854 | } | |
23855 | { | |
23856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23857 | } | |
23858 | return resultobj; | |
23859 | fail: | |
23860 | return NULL; | |
23861 | } | |
23862 | ||
23863 | ||
23864 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23865 | PyObject *resultobj; | |
23866 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23867 | bool arg2 ; | |
23868 | PyObject * obj0 = 0 ; | |
23869 | PyObject * obj1 = 0 ; | |
23870 | char *kwnames[] = { | |
23871 | (char *) "self",(char *) "editCancelled", NULL | |
23872 | }; | |
23873 | ||
23874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
23875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23877 | arg2 = (bool) SWIG_AsBool(obj1); | |
23878 | if (PyErr_Occurred()) SWIG_fail; | |
23879 | { | |
23880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23881 | (arg1)->SetEditCanceled(arg2); | |
23882 | ||
23883 | wxPyEndAllowThreads(__tstate); | |
23884 | if (PyErr_Occurred()) SWIG_fail; | |
23885 | } | |
23886 | Py_INCREF(Py_None); resultobj = Py_None; | |
23887 | return resultobj; | |
23888 | fail: | |
23889 | return NULL; | |
23890 | } | |
23891 | ||
23892 | ||
23893 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23894 | PyObject *resultobj; | |
23895 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23896 | wxString *arg2 = 0 ; | |
23897 | bool temp2 = False ; | |
23898 | PyObject * obj0 = 0 ; | |
23899 | PyObject * obj1 = 0 ; | |
23900 | char *kwnames[] = { | |
23901 | (char *) "self",(char *) "toolTip", NULL | |
23902 | }; | |
23903 | ||
23904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
23905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23907 | { | |
23908 | arg2 = wxString_in_helper(obj1); | |
23909 | if (arg2 == NULL) SWIG_fail; | |
23910 | temp2 = True; | |
23911 | } | |
23912 | { | |
23913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23914 | (arg1)->SetToolTip((wxString const &)*arg2); | |
23915 | ||
23916 | wxPyEndAllowThreads(__tstate); | |
23917 | if (PyErr_Occurred()) SWIG_fail; | |
23918 | } | |
23919 | Py_INCREF(Py_None); resultobj = Py_None; | |
23920 | { | |
23921 | if (temp2) | |
23922 | delete arg2; | |
23923 | } | |
23924 | return resultobj; | |
23925 | fail: | |
23926 | { | |
23927 | if (temp2) | |
23928 | delete arg2; | |
23929 | } | |
23930 | return NULL; | |
23931 | } | |
23932 | ||
23933 | ||
23934 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { | |
23935 | PyObject *obj; | |
23936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23937 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
23938 | Py_INCREF(obj); | |
23939 | return Py_BuildValue((char *)""); | |
23940 | } | |
23941 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23942 | PyObject *resultobj; | |
23943 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23944 | int arg2 = (int) -1 ; | |
23945 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
23946 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23947 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23948 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23949 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
23950 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23951 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23952 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
23953 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23954 | wxPyTreeCtrl *result; | |
23955 | wxPoint temp3 ; | |
23956 | wxSize temp4 ; | |
23957 | bool temp7 = False ; | |
23958 | PyObject * obj0 = 0 ; | |
23959 | PyObject * obj1 = 0 ; | |
23960 | PyObject * obj2 = 0 ; | |
23961 | PyObject * obj3 = 0 ; | |
23962 | PyObject * obj4 = 0 ; | |
23963 | PyObject * obj5 = 0 ; | |
23964 | PyObject * obj6 = 0 ; | |
23965 | char *kwnames[] = { | |
23966 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23967 | }; | |
23968 | ||
23969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23972 | if (obj1) { | |
23973 | arg2 = (int) SWIG_AsInt(obj1); | |
23974 | if (PyErr_Occurred()) SWIG_fail; | |
23975 | } | |
23976 | if (obj2) { | |
23977 | { | |
23978 | arg3 = &temp3; | |
23979 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23980 | } | |
23981 | } | |
23982 | if (obj3) { | |
23983 | { | |
23984 | arg4 = &temp4; | |
23985 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23986 | } | |
23987 | } | |
23988 | if (obj4) { | |
23989 | arg5 = (long) SWIG_AsLong(obj4); | |
23990 | if (PyErr_Occurred()) SWIG_fail; | |
23991 | } | |
23992 | if (obj5) { | |
23993 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
23994 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23995 | SWIG_fail; | |
23996 | if (arg6 == NULL) { | |
23997 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23998 | SWIG_fail; | |
23999 | } | |
24000 | } | |
24001 | if (obj6) { | |
24002 | { | |
24003 | arg7 = wxString_in_helper(obj6); | |
24004 | if (arg7 == NULL) SWIG_fail; | |
24005 | temp7 = True; | |
24006 | } | |
24007 | } | |
24008 | { | |
24009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24010 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24011 | ||
24012 | wxPyEndAllowThreads(__tstate); | |
24013 | if (PyErr_Occurred()) SWIG_fail; | |
24014 | } | |
24015 | { | |
24016 | resultobj = wxPyMake_wxObject(result); | |
24017 | } | |
24018 | { | |
24019 | if (temp7) | |
24020 | delete arg7; | |
24021 | } | |
24022 | return resultobj; | |
24023 | fail: | |
24024 | { | |
24025 | if (temp7) | |
24026 | delete arg7; | |
24027 | } | |
24028 | return NULL; | |
24029 | } | |
24030 | ||
24031 | ||
24032 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24033 | PyObject *resultobj; | |
24034 | wxPyTreeCtrl *result; | |
24035 | char *kwnames[] = { | |
24036 | NULL | |
24037 | }; | |
24038 | ||
24039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
24040 | { | |
24041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24042 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
24043 | ||
24044 | wxPyEndAllowThreads(__tstate); | |
24045 | if (PyErr_Occurred()) SWIG_fail; | |
24046 | } | |
24047 | { | |
24048 | resultobj = wxPyMake_wxObject(result); | |
24049 | } | |
24050 | return resultobj; | |
24051 | fail: | |
24052 | return NULL; | |
24053 | } | |
24054 | ||
24055 | ||
24056 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24057 | PyObject *resultobj; | |
24058 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24059 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24060 | int arg3 = (int) -1 ; | |
24061 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24062 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24063 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24064 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24065 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
24066 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
24067 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
24068 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
24069 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
24070 | bool result; | |
24071 | wxPoint temp4 ; | |
24072 | wxSize temp5 ; | |
24073 | bool temp8 = False ; | |
24074 | PyObject * obj0 = 0 ; | |
24075 | PyObject * obj1 = 0 ; | |
24076 | PyObject * obj2 = 0 ; | |
24077 | PyObject * obj3 = 0 ; | |
24078 | PyObject * obj4 = 0 ; | |
24079 | PyObject * obj5 = 0 ; | |
24080 | PyObject * obj6 = 0 ; | |
24081 | PyObject * obj7 = 0 ; | |
24082 | char *kwnames[] = { | |
24083 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24084 | }; | |
24085 | ||
24086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
24087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24091 | if (obj2) { | |
24092 | arg3 = (int) SWIG_AsInt(obj2); | |
24093 | if (PyErr_Occurred()) SWIG_fail; | |
24094 | } | |
24095 | if (obj3) { | |
24096 | { | |
24097 | arg4 = &temp4; | |
24098 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24099 | } | |
24100 | } | |
24101 | if (obj4) { | |
24102 | { | |
24103 | arg5 = &temp5; | |
24104 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24105 | } | |
24106 | } | |
24107 | if (obj5) { | |
24108 | arg6 = (long) SWIG_AsLong(obj5); | |
24109 | if (PyErr_Occurred()) SWIG_fail; | |
24110 | } | |
24111 | if (obj6) { | |
24112 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
24113 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24114 | SWIG_fail; | |
24115 | if (arg7 == NULL) { | |
24116 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24117 | SWIG_fail; | |
24118 | } | |
24119 | } | |
24120 | if (obj7) { | |
24121 | { | |
24122 | arg8 = wxString_in_helper(obj7); | |
24123 | if (arg8 == NULL) SWIG_fail; | |
24124 | temp8 = True; | |
24125 | } | |
24126 | } | |
24127 | { | |
24128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24129 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24130 | ||
24131 | wxPyEndAllowThreads(__tstate); | |
24132 | if (PyErr_Occurred()) SWIG_fail; | |
24133 | } | |
24134 | { | |
24135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24136 | } | |
24137 | { | |
24138 | if (temp8) | |
24139 | delete arg8; | |
24140 | } | |
24141 | return resultobj; | |
24142 | fail: | |
24143 | { | |
24144 | if (temp8) | |
24145 | delete arg8; | |
24146 | } | |
24147 | return NULL; | |
24148 | } | |
24149 | ||
24150 | ||
24151 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24152 | PyObject *resultobj; | |
24153 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24154 | PyObject *arg2 = (PyObject *) 0 ; | |
24155 | PyObject *arg3 = (PyObject *) 0 ; | |
24156 | PyObject * obj0 = 0 ; | |
24157 | PyObject * obj1 = 0 ; | |
24158 | PyObject * obj2 = 0 ; | |
24159 | char *kwnames[] = { | |
24160 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24161 | }; | |
24162 | ||
24163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24166 | arg2 = obj1; | |
24167 | arg3 = obj2; | |
24168 | { | |
24169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24170 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24171 | ||
24172 | wxPyEndAllowThreads(__tstate); | |
24173 | if (PyErr_Occurred()) SWIG_fail; | |
24174 | } | |
24175 | Py_INCREF(Py_None); resultobj = Py_None; | |
24176 | return resultobj; | |
24177 | fail: | |
24178 | return NULL; | |
24179 | } | |
24180 | ||
24181 | ||
24182 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24183 | PyObject *resultobj; | |
24184 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24185 | size_t result; | |
24186 | PyObject * obj0 = 0 ; | |
24187 | char *kwnames[] = { | |
24188 | (char *) "self", NULL | |
24189 | }; | |
24190 | ||
24191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
24192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24194 | { | |
24195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24196 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
24197 | ||
24198 | wxPyEndAllowThreads(__tstate); | |
24199 | if (PyErr_Occurred()) SWIG_fail; | |
24200 | } | |
24201 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24202 | return resultobj; | |
24203 | fail: | |
24204 | return NULL; | |
24205 | } | |
24206 | ||
24207 | ||
24208 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24209 | PyObject *resultobj; | |
24210 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24211 | unsigned int result; | |
24212 | PyObject * obj0 = 0 ; | |
24213 | char *kwnames[] = { | |
24214 | (char *) "self", NULL | |
24215 | }; | |
24216 | ||
24217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
24218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24220 | { | |
24221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24222 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
24223 | ||
24224 | wxPyEndAllowThreads(__tstate); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | } | |
24227 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
24228 | return resultobj; | |
24229 | fail: | |
24230 | return NULL; | |
24231 | } | |
24232 | ||
24233 | ||
24234 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24235 | PyObject *resultobj; | |
24236 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24237 | unsigned int arg2 ; | |
24238 | PyObject * obj0 = 0 ; | |
24239 | PyObject * obj1 = 0 ; | |
24240 | char *kwnames[] = { | |
24241 | (char *) "self",(char *) "indent", NULL | |
24242 | }; | |
24243 | ||
24244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
24245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24247 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
24248 | if (PyErr_Occurred()) SWIG_fail; | |
24249 | { | |
24250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24251 | (arg1)->SetIndent(arg2); | |
24252 | ||
24253 | wxPyEndAllowThreads(__tstate); | |
24254 | if (PyErr_Occurred()) SWIG_fail; | |
24255 | } | |
24256 | Py_INCREF(Py_None); resultobj = Py_None; | |
24257 | return resultobj; | |
24258 | fail: | |
24259 | return NULL; | |
24260 | } | |
24261 | ||
24262 | ||
24263 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24264 | PyObject *resultobj; | |
24265 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24266 | unsigned int result; | |
24267 | PyObject * obj0 = 0 ; | |
24268 | char *kwnames[] = { | |
24269 | (char *) "self", NULL | |
24270 | }; | |
24271 | ||
24272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
24273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24275 | { | |
24276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24277 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
24278 | ||
24279 | wxPyEndAllowThreads(__tstate); | |
24280 | if (PyErr_Occurred()) SWIG_fail; | |
24281 | } | |
24282 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
24283 | return resultobj; | |
24284 | fail: | |
24285 | return NULL; | |
24286 | } | |
24287 | ||
24288 | ||
24289 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24290 | PyObject *resultobj; | |
24291 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24292 | unsigned int arg2 ; | |
24293 | PyObject * obj0 = 0 ; | |
24294 | PyObject * obj1 = 0 ; | |
24295 | char *kwnames[] = { | |
24296 | (char *) "self",(char *) "spacing", NULL | |
24297 | }; | |
24298 | ||
24299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
24300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24302 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
24303 | if (PyErr_Occurred()) SWIG_fail; | |
24304 | { | |
24305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24306 | (arg1)->SetSpacing(arg2); | |
24307 | ||
24308 | wxPyEndAllowThreads(__tstate); | |
24309 | if (PyErr_Occurred()) SWIG_fail; | |
24310 | } | |
24311 | Py_INCREF(Py_None); resultobj = Py_None; | |
24312 | return resultobj; | |
24313 | fail: | |
24314 | return NULL; | |
24315 | } | |
24316 | ||
24317 | ||
24318 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24319 | PyObject *resultobj; | |
24320 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24321 | wxImageList *result; | |
24322 | PyObject * obj0 = 0 ; | |
24323 | char *kwnames[] = { | |
24324 | (char *) "self", NULL | |
24325 | }; | |
24326 | ||
24327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
24328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24330 | { | |
24331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24332 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
24333 | ||
24334 | wxPyEndAllowThreads(__tstate); | |
24335 | if (PyErr_Occurred()) SWIG_fail; | |
24336 | } | |
24337 | { | |
24338 | resultobj = wxPyMake_wxObject(result); | |
24339 | } | |
24340 | return resultobj; | |
24341 | fail: | |
24342 | return NULL; | |
24343 | } | |
24344 | ||
24345 | ||
24346 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24347 | PyObject *resultobj; | |
24348 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24349 | wxImageList *result; | |
24350 | PyObject * obj0 = 0 ; | |
24351 | char *kwnames[] = { | |
24352 | (char *) "self", NULL | |
24353 | }; | |
24354 | ||
24355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
24356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24358 | { | |
24359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24360 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
24361 | ||
24362 | wxPyEndAllowThreads(__tstate); | |
24363 | if (PyErr_Occurred()) SWIG_fail; | |
24364 | } | |
24365 | { | |
24366 | resultobj = wxPyMake_wxObject(result); | |
24367 | } | |
24368 | return resultobj; | |
24369 | fail: | |
24370 | return NULL; | |
24371 | } | |
24372 | ||
24373 | ||
24374 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24375 | PyObject *resultobj; | |
24376 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24377 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24378 | PyObject * obj0 = 0 ; | |
24379 | PyObject * obj1 = 0 ; | |
24380 | char *kwnames[] = { | |
24381 | (char *) "self",(char *) "imageList", NULL | |
24382 | }; | |
24383 | ||
24384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
24385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24389 | { | |
24390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24391 | (arg1)->SetImageList(arg2); | |
24392 | ||
24393 | wxPyEndAllowThreads(__tstate); | |
24394 | if (PyErr_Occurred()) SWIG_fail; | |
24395 | } | |
24396 | Py_INCREF(Py_None); resultobj = Py_None; | |
24397 | return resultobj; | |
24398 | fail: | |
24399 | return NULL; | |
24400 | } | |
24401 | ||
24402 | ||
24403 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24404 | PyObject *resultobj; | |
24405 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24406 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24407 | PyObject * obj0 = 0 ; | |
24408 | PyObject * obj1 = 0 ; | |
24409 | char *kwnames[] = { | |
24410 | (char *) "self",(char *) "imageList", NULL | |
24411 | }; | |
24412 | ||
24413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24416 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24418 | { | |
24419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24420 | (arg1)->SetStateImageList(arg2); | |
24421 | ||
24422 | wxPyEndAllowThreads(__tstate); | |
24423 | if (PyErr_Occurred()) SWIG_fail; | |
24424 | } | |
24425 | Py_INCREF(Py_None); resultobj = Py_None; | |
24426 | return resultobj; | |
24427 | fail: | |
24428 | return NULL; | |
24429 | } | |
24430 | ||
24431 | ||
24432 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24433 | PyObject *resultobj; | |
24434 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24435 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24436 | PyObject * obj0 = 0 ; | |
24437 | PyObject * obj1 = 0 ; | |
24438 | char *kwnames[] = { | |
24439 | (char *) "self",(char *) "imageList", NULL | |
24440 | }; | |
24441 | ||
24442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
24443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24446 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24447 | { | |
24448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24449 | (arg1)->AssignImageList(arg2); | |
24450 | ||
24451 | wxPyEndAllowThreads(__tstate); | |
24452 | if (PyErr_Occurred()) SWIG_fail; | |
24453 | } | |
24454 | Py_INCREF(Py_None); resultobj = Py_None; | |
24455 | return resultobj; | |
24456 | fail: | |
24457 | return NULL; | |
24458 | } | |
24459 | ||
24460 | ||
24461 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24462 | PyObject *resultobj; | |
24463 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24464 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24465 | PyObject * obj0 = 0 ; | |
24466 | PyObject * obj1 = 0 ; | |
24467 | char *kwnames[] = { | |
24468 | (char *) "self",(char *) "imageList", NULL | |
24469 | }; | |
24470 | ||
24471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24475 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24476 | { | |
24477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24478 | (arg1)->AssignStateImageList(arg2); | |
24479 | ||
24480 | wxPyEndAllowThreads(__tstate); | |
24481 | if (PyErr_Occurred()) SWIG_fail; | |
24482 | } | |
24483 | Py_INCREF(Py_None); resultobj = Py_None; | |
24484 | return resultobj; | |
24485 | fail: | |
24486 | return NULL; | |
24487 | } | |
24488 | ||
24489 | ||
24490 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24491 | PyObject *resultobj; | |
24492 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24493 | wxTreeItemId *arg2 = 0 ; | |
24494 | wxString result; | |
24495 | PyObject * obj0 = 0 ; | |
24496 | PyObject * obj1 = 0 ; | |
24497 | char *kwnames[] = { | |
24498 | (char *) "self",(char *) "item", NULL | |
24499 | }; | |
24500 | ||
24501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
24502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24504 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24505 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24506 | SWIG_fail; | |
24507 | if (arg2 == NULL) { | |
24508 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24509 | SWIG_fail; | |
24510 | } | |
24511 | { | |
24512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24513 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
24514 | ||
24515 | wxPyEndAllowThreads(__tstate); | |
24516 | if (PyErr_Occurred()) SWIG_fail; | |
24517 | } | |
24518 | { | |
24519 | #if wxUSE_UNICODE | |
24520 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24521 | #else | |
24522 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24523 | #endif | |
24524 | } | |
24525 | return resultobj; | |
24526 | fail: | |
24527 | return NULL; | |
24528 | } | |
24529 | ||
24530 | ||
24531 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24532 | PyObject *resultobj; | |
24533 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24534 | wxTreeItemId *arg2 = 0 ; | |
24535 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
24536 | int result; | |
24537 | PyObject * obj0 = 0 ; | |
24538 | PyObject * obj1 = 0 ; | |
24539 | PyObject * obj2 = 0 ; | |
24540 | char *kwnames[] = { | |
24541 | (char *) "self",(char *) "item",(char *) "which", NULL | |
24542 | }; | |
24543 | ||
24544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24547 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24548 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24549 | SWIG_fail; | |
24550 | if (arg2 == NULL) { | |
24551 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24552 | SWIG_fail; | |
24553 | } | |
24554 | if (obj2) { | |
24555 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); | |
24556 | if (PyErr_Occurred()) SWIG_fail; | |
24557 | } | |
24558 | { | |
24559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24560 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
24561 | ||
24562 | wxPyEndAllowThreads(__tstate); | |
24563 | if (PyErr_Occurred()) SWIG_fail; | |
24564 | } | |
24565 | resultobj = SWIG_FromInt((int)result); | |
24566 | return resultobj; | |
24567 | fail: | |
24568 | return NULL; | |
24569 | } | |
24570 | ||
24571 | ||
24572 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24573 | PyObject *resultobj; | |
24574 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24575 | wxTreeItemId *arg2 = 0 ; | |
24576 | wxPyTreeItemData *result; | |
24577 | PyObject * obj0 = 0 ; | |
24578 | PyObject * obj1 = 0 ; | |
24579 | char *kwnames[] = { | |
24580 | (char *) "self",(char *) "item", NULL | |
24581 | }; | |
24582 | ||
24583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
24584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24586 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24587 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24588 | SWIG_fail; | |
24589 | if (arg2 == NULL) { | |
24590 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24591 | SWIG_fail; | |
24592 | } | |
24593 | { | |
24594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24595 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
24596 | ||
24597 | wxPyEndAllowThreads(__tstate); | |
24598 | if (PyErr_Occurred()) SWIG_fail; | |
24599 | } | |
24600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); | |
24601 | return resultobj; | |
24602 | fail: | |
24603 | return NULL; | |
24604 | } | |
24605 | ||
24606 | ||
24607 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24608 | PyObject *resultobj; | |
24609 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24610 | wxTreeItemId *arg2 = 0 ; | |
24611 | PyObject *result; | |
24612 | PyObject * obj0 = 0 ; | |
24613 | PyObject * obj1 = 0 ; | |
24614 | char *kwnames[] = { | |
24615 | (char *) "self",(char *) "item", NULL | |
24616 | }; | |
24617 | ||
24618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
24619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24621 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24622 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24623 | SWIG_fail; | |
24624 | if (arg2 == NULL) { | |
24625 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24626 | SWIG_fail; | |
24627 | } | |
24628 | { | |
24629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24630 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
24631 | ||
24632 | wxPyEndAllowThreads(__tstate); | |
24633 | if (PyErr_Occurred()) SWIG_fail; | |
24634 | } | |
24635 | resultobj = result; | |
24636 | return resultobj; | |
24637 | fail: | |
24638 | return NULL; | |
24639 | } | |
24640 | ||
24641 | ||
24642 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24643 | PyObject *resultobj; | |
24644 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24645 | wxTreeItemId *arg2 = 0 ; | |
24646 | wxColour result; | |
24647 | PyObject * obj0 = 0 ; | |
24648 | PyObject * obj1 = 0 ; | |
24649 | char *kwnames[] = { | |
24650 | (char *) "self",(char *) "item", NULL | |
24651 | }; | |
24652 | ||
24653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
24654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24656 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24657 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24658 | SWIG_fail; | |
24659 | if (arg2 == NULL) { | |
24660 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24661 | SWIG_fail; | |
24662 | } | |
24663 | { | |
24664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24665 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24666 | ||
24667 | wxPyEndAllowThreads(__tstate); | |
24668 | if (PyErr_Occurred()) SWIG_fail; | |
24669 | } | |
24670 | { | |
24671 | wxColour * resultptr; | |
24672 | resultptr = new wxColour((wxColour &) result); | |
24673 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
24674 | } | |
24675 | return resultobj; | |
24676 | fail: | |
24677 | return NULL; | |
24678 | } | |
24679 | ||
24680 | ||
24681 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24682 | PyObject *resultobj; | |
24683 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24684 | wxTreeItemId *arg2 = 0 ; | |
24685 | wxColour result; | |
24686 | PyObject * obj0 = 0 ; | |
24687 | PyObject * obj1 = 0 ; | |
24688 | char *kwnames[] = { | |
24689 | (char *) "self",(char *) "item", NULL | |
24690 | }; | |
24691 | ||
24692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24695 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24696 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24697 | SWIG_fail; | |
24698 | if (arg2 == NULL) { | |
24699 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24700 | SWIG_fail; | |
24701 | } | |
24702 | { | |
24703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24704 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
24705 | ||
24706 | wxPyEndAllowThreads(__tstate); | |
24707 | if (PyErr_Occurred()) SWIG_fail; | |
24708 | } | |
24709 | { | |
24710 | wxColour * resultptr; | |
24711 | resultptr = new wxColour((wxColour &) result); | |
24712 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
24713 | } | |
24714 | return resultobj; | |
24715 | fail: | |
24716 | return NULL; | |
24717 | } | |
24718 | ||
24719 | ||
24720 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24721 | PyObject *resultobj; | |
24722 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24723 | wxTreeItemId *arg2 = 0 ; | |
24724 | wxFont result; | |
24725 | PyObject * obj0 = 0 ; | |
24726 | PyObject * obj1 = 0 ; | |
24727 | char *kwnames[] = { | |
24728 | (char *) "self",(char *) "item", NULL | |
24729 | }; | |
24730 | ||
24731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
24732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24735 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24736 | SWIG_fail; | |
24737 | if (arg2 == NULL) { | |
24738 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24739 | SWIG_fail; | |
24740 | } | |
24741 | { | |
24742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24743 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
24744 | ||
24745 | wxPyEndAllowThreads(__tstate); | |
24746 | if (PyErr_Occurred()) SWIG_fail; | |
24747 | } | |
24748 | { | |
24749 | wxFont * resultptr; | |
24750 | resultptr = new wxFont((wxFont &) result); | |
24751 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
24752 | } | |
24753 | return resultobj; | |
24754 | fail: | |
24755 | return NULL; | |
24756 | } | |
24757 | ||
24758 | ||
24759 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24760 | PyObject *resultobj; | |
24761 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24762 | wxTreeItemId *arg2 = 0 ; | |
24763 | wxString *arg3 = 0 ; | |
24764 | bool temp3 = False ; | |
24765 | PyObject * obj0 = 0 ; | |
24766 | PyObject * obj1 = 0 ; | |
24767 | PyObject * obj2 = 0 ; | |
24768 | char *kwnames[] = { | |
24769 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24770 | }; | |
24771 | ||
24772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24776 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24777 | SWIG_fail; | |
24778 | if (arg2 == NULL) { | |
24779 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24780 | SWIG_fail; | |
24781 | } | |
24782 | { | |
24783 | arg3 = wxString_in_helper(obj2); | |
24784 | if (arg3 == NULL) SWIG_fail; | |
24785 | temp3 = True; | |
24786 | } | |
24787 | { | |
24788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24789 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24790 | ||
24791 | wxPyEndAllowThreads(__tstate); | |
24792 | if (PyErr_Occurred()) SWIG_fail; | |
24793 | } | |
24794 | Py_INCREF(Py_None); resultobj = Py_None; | |
24795 | { | |
24796 | if (temp3) | |
24797 | delete arg3; | |
24798 | } | |
24799 | return resultobj; | |
24800 | fail: | |
24801 | { | |
24802 | if (temp3) | |
24803 | delete arg3; | |
24804 | } | |
24805 | return NULL; | |
24806 | } | |
24807 | ||
24808 | ||
24809 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24810 | PyObject *resultobj; | |
24811 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24812 | wxTreeItemId *arg2 = 0 ; | |
24813 | int arg3 ; | |
24814 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
24815 | PyObject * obj0 = 0 ; | |
24816 | PyObject * obj1 = 0 ; | |
24817 | PyObject * obj2 = 0 ; | |
24818 | PyObject * obj3 = 0 ; | |
24819 | char *kwnames[] = { | |
24820 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
24821 | }; | |
24822 | ||
24823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24826 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24827 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24828 | SWIG_fail; | |
24829 | if (arg2 == NULL) { | |
24830 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24831 | SWIG_fail; | |
24832 | } | |
24833 | arg3 = (int) SWIG_AsInt(obj2); | |
24834 | if (PyErr_Occurred()) SWIG_fail; | |
24835 | if (obj3) { | |
24836 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); | |
24837 | if (PyErr_Occurred()) SWIG_fail; | |
24838 | } | |
24839 | { | |
24840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24841 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
24842 | ||
24843 | wxPyEndAllowThreads(__tstate); | |
24844 | if (PyErr_Occurred()) SWIG_fail; | |
24845 | } | |
24846 | Py_INCREF(Py_None); resultobj = Py_None; | |
24847 | return resultobj; | |
24848 | fail: | |
24849 | return NULL; | |
24850 | } | |
24851 | ||
24852 | ||
24853 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24854 | PyObject *resultobj; | |
24855 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24856 | wxTreeItemId *arg2 = 0 ; | |
24857 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
24858 | PyObject * obj0 = 0 ; | |
24859 | PyObject * obj1 = 0 ; | |
24860 | PyObject * obj2 = 0 ; | |
24861 | char *kwnames[] = { | |
24862 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24863 | }; | |
24864 | ||
24865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24870 | SWIG_fail; | |
24871 | if (arg2 == NULL) { | |
24872 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24873 | SWIG_fail; | |
24874 | } | |
24875 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, | |
24876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24877 | { | |
24878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24879 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24880 | ||
24881 | wxPyEndAllowThreads(__tstate); | |
24882 | if (PyErr_Occurred()) SWIG_fail; | |
24883 | } | |
24884 | Py_INCREF(Py_None); resultobj = Py_None; | |
24885 | return resultobj; | |
24886 | fail: | |
24887 | return NULL; | |
24888 | } | |
24889 | ||
24890 | ||
24891 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24892 | PyObject *resultobj; | |
24893 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24894 | wxTreeItemId *arg2 = 0 ; | |
24895 | PyObject *arg3 = (PyObject *) 0 ; | |
24896 | PyObject * obj0 = 0 ; | |
24897 | PyObject * obj1 = 0 ; | |
24898 | PyObject * obj2 = 0 ; | |
24899 | char *kwnames[] = { | |
24900 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
24901 | }; | |
24902 | ||
24903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24906 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24907 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24908 | SWIG_fail; | |
24909 | if (arg2 == NULL) { | |
24910 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24911 | SWIG_fail; | |
24912 | } | |
24913 | arg3 = obj2; | |
24914 | { | |
24915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24916 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24917 | ||
24918 | wxPyEndAllowThreads(__tstate); | |
24919 | if (PyErr_Occurred()) SWIG_fail; | |
24920 | } | |
24921 | Py_INCREF(Py_None); resultobj = Py_None; | |
24922 | return resultobj; | |
24923 | fail: | |
24924 | return NULL; | |
24925 | } | |
24926 | ||
24927 | ||
24928 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24929 | PyObject *resultobj; | |
24930 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24931 | wxTreeItemId *arg2 = 0 ; | |
24932 | bool arg3 = (bool) True ; | |
24933 | PyObject * obj0 = 0 ; | |
24934 | PyObject * obj1 = 0 ; | |
24935 | PyObject * obj2 = 0 ; | |
24936 | char *kwnames[] = { | |
24937 | (char *) "self",(char *) "item",(char *) "has", NULL | |
24938 | }; | |
24939 | ||
24940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24943 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24944 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24945 | SWIG_fail; | |
24946 | if (arg2 == NULL) { | |
24947 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24948 | SWIG_fail; | |
24949 | } | |
24950 | if (obj2) { | |
24951 | arg3 = (bool) SWIG_AsBool(obj2); | |
24952 | if (PyErr_Occurred()) SWIG_fail; | |
24953 | } | |
24954 | { | |
24955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24956 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
24957 | ||
24958 | wxPyEndAllowThreads(__tstate); | |
24959 | if (PyErr_Occurred()) SWIG_fail; | |
24960 | } | |
24961 | Py_INCREF(Py_None); resultobj = Py_None; | |
24962 | return resultobj; | |
24963 | fail: | |
24964 | return NULL; | |
24965 | } | |
24966 | ||
24967 | ||
24968 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24969 | PyObject *resultobj; | |
24970 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24971 | wxTreeItemId *arg2 = 0 ; | |
24972 | bool arg3 = (bool) True ; | |
24973 | PyObject * obj0 = 0 ; | |
24974 | PyObject * obj1 = 0 ; | |
24975 | PyObject * obj2 = 0 ; | |
24976 | char *kwnames[] = { | |
24977 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
24978 | }; | |
24979 | ||
24980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24983 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24984 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24985 | SWIG_fail; | |
24986 | if (arg2 == NULL) { | |
24987 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24988 | SWIG_fail; | |
24989 | } | |
24990 | if (obj2) { | |
24991 | arg3 = (bool) SWIG_AsBool(obj2); | |
24992 | if (PyErr_Occurred()) SWIG_fail; | |
24993 | } | |
24994 | { | |
24995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24996 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
24997 | ||
24998 | wxPyEndAllowThreads(__tstate); | |
24999 | if (PyErr_Occurred()) SWIG_fail; | |
25000 | } | |
25001 | Py_INCREF(Py_None); resultobj = Py_None; | |
25002 | return resultobj; | |
25003 | fail: | |
25004 | return NULL; | |
25005 | } | |
25006 | ||
25007 | ||
25008 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25009 | PyObject *resultobj; | |
25010 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25011 | wxTreeItemId *arg2 = 0 ; | |
25012 | wxColour *arg3 = 0 ; | |
25013 | wxColour temp3 ; | |
25014 | PyObject * obj0 = 0 ; | |
25015 | PyObject * obj1 = 0 ; | |
25016 | PyObject * obj2 = 0 ; | |
25017 | char *kwnames[] = { | |
25018 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25019 | }; | |
25020 | ||
25021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25024 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25025 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25026 | SWIG_fail; | |
25027 | if (arg2 == NULL) { | |
25028 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25029 | SWIG_fail; | |
25030 | } | |
25031 | { | |
25032 | arg3 = &temp3; | |
25033 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25034 | } | |
25035 | { | |
25036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25037 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25038 | ||
25039 | wxPyEndAllowThreads(__tstate); | |
25040 | if (PyErr_Occurred()) SWIG_fail; | |
25041 | } | |
25042 | Py_INCREF(Py_None); resultobj = Py_None; | |
25043 | return resultobj; | |
25044 | fail: | |
25045 | return NULL; | |
25046 | } | |
25047 | ||
25048 | ||
25049 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25050 | PyObject *resultobj; | |
25051 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25052 | wxTreeItemId *arg2 = 0 ; | |
25053 | wxColour *arg3 = 0 ; | |
25054 | wxColour temp3 ; | |
25055 | PyObject * obj0 = 0 ; | |
25056 | PyObject * obj1 = 0 ; | |
25057 | PyObject * obj2 = 0 ; | |
25058 | char *kwnames[] = { | |
25059 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25060 | }; | |
25061 | ||
25062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25065 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25066 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25067 | SWIG_fail; | |
25068 | if (arg2 == NULL) { | |
25069 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25070 | SWIG_fail; | |
25071 | } | |
25072 | { | |
25073 | arg3 = &temp3; | |
25074 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25075 | } | |
25076 | { | |
25077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25078 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25079 | ||
25080 | wxPyEndAllowThreads(__tstate); | |
25081 | if (PyErr_Occurred()) SWIG_fail; | |
25082 | } | |
25083 | Py_INCREF(Py_None); resultobj = Py_None; | |
25084 | return resultobj; | |
25085 | fail: | |
25086 | return NULL; | |
25087 | } | |
25088 | ||
25089 | ||
25090 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25091 | PyObject *resultobj; | |
25092 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25093 | wxTreeItemId *arg2 = 0 ; | |
25094 | wxFont *arg3 = 0 ; | |
25095 | PyObject * obj0 = 0 ; | |
25096 | PyObject * obj1 = 0 ; | |
25097 | PyObject * obj2 = 0 ; | |
25098 | char *kwnames[] = { | |
25099 | (char *) "self",(char *) "item",(char *) "font", NULL | |
25100 | }; | |
25101 | ||
25102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25105 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25106 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25107 | SWIG_fail; | |
25108 | if (arg2 == NULL) { | |
25109 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25110 | SWIG_fail; | |
25111 | } | |
25112 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
25113 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25114 | SWIG_fail; | |
25115 | if (arg3 == NULL) { | |
25116 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25117 | SWIG_fail; | |
25118 | } | |
25119 | { | |
25120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25121 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
25122 | ||
25123 | wxPyEndAllowThreads(__tstate); | |
25124 | if (PyErr_Occurred()) SWIG_fail; | |
25125 | } | |
25126 | Py_INCREF(Py_None); resultobj = Py_None; | |
25127 | return resultobj; | |
25128 | fail: | |
25129 | return NULL; | |
25130 | } | |
25131 | ||
25132 | ||
25133 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25134 | PyObject *resultobj; | |
25135 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25136 | wxTreeItemId *arg2 = 0 ; | |
25137 | bool result; | |
25138 | PyObject * obj0 = 0 ; | |
25139 | PyObject * obj1 = 0 ; | |
25140 | char *kwnames[] = { | |
25141 | (char *) "self",(char *) "item", NULL | |
25142 | }; | |
25143 | ||
25144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
25145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25147 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25148 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25149 | SWIG_fail; | |
25150 | if (arg2 == NULL) { | |
25151 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25152 | SWIG_fail; | |
25153 | } | |
25154 | { | |
25155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25156 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
25157 | ||
25158 | wxPyEndAllowThreads(__tstate); | |
25159 | if (PyErr_Occurred()) SWIG_fail; | |
25160 | } | |
25161 | { | |
25162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25163 | } | |
25164 | return resultobj; | |
25165 | fail: | |
25166 | return NULL; | |
25167 | } | |
25168 | ||
25169 | ||
25170 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25171 | PyObject *resultobj; | |
25172 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25173 | wxTreeItemId *arg2 = 0 ; | |
25174 | bool result; | |
25175 | PyObject * obj0 = 0 ; | |
25176 | PyObject * obj1 = 0 ; | |
25177 | char *kwnames[] = { | |
25178 | (char *) "self",(char *) "item", NULL | |
25179 | }; | |
25180 | ||
25181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
25182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25184 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25185 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25186 | SWIG_fail; | |
25187 | if (arg2 == NULL) { | |
25188 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25189 | SWIG_fail; | |
25190 | } | |
25191 | { | |
25192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25193 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
25194 | ||
25195 | wxPyEndAllowThreads(__tstate); | |
25196 | if (PyErr_Occurred()) SWIG_fail; | |
25197 | } | |
25198 | { | |
25199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25200 | } | |
25201 | return resultobj; | |
25202 | fail: | |
25203 | return NULL; | |
25204 | } | |
25205 | ||
25206 | ||
25207 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25208 | PyObject *resultobj; | |
25209 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25210 | wxTreeItemId *arg2 = 0 ; | |
25211 | bool result; | |
25212 | PyObject * obj0 = 0 ; | |
25213 | PyObject * obj1 = 0 ; | |
25214 | char *kwnames[] = { | |
25215 | (char *) "self",(char *) "item", NULL | |
25216 | }; | |
25217 | ||
25218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
25219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25221 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25222 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25223 | SWIG_fail; | |
25224 | if (arg2 == NULL) { | |
25225 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25226 | SWIG_fail; | |
25227 | } | |
25228 | { | |
25229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25230 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
25231 | ||
25232 | wxPyEndAllowThreads(__tstate); | |
25233 | if (PyErr_Occurred()) SWIG_fail; | |
25234 | } | |
25235 | { | |
25236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25237 | } | |
25238 | return resultobj; | |
25239 | fail: | |
25240 | return NULL; | |
25241 | } | |
25242 | ||
25243 | ||
25244 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25245 | PyObject *resultobj; | |
25246 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25247 | wxTreeItemId *arg2 = 0 ; | |
25248 | bool result; | |
25249 | PyObject * obj0 = 0 ; | |
25250 | PyObject * obj1 = 0 ; | |
25251 | char *kwnames[] = { | |
25252 | (char *) "self",(char *) "item", NULL | |
25253 | }; | |
25254 | ||
25255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
25256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25258 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25259 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25260 | SWIG_fail; | |
25261 | if (arg2 == NULL) { | |
25262 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25263 | SWIG_fail; | |
25264 | } | |
25265 | { | |
25266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25267 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
25268 | ||
25269 | wxPyEndAllowThreads(__tstate); | |
25270 | if (PyErr_Occurred()) SWIG_fail; | |
25271 | } | |
25272 | { | |
25273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25274 | } | |
25275 | return resultobj; | |
25276 | fail: | |
25277 | return NULL; | |
25278 | } | |
25279 | ||
25280 | ||
25281 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25282 | PyObject *resultobj; | |
25283 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25284 | wxTreeItemId *arg2 = 0 ; | |
25285 | bool result; | |
25286 | PyObject * obj0 = 0 ; | |
25287 | PyObject * obj1 = 0 ; | |
25288 | char *kwnames[] = { | |
25289 | (char *) "self",(char *) "item", NULL | |
25290 | }; | |
25291 | ||
25292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
25293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25295 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25296 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25297 | SWIG_fail; | |
25298 | if (arg2 == NULL) { | |
25299 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25300 | SWIG_fail; | |
25301 | } | |
25302 | { | |
25303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25304 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
25305 | ||
25306 | wxPyEndAllowThreads(__tstate); | |
25307 | if (PyErr_Occurred()) SWIG_fail; | |
25308 | } | |
25309 | { | |
25310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25311 | } | |
25312 | return resultobj; | |
25313 | fail: | |
25314 | return NULL; | |
25315 | } | |
25316 | ||
25317 | ||
25318 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25319 | PyObject *resultobj; | |
25320 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25321 | wxTreeItemId *arg2 = 0 ; | |
25322 | bool arg3 = (bool) True ; | |
25323 | size_t result; | |
25324 | PyObject * obj0 = 0 ; | |
25325 | PyObject * obj1 = 0 ; | |
25326 | PyObject * obj2 = 0 ; | |
25327 | char *kwnames[] = { | |
25328 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
25329 | }; | |
25330 | ||
25331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25334 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25335 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25336 | SWIG_fail; | |
25337 | if (arg2 == NULL) { | |
25338 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25339 | SWIG_fail; | |
25340 | } | |
25341 | if (obj2) { | |
25342 | arg3 = (bool) SWIG_AsBool(obj2); | |
25343 | if (PyErr_Occurred()) SWIG_fail; | |
25344 | } | |
25345 | { | |
25346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25347 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
25348 | ||
25349 | wxPyEndAllowThreads(__tstate); | |
25350 | if (PyErr_Occurred()) SWIG_fail; | |
25351 | } | |
25352 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25353 | return resultobj; | |
25354 | fail: | |
25355 | return NULL; | |
25356 | } | |
25357 | ||
25358 | ||
25359 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25360 | PyObject *resultobj; | |
25361 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25362 | wxTreeItemId result; | |
25363 | PyObject * obj0 = 0 ; | |
25364 | char *kwnames[] = { | |
25365 | (char *) "self", NULL | |
25366 | }; | |
25367 | ||
25368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
25369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25371 | { | |
25372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25373 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
25374 | ||
25375 | wxPyEndAllowThreads(__tstate); | |
25376 | if (PyErr_Occurred()) SWIG_fail; | |
25377 | } | |
25378 | { | |
25379 | wxTreeItemId * resultptr; | |
25380 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25382 | } | |
25383 | return resultobj; | |
25384 | fail: | |
25385 | return NULL; | |
25386 | } | |
25387 | ||
25388 | ||
25389 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25390 | PyObject *resultobj; | |
25391 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25392 | wxTreeItemId result; | |
25393 | PyObject * obj0 = 0 ; | |
25394 | char *kwnames[] = { | |
25395 | (char *) "self", NULL | |
25396 | }; | |
25397 | ||
25398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
25399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25401 | { | |
25402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25403 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
25404 | ||
25405 | wxPyEndAllowThreads(__tstate); | |
25406 | if (PyErr_Occurred()) SWIG_fail; | |
25407 | } | |
25408 | { | |
25409 | wxTreeItemId * resultptr; | |
25410 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25411 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25412 | } | |
25413 | return resultobj; | |
25414 | fail: | |
25415 | return NULL; | |
25416 | } | |
25417 | ||
25418 | ||
25419 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25420 | PyObject *resultobj; | |
25421 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25422 | PyObject *result; | |
25423 | PyObject * obj0 = 0 ; | |
25424 | char *kwnames[] = { | |
25425 | (char *) "self", NULL | |
25426 | }; | |
25427 | ||
25428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
25429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25431 | { | |
25432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25433 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
25434 | ||
25435 | wxPyEndAllowThreads(__tstate); | |
25436 | if (PyErr_Occurred()) SWIG_fail; | |
25437 | } | |
25438 | resultobj = result; | |
25439 | return resultobj; | |
25440 | fail: | |
25441 | return NULL; | |
25442 | } | |
25443 | ||
25444 | ||
25445 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25446 | PyObject *resultobj; | |
25447 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25448 | wxTreeItemId *arg2 = 0 ; | |
25449 | wxTreeItemId result; | |
25450 | PyObject * obj0 = 0 ; | |
25451 | PyObject * obj1 = 0 ; | |
25452 | char *kwnames[] = { | |
25453 | (char *) "self",(char *) "item", NULL | |
25454 | }; | |
25455 | ||
25456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
25457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25459 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25460 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25461 | SWIG_fail; | |
25462 | if (arg2 == NULL) { | |
25463 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25464 | SWIG_fail; | |
25465 | } | |
25466 | { | |
25467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25468 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
25469 | ||
25470 | wxPyEndAllowThreads(__tstate); | |
25471 | if (PyErr_Occurred()) SWIG_fail; | |
25472 | } | |
25473 | { | |
25474 | wxTreeItemId * resultptr; | |
25475 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25476 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25477 | } | |
25478 | return resultobj; | |
25479 | fail: | |
25480 | return NULL; | |
25481 | } | |
25482 | ||
25483 | ||
25484 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25485 | PyObject *resultobj; | |
25486 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25487 | wxTreeItemId *arg2 = 0 ; | |
25488 | PyObject *result; | |
25489 | PyObject * obj0 = 0 ; | |
25490 | PyObject * obj1 = 0 ; | |
25491 | char *kwnames[] = { | |
25492 | (char *) "self",(char *) "item", NULL | |
25493 | }; | |
25494 | ||
25495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
25496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25499 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25500 | SWIG_fail; | |
25501 | if (arg2 == NULL) { | |
25502 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25503 | SWIG_fail; | |
25504 | } | |
25505 | { | |
25506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25507 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
25508 | ||
25509 | wxPyEndAllowThreads(__tstate); | |
25510 | if (PyErr_Occurred()) SWIG_fail; | |
25511 | } | |
25512 | resultobj = result; | |
25513 | return resultobj; | |
25514 | fail: | |
25515 | return NULL; | |
25516 | } | |
25517 | ||
25518 | ||
25519 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25520 | PyObject *resultobj; | |
25521 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25522 | wxTreeItemId *arg2 = 0 ; | |
25523 | void *arg3 = (void *) 0 ; | |
25524 | PyObject *result; | |
25525 | PyObject * obj0 = 0 ; | |
25526 | PyObject * obj1 = 0 ; | |
25527 | PyObject * obj2 = 0 ; | |
25528 | char *kwnames[] = { | |
25529 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
25530 | }; | |
25531 | ||
25532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25535 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25536 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25537 | SWIG_fail; | |
25538 | if (arg2 == NULL) { | |
25539 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25540 | SWIG_fail; | |
25541 | } | |
25542 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25543 | { | |
25544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25545 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25546 | ||
25547 | wxPyEndAllowThreads(__tstate); | |
25548 | if (PyErr_Occurred()) SWIG_fail; | |
25549 | } | |
25550 | resultobj = result; | |
25551 | return resultobj; | |
25552 | fail: | |
25553 | return NULL; | |
25554 | } | |
25555 | ||
25556 | ||
25557 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25558 | PyObject *resultobj; | |
25559 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25560 | wxTreeItemId *arg2 = 0 ; | |
25561 | wxTreeItemId result; | |
25562 | PyObject * obj0 = 0 ; | |
25563 | PyObject * obj1 = 0 ; | |
25564 | char *kwnames[] = { | |
25565 | (char *) "self",(char *) "item", NULL | |
25566 | }; | |
25567 | ||
25568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
25569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25572 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25573 | SWIG_fail; | |
25574 | if (arg2 == NULL) { | |
25575 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25576 | SWIG_fail; | |
25577 | } | |
25578 | { | |
25579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25580 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
25581 | ||
25582 | wxPyEndAllowThreads(__tstate); | |
25583 | if (PyErr_Occurred()) SWIG_fail; | |
25584 | } | |
25585 | { | |
25586 | wxTreeItemId * resultptr; | |
25587 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25588 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25589 | } | |
25590 | return resultobj; | |
25591 | fail: | |
25592 | return NULL; | |
25593 | } | |
25594 | ||
25595 | ||
25596 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25597 | PyObject *resultobj; | |
25598 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25599 | wxTreeItemId *arg2 = 0 ; | |
25600 | wxTreeItemId result; | |
25601 | PyObject * obj0 = 0 ; | |
25602 | PyObject * obj1 = 0 ; | |
25603 | char *kwnames[] = { | |
25604 | (char *) "self",(char *) "item", NULL | |
25605 | }; | |
25606 | ||
25607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
25608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25612 | SWIG_fail; | |
25613 | if (arg2 == NULL) { | |
25614 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25615 | SWIG_fail; | |
25616 | } | |
25617 | { | |
25618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25619 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
25620 | ||
25621 | wxPyEndAllowThreads(__tstate); | |
25622 | if (PyErr_Occurred()) SWIG_fail; | |
25623 | } | |
25624 | { | |
25625 | wxTreeItemId * resultptr; | |
25626 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25627 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25628 | } | |
25629 | return resultobj; | |
25630 | fail: | |
25631 | return NULL; | |
25632 | } | |
25633 | ||
25634 | ||
25635 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25636 | PyObject *resultobj; | |
25637 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25638 | wxTreeItemId *arg2 = 0 ; | |
25639 | wxTreeItemId result; | |
25640 | PyObject * obj0 = 0 ; | |
25641 | PyObject * obj1 = 0 ; | |
25642 | char *kwnames[] = { | |
25643 | (char *) "self",(char *) "item", NULL | |
25644 | }; | |
25645 | ||
25646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
25647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25650 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25651 | SWIG_fail; | |
25652 | if (arg2 == NULL) { | |
25653 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25654 | SWIG_fail; | |
25655 | } | |
25656 | { | |
25657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25658 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
25659 | ||
25660 | wxPyEndAllowThreads(__tstate); | |
25661 | if (PyErr_Occurred()) SWIG_fail; | |
25662 | } | |
25663 | { | |
25664 | wxTreeItemId * resultptr; | |
25665 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25666 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25667 | } | |
25668 | return resultobj; | |
25669 | fail: | |
25670 | return NULL; | |
25671 | } | |
25672 | ||
25673 | ||
25674 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25675 | PyObject *resultobj; | |
25676 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25677 | wxTreeItemId result; | |
25678 | PyObject * obj0 = 0 ; | |
25679 | char *kwnames[] = { | |
25680 | (char *) "self", NULL | |
25681 | }; | |
25682 | ||
25683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
25684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25686 | { | |
25687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25688 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
25689 | ||
25690 | wxPyEndAllowThreads(__tstate); | |
25691 | if (PyErr_Occurred()) SWIG_fail; | |
25692 | } | |
25693 | { | |
25694 | wxTreeItemId * resultptr; | |
25695 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25696 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25697 | } | |
25698 | return resultobj; | |
25699 | fail: | |
25700 | return NULL; | |
25701 | } | |
25702 | ||
25703 | ||
25704 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25705 | PyObject *resultobj; | |
25706 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25707 | wxTreeItemId *arg2 = 0 ; | |
25708 | wxTreeItemId result; | |
25709 | PyObject * obj0 = 0 ; | |
25710 | PyObject * obj1 = 0 ; | |
25711 | char *kwnames[] = { | |
25712 | (char *) "self",(char *) "item", NULL | |
25713 | }; | |
25714 | ||
25715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
25716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25718 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25719 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25720 | SWIG_fail; | |
25721 | if (arg2 == NULL) { | |
25722 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25723 | SWIG_fail; | |
25724 | } | |
25725 | { | |
25726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25727 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
25728 | ||
25729 | wxPyEndAllowThreads(__tstate); | |
25730 | if (PyErr_Occurred()) SWIG_fail; | |
25731 | } | |
25732 | { | |
25733 | wxTreeItemId * resultptr; | |
25734 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25736 | } | |
25737 | return resultobj; | |
25738 | fail: | |
25739 | return NULL; | |
25740 | } | |
25741 | ||
25742 | ||
25743 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25744 | PyObject *resultobj; | |
25745 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25746 | wxTreeItemId *arg2 = 0 ; | |
25747 | wxTreeItemId result; | |
25748 | PyObject * obj0 = 0 ; | |
25749 | PyObject * obj1 = 0 ; | |
25750 | char *kwnames[] = { | |
25751 | (char *) "self",(char *) "item", NULL | |
25752 | }; | |
25753 | ||
25754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
25755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25757 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25758 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25759 | SWIG_fail; | |
25760 | if (arg2 == NULL) { | |
25761 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25762 | SWIG_fail; | |
25763 | } | |
25764 | { | |
25765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25766 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
25767 | ||
25768 | wxPyEndAllowThreads(__tstate); | |
25769 | if (PyErr_Occurred()) SWIG_fail; | |
25770 | } | |
25771 | { | |
25772 | wxTreeItemId * resultptr; | |
25773 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25774 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25775 | } | |
25776 | return resultobj; | |
25777 | fail: | |
25778 | return NULL; | |
25779 | } | |
25780 | ||
25781 | ||
25782 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25783 | PyObject *resultobj; | |
25784 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25785 | wxString *arg2 = 0 ; | |
25786 | int arg3 = (int) -1 ; | |
25787 | int arg4 = (int) -1 ; | |
25788 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
25789 | wxTreeItemId result; | |
25790 | bool temp2 = False ; | |
25791 | PyObject * obj0 = 0 ; | |
25792 | PyObject * obj1 = 0 ; | |
25793 | PyObject * obj2 = 0 ; | |
25794 | PyObject * obj3 = 0 ; | |
25795 | PyObject * obj4 = 0 ; | |
25796 | char *kwnames[] = { | |
25797 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25798 | }; | |
25799 | ||
25800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25803 | { | |
25804 | arg2 = wxString_in_helper(obj1); | |
25805 | if (arg2 == NULL) SWIG_fail; | |
25806 | temp2 = True; | |
25807 | } | |
25808 | if (obj2) { | |
25809 | arg3 = (int) SWIG_AsInt(obj2); | |
25810 | if (PyErr_Occurred()) SWIG_fail; | |
25811 | } | |
25812 | if (obj3) { | |
25813 | arg4 = (int) SWIG_AsInt(obj3); | |
25814 | if (PyErr_Occurred()) SWIG_fail; | |
25815 | } | |
25816 | if (obj4) { | |
25817 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, | |
25818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25819 | } | |
25820 | { | |
25821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25822 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
25823 | ||
25824 | wxPyEndAllowThreads(__tstate); | |
25825 | if (PyErr_Occurred()) SWIG_fail; | |
25826 | } | |
25827 | { | |
25828 | wxTreeItemId * resultptr; | |
25829 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25830 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25831 | } | |
25832 | { | |
25833 | if (temp2) | |
25834 | delete arg2; | |
25835 | } | |
25836 | return resultobj; | |
25837 | fail: | |
25838 | { | |
25839 | if (temp2) | |
25840 | delete arg2; | |
25841 | } | |
25842 | return NULL; | |
25843 | } | |
25844 | ||
25845 | ||
25846 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25847 | PyObject *resultobj; | |
25848 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25849 | wxTreeItemId *arg2 = 0 ; | |
25850 | wxString *arg3 = 0 ; | |
25851 | int arg4 = (int) -1 ; | |
25852 | int arg5 = (int) -1 ; | |
25853 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25854 | wxTreeItemId result; | |
25855 | bool temp3 = False ; | |
25856 | PyObject * obj0 = 0 ; | |
25857 | PyObject * obj1 = 0 ; | |
25858 | PyObject * obj2 = 0 ; | |
25859 | PyObject * obj3 = 0 ; | |
25860 | PyObject * obj4 = 0 ; | |
25861 | PyObject * obj5 = 0 ; | |
25862 | char *kwnames[] = { | |
25863 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25864 | }; | |
25865 | ||
25866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
25867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25869 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25870 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25871 | SWIG_fail; | |
25872 | if (arg2 == NULL) { | |
25873 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25874 | SWIG_fail; | |
25875 | } | |
25876 | { | |
25877 | arg3 = wxString_in_helper(obj2); | |
25878 | if (arg3 == NULL) SWIG_fail; | |
25879 | temp3 = True; | |
25880 | } | |
25881 | if (obj3) { | |
25882 | arg4 = (int) SWIG_AsInt(obj3); | |
25883 | if (PyErr_Occurred()) SWIG_fail; | |
25884 | } | |
25885 | if (obj4) { | |
25886 | arg5 = (int) SWIG_AsInt(obj4); | |
25887 | if (PyErr_Occurred()) SWIG_fail; | |
25888 | } | |
25889 | if (obj5) { | |
25890 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
25891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25892 | } | |
25893 | { | |
25894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25895 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25896 | ||
25897 | wxPyEndAllowThreads(__tstate); | |
25898 | if (PyErr_Occurred()) SWIG_fail; | |
25899 | } | |
25900 | { | |
25901 | wxTreeItemId * resultptr; | |
25902 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25903 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25904 | } | |
25905 | { | |
25906 | if (temp3) | |
25907 | delete arg3; | |
25908 | } | |
25909 | return resultobj; | |
25910 | fail: | |
25911 | { | |
25912 | if (temp3) | |
25913 | delete arg3; | |
25914 | } | |
25915 | return NULL; | |
25916 | } | |
25917 | ||
25918 | ||
25919 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25920 | PyObject *resultobj; | |
25921 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25922 | wxTreeItemId *arg2 = 0 ; | |
25923 | wxTreeItemId *arg3 = 0 ; | |
25924 | wxString *arg4 = 0 ; | |
25925 | int arg5 = (int) -1 ; | |
25926 | int arg6 = (int) -1 ; | |
25927 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25928 | wxTreeItemId result; | |
25929 | bool temp4 = False ; | |
25930 | PyObject * obj0 = 0 ; | |
25931 | PyObject * obj1 = 0 ; | |
25932 | PyObject * obj2 = 0 ; | |
25933 | PyObject * obj3 = 0 ; | |
25934 | PyObject * obj4 = 0 ; | |
25935 | PyObject * obj5 = 0 ; | |
25936 | PyObject * obj6 = 0 ; | |
25937 | char *kwnames[] = { | |
25938 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25939 | }; | |
25940 | ||
25941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
25942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25944 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25945 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25946 | SWIG_fail; | |
25947 | if (arg2 == NULL) { | |
25948 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25949 | SWIG_fail; | |
25950 | } | |
25951 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, | |
25952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25953 | SWIG_fail; | |
25954 | if (arg3 == NULL) { | |
25955 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25956 | SWIG_fail; | |
25957 | } | |
25958 | { | |
25959 | arg4 = wxString_in_helper(obj3); | |
25960 | if (arg4 == NULL) SWIG_fail; | |
25961 | temp4 = True; | |
25962 | } | |
25963 | if (obj4) { | |
25964 | arg5 = (int) SWIG_AsInt(obj4); | |
25965 | if (PyErr_Occurred()) SWIG_fail; | |
25966 | } | |
25967 | if (obj5) { | |
25968 | arg6 = (int) SWIG_AsInt(obj5); | |
25969 | if (PyErr_Occurred()) SWIG_fail; | |
25970 | } | |
25971 | if (obj6) { | |
25972 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
25973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25974 | } | |
25975 | { | |
25976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25977 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25978 | ||
25979 | wxPyEndAllowThreads(__tstate); | |
25980 | if (PyErr_Occurred()) SWIG_fail; | |
25981 | } | |
25982 | { | |
25983 | wxTreeItemId * resultptr; | |
25984 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25985 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25986 | } | |
25987 | { | |
25988 | if (temp4) | |
25989 | delete arg4; | |
25990 | } | |
25991 | return resultobj; | |
25992 | fail: | |
25993 | { | |
25994 | if (temp4) | |
25995 | delete arg4; | |
25996 | } | |
25997 | return NULL; | |
25998 | } | |
25999 | ||
26000 | ||
26001 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26002 | PyObject *resultobj; | |
26003 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26004 | wxTreeItemId *arg2 = 0 ; | |
26005 | size_t arg3 ; | |
26006 | wxString *arg4 = 0 ; | |
26007 | int arg5 = (int) -1 ; | |
26008 | int arg6 = (int) -1 ; | |
26009 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26010 | wxTreeItemId result; | |
26011 | bool temp4 = False ; | |
26012 | PyObject * obj0 = 0 ; | |
26013 | PyObject * obj1 = 0 ; | |
26014 | PyObject * obj2 = 0 ; | |
26015 | PyObject * obj3 = 0 ; | |
26016 | PyObject * obj4 = 0 ; | |
26017 | PyObject * obj5 = 0 ; | |
26018 | PyObject * obj6 = 0 ; | |
26019 | char *kwnames[] = { | |
26020 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26021 | }; | |
26022 | ||
26023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
26024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26027 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26028 | SWIG_fail; | |
26029 | if (arg2 == NULL) { | |
26030 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26031 | SWIG_fail; | |
26032 | } | |
26033 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
26034 | if (PyErr_Occurred()) SWIG_fail; | |
26035 | { | |
26036 | arg4 = wxString_in_helper(obj3); | |
26037 | if (arg4 == NULL) SWIG_fail; | |
26038 | temp4 = True; | |
26039 | } | |
26040 | if (obj4) { | |
26041 | arg5 = (int) SWIG_AsInt(obj4); | |
26042 | if (PyErr_Occurred()) SWIG_fail; | |
26043 | } | |
26044 | if (obj5) { | |
26045 | arg6 = (int) SWIG_AsInt(obj5); | |
26046 | if (PyErr_Occurred()) SWIG_fail; | |
26047 | } | |
26048 | if (obj6) { | |
26049 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
26050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26051 | } | |
26052 | { | |
26053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26054 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26055 | ||
26056 | wxPyEndAllowThreads(__tstate); | |
26057 | if (PyErr_Occurred()) SWIG_fail; | |
26058 | } | |
26059 | { | |
26060 | wxTreeItemId * resultptr; | |
26061 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26062 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26063 | } | |
26064 | { | |
26065 | if (temp4) | |
26066 | delete arg4; | |
26067 | } | |
26068 | return resultobj; | |
26069 | fail: | |
26070 | { | |
26071 | if (temp4) | |
26072 | delete arg4; | |
26073 | } | |
26074 | return NULL; | |
26075 | } | |
26076 | ||
26077 | ||
26078 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26079 | PyObject *resultobj; | |
26080 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26081 | wxTreeItemId *arg2 = 0 ; | |
26082 | wxString *arg3 = 0 ; | |
26083 | int arg4 = (int) -1 ; | |
26084 | int arg5 = (int) -1 ; | |
26085 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26086 | wxTreeItemId result; | |
26087 | bool temp3 = False ; | |
26088 | PyObject * obj0 = 0 ; | |
26089 | PyObject * obj1 = 0 ; | |
26090 | PyObject * obj2 = 0 ; | |
26091 | PyObject * obj3 = 0 ; | |
26092 | PyObject * obj4 = 0 ; | |
26093 | PyObject * obj5 = 0 ; | |
26094 | char *kwnames[] = { | |
26095 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26096 | }; | |
26097 | ||
26098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26101 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26102 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26103 | SWIG_fail; | |
26104 | if (arg2 == NULL) { | |
26105 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26106 | SWIG_fail; | |
26107 | } | |
26108 | { | |
26109 | arg3 = wxString_in_helper(obj2); | |
26110 | if (arg3 == NULL) SWIG_fail; | |
26111 | temp3 = True; | |
26112 | } | |
26113 | if (obj3) { | |
26114 | arg4 = (int) SWIG_AsInt(obj3); | |
26115 | if (PyErr_Occurred()) SWIG_fail; | |
26116 | } | |
26117 | if (obj4) { | |
26118 | arg5 = (int) SWIG_AsInt(obj4); | |
26119 | if (PyErr_Occurred()) SWIG_fail; | |
26120 | } | |
26121 | if (obj5) { | |
26122 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
26123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26124 | } | |
26125 | { | |
26126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26127 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26128 | ||
26129 | wxPyEndAllowThreads(__tstate); | |
26130 | if (PyErr_Occurred()) SWIG_fail; | |
26131 | } | |
26132 | { | |
26133 | wxTreeItemId * resultptr; | |
26134 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26135 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26136 | } | |
26137 | { | |
26138 | if (temp3) | |
26139 | delete arg3; | |
26140 | } | |
26141 | return resultobj; | |
26142 | fail: | |
26143 | { | |
26144 | if (temp3) | |
26145 | delete arg3; | |
26146 | } | |
26147 | return NULL; | |
26148 | } | |
26149 | ||
26150 | ||
26151 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26152 | PyObject *resultobj; | |
26153 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26154 | wxTreeItemId *arg2 = 0 ; | |
26155 | PyObject * obj0 = 0 ; | |
26156 | PyObject * obj1 = 0 ; | |
26157 | char *kwnames[] = { | |
26158 | (char *) "self",(char *) "item", NULL | |
26159 | }; | |
26160 | ||
26161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
26162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26164 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26165 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26166 | SWIG_fail; | |
26167 | if (arg2 == NULL) { | |
26168 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26169 | SWIG_fail; | |
26170 | } | |
26171 | { | |
26172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26173 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
26174 | ||
26175 | wxPyEndAllowThreads(__tstate); | |
26176 | if (PyErr_Occurred()) SWIG_fail; | |
26177 | } | |
26178 | Py_INCREF(Py_None); resultobj = Py_None; | |
26179 | return resultobj; | |
26180 | fail: | |
26181 | return NULL; | |
26182 | } | |
26183 | ||
26184 | ||
26185 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26186 | PyObject *resultobj; | |
26187 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26188 | wxTreeItemId *arg2 = 0 ; | |
26189 | PyObject * obj0 = 0 ; | |
26190 | PyObject * obj1 = 0 ; | |
26191 | char *kwnames[] = { | |
26192 | (char *) "self",(char *) "item", NULL | |
26193 | }; | |
26194 | ||
26195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
26196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26199 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26200 | SWIG_fail; | |
26201 | if (arg2 == NULL) { | |
26202 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26203 | SWIG_fail; | |
26204 | } | |
26205 | { | |
26206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26207 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
26208 | ||
26209 | wxPyEndAllowThreads(__tstate); | |
26210 | if (PyErr_Occurred()) SWIG_fail; | |
26211 | } | |
26212 | Py_INCREF(Py_None); resultobj = Py_None; | |
26213 | return resultobj; | |
26214 | fail: | |
26215 | return NULL; | |
26216 | } | |
26217 | ||
26218 | ||
26219 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26220 | PyObject *resultobj; | |
26221 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26222 | PyObject * obj0 = 0 ; | |
26223 | char *kwnames[] = { | |
26224 | (char *) "self", NULL | |
26225 | }; | |
26226 | ||
26227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
26228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26230 | { | |
26231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26232 | (arg1)->DeleteAllItems(); | |
26233 | ||
26234 | wxPyEndAllowThreads(__tstate); | |
26235 | if (PyErr_Occurred()) SWIG_fail; | |
26236 | } | |
26237 | Py_INCREF(Py_None); resultobj = Py_None; | |
26238 | return resultobj; | |
26239 | fail: | |
26240 | return NULL; | |
26241 | } | |
26242 | ||
26243 | ||
26244 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26245 | PyObject *resultobj; | |
26246 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26247 | wxTreeItemId *arg2 = 0 ; | |
26248 | PyObject * obj0 = 0 ; | |
26249 | PyObject * obj1 = 0 ; | |
26250 | char *kwnames[] = { | |
26251 | (char *) "self",(char *) "item", NULL | |
26252 | }; | |
26253 | ||
26254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
26255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26258 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26259 | SWIG_fail; | |
26260 | if (arg2 == NULL) { | |
26261 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26262 | SWIG_fail; | |
26263 | } | |
26264 | { | |
26265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26266 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
26267 | ||
26268 | wxPyEndAllowThreads(__tstate); | |
26269 | if (PyErr_Occurred()) SWIG_fail; | |
26270 | } | |
26271 | Py_INCREF(Py_None); resultobj = Py_None; | |
26272 | return resultobj; | |
26273 | fail: | |
26274 | return NULL; | |
26275 | } | |
26276 | ||
26277 | ||
26278 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26279 | PyObject *resultobj; | |
26280 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26281 | wxTreeItemId *arg2 = 0 ; | |
26282 | PyObject * obj0 = 0 ; | |
26283 | PyObject * obj1 = 0 ; | |
26284 | char *kwnames[] = { | |
26285 | (char *) "self",(char *) "item", NULL | |
26286 | }; | |
26287 | ||
26288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
26289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26291 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26292 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26293 | SWIG_fail; | |
26294 | if (arg2 == NULL) { | |
26295 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26296 | SWIG_fail; | |
26297 | } | |
26298 | { | |
26299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26300 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
26301 | ||
26302 | wxPyEndAllowThreads(__tstate); | |
26303 | if (PyErr_Occurred()) SWIG_fail; | |
26304 | } | |
26305 | Py_INCREF(Py_None); resultobj = Py_None; | |
26306 | return resultobj; | |
26307 | fail: | |
26308 | return NULL; | |
26309 | } | |
26310 | ||
26311 | ||
26312 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26313 | PyObject *resultobj; | |
26314 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26315 | wxTreeItemId *arg2 = 0 ; | |
26316 | PyObject * obj0 = 0 ; | |
26317 | PyObject * obj1 = 0 ; | |
26318 | char *kwnames[] = { | |
26319 | (char *) "self",(char *) "item", NULL | |
26320 | }; | |
26321 | ||
26322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
26323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26325 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26326 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26327 | SWIG_fail; | |
26328 | if (arg2 == NULL) { | |
26329 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26330 | SWIG_fail; | |
26331 | } | |
26332 | { | |
26333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26334 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
26335 | ||
26336 | wxPyEndAllowThreads(__tstate); | |
26337 | if (PyErr_Occurred()) SWIG_fail; | |
26338 | } | |
26339 | Py_INCREF(Py_None); resultobj = Py_None; | |
26340 | return resultobj; | |
26341 | fail: | |
26342 | return NULL; | |
26343 | } | |
26344 | ||
26345 | ||
26346 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26347 | PyObject *resultobj; | |
26348 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26349 | wxTreeItemId *arg2 = 0 ; | |
26350 | PyObject * obj0 = 0 ; | |
26351 | PyObject * obj1 = 0 ; | |
26352 | char *kwnames[] = { | |
26353 | (char *) "self",(char *) "item", NULL | |
26354 | }; | |
26355 | ||
26356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
26357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26359 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26360 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26361 | SWIG_fail; | |
26362 | if (arg2 == NULL) { | |
26363 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26364 | SWIG_fail; | |
26365 | } | |
26366 | { | |
26367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26368 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
26369 | ||
26370 | wxPyEndAllowThreads(__tstate); | |
26371 | if (PyErr_Occurred()) SWIG_fail; | |
26372 | } | |
26373 | Py_INCREF(Py_None); resultobj = Py_None; | |
26374 | return resultobj; | |
26375 | fail: | |
26376 | return NULL; | |
26377 | } | |
26378 | ||
26379 | ||
26380 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26381 | PyObject *resultobj; | |
26382 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26383 | PyObject * obj0 = 0 ; | |
26384 | char *kwnames[] = { | |
26385 | (char *) "self", NULL | |
26386 | }; | |
26387 | ||
26388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
26389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26391 | { | |
26392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26393 | (arg1)->Unselect(); | |
26394 | ||
26395 | wxPyEndAllowThreads(__tstate); | |
26396 | if (PyErr_Occurred()) SWIG_fail; | |
26397 | } | |
26398 | Py_INCREF(Py_None); resultobj = Py_None; | |
26399 | return resultobj; | |
26400 | fail: | |
26401 | return NULL; | |
26402 | } | |
26403 | ||
26404 | ||
26405 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26406 | PyObject *resultobj; | |
26407 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26408 | wxTreeItemId *arg2 = 0 ; | |
26409 | PyObject * obj0 = 0 ; | |
26410 | PyObject * obj1 = 0 ; | |
26411 | char *kwnames[] = { | |
26412 | (char *) "self",(char *) "item", NULL | |
26413 | }; | |
26414 | ||
26415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
26416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26419 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26420 | SWIG_fail; | |
26421 | if (arg2 == NULL) { | |
26422 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26423 | SWIG_fail; | |
26424 | } | |
26425 | { | |
26426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26427 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
26428 | ||
26429 | wxPyEndAllowThreads(__tstate); | |
26430 | if (PyErr_Occurred()) SWIG_fail; | |
26431 | } | |
26432 | Py_INCREF(Py_None); resultobj = Py_None; | |
26433 | return resultobj; | |
26434 | fail: | |
26435 | return NULL; | |
26436 | } | |
26437 | ||
26438 | ||
26439 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26440 | PyObject *resultobj; | |
26441 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26442 | PyObject * obj0 = 0 ; | |
26443 | char *kwnames[] = { | |
26444 | (char *) "self", NULL | |
26445 | }; | |
26446 | ||
26447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
26448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26450 | { | |
26451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26452 | (arg1)->UnselectAll(); | |
26453 | ||
26454 | wxPyEndAllowThreads(__tstate); | |
26455 | if (PyErr_Occurred()) SWIG_fail; | |
26456 | } | |
26457 | Py_INCREF(Py_None); resultobj = Py_None; | |
26458 | return resultobj; | |
26459 | fail: | |
26460 | return NULL; | |
26461 | } | |
26462 | ||
26463 | ||
26464 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26465 | PyObject *resultobj; | |
26466 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26467 | wxTreeItemId *arg2 = 0 ; | |
26468 | bool arg3 = (bool) True ; | |
26469 | PyObject * obj0 = 0 ; | |
26470 | PyObject * obj1 = 0 ; | |
26471 | PyObject * obj2 = 0 ; | |
26472 | char *kwnames[] = { | |
26473 | (char *) "self",(char *) "item",(char *) "select", NULL | |
26474 | }; | |
26475 | ||
26476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26480 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26481 | SWIG_fail; | |
26482 | if (arg2 == NULL) { | |
26483 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26484 | SWIG_fail; | |
26485 | } | |
26486 | if (obj2) { | |
26487 | arg3 = (bool) SWIG_AsBool(obj2); | |
26488 | if (PyErr_Occurred()) SWIG_fail; | |
26489 | } | |
26490 | { | |
26491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26492 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
26493 | ||
26494 | wxPyEndAllowThreads(__tstate); | |
26495 | if (PyErr_Occurred()) SWIG_fail; | |
26496 | } | |
26497 | Py_INCREF(Py_None); resultobj = Py_None; | |
26498 | return resultobj; | |
26499 | fail: | |
26500 | return NULL; | |
26501 | } | |
26502 | ||
26503 | ||
26504 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26505 | PyObject *resultobj; | |
26506 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26507 | wxTreeItemId *arg2 = 0 ; | |
26508 | PyObject * obj0 = 0 ; | |
26509 | PyObject * obj1 = 0 ; | |
26510 | char *kwnames[] = { | |
26511 | (char *) "self",(char *) "item", NULL | |
26512 | }; | |
26513 | ||
26514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; | |
26515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26517 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26518 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26519 | SWIG_fail; | |
26520 | if (arg2 == NULL) { | |
26521 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26522 | SWIG_fail; | |
26523 | } | |
26524 | { | |
26525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26526 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
26527 | ||
26528 | wxPyEndAllowThreads(__tstate); | |
26529 | if (PyErr_Occurred()) SWIG_fail; | |
26530 | } | |
26531 | Py_INCREF(Py_None); resultobj = Py_None; | |
26532 | return resultobj; | |
26533 | fail: | |
26534 | return NULL; | |
26535 | } | |
26536 | ||
26537 | ||
26538 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26539 | PyObject *resultobj; | |
26540 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26541 | wxTreeItemId *arg2 = 0 ; | |
26542 | PyObject * obj0 = 0 ; | |
26543 | PyObject * obj1 = 0 ; | |
26544 | char *kwnames[] = { | |
26545 | (char *) "self",(char *) "item", NULL | |
26546 | }; | |
26547 | ||
26548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
26549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26552 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26553 | SWIG_fail; | |
26554 | if (arg2 == NULL) { | |
26555 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26556 | SWIG_fail; | |
26557 | } | |
26558 | { | |
26559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26560 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
26561 | ||
26562 | wxPyEndAllowThreads(__tstate); | |
26563 | if (PyErr_Occurred()) SWIG_fail; | |
26564 | } | |
26565 | Py_INCREF(Py_None); resultobj = Py_None; | |
26566 | return resultobj; | |
26567 | fail: | |
26568 | return NULL; | |
26569 | } | |
26570 | ||
26571 | ||
26572 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26573 | PyObject *resultobj; | |
26574 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26575 | wxTreeItemId *arg2 = 0 ; | |
26576 | PyObject * obj0 = 0 ; | |
26577 | PyObject * obj1 = 0 ; | |
26578 | char *kwnames[] = { | |
26579 | (char *) "self",(char *) "item", NULL | |
26580 | }; | |
26581 | ||
26582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
26583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26585 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26586 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26587 | SWIG_fail; | |
26588 | if (arg2 == NULL) { | |
26589 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26590 | SWIG_fail; | |
26591 | } | |
26592 | { | |
26593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26594 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
26595 | ||
26596 | wxPyEndAllowThreads(__tstate); | |
26597 | if (PyErr_Occurred()) SWIG_fail; | |
26598 | } | |
26599 | Py_INCREF(Py_None); resultobj = Py_None; | |
26600 | return resultobj; | |
26601 | fail: | |
26602 | return NULL; | |
26603 | } | |
26604 | ||
26605 | ||
26606 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26607 | PyObject *resultobj; | |
26608 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26609 | wxTreeItemId *arg2 = 0 ; | |
26610 | PyObject * obj0 = 0 ; | |
26611 | PyObject * obj1 = 0 ; | |
26612 | char *kwnames[] = { | |
26613 | (char *) "self",(char *) "item", NULL | |
26614 | }; | |
26615 | ||
26616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
26617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26619 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26620 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26621 | SWIG_fail; | |
26622 | if (arg2 == NULL) { | |
26623 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26624 | SWIG_fail; | |
26625 | } | |
26626 | { | |
26627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26628 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
26629 | ||
26630 | wxPyEndAllowThreads(__tstate); | |
26631 | if (PyErr_Occurred()) SWIG_fail; | |
26632 | } | |
26633 | Py_INCREF(Py_None); resultobj = Py_None; | |
26634 | return resultobj; | |
26635 | fail: | |
26636 | return NULL; | |
26637 | } | |
26638 | ||
26639 | ||
26640 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26641 | PyObject *resultobj; | |
26642 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26643 | wxTextCtrl *result; | |
26644 | PyObject * obj0 = 0 ; | |
26645 | char *kwnames[] = { | |
26646 | (char *) "self", NULL | |
26647 | }; | |
26648 | ||
26649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
26650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26652 | { | |
26653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26654 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
26655 | ||
26656 | wxPyEndAllowThreads(__tstate); | |
26657 | if (PyErr_Occurred()) SWIG_fail; | |
26658 | } | |
26659 | { | |
26660 | resultobj = wxPyMake_wxObject(result); | |
26661 | } | |
26662 | return resultobj; | |
26663 | fail: | |
26664 | return NULL; | |
26665 | } | |
26666 | ||
26667 | ||
26668 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26669 | PyObject *resultobj; | |
26670 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26671 | wxTreeItemId *arg2 = 0 ; | |
26672 | PyObject * obj0 = 0 ; | |
26673 | PyObject * obj1 = 0 ; | |
26674 | char *kwnames[] = { | |
26675 | (char *) "self",(char *) "item", NULL | |
26676 | }; | |
26677 | ||
26678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
26679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26681 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26682 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26683 | SWIG_fail; | |
26684 | if (arg2 == NULL) { | |
26685 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26686 | SWIG_fail; | |
26687 | } | |
26688 | { | |
26689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26690 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
26691 | ||
26692 | wxPyEndAllowThreads(__tstate); | |
26693 | if (PyErr_Occurred()) SWIG_fail; | |
26694 | } | |
26695 | Py_INCREF(Py_None); resultobj = Py_None; | |
26696 | return resultobj; | |
26697 | fail: | |
26698 | return NULL; | |
26699 | } | |
26700 | ||
26701 | ||
26702 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26703 | PyObject *resultobj; | |
26704 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26705 | wxPoint *arg2 = 0 ; | |
26706 | int *arg3 = 0 ; | |
26707 | wxTreeItemId result; | |
26708 | wxPoint temp2 ; | |
26709 | int temp3 ; | |
26710 | PyObject * obj0 = 0 ; | |
26711 | PyObject * obj1 = 0 ; | |
26712 | char *kwnames[] = { | |
26713 | (char *) "self",(char *) "point", NULL | |
26714 | }; | |
26715 | ||
26716 | arg3 = &temp3; | |
26717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
26718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26720 | { | |
26721 | arg2 = &temp2; | |
26722 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26723 | } | |
26724 | { | |
26725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26726 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
26727 | ||
26728 | wxPyEndAllowThreads(__tstate); | |
26729 | if (PyErr_Occurred()) SWIG_fail; | |
26730 | } | |
26731 | { | |
26732 | wxTreeItemId * resultptr; | |
26733 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26734 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26735 | } | |
26736 | { | |
26737 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26738 | resultobj = t_output_helper(resultobj,o); | |
26739 | } | |
26740 | return resultobj; | |
26741 | fail: | |
26742 | return NULL; | |
26743 | } | |
26744 | ||
26745 | ||
26746 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26747 | PyObject *resultobj; | |
26748 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26749 | wxTreeItemId *arg2 = 0 ; | |
26750 | bool arg3 = (bool) False ; | |
26751 | PyObject *result; | |
26752 | PyObject * obj0 = 0 ; | |
26753 | PyObject * obj1 = 0 ; | |
26754 | PyObject * obj2 = 0 ; | |
26755 | char *kwnames[] = { | |
26756 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
26757 | }; | |
26758 | ||
26759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26762 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26763 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26764 | SWIG_fail; | |
26765 | if (arg2 == NULL) { | |
26766 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26767 | SWIG_fail; | |
26768 | } | |
26769 | if (obj2) { | |
26770 | arg3 = (bool) SWIG_AsBool(obj2); | |
26771 | if (PyErr_Occurred()) SWIG_fail; | |
26772 | } | |
26773 | { | |
26774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26775 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26776 | ||
26777 | wxPyEndAllowThreads(__tstate); | |
26778 | if (PyErr_Occurred()) SWIG_fail; | |
26779 | } | |
26780 | resultobj = result; | |
26781 | return resultobj; | |
26782 | fail: | |
26783 | return NULL; | |
26784 | } | |
26785 | ||
26786 | ||
26787 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
26788 | PyObject *obj; | |
26789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26790 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
26791 | Py_INCREF(obj); | |
26792 | return Py_BuildValue((char *)""); | |
26793 | } | |
26794 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { | |
26795 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
26796 | return 1; | |
26797 | } | |
26798 | ||
26799 | ||
26800 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
26801 | PyObject *pyobj; | |
26802 | ||
26803 | { | |
26804 | #if wxUSE_UNICODE | |
26805 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26806 | #else | |
26807 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26808 | #endif | |
26809 | } | |
26810 | return pyobj; | |
26811 | } | |
26812 | ||
26813 | ||
26814 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26815 | PyObject *resultobj; | |
26816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26817 | int arg2 = (int) (int)-1 ; | |
26818 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
26819 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
26820 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26821 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26822 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26823 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26824 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26825 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
26826 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26827 | int arg8 = (int) 0 ; | |
26828 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
26829 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
26830 | wxGenericDirCtrl *result; | |
26831 | bool temp3 = False ; | |
26832 | wxPoint temp4 ; | |
26833 | wxSize temp5 ; | |
26834 | bool temp7 = False ; | |
26835 | bool temp9 = False ; | |
26836 | PyObject * obj0 = 0 ; | |
26837 | PyObject * obj1 = 0 ; | |
26838 | PyObject * obj2 = 0 ; | |
26839 | PyObject * obj3 = 0 ; | |
26840 | PyObject * obj4 = 0 ; | |
26841 | PyObject * obj5 = 0 ; | |
26842 | PyObject * obj6 = 0 ; | |
26843 | PyObject * obj7 = 0 ; | |
26844 | PyObject * obj8 = 0 ; | |
26845 | char *kwnames[] = { | |
26846 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26847 | }; | |
26848 | ||
26849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
26850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26852 | if (obj1) { | |
26853 | arg2 = (int const) SWIG_AsInt(obj1); | |
26854 | if (PyErr_Occurred()) SWIG_fail; | |
26855 | } | |
26856 | if (obj2) { | |
26857 | { | |
26858 | arg3 = wxString_in_helper(obj2); | |
26859 | if (arg3 == NULL) SWIG_fail; | |
26860 | temp3 = True; | |
26861 | } | |
26862 | } | |
26863 | if (obj3) { | |
26864 | { | |
26865 | arg4 = &temp4; | |
26866 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26867 | } | |
26868 | } | |
26869 | if (obj4) { | |
26870 | { | |
26871 | arg5 = &temp5; | |
26872 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26873 | } | |
26874 | } | |
26875 | if (obj5) { | |
26876 | arg6 = (long) SWIG_AsLong(obj5); | |
26877 | if (PyErr_Occurred()) SWIG_fail; | |
26878 | } | |
26879 | if (obj6) { | |
26880 | { | |
26881 | arg7 = wxString_in_helper(obj6); | |
26882 | if (arg7 == NULL) SWIG_fail; | |
26883 | temp7 = True; | |
26884 | } | |
26885 | } | |
26886 | if (obj7) { | |
26887 | arg8 = (int) SWIG_AsInt(obj7); | |
26888 | if (PyErr_Occurred()) SWIG_fail; | |
26889 | } | |
26890 | if (obj8) { | |
26891 | { | |
26892 | arg9 = wxString_in_helper(obj8); | |
26893 | if (arg9 == NULL) SWIG_fail; | |
26894 | temp9 = True; | |
26895 | } | |
26896 | } | |
26897 | { | |
26898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26899 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
26900 | ||
26901 | wxPyEndAllowThreads(__tstate); | |
26902 | if (PyErr_Occurred()) SWIG_fail; | |
26903 | } | |
26904 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26905 | { | |
26906 | if (temp3) | |
26907 | delete arg3; | |
26908 | } | |
26909 | { | |
26910 | if (temp7) | |
26911 | delete arg7; | |
26912 | } | |
26913 | { | |
26914 | if (temp9) | |
26915 | delete arg9; | |
26916 | } | |
26917 | return resultobj; | |
26918 | fail: | |
26919 | { | |
26920 | if (temp3) | |
26921 | delete arg3; | |
26922 | } | |
26923 | { | |
26924 | if (temp7) | |
26925 | delete arg7; | |
26926 | } | |
26927 | { | |
26928 | if (temp9) | |
26929 | delete arg9; | |
26930 | } | |
26931 | return NULL; | |
26932 | } | |
26933 | ||
26934 | ||
26935 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26936 | PyObject *resultobj; | |
26937 | wxGenericDirCtrl *result; | |
26938 | char *kwnames[] = { | |
26939 | NULL | |
26940 | }; | |
26941 | ||
26942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
26943 | { | |
26944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26945 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
26946 | ||
26947 | wxPyEndAllowThreads(__tstate); | |
26948 | if (PyErr_Occurred()) SWIG_fail; | |
26949 | } | |
26950 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26951 | return resultobj; | |
26952 | fail: | |
26953 | return NULL; | |
26954 | } | |
26955 | ||
26956 | ||
26957 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26958 | PyObject *resultobj; | |
26959 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26960 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26961 | int arg3 = (int) (int)-1 ; | |
26962 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
26963 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26964 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
26965 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
26966 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
26967 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
26968 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26969 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
26970 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26971 | int arg9 = (int) 0 ; | |
26972 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
26973 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
26974 | bool result; | |
26975 | bool temp4 = False ; | |
26976 | wxPoint temp5 ; | |
26977 | wxSize temp6 ; | |
26978 | bool temp8 = False ; | |
26979 | bool temp10 = False ; | |
26980 | PyObject * obj0 = 0 ; | |
26981 | PyObject * obj1 = 0 ; | |
26982 | PyObject * obj2 = 0 ; | |
26983 | PyObject * obj3 = 0 ; | |
26984 | PyObject * obj4 = 0 ; | |
26985 | PyObject * obj5 = 0 ; | |
26986 | PyObject * obj6 = 0 ; | |
26987 | PyObject * obj7 = 0 ; | |
26988 | PyObject * obj8 = 0 ; | |
26989 | PyObject * obj9 = 0 ; | |
26990 | char *kwnames[] = { | |
26991 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26992 | }; | |
26993 | ||
26994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
26995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
26996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26997 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
26998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26999 | if (obj2) { | |
27000 | arg3 = (int const) SWIG_AsInt(obj2); | |
27001 | if (PyErr_Occurred()) SWIG_fail; | |
27002 | } | |
27003 | if (obj3) { | |
27004 | { | |
27005 | arg4 = wxString_in_helper(obj3); | |
27006 | if (arg4 == NULL) SWIG_fail; | |
27007 | temp4 = True; | |
27008 | } | |
27009 | } | |
27010 | if (obj4) { | |
27011 | { | |
27012 | arg5 = &temp5; | |
27013 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
27014 | } | |
27015 | } | |
27016 | if (obj5) { | |
27017 | { | |
27018 | arg6 = &temp6; | |
27019 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
27020 | } | |
27021 | } | |
27022 | if (obj6) { | |
27023 | arg7 = (long) SWIG_AsLong(obj6); | |
27024 | if (PyErr_Occurred()) SWIG_fail; | |
27025 | } | |
27026 | if (obj7) { | |
27027 | { | |
27028 | arg8 = wxString_in_helper(obj7); | |
27029 | if (arg8 == NULL) SWIG_fail; | |
27030 | temp8 = True; | |
27031 | } | |
27032 | } | |
27033 | if (obj8) { | |
27034 | arg9 = (int) SWIG_AsInt(obj8); | |
27035 | if (PyErr_Occurred()) SWIG_fail; | |
27036 | } | |
27037 | if (obj9) { | |
27038 | { | |
27039 | arg10 = wxString_in_helper(obj9); | |
27040 | if (arg10 == NULL) SWIG_fail; | |
27041 | temp10 = True; | |
27042 | } | |
27043 | } | |
27044 | { | |
27045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27046 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
27047 | ||
27048 | wxPyEndAllowThreads(__tstate); | |
27049 | if (PyErr_Occurred()) SWIG_fail; | |
27050 | } | |
27051 | { | |
27052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27053 | } | |
27054 | { | |
27055 | if (temp4) | |
27056 | delete arg4; | |
27057 | } | |
27058 | { | |
27059 | if (temp8) | |
27060 | delete arg8; | |
27061 | } | |
27062 | { | |
27063 | if (temp10) | |
27064 | delete arg10; | |
27065 | } | |
27066 | return resultobj; | |
27067 | fail: | |
27068 | { | |
27069 | if (temp4) | |
27070 | delete arg4; | |
27071 | } | |
27072 | { | |
27073 | if (temp8) | |
27074 | delete arg8; | |
27075 | } | |
27076 | { | |
27077 | if (temp10) | |
27078 | delete arg10; | |
27079 | } | |
27080 | return NULL; | |
27081 | } | |
27082 | ||
27083 | ||
27084 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27085 | PyObject *resultobj; | |
27086 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27087 | wxString *arg2 = 0 ; | |
27088 | bool result; | |
27089 | bool temp2 = False ; | |
27090 | PyObject * obj0 = 0 ; | |
27091 | PyObject * obj1 = 0 ; | |
27092 | char *kwnames[] = { | |
27093 | (char *) "self",(char *) "path", NULL | |
27094 | }; | |
27095 | ||
27096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
27097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27099 | { | |
27100 | arg2 = wxString_in_helper(obj1); | |
27101 | if (arg2 == NULL) SWIG_fail; | |
27102 | temp2 = True; | |
27103 | } | |
27104 | { | |
27105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27106 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
27107 | ||
27108 | wxPyEndAllowThreads(__tstate); | |
27109 | if (PyErr_Occurred()) SWIG_fail; | |
27110 | } | |
27111 | { | |
27112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27113 | } | |
27114 | { | |
27115 | if (temp2) | |
27116 | delete arg2; | |
27117 | } | |
27118 | return resultobj; | |
27119 | fail: | |
27120 | { | |
27121 | if (temp2) | |
27122 | delete arg2; | |
27123 | } | |
27124 | return NULL; | |
27125 | } | |
27126 | ||
27127 | ||
27128 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27129 | PyObject *resultobj; | |
27130 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27131 | wxString result; | |
27132 | PyObject * obj0 = 0 ; | |
27133 | char *kwnames[] = { | |
27134 | (char *) "self", NULL | |
27135 | }; | |
27136 | ||
27137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
27138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27140 | { | |
27141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27142 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
27143 | ||
27144 | wxPyEndAllowThreads(__tstate); | |
27145 | if (PyErr_Occurred()) SWIG_fail; | |
27146 | } | |
27147 | { | |
27148 | #if wxUSE_UNICODE | |
27149 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27150 | #else | |
27151 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27152 | #endif | |
27153 | } | |
27154 | return resultobj; | |
27155 | fail: | |
27156 | return NULL; | |
27157 | } | |
27158 | ||
27159 | ||
27160 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27161 | PyObject *resultobj; | |
27162 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27163 | wxString *arg2 = 0 ; | |
27164 | bool temp2 = False ; | |
27165 | PyObject * obj0 = 0 ; | |
27166 | PyObject * obj1 = 0 ; | |
27167 | char *kwnames[] = { | |
27168 | (char *) "self",(char *) "path", NULL | |
27169 | }; | |
27170 | ||
27171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
27172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27174 | { | |
27175 | arg2 = wxString_in_helper(obj1); | |
27176 | if (arg2 == NULL) SWIG_fail; | |
27177 | temp2 = True; | |
27178 | } | |
27179 | { | |
27180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27181 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
27182 | ||
27183 | wxPyEndAllowThreads(__tstate); | |
27184 | if (PyErr_Occurred()) SWIG_fail; | |
27185 | } | |
27186 | Py_INCREF(Py_None); resultobj = Py_None; | |
27187 | { | |
27188 | if (temp2) | |
27189 | delete arg2; | |
27190 | } | |
27191 | return resultobj; | |
27192 | fail: | |
27193 | { | |
27194 | if (temp2) | |
27195 | delete arg2; | |
27196 | } | |
27197 | return NULL; | |
27198 | } | |
27199 | ||
27200 | ||
27201 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27202 | PyObject *resultobj; | |
27203 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27204 | wxString result; | |
27205 | PyObject * obj0 = 0 ; | |
27206 | char *kwnames[] = { | |
27207 | (char *) "self", NULL | |
27208 | }; | |
27209 | ||
27210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
27211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27213 | { | |
27214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27215 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
27216 | ||
27217 | wxPyEndAllowThreads(__tstate); | |
27218 | if (PyErr_Occurred()) SWIG_fail; | |
27219 | } | |
27220 | { | |
27221 | #if wxUSE_UNICODE | |
27222 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27223 | #else | |
27224 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27225 | #endif | |
27226 | } | |
27227 | return resultobj; | |
27228 | fail: | |
27229 | return NULL; | |
27230 | } | |
27231 | ||
27232 | ||
27233 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27234 | PyObject *resultobj; | |
27235 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27236 | wxString result; | |
27237 | PyObject * obj0 = 0 ; | |
27238 | char *kwnames[] = { | |
27239 | (char *) "self", NULL | |
27240 | }; | |
27241 | ||
27242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
27243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27245 | { | |
27246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27247 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
27248 | ||
27249 | wxPyEndAllowThreads(__tstate); | |
27250 | if (PyErr_Occurred()) SWIG_fail; | |
27251 | } | |
27252 | { | |
27253 | #if wxUSE_UNICODE | |
27254 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27255 | #else | |
27256 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27257 | #endif | |
27258 | } | |
27259 | return resultobj; | |
27260 | fail: | |
27261 | return NULL; | |
27262 | } | |
27263 | ||
27264 | ||
27265 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27266 | PyObject *resultobj; | |
27267 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27268 | wxString *arg2 = 0 ; | |
27269 | bool temp2 = False ; | |
27270 | PyObject * obj0 = 0 ; | |
27271 | PyObject * obj1 = 0 ; | |
27272 | char *kwnames[] = { | |
27273 | (char *) "self",(char *) "path", NULL | |
27274 | }; | |
27275 | ||
27276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
27277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27279 | { | |
27280 | arg2 = wxString_in_helper(obj1); | |
27281 | if (arg2 == NULL) SWIG_fail; | |
27282 | temp2 = True; | |
27283 | } | |
27284 | { | |
27285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27286 | (arg1)->SetPath((wxString const &)*arg2); | |
27287 | ||
27288 | wxPyEndAllowThreads(__tstate); | |
27289 | if (PyErr_Occurred()) SWIG_fail; | |
27290 | } | |
27291 | Py_INCREF(Py_None); resultobj = Py_None; | |
27292 | { | |
27293 | if (temp2) | |
27294 | delete arg2; | |
27295 | } | |
27296 | return resultobj; | |
27297 | fail: | |
27298 | { | |
27299 | if (temp2) | |
27300 | delete arg2; | |
27301 | } | |
27302 | return NULL; | |
27303 | } | |
27304 | ||
27305 | ||
27306 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27307 | PyObject *resultobj; | |
27308 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27309 | bool arg2 ; | |
27310 | PyObject * obj0 = 0 ; | |
27311 | PyObject * obj1 = 0 ; | |
27312 | char *kwnames[] = { | |
27313 | (char *) "self",(char *) "show", NULL | |
27314 | }; | |
27315 | ||
27316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
27317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27319 | arg2 = (bool) SWIG_AsBool(obj1); | |
27320 | if (PyErr_Occurred()) SWIG_fail; | |
27321 | { | |
27322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27323 | (arg1)->ShowHidden(arg2); | |
27324 | ||
27325 | wxPyEndAllowThreads(__tstate); | |
27326 | if (PyErr_Occurred()) SWIG_fail; | |
27327 | } | |
27328 | Py_INCREF(Py_None); resultobj = Py_None; | |
27329 | return resultobj; | |
27330 | fail: | |
27331 | return NULL; | |
27332 | } | |
27333 | ||
27334 | ||
27335 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27336 | PyObject *resultobj; | |
27337 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27338 | bool result; | |
27339 | PyObject * obj0 = 0 ; | |
27340 | char *kwnames[] = { | |
27341 | (char *) "self", NULL | |
27342 | }; | |
27343 | ||
27344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
27345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27347 | { | |
27348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27349 | result = (bool)(arg1)->GetShowHidden(); | |
27350 | ||
27351 | wxPyEndAllowThreads(__tstate); | |
27352 | if (PyErr_Occurred()) SWIG_fail; | |
27353 | } | |
27354 | { | |
27355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27356 | } | |
27357 | return resultobj; | |
27358 | fail: | |
27359 | return NULL; | |
27360 | } | |
27361 | ||
27362 | ||
27363 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27364 | PyObject *resultobj; | |
27365 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27366 | wxString result; | |
27367 | PyObject * obj0 = 0 ; | |
27368 | char *kwnames[] = { | |
27369 | (char *) "self", NULL | |
27370 | }; | |
27371 | ||
27372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
27373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27375 | { | |
27376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27377 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
27378 | ||
27379 | wxPyEndAllowThreads(__tstate); | |
27380 | if (PyErr_Occurred()) SWIG_fail; | |
27381 | } | |
27382 | { | |
27383 | #if wxUSE_UNICODE | |
27384 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27385 | #else | |
27386 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27387 | #endif | |
27388 | } | |
27389 | return resultobj; | |
27390 | fail: | |
27391 | return NULL; | |
27392 | } | |
27393 | ||
27394 | ||
27395 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27396 | PyObject *resultobj; | |
27397 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27398 | wxString *arg2 = 0 ; | |
27399 | bool temp2 = False ; | |
27400 | PyObject * obj0 = 0 ; | |
27401 | PyObject * obj1 = 0 ; | |
27402 | char *kwnames[] = { | |
27403 | (char *) "self",(char *) "filter", NULL | |
27404 | }; | |
27405 | ||
27406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
27407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27409 | { | |
27410 | arg2 = wxString_in_helper(obj1); | |
27411 | if (arg2 == NULL) SWIG_fail; | |
27412 | temp2 = True; | |
27413 | } | |
27414 | { | |
27415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27416 | (arg1)->SetFilter((wxString const &)*arg2); | |
27417 | ||
27418 | wxPyEndAllowThreads(__tstate); | |
27419 | if (PyErr_Occurred()) SWIG_fail; | |
27420 | } | |
27421 | Py_INCREF(Py_None); resultobj = Py_None; | |
27422 | { | |
27423 | if (temp2) | |
27424 | delete arg2; | |
27425 | } | |
27426 | return resultobj; | |
27427 | fail: | |
27428 | { | |
27429 | if (temp2) | |
27430 | delete arg2; | |
27431 | } | |
27432 | return NULL; | |
27433 | } | |
27434 | ||
27435 | ||
27436 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27437 | PyObject *resultobj; | |
27438 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27439 | int result; | |
27440 | PyObject * obj0 = 0 ; | |
27441 | char *kwnames[] = { | |
27442 | (char *) "self", NULL | |
27443 | }; | |
27444 | ||
27445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
27446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27448 | { | |
27449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27450 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
27451 | ||
27452 | wxPyEndAllowThreads(__tstate); | |
27453 | if (PyErr_Occurred()) SWIG_fail; | |
27454 | } | |
27455 | resultobj = SWIG_FromInt((int)result); | |
27456 | return resultobj; | |
27457 | fail: | |
27458 | return NULL; | |
27459 | } | |
27460 | ||
27461 | ||
27462 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27463 | PyObject *resultobj; | |
27464 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27465 | int arg2 ; | |
27466 | PyObject * obj0 = 0 ; | |
27467 | PyObject * obj1 = 0 ; | |
27468 | char *kwnames[] = { | |
27469 | (char *) "self",(char *) "n", NULL | |
27470 | }; | |
27471 | ||
27472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
27473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27475 | arg2 = (int) SWIG_AsInt(obj1); | |
27476 | if (PyErr_Occurred()) SWIG_fail; | |
27477 | { | |
27478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27479 | (arg1)->SetFilterIndex(arg2); | |
27480 | ||
27481 | wxPyEndAllowThreads(__tstate); | |
27482 | if (PyErr_Occurred()) SWIG_fail; | |
27483 | } | |
27484 | Py_INCREF(Py_None); resultobj = Py_None; | |
27485 | return resultobj; | |
27486 | fail: | |
27487 | return NULL; | |
27488 | } | |
27489 | ||
27490 | ||
27491 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27492 | PyObject *resultobj; | |
27493 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27494 | wxTreeItemId result; | |
27495 | PyObject * obj0 = 0 ; | |
27496 | char *kwnames[] = { | |
27497 | (char *) "self", NULL | |
27498 | }; | |
27499 | ||
27500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
27501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27503 | { | |
27504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27505 | result = (arg1)->GetRootId(); | |
27506 | ||
27507 | wxPyEndAllowThreads(__tstate); | |
27508 | if (PyErr_Occurred()) SWIG_fail; | |
27509 | } | |
27510 | { | |
27511 | wxTreeItemId * resultptr; | |
27512 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27513 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27514 | } | |
27515 | return resultobj; | |
27516 | fail: | |
27517 | return NULL; | |
27518 | } | |
27519 | ||
27520 | ||
27521 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27522 | PyObject *resultobj; | |
27523 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27524 | wxPyTreeCtrl *result; | |
27525 | PyObject * obj0 = 0 ; | |
27526 | char *kwnames[] = { | |
27527 | (char *) "self", NULL | |
27528 | }; | |
27529 | ||
27530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
27531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27533 | { | |
27534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27535 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
27536 | ||
27537 | wxPyEndAllowThreads(__tstate); | |
27538 | if (PyErr_Occurred()) SWIG_fail; | |
27539 | } | |
27540 | { | |
27541 | resultobj = wxPyMake_wxObject(result); | |
27542 | } | |
27543 | return resultobj; | |
27544 | fail: | |
27545 | return NULL; | |
27546 | } | |
27547 | ||
27548 | ||
27549 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27550 | PyObject *resultobj; | |
27551 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27552 | wxDirFilterListCtrl *result; | |
27553 | PyObject * obj0 = 0 ; | |
27554 | char *kwnames[] = { | |
27555 | (char *) "self", NULL | |
27556 | }; | |
27557 | ||
27558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
27559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27561 | { | |
27562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27563 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
27564 | ||
27565 | wxPyEndAllowThreads(__tstate); | |
27566 | if (PyErr_Occurred()) SWIG_fail; | |
27567 | } | |
27568 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
27569 | return resultobj; | |
27570 | fail: | |
27571 | return NULL; | |
27572 | } | |
27573 | ||
27574 | ||
27575 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27576 | PyObject *resultobj; | |
27577 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27578 | wxTreeItemId arg2 ; | |
27579 | wxString *arg3 = 0 ; | |
27580 | bool *arg4 = 0 ; | |
27581 | wxTreeItemId result; | |
27582 | wxTreeItemId *argp2 ; | |
27583 | bool temp3 = False ; | |
27584 | bool temp4 ; | |
27585 | PyObject * obj0 = 0 ; | |
27586 | PyObject * obj1 = 0 ; | |
27587 | PyObject * obj2 = 0 ; | |
27588 | char *kwnames[] = { | |
27589 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
27590 | }; | |
27591 | ||
27592 | arg4 = &temp4; | |
27593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27596 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
27597 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
27598 | arg2 = *argp2; | |
27599 | { | |
27600 | arg3 = wxString_in_helper(obj2); | |
27601 | if (arg3 == NULL) SWIG_fail; | |
27602 | temp3 = True; | |
27603 | } | |
27604 | { | |
27605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27606 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
27607 | ||
27608 | wxPyEndAllowThreads(__tstate); | |
27609 | if (PyErr_Occurred()) SWIG_fail; | |
27610 | } | |
27611 | { | |
27612 | wxTreeItemId * resultptr; | |
27613 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27614 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27615 | } | |
27616 | { | |
27617 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
27618 | resultobj = t_output_helper(resultobj,o); | |
27619 | } | |
27620 | { | |
27621 | if (temp3) | |
27622 | delete arg3; | |
27623 | } | |
27624 | return resultobj; | |
27625 | fail: | |
27626 | { | |
27627 | if (temp3) | |
27628 | delete arg3; | |
27629 | } | |
27630 | return NULL; | |
27631 | } | |
27632 | ||
27633 | ||
27634 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27635 | PyObject *resultobj; | |
27636 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27637 | PyObject * obj0 = 0 ; | |
27638 | char *kwnames[] = { | |
27639 | (char *) "self", NULL | |
27640 | }; | |
27641 | ||
27642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
27643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27645 | { | |
27646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27647 | (arg1)->DoResize(); | |
27648 | ||
27649 | wxPyEndAllowThreads(__tstate); | |
27650 | if (PyErr_Occurred()) SWIG_fail; | |
27651 | } | |
27652 | Py_INCREF(Py_None); resultobj = Py_None; | |
27653 | return resultobj; | |
27654 | fail: | |
27655 | return NULL; | |
27656 | } | |
27657 | ||
27658 | ||
27659 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27660 | PyObject *resultobj; | |
27661 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27662 | PyObject * obj0 = 0 ; | |
27663 | char *kwnames[] = { | |
27664 | (char *) "self", NULL | |
27665 | }; | |
27666 | ||
27667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
27668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27670 | { | |
27671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27672 | (arg1)->ReCreateTree(); | |
27673 | ||
27674 | wxPyEndAllowThreads(__tstate); | |
27675 | if (PyErr_Occurred()) SWIG_fail; | |
27676 | } | |
27677 | Py_INCREF(Py_None); resultobj = Py_None; | |
27678 | return resultobj; | |
27679 | fail: | |
27680 | return NULL; | |
27681 | } | |
27682 | ||
27683 | ||
27684 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
27685 | PyObject *obj; | |
27686 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27687 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
27688 | Py_INCREF(obj); | |
27689 | return Py_BuildValue((char *)""); | |
27690 | } | |
27691 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27692 | PyObject *resultobj; | |
27693 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27694 | int arg2 = (int) (int)-1 ; | |
27695 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
27696 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27697 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27698 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27699 | long arg5 = (long) 0 ; | |
27700 | wxDirFilterListCtrl *result; | |
27701 | wxPoint temp3 ; | |
27702 | wxSize temp4 ; | |
27703 | PyObject * obj0 = 0 ; | |
27704 | PyObject * obj1 = 0 ; | |
27705 | PyObject * obj2 = 0 ; | |
27706 | PyObject * obj3 = 0 ; | |
27707 | PyObject * obj4 = 0 ; | |
27708 | char *kwnames[] = { | |
27709 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27710 | }; | |
27711 | ||
27712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
27713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27715 | if (obj1) { | |
27716 | arg2 = (int const) SWIG_AsInt(obj1); | |
27717 | if (PyErr_Occurred()) SWIG_fail; | |
27718 | } | |
27719 | if (obj2) { | |
27720 | { | |
27721 | arg3 = &temp3; | |
27722 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27723 | } | |
27724 | } | |
27725 | if (obj3) { | |
27726 | { | |
27727 | arg4 = &temp4; | |
27728 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27729 | } | |
27730 | } | |
27731 | if (obj4) { | |
27732 | arg5 = (long) SWIG_AsLong(obj4); | |
27733 | if (PyErr_Occurred()) SWIG_fail; | |
27734 | } | |
27735 | { | |
27736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27737 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
27738 | ||
27739 | wxPyEndAllowThreads(__tstate); | |
27740 | if (PyErr_Occurred()) SWIG_fail; | |
27741 | } | |
27742 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
27743 | return resultobj; | |
27744 | fail: | |
27745 | return NULL; | |
27746 | } | |
27747 | ||
27748 | ||
27749 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27750 | PyObject *resultobj; | |
27751 | wxDirFilterListCtrl *result; | |
27752 | char *kwnames[] = { | |
27753 | NULL | |
27754 | }; | |
27755 | ||
27756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
27757 | { | |
27758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27759 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
27760 | ||
27761 | wxPyEndAllowThreads(__tstate); | |
27762 | if (PyErr_Occurred()) SWIG_fail; | |
27763 | } | |
27764 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
27765 | return resultobj; | |
27766 | fail: | |
27767 | return NULL; | |
27768 | } | |
27769 | ||
27770 | ||
27771 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27772 | PyObject *resultobj; | |
27773 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27774 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
27775 | int arg3 = (int) (int)-1 ; | |
27776 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27777 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27778 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27779 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27780 | long arg6 = (long) 0 ; | |
27781 | bool result; | |
27782 | wxPoint temp4 ; | |
27783 | wxSize temp5 ; | |
27784 | PyObject * obj0 = 0 ; | |
27785 | PyObject * obj1 = 0 ; | |
27786 | PyObject * obj2 = 0 ; | |
27787 | PyObject * obj3 = 0 ; | |
27788 | PyObject * obj4 = 0 ; | |
27789 | PyObject * obj5 = 0 ; | |
27790 | char *kwnames[] = { | |
27791 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27792 | }; | |
27793 | ||
27794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
27796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27797 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
27798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27799 | if (obj2) { | |
27800 | arg3 = (int const) SWIG_AsInt(obj2); | |
27801 | if (PyErr_Occurred()) SWIG_fail; | |
27802 | } | |
27803 | if (obj3) { | |
27804 | { | |
27805 | arg4 = &temp4; | |
27806 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27807 | } | |
27808 | } | |
27809 | if (obj4) { | |
27810 | { | |
27811 | arg5 = &temp5; | |
27812 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27813 | } | |
27814 | } | |
27815 | if (obj5) { | |
27816 | arg6 = (long) SWIG_AsLong(obj5); | |
27817 | if (PyErr_Occurred()) SWIG_fail; | |
27818 | } | |
27819 | { | |
27820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27821 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
27822 | ||
27823 | wxPyEndAllowThreads(__tstate); | |
27824 | if (PyErr_Occurred()) SWIG_fail; | |
27825 | } | |
27826 | { | |
27827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27828 | } | |
27829 | return resultobj; | |
27830 | fail: | |
27831 | return NULL; | |
27832 | } | |
27833 | ||
27834 | ||
27835 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27836 | PyObject *resultobj; | |
27837 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27838 | wxString *arg2 = 0 ; | |
27839 | int arg3 ; | |
27840 | bool temp2 = False ; | |
27841 | PyObject * obj0 = 0 ; | |
27842 | PyObject * obj1 = 0 ; | |
27843 | PyObject * obj2 = 0 ; | |
27844 | char *kwnames[] = { | |
27845 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
27846 | }; | |
27847 | ||
27848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
27850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27851 | { | |
27852 | arg2 = wxString_in_helper(obj1); | |
27853 | if (arg2 == NULL) SWIG_fail; | |
27854 | temp2 = True; | |
27855 | } | |
27856 | arg3 = (int) SWIG_AsInt(obj2); | |
27857 | if (PyErr_Occurred()) SWIG_fail; | |
27858 | { | |
27859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27860 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
27861 | ||
27862 | wxPyEndAllowThreads(__tstate); | |
27863 | if (PyErr_Occurred()) SWIG_fail; | |
27864 | } | |
27865 | Py_INCREF(Py_None); resultobj = Py_None; | |
27866 | { | |
27867 | if (temp2) | |
27868 | delete arg2; | |
27869 | } | |
27870 | return resultobj; | |
27871 | fail: | |
27872 | { | |
27873 | if (temp2) | |
27874 | delete arg2; | |
27875 | } | |
27876 | return NULL; | |
27877 | } | |
27878 | ||
27879 | ||
27880 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
27881 | PyObject *obj; | |
27882 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27883 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
27884 | Py_INCREF(obj); | |
27885 | return Py_BuildValue((char *)""); | |
27886 | } | |
27887 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27888 | PyObject *resultobj; | |
27889 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27890 | int arg2 ; | |
27891 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
27892 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27893 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27894 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27895 | long arg5 = (long) 0 ; | |
27896 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27897 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27898 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
27899 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27900 | wxPyControl *result; | |
27901 | wxPoint temp3 ; | |
27902 | wxSize temp4 ; | |
27903 | bool temp7 = False ; | |
27904 | PyObject * obj0 = 0 ; | |
27905 | PyObject * obj1 = 0 ; | |
27906 | PyObject * obj2 = 0 ; | |
27907 | PyObject * obj3 = 0 ; | |
27908 | PyObject * obj4 = 0 ; | |
27909 | PyObject * obj5 = 0 ; | |
27910 | PyObject * obj6 = 0 ; | |
27911 | char *kwnames[] = { | |
27912 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27913 | }; | |
27914 | ||
27915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27918 | arg2 = (int const) SWIG_AsInt(obj1); | |
27919 | if (PyErr_Occurred()) SWIG_fail; | |
27920 | if (obj2) { | |
27921 | { | |
27922 | arg3 = &temp3; | |
27923 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27924 | } | |
27925 | } | |
27926 | if (obj3) { | |
27927 | { | |
27928 | arg4 = &temp4; | |
27929 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27930 | } | |
27931 | } | |
27932 | if (obj4) { | |
27933 | arg5 = (long) SWIG_AsLong(obj4); | |
27934 | if (PyErr_Occurred()) SWIG_fail; | |
27935 | } | |
27936 | if (obj5) { | |
27937 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
27938 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27939 | SWIG_fail; | |
27940 | if (arg6 == NULL) { | |
27941 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27942 | SWIG_fail; | |
27943 | } | |
27944 | } | |
27945 | if (obj6) { | |
27946 | { | |
27947 | arg7 = wxString_in_helper(obj6); | |
27948 | if (arg7 == NULL) SWIG_fail; | |
27949 | temp7 = True; | |
27950 | } | |
27951 | } | |
27952 | { | |
27953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27954 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
27955 | ||
27956 | wxPyEndAllowThreads(__tstate); | |
27957 | if (PyErr_Occurred()) SWIG_fail; | |
27958 | } | |
27959 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
27960 | { | |
27961 | if (temp7) | |
27962 | delete arg7; | |
27963 | } | |
27964 | return resultobj; | |
27965 | fail: | |
27966 | { | |
27967 | if (temp7) | |
27968 | delete arg7; | |
27969 | } | |
27970 | return NULL; | |
27971 | } | |
27972 | ||
27973 | ||
27974 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27975 | PyObject *resultobj; | |
27976 | wxPyControl *result; | |
27977 | char *kwnames[] = { | |
27978 | NULL | |
27979 | }; | |
27980 | ||
27981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
27982 | { | |
27983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27984 | result = (wxPyControl *)new wxPyControl(); | |
27985 | ||
27986 | wxPyEndAllowThreads(__tstate); | |
27987 | if (PyErr_Occurred()) SWIG_fail; | |
27988 | } | |
27989 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
27990 | return resultobj; | |
27991 | fail: | |
27992 | return NULL; | |
27993 | } | |
27994 | ||
27995 | ||
27996 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27997 | PyObject *resultobj; | |
27998 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27999 | PyObject *arg2 = (PyObject *) 0 ; | |
28000 | PyObject *arg3 = (PyObject *) 0 ; | |
28001 | PyObject * obj0 = 0 ; | |
28002 | PyObject * obj1 = 0 ; | |
28003 | PyObject * obj2 = 0 ; | |
28004 | char *kwnames[] = { | |
28005 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28006 | }; | |
28007 | ||
28008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28011 | arg2 = obj1; | |
28012 | arg3 = obj2; | |
28013 | { | |
28014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28015 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28016 | ||
28017 | wxPyEndAllowThreads(__tstate); | |
28018 | if (PyErr_Occurred()) SWIG_fail; | |
28019 | } | |
28020 | Py_INCREF(Py_None); resultobj = Py_None; | |
28021 | return resultobj; | |
28022 | fail: | |
28023 | return NULL; | |
28024 | } | |
28025 | ||
28026 | ||
28027 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28028 | PyObject *resultobj; | |
28029 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28030 | int arg2 ; | |
28031 | int arg3 ; | |
28032 | int arg4 ; | |
28033 | int arg5 ; | |
28034 | PyObject * obj0 = 0 ; | |
28035 | PyObject * obj1 = 0 ; | |
28036 | PyObject * obj2 = 0 ; | |
28037 | PyObject * obj3 = 0 ; | |
28038 | PyObject * obj4 = 0 ; | |
28039 | char *kwnames[] = { | |
28040 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
28041 | }; | |
28042 | ||
28043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28046 | arg2 = (int) SWIG_AsInt(obj1); | |
28047 | if (PyErr_Occurred()) SWIG_fail; | |
28048 | arg3 = (int) SWIG_AsInt(obj2); | |
28049 | if (PyErr_Occurred()) SWIG_fail; | |
28050 | arg4 = (int) SWIG_AsInt(obj3); | |
28051 | if (PyErr_Occurred()) SWIG_fail; | |
28052 | arg5 = (int) SWIG_AsInt(obj4); | |
28053 | if (PyErr_Occurred()) SWIG_fail; | |
28054 | { | |
28055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28056 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
28057 | ||
28058 | wxPyEndAllowThreads(__tstate); | |
28059 | if (PyErr_Occurred()) SWIG_fail; | |
28060 | } | |
28061 | Py_INCREF(Py_None); resultobj = Py_None; | |
28062 | return resultobj; | |
28063 | fail: | |
28064 | return NULL; | |
28065 | } | |
28066 | ||
28067 | ||
28068 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28069 | PyObject *resultobj; | |
28070 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28071 | int arg2 ; | |
28072 | int arg3 ; | |
28073 | int arg4 ; | |
28074 | int arg5 ; | |
28075 | int arg6 = (int) wxSIZE_AUTO ; | |
28076 | PyObject * obj0 = 0 ; | |
28077 | PyObject * obj1 = 0 ; | |
28078 | PyObject * obj2 = 0 ; | |
28079 | PyObject * obj3 = 0 ; | |
28080 | PyObject * obj4 = 0 ; | |
28081 | PyObject * obj5 = 0 ; | |
28082 | char *kwnames[] = { | |
28083 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
28084 | }; | |
28085 | ||
28086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28089 | arg2 = (int) SWIG_AsInt(obj1); | |
28090 | if (PyErr_Occurred()) SWIG_fail; | |
28091 | arg3 = (int) SWIG_AsInt(obj2); | |
28092 | if (PyErr_Occurred()) SWIG_fail; | |
28093 | arg4 = (int) SWIG_AsInt(obj3); | |
28094 | if (PyErr_Occurred()) SWIG_fail; | |
28095 | arg5 = (int) SWIG_AsInt(obj4); | |
28096 | if (PyErr_Occurred()) SWIG_fail; | |
28097 | if (obj5) { | |
28098 | arg6 = (int) SWIG_AsInt(obj5); | |
28099 | if (PyErr_Occurred()) SWIG_fail; | |
28100 | } | |
28101 | { | |
28102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28103 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
28104 | ||
28105 | wxPyEndAllowThreads(__tstate); | |
28106 | if (PyErr_Occurred()) SWIG_fail; | |
28107 | } | |
28108 | Py_INCREF(Py_None); resultobj = Py_None; | |
28109 | return resultobj; | |
28110 | fail: | |
28111 | return NULL; | |
28112 | } | |
28113 | ||
28114 | ||
28115 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28116 | PyObject *resultobj; | |
28117 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28118 | int arg2 ; | |
28119 | int arg3 ; | |
28120 | PyObject * obj0 = 0 ; | |
28121 | PyObject * obj1 = 0 ; | |
28122 | PyObject * obj2 = 0 ; | |
28123 | char *kwnames[] = { | |
28124 | (char *) "self",(char *) "width",(char *) "height", NULL | |
28125 | }; | |
28126 | ||
28127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28130 | arg2 = (int) SWIG_AsInt(obj1); | |
28131 | if (PyErr_Occurred()) SWIG_fail; | |
28132 | arg3 = (int) SWIG_AsInt(obj2); | |
28133 | if (PyErr_Occurred()) SWIG_fail; | |
28134 | { | |
28135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28136 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
28137 | ||
28138 | wxPyEndAllowThreads(__tstate); | |
28139 | if (PyErr_Occurred()) SWIG_fail; | |
28140 | } | |
28141 | Py_INCREF(Py_None); resultobj = Py_None; | |
28142 | return resultobj; | |
28143 | fail: | |
28144 | return NULL; | |
28145 | } | |
28146 | ||
28147 | ||
28148 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28149 | PyObject *resultobj; | |
28150 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28151 | int arg2 ; | |
28152 | int arg3 ; | |
28153 | PyObject * obj0 = 0 ; | |
28154 | PyObject * obj1 = 0 ; | |
28155 | PyObject * obj2 = 0 ; | |
28156 | char *kwnames[] = { | |
28157 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28158 | }; | |
28159 | ||
28160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28163 | arg2 = (int) SWIG_AsInt(obj1); | |
28164 | if (PyErr_Occurred()) SWIG_fail; | |
28165 | arg3 = (int) SWIG_AsInt(obj2); | |
28166 | if (PyErr_Occurred()) SWIG_fail; | |
28167 | { | |
28168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28169 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
28170 | ||
28171 | wxPyEndAllowThreads(__tstate); | |
28172 | if (PyErr_Occurred()) SWIG_fail; | |
28173 | } | |
28174 | Py_INCREF(Py_None); resultobj = Py_None; | |
28175 | return resultobj; | |
28176 | fail: | |
28177 | return NULL; | |
28178 | } | |
28179 | ||
28180 | ||
28181 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28182 | PyObject *resultobj; | |
28183 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28184 | int *arg2 = (int *) 0 ; | |
28185 | int *arg3 = (int *) 0 ; | |
28186 | int temp2 ; | |
28187 | int temp3 ; | |
28188 | PyObject * obj0 = 0 ; | |
28189 | char *kwnames[] = { | |
28190 | (char *) "self", NULL | |
28191 | }; | |
28192 | ||
28193 | arg2 = &temp2; | |
28194 | arg3 = &temp3; | |
28195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
28196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28198 | { | |
28199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28200 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
28201 | ||
28202 | wxPyEndAllowThreads(__tstate); | |
28203 | if (PyErr_Occurred()) SWIG_fail; | |
28204 | } | |
28205 | Py_INCREF(Py_None); resultobj = Py_None; | |
28206 | { | |
28207 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28208 | resultobj = t_output_helper(resultobj,o); | |
28209 | } | |
28210 | { | |
28211 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28212 | resultobj = t_output_helper(resultobj,o); | |
28213 | } | |
28214 | return resultobj; | |
28215 | fail: | |
28216 | return NULL; | |
28217 | } | |
28218 | ||
28219 | ||
28220 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28221 | PyObject *resultobj; | |
28222 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28223 | int *arg2 = (int *) 0 ; | |
28224 | int *arg3 = (int *) 0 ; | |
28225 | int temp2 ; | |
28226 | int temp3 ; | |
28227 | PyObject * obj0 = 0 ; | |
28228 | char *kwnames[] = { | |
28229 | (char *) "self", NULL | |
28230 | }; | |
28231 | ||
28232 | arg2 = &temp2; | |
28233 | arg3 = &temp3; | |
28234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
28235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28237 | { | |
28238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28239 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
28240 | ||
28241 | wxPyEndAllowThreads(__tstate); | |
28242 | if (PyErr_Occurred()) SWIG_fail; | |
28243 | } | |
28244 | Py_INCREF(Py_None); resultobj = Py_None; | |
28245 | { | |
28246 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28247 | resultobj = t_output_helper(resultobj,o); | |
28248 | } | |
28249 | { | |
28250 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28251 | resultobj = t_output_helper(resultobj,o); | |
28252 | } | |
28253 | return resultobj; | |
28254 | fail: | |
28255 | return NULL; | |
28256 | } | |
28257 | ||
28258 | ||
28259 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28260 | PyObject *resultobj; | |
28261 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28262 | int *arg2 = (int *) 0 ; | |
28263 | int *arg3 = (int *) 0 ; | |
28264 | int temp2 ; | |
28265 | int temp3 ; | |
28266 | PyObject * obj0 = 0 ; | |
28267 | char *kwnames[] = { | |
28268 | (char *) "self", NULL | |
28269 | }; | |
28270 | ||
28271 | arg2 = &temp2; | |
28272 | arg3 = &temp3; | |
28273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
28274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28276 | { | |
28277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28278 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
28279 | ||
28280 | wxPyEndAllowThreads(__tstate); | |
28281 | if (PyErr_Occurred()) SWIG_fail; | |
28282 | } | |
28283 | Py_INCREF(Py_None); resultobj = Py_None; | |
28284 | { | |
28285 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28286 | resultobj = t_output_helper(resultobj,o); | |
28287 | } | |
28288 | { | |
28289 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28290 | resultobj = t_output_helper(resultobj,o); | |
28291 | } | |
28292 | return resultobj; | |
28293 | fail: | |
28294 | return NULL; | |
28295 | } | |
28296 | ||
28297 | ||
28298 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28299 | PyObject *resultobj; | |
28300 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28301 | wxSize result; | |
28302 | PyObject * obj0 = 0 ; | |
28303 | char *kwnames[] = { | |
28304 | (char *) "self", NULL | |
28305 | }; | |
28306 | ||
28307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
28308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28310 | { | |
28311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28312 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
28313 | ||
28314 | wxPyEndAllowThreads(__tstate); | |
28315 | if (PyErr_Occurred()) SWIG_fail; | |
28316 | } | |
28317 | { | |
28318 | wxSize * resultptr; | |
28319 | resultptr = new wxSize((wxSize &) result); | |
28320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
28321 | } | |
28322 | return resultobj; | |
28323 | fail: | |
28324 | return NULL; | |
28325 | } | |
28326 | ||
28327 | ||
28328 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28329 | PyObject *resultobj; | |
28330 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28331 | wxSize result; | |
28332 | PyObject * obj0 = 0 ; | |
28333 | char *kwnames[] = { | |
28334 | (char *) "self", NULL | |
28335 | }; | |
28336 | ||
28337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
28338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28340 | { | |
28341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28342 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
28343 | ||
28344 | wxPyEndAllowThreads(__tstate); | |
28345 | if (PyErr_Occurred()) SWIG_fail; | |
28346 | } | |
28347 | { | |
28348 | wxSize * resultptr; | |
28349 | resultptr = new wxSize((wxSize &) result); | |
28350 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
28351 | } | |
28352 | return resultobj; | |
28353 | fail: | |
28354 | return NULL; | |
28355 | } | |
28356 | ||
28357 | ||
28358 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28359 | PyObject *resultobj; | |
28360 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28361 | PyObject * obj0 = 0 ; | |
28362 | char *kwnames[] = { | |
28363 | (char *) "self", NULL | |
28364 | }; | |
28365 | ||
28366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
28367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28369 | { | |
28370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28371 | (arg1)->base_InitDialog(); | |
28372 | ||
28373 | wxPyEndAllowThreads(__tstate); | |
28374 | if (PyErr_Occurred()) SWIG_fail; | |
28375 | } | |
28376 | Py_INCREF(Py_None); resultobj = Py_None; | |
28377 | return resultobj; | |
28378 | fail: | |
28379 | return NULL; | |
28380 | } | |
28381 | ||
28382 | ||
28383 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28384 | PyObject *resultobj; | |
28385 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28386 | bool result; | |
28387 | PyObject * obj0 = 0 ; | |
28388 | char *kwnames[] = { | |
28389 | (char *) "self", NULL | |
28390 | }; | |
28391 | ||
28392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
28393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28395 | { | |
28396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28397 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
28398 | ||
28399 | wxPyEndAllowThreads(__tstate); | |
28400 | if (PyErr_Occurred()) SWIG_fail; | |
28401 | } | |
28402 | { | |
28403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28404 | } | |
28405 | return resultobj; | |
28406 | fail: | |
28407 | return NULL; | |
28408 | } | |
28409 | ||
28410 | ||
28411 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28412 | PyObject *resultobj; | |
28413 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28414 | bool result; | |
28415 | PyObject * obj0 = 0 ; | |
28416 | char *kwnames[] = { | |
28417 | (char *) "self", NULL | |
28418 | }; | |
28419 | ||
28420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
28421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28423 | { | |
28424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28425 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
28426 | ||
28427 | wxPyEndAllowThreads(__tstate); | |
28428 | if (PyErr_Occurred()) SWIG_fail; | |
28429 | } | |
28430 | { | |
28431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28432 | } | |
28433 | return resultobj; | |
28434 | fail: | |
28435 | return NULL; | |
28436 | } | |
28437 | ||
28438 | ||
28439 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28440 | PyObject *resultobj; | |
28441 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28442 | bool result; | |
28443 | PyObject * obj0 = 0 ; | |
28444 | char *kwnames[] = { | |
28445 | (char *) "self", NULL | |
28446 | }; | |
28447 | ||
28448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
28449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28451 | { | |
28452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28453 | result = (bool)(arg1)->base_Validate(); | |
28454 | ||
28455 | wxPyEndAllowThreads(__tstate); | |
28456 | if (PyErr_Occurred()) SWIG_fail; | |
28457 | } | |
28458 | { | |
28459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28460 | } | |
28461 | return resultobj; | |
28462 | fail: | |
28463 | return NULL; | |
28464 | } | |
28465 | ||
28466 | ||
28467 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28468 | PyObject *resultobj; | |
28469 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28470 | bool result; | |
28471 | PyObject * obj0 = 0 ; | |
28472 | char *kwnames[] = { | |
28473 | (char *) "self", NULL | |
28474 | }; | |
28475 | ||
28476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
28477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28479 | { | |
28480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28481 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
28482 | ||
28483 | wxPyEndAllowThreads(__tstate); | |
28484 | if (PyErr_Occurred()) SWIG_fail; | |
28485 | } | |
28486 | { | |
28487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28488 | } | |
28489 | return resultobj; | |
28490 | fail: | |
28491 | return NULL; | |
28492 | } | |
28493 | ||
28494 | ||
28495 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28496 | PyObject *resultobj; | |
28497 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28498 | bool result; | |
28499 | PyObject * obj0 = 0 ; | |
28500 | char *kwnames[] = { | |
28501 | (char *) "self", NULL | |
28502 | }; | |
28503 | ||
28504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
28505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28507 | { | |
28508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28509 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
28510 | ||
28511 | wxPyEndAllowThreads(__tstate); | |
28512 | if (PyErr_Occurred()) SWIG_fail; | |
28513 | } | |
28514 | { | |
28515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28516 | } | |
28517 | return resultobj; | |
28518 | fail: | |
28519 | return NULL; | |
28520 | } | |
28521 | ||
28522 | ||
28523 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28524 | PyObject *resultobj; | |
28525 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28526 | wxSize result; | |
28527 | PyObject * obj0 = 0 ; | |
28528 | char *kwnames[] = { | |
28529 | (char *) "self", NULL | |
28530 | }; | |
28531 | ||
28532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
28533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28535 | { | |
28536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28537 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
28538 | ||
28539 | wxPyEndAllowThreads(__tstate); | |
28540 | if (PyErr_Occurred()) SWIG_fail; | |
28541 | } | |
28542 | { | |
28543 | wxSize * resultptr; | |
28544 | resultptr = new wxSize((wxSize &) result); | |
28545 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
28546 | } | |
28547 | return resultobj; | |
28548 | fail: | |
28549 | return NULL; | |
28550 | } | |
28551 | ||
28552 | ||
28553 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28554 | PyObject *resultobj; | |
28555 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28556 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28557 | PyObject * obj0 = 0 ; | |
28558 | PyObject * obj1 = 0 ; | |
28559 | char *kwnames[] = { | |
28560 | (char *) "self",(char *) "child", NULL | |
28561 | }; | |
28562 | ||
28563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
28564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28566 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28568 | { | |
28569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28570 | (arg1)->base_AddChild(arg2); | |
28571 | ||
28572 | wxPyEndAllowThreads(__tstate); | |
28573 | if (PyErr_Occurred()) SWIG_fail; | |
28574 | } | |
28575 | Py_INCREF(Py_None); resultobj = Py_None; | |
28576 | return resultobj; | |
28577 | fail: | |
28578 | return NULL; | |
28579 | } | |
28580 | ||
28581 | ||
28582 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28583 | PyObject *resultobj; | |
28584 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28585 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28586 | PyObject * obj0 = 0 ; | |
28587 | PyObject * obj1 = 0 ; | |
28588 | char *kwnames[] = { | |
28589 | (char *) "self",(char *) "child", NULL | |
28590 | }; | |
28591 | ||
28592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
28593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28597 | { | |
28598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28599 | (arg1)->base_RemoveChild(arg2); | |
28600 | ||
28601 | wxPyEndAllowThreads(__tstate); | |
28602 | if (PyErr_Occurred()) SWIG_fail; | |
28603 | } | |
28604 | Py_INCREF(Py_None); resultobj = Py_None; | |
28605 | return resultobj; | |
28606 | fail: | |
28607 | return NULL; | |
28608 | } | |
28609 | ||
28610 | ||
28611 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28612 | PyObject *resultobj; | |
28613 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28614 | bool result; | |
28615 | PyObject * obj0 = 0 ; | |
28616 | char *kwnames[] = { | |
28617 | (char *) "self", NULL | |
28618 | }; | |
28619 | ||
28620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
28621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28623 | { | |
28624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28625 | result = (bool)(arg1)->base_ShouldInheritColours(); | |
28626 | ||
28627 | wxPyEndAllowThreads(__tstate); | |
28628 | if (PyErr_Occurred()) SWIG_fail; | |
28629 | } | |
28630 | { | |
28631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28632 | } | |
28633 | return resultobj; | |
28634 | fail: | |
28635 | return NULL; | |
28636 | } | |
28637 | ||
28638 | ||
28639 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28640 | PyObject *resultobj; | |
28641 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28642 | wxColour *arg2 = 0 ; | |
28643 | wxColour temp2 ; | |
28644 | PyObject * obj0 = 0 ; | |
28645 | PyObject * obj1 = 0 ; | |
28646 | char *kwnames[] = { | |
28647 | (char *) "self",(char *) "c", NULL | |
28648 | }; | |
28649 | ||
28650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
28651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28653 | { | |
28654 | arg2 = &temp2; | |
28655 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28656 | } | |
28657 | { | |
28658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28659 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
28660 | ||
28661 | wxPyEndAllowThreads(__tstate); | |
28662 | if (PyErr_Occurred()) SWIG_fail; | |
28663 | } | |
28664 | Py_INCREF(Py_None); resultobj = Py_None; | |
28665 | return resultobj; | |
28666 | fail: | |
28667 | return NULL; | |
28668 | } | |
28669 | ||
28670 | ||
28671 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
28672 | PyObject *obj; | |
28673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28674 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
28675 | Py_INCREF(obj); | |
28676 | return Py_BuildValue((char *)""); | |
28677 | } | |
28678 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28679 | PyObject *resultobj; | |
28680 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
28681 | int arg2 = (int) 0 ; | |
28682 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28683 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28684 | wxHelpEvent *result; | |
28685 | wxPoint temp3 ; | |
28686 | PyObject * obj0 = 0 ; | |
28687 | PyObject * obj1 = 0 ; | |
28688 | PyObject * obj2 = 0 ; | |
28689 | char *kwnames[] = { | |
28690 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
28691 | }; | |
28692 | ||
28693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28694 | if (obj0) { | |
28695 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
28696 | if (PyErr_Occurred()) SWIG_fail; | |
28697 | } | |
28698 | if (obj1) { | |
28699 | arg2 = (int) SWIG_AsInt(obj1); | |
28700 | if (PyErr_Occurred()) SWIG_fail; | |
28701 | } | |
28702 | if (obj2) { | |
28703 | { | |
28704 | arg3 = &temp3; | |
28705 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28706 | } | |
28707 | } | |
28708 | { | |
28709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28710 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
28711 | ||
28712 | wxPyEndAllowThreads(__tstate); | |
28713 | if (PyErr_Occurred()) SWIG_fail; | |
28714 | } | |
28715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); | |
28716 | return resultobj; | |
28717 | fail: | |
28718 | return NULL; | |
28719 | } | |
28720 | ||
28721 | ||
28722 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28723 | PyObject *resultobj; | |
28724 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28725 | wxPoint result; | |
28726 | PyObject * obj0 = 0 ; | |
28727 | char *kwnames[] = { | |
28728 | (char *) "self", NULL | |
28729 | }; | |
28730 | ||
28731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
28732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
28733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28734 | { | |
28735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28736 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
28737 | ||
28738 | wxPyEndAllowThreads(__tstate); | |
28739 | if (PyErr_Occurred()) SWIG_fail; | |
28740 | } | |
28741 | { | |
28742 | wxPoint * resultptr; | |
28743 | resultptr = new wxPoint((wxPoint &) result); | |
28744 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
28745 | } | |
28746 | return resultobj; | |
28747 | fail: | |
28748 | return NULL; | |
28749 | } | |
28750 | ||
28751 | ||
28752 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28753 | PyObject *resultobj; | |
28754 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28755 | wxPoint *arg2 = 0 ; | |
28756 | wxPoint temp2 ; | |
28757 | PyObject * obj0 = 0 ; | |
28758 | PyObject * obj1 = 0 ; | |
28759 | char *kwnames[] = { | |
28760 | (char *) "self",(char *) "pos", NULL | |
28761 | }; | |
28762 | ||
28763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
28764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
28765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28766 | { | |
28767 | arg2 = &temp2; | |
28768 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28769 | } | |
28770 | { | |
28771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28772 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
28773 | ||
28774 | wxPyEndAllowThreads(__tstate); | |
28775 | if (PyErr_Occurred()) SWIG_fail; | |
28776 | } | |
28777 | Py_INCREF(Py_None); resultobj = Py_None; | |
28778 | return resultobj; | |
28779 | fail: | |
28780 | return NULL; | |
28781 | } | |
28782 | ||
28783 | ||
28784 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28785 | PyObject *resultobj; | |
28786 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28787 | wxString *result; | |
28788 | PyObject * obj0 = 0 ; | |
28789 | char *kwnames[] = { | |
28790 | (char *) "self", NULL | |
28791 | }; | |
28792 | ||
28793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
28794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
28795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28796 | { | |
28797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28798 | { | |
28799 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
28800 | result = (wxString *) &_result_ref; | |
28801 | } | |
28802 | ||
28803 | wxPyEndAllowThreads(__tstate); | |
28804 | if (PyErr_Occurred()) SWIG_fail; | |
28805 | } | |
28806 | { | |
28807 | #if wxUSE_UNICODE | |
28808 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28809 | #else | |
28810 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28811 | #endif | |
28812 | } | |
28813 | return resultobj; | |
28814 | fail: | |
28815 | return NULL; | |
28816 | } | |
28817 | ||
28818 | ||
28819 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28820 | PyObject *resultobj; | |
28821 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28822 | wxString *arg2 = 0 ; | |
28823 | bool temp2 = False ; | |
28824 | PyObject * obj0 = 0 ; | |
28825 | PyObject * obj1 = 0 ; | |
28826 | char *kwnames[] = { | |
28827 | (char *) "self",(char *) "link", NULL | |
28828 | }; | |
28829 | ||
28830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
28831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
28832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28833 | { | |
28834 | arg2 = wxString_in_helper(obj1); | |
28835 | if (arg2 == NULL) SWIG_fail; | |
28836 | temp2 = True; | |
28837 | } | |
28838 | { | |
28839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28840 | (arg1)->SetLink((wxString const &)*arg2); | |
28841 | ||
28842 | wxPyEndAllowThreads(__tstate); | |
28843 | if (PyErr_Occurred()) SWIG_fail; | |
28844 | } | |
28845 | Py_INCREF(Py_None); resultobj = Py_None; | |
28846 | { | |
28847 | if (temp2) | |
28848 | delete arg2; | |
28849 | } | |
28850 | return resultobj; | |
28851 | fail: | |
28852 | { | |
28853 | if (temp2) | |
28854 | delete arg2; | |
28855 | } | |
28856 | return NULL; | |
28857 | } | |
28858 | ||
28859 | ||
28860 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28861 | PyObject *resultobj; | |
28862 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28863 | wxString *result; | |
28864 | PyObject * obj0 = 0 ; | |
28865 | char *kwnames[] = { | |
28866 | (char *) "self", NULL | |
28867 | }; | |
28868 | ||
28869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
28870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
28871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28872 | { | |
28873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28874 | { | |
28875 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
28876 | result = (wxString *) &_result_ref; | |
28877 | } | |
28878 | ||
28879 | wxPyEndAllowThreads(__tstate); | |
28880 | if (PyErr_Occurred()) SWIG_fail; | |
28881 | } | |
28882 | { | |
28883 | #if wxUSE_UNICODE | |
28884 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28885 | #else | |
28886 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28887 | #endif | |
28888 | } | |
28889 | return resultobj; | |
28890 | fail: | |
28891 | return NULL; | |
28892 | } | |
28893 | ||
28894 | ||
28895 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28896 | PyObject *resultobj; | |
28897 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28898 | wxString *arg2 = 0 ; | |
28899 | bool temp2 = False ; | |
28900 | PyObject * obj0 = 0 ; | |
28901 | PyObject * obj1 = 0 ; | |
28902 | char *kwnames[] = { | |
28903 | (char *) "self",(char *) "target", NULL | |
28904 | }; | |
28905 | ||
28906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
28907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
28908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28909 | { | |
28910 | arg2 = wxString_in_helper(obj1); | |
28911 | if (arg2 == NULL) SWIG_fail; | |
28912 | temp2 = True; | |
28913 | } | |
28914 | { | |
28915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28916 | (arg1)->SetTarget((wxString const &)*arg2); | |
28917 | ||
28918 | wxPyEndAllowThreads(__tstate); | |
28919 | if (PyErr_Occurred()) SWIG_fail; | |
28920 | } | |
28921 | Py_INCREF(Py_None); resultobj = Py_None; | |
28922 | { | |
28923 | if (temp2) | |
28924 | delete arg2; | |
28925 | } | |
28926 | return resultobj; | |
28927 | fail: | |
28928 | { | |
28929 | if (temp2) | |
28930 | delete arg2; | |
28931 | } | |
28932 | return NULL; | |
28933 | } | |
28934 | ||
28935 | ||
28936 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
28937 | PyObject *obj; | |
28938 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28939 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
28940 | Py_INCREF(obj); | |
28941 | return Py_BuildValue((char *)""); | |
28942 | } | |
28943 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28944 | PyObject *resultobj; | |
28945 | wxWindow *arg1 = (wxWindow *) NULL ; | |
28946 | bool arg2 = (bool) True ; | |
28947 | wxContextHelp *result; | |
28948 | PyObject * obj0 = 0 ; | |
28949 | PyObject * obj1 = 0 ; | |
28950 | char *kwnames[] = { | |
28951 | (char *) "window",(char *) "doNow", NULL | |
28952 | }; | |
28953 | ||
28954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28955 | if (obj0) { | |
28956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28958 | } | |
28959 | if (obj1) { | |
28960 | arg2 = (bool) SWIG_AsBool(obj1); | |
28961 | if (PyErr_Occurred()) SWIG_fail; | |
28962 | } | |
28963 | { | |
28964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28965 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
28966 | ||
28967 | wxPyEndAllowThreads(__tstate); | |
28968 | if (PyErr_Occurred()) SWIG_fail; | |
28969 | } | |
28970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); | |
28971 | return resultobj; | |
28972 | fail: | |
28973 | return NULL; | |
28974 | } | |
28975 | ||
28976 | ||
28977 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28978 | PyObject *resultobj; | |
28979 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28980 | PyObject * obj0 = 0 ; | |
28981 | char *kwnames[] = { | |
28982 | (char *) "self", NULL | |
28983 | }; | |
28984 | ||
28985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
28986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
28987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28988 | { | |
28989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28990 | delete arg1; | |
28991 | ||
28992 | wxPyEndAllowThreads(__tstate); | |
28993 | if (PyErr_Occurred()) SWIG_fail; | |
28994 | } | |
28995 | Py_INCREF(Py_None); resultobj = Py_None; | |
28996 | return resultobj; | |
28997 | fail: | |
28998 | return NULL; | |
28999 | } | |
29000 | ||
29001 | ||
29002 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29003 | PyObject *resultobj; | |
29004 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29005 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29006 | bool result; | |
29007 | PyObject * obj0 = 0 ; | |
29008 | PyObject * obj1 = 0 ; | |
29009 | char *kwnames[] = { | |
29010 | (char *) "self",(char *) "window", NULL | |
29011 | }; | |
29012 | ||
29013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
29014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
29015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29016 | if (obj1) { | |
29017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29019 | } | |
29020 | { | |
29021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29022 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
29023 | ||
29024 | wxPyEndAllowThreads(__tstate); | |
29025 | if (PyErr_Occurred()) SWIG_fail; | |
29026 | } | |
29027 | { | |
29028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29029 | } | |
29030 | return resultobj; | |
29031 | fail: | |
29032 | return NULL; | |
29033 | } | |
29034 | ||
29035 | ||
29036 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29037 | PyObject *resultobj; | |
29038 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29039 | bool result; | |
29040 | PyObject * obj0 = 0 ; | |
29041 | char *kwnames[] = { | |
29042 | (char *) "self", NULL | |
29043 | }; | |
29044 | ||
29045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
29046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
29047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29048 | { | |
29049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29050 | result = (bool)(arg1)->EndContextHelp(); | |
29051 | ||
29052 | wxPyEndAllowThreads(__tstate); | |
29053 | if (PyErr_Occurred()) SWIG_fail; | |
29054 | } | |
29055 | { | |
29056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29057 | } | |
29058 | return resultobj; | |
29059 | fail: | |
29060 | return NULL; | |
29061 | } | |
29062 | ||
29063 | ||
29064 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
29065 | PyObject *obj; | |
29066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29067 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
29068 | Py_INCREF(obj); | |
29069 | return Py_BuildValue((char *)""); | |
29070 | } | |
29071 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29072 | PyObject *resultobj; | |
29073 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29074 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
29075 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
29076 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29077 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29078 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29079 | long arg5 = (long) wxBU_AUTODRAW ; | |
29080 | wxContextHelpButton *result; | |
29081 | wxPoint temp3 ; | |
29082 | wxSize temp4 ; | |
29083 | PyObject * obj0 = 0 ; | |
29084 | PyObject * obj1 = 0 ; | |
29085 | PyObject * obj2 = 0 ; | |
29086 | PyObject * obj3 = 0 ; | |
29087 | PyObject * obj4 = 0 ; | |
29088 | char *kwnames[] = { | |
29089 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29090 | }; | |
29091 | ||
29092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29095 | if (obj1) { | |
29096 | arg2 = (int) SWIG_AsInt(obj1); | |
29097 | if (PyErr_Occurred()) SWIG_fail; | |
29098 | } | |
29099 | if (obj2) { | |
29100 | { | |
29101 | arg3 = &temp3; | |
29102 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29103 | } | |
29104 | } | |
29105 | if (obj3) { | |
29106 | { | |
29107 | arg4 = &temp4; | |
29108 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29109 | } | |
29110 | } | |
29111 | if (obj4) { | |
29112 | arg5 = (long) SWIG_AsLong(obj4); | |
29113 | if (PyErr_Occurred()) SWIG_fail; | |
29114 | } | |
29115 | { | |
29116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29117 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
29118 | ||
29119 | wxPyEndAllowThreads(__tstate); | |
29120 | if (PyErr_Occurred()) SWIG_fail; | |
29121 | } | |
29122 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); | |
29123 | return resultobj; | |
29124 | fail: | |
29125 | return NULL; | |
29126 | } | |
29127 | ||
29128 | ||
29129 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
29130 | PyObject *obj; | |
29131 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29132 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
29133 | Py_INCREF(obj); | |
29134 | return Py_BuildValue((char *)""); | |
29135 | } | |
29136 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29137 | PyObject *resultobj; | |
29138 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29139 | wxHelpProvider *result; | |
29140 | PyObject * obj0 = 0 ; | |
29141 | char *kwnames[] = { | |
29142 | (char *) "helpProvider", NULL | |
29143 | }; | |
29144 | ||
29145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
29146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29148 | { | |
29149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29150 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
29151 | ||
29152 | wxPyEndAllowThreads(__tstate); | |
29153 | if (PyErr_Occurred()) SWIG_fail; | |
29154 | } | |
29155 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
29156 | return resultobj; | |
29157 | fail: | |
29158 | return NULL; | |
29159 | } | |
29160 | ||
29161 | ||
29162 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29163 | PyObject *resultobj; | |
29164 | wxHelpProvider *result; | |
29165 | char *kwnames[] = { | |
29166 | NULL | |
29167 | }; | |
29168 | ||
29169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
29170 | { | |
29171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29172 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
29173 | ||
29174 | wxPyEndAllowThreads(__tstate); | |
29175 | if (PyErr_Occurred()) SWIG_fail; | |
29176 | } | |
29177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
29178 | return resultobj; | |
29179 | fail: | |
29180 | return NULL; | |
29181 | } | |
29182 | ||
29183 | ||
29184 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29185 | PyObject *resultobj; | |
29186 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29187 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29188 | wxString result; | |
29189 | PyObject * obj0 = 0 ; | |
29190 | PyObject * obj1 = 0 ; | |
29191 | char *kwnames[] = { | |
29192 | (char *) "self",(char *) "window", NULL | |
29193 | }; | |
29194 | ||
29195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
29196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29200 | { | |
29201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29202 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
29203 | ||
29204 | wxPyEndAllowThreads(__tstate); | |
29205 | if (PyErr_Occurred()) SWIG_fail; | |
29206 | } | |
29207 | { | |
29208 | #if wxUSE_UNICODE | |
29209 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29210 | #else | |
29211 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29212 | #endif | |
29213 | } | |
29214 | return resultobj; | |
29215 | fail: | |
29216 | return NULL; | |
29217 | } | |
29218 | ||
29219 | ||
29220 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29221 | PyObject *resultobj; | |
29222 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29223 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29224 | bool result; | |
29225 | PyObject * obj0 = 0 ; | |
29226 | PyObject * obj1 = 0 ; | |
29227 | char *kwnames[] = { | |
29228 | (char *) "self",(char *) "window", NULL | |
29229 | }; | |
29230 | ||
29231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
29232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29234 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29236 | { | |
29237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29238 | result = (bool)(arg1)->ShowHelp(arg2); | |
29239 | ||
29240 | wxPyEndAllowThreads(__tstate); | |
29241 | if (PyErr_Occurred()) SWIG_fail; | |
29242 | } | |
29243 | { | |
29244 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29245 | } | |
29246 | return resultobj; | |
29247 | fail: | |
29248 | return NULL; | |
29249 | } | |
29250 | ||
29251 | ||
29252 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29253 | PyObject *resultobj; | |
29254 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29255 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29256 | wxString *arg3 = 0 ; | |
29257 | bool temp3 = False ; | |
29258 | PyObject * obj0 = 0 ; | |
29259 | PyObject * obj1 = 0 ; | |
29260 | PyObject * obj2 = 0 ; | |
29261 | char *kwnames[] = { | |
29262 | (char *) "self",(char *) "window",(char *) "text", NULL | |
29263 | }; | |
29264 | ||
29265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29268 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29270 | { | |
29271 | arg3 = wxString_in_helper(obj2); | |
29272 | if (arg3 == NULL) SWIG_fail; | |
29273 | temp3 = True; | |
29274 | } | |
29275 | { | |
29276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29277 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
29278 | ||
29279 | wxPyEndAllowThreads(__tstate); | |
29280 | if (PyErr_Occurred()) SWIG_fail; | |
29281 | } | |
29282 | Py_INCREF(Py_None); resultobj = Py_None; | |
29283 | { | |
29284 | if (temp3) | |
29285 | delete arg3; | |
29286 | } | |
29287 | return resultobj; | |
29288 | fail: | |
29289 | { | |
29290 | if (temp3) | |
29291 | delete arg3; | |
29292 | } | |
29293 | return NULL; | |
29294 | } | |
29295 | ||
29296 | ||
29297 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29298 | PyObject *resultobj; | |
29299 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29300 | int arg2 ; | |
29301 | wxString *arg3 = 0 ; | |
29302 | bool temp3 = False ; | |
29303 | PyObject * obj0 = 0 ; | |
29304 | PyObject * obj1 = 0 ; | |
29305 | PyObject * obj2 = 0 ; | |
29306 | char *kwnames[] = { | |
29307 | (char *) "self",(char *) "id",(char *) "text", NULL | |
29308 | }; | |
29309 | ||
29310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29313 | arg2 = (int) SWIG_AsInt(obj1); | |
29314 | if (PyErr_Occurred()) SWIG_fail; | |
29315 | { | |
29316 | arg3 = wxString_in_helper(obj2); | |
29317 | if (arg3 == NULL) SWIG_fail; | |
29318 | temp3 = True; | |
29319 | } | |
29320 | { | |
29321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29322 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
29323 | ||
29324 | wxPyEndAllowThreads(__tstate); | |
29325 | if (PyErr_Occurred()) SWIG_fail; | |
29326 | } | |
29327 | Py_INCREF(Py_None); resultobj = Py_None; | |
29328 | { | |
29329 | if (temp3) | |
29330 | delete arg3; | |
29331 | } | |
29332 | return resultobj; | |
29333 | fail: | |
29334 | { | |
29335 | if (temp3) | |
29336 | delete arg3; | |
29337 | } | |
29338 | return NULL; | |
29339 | } | |
29340 | ||
29341 | ||
29342 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29343 | PyObject *resultobj; | |
29344 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29345 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29346 | PyObject * obj0 = 0 ; | |
29347 | PyObject * obj1 = 0 ; | |
29348 | char *kwnames[] = { | |
29349 | (char *) "self",(char *) "window", NULL | |
29350 | }; | |
29351 | ||
29352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
29353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29355 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29357 | { | |
29358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29359 | (arg1)->RemoveHelp(arg2); | |
29360 | ||
29361 | wxPyEndAllowThreads(__tstate); | |
29362 | if (PyErr_Occurred()) SWIG_fail; | |
29363 | } | |
29364 | Py_INCREF(Py_None); resultobj = Py_None; | |
29365 | return resultobj; | |
29366 | fail: | |
29367 | return NULL; | |
29368 | } | |
29369 | ||
29370 | ||
29371 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29372 | PyObject *resultobj; | |
29373 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29374 | PyObject * obj0 = 0 ; | |
29375 | char *kwnames[] = { | |
29376 | (char *) "self", NULL | |
29377 | }; | |
29378 | ||
29379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
29380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29382 | { | |
29383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29384 | wxHelpProvider_Destroy(arg1); | |
29385 | ||
29386 | wxPyEndAllowThreads(__tstate); | |
29387 | if (PyErr_Occurred()) SWIG_fail; | |
29388 | } | |
29389 | Py_INCREF(Py_None); resultobj = Py_None; | |
29390 | return resultobj; | |
29391 | fail: | |
29392 | return NULL; | |
29393 | } | |
29394 | ||
29395 | ||
29396 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29397 | PyObject *obj; | |
29398 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29399 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
29400 | Py_INCREF(obj); | |
29401 | return Py_BuildValue((char *)""); | |
29402 | } | |
29403 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29404 | PyObject *resultobj; | |
29405 | wxSimpleHelpProvider *result; | |
29406 | char *kwnames[] = { | |
29407 | NULL | |
29408 | }; | |
29409 | ||
29410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
29411 | { | |
29412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29413 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
29414 | ||
29415 | wxPyEndAllowThreads(__tstate); | |
29416 | if (PyErr_Occurred()) SWIG_fail; | |
29417 | } | |
29418 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
29419 | return resultobj; | |
29420 | fail: | |
29421 | return NULL; | |
29422 | } | |
29423 | ||
29424 | ||
29425 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29426 | PyObject *obj; | |
29427 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29428 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
29429 | Py_INCREF(obj); | |
29430 | return Py_BuildValue((char *)""); | |
29431 | } | |
29432 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29433 | PyObject *resultobj; | |
29434 | wxBitmap *arg1 = 0 ; | |
29435 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29436 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29437 | wxGenericDragImage *result; | |
29438 | PyObject * obj0 = 0 ; | |
29439 | PyObject * obj1 = 0 ; | |
29440 | char *kwnames[] = { | |
29441 | (char *) "image",(char *) "cursor", NULL | |
29442 | }; | |
29443 | ||
29444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
29445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
29446 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29447 | SWIG_fail; | |
29448 | if (arg1 == NULL) { | |
29449 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29450 | SWIG_fail; | |
29451 | } | |
29452 | if (obj1) { | |
29453 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
29454 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29455 | SWIG_fail; | |
29456 | if (arg2 == NULL) { | |
29457 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29458 | SWIG_fail; | |
29459 | } | |
29460 | } | |
29461 | { | |
29462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29463 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
29464 | ||
29465 | wxPyEndAllowThreads(__tstate); | |
29466 | if (PyErr_Occurred()) SWIG_fail; | |
29467 | } | |
29468 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
29469 | return resultobj; | |
29470 | fail: | |
29471 | return NULL; | |
29472 | } | |
29473 | ||
29474 | ||
29475 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29476 | PyObject *resultobj; | |
29477 | wxIcon *arg1 = 0 ; | |
29478 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29479 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29480 | wxGenericDragImage *result; | |
29481 | PyObject * obj0 = 0 ; | |
29482 | PyObject * obj1 = 0 ; | |
29483 | char *kwnames[] = { | |
29484 | (char *) "image",(char *) "cursor", NULL | |
29485 | }; | |
29486 | ||
29487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
29488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
29489 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29490 | SWIG_fail; | |
29491 | if (arg1 == NULL) { | |
29492 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29493 | SWIG_fail; | |
29494 | } | |
29495 | if (obj1) { | |
29496 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
29497 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29498 | SWIG_fail; | |
29499 | if (arg2 == NULL) { | |
29500 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29501 | SWIG_fail; | |
29502 | } | |
29503 | } | |
29504 | { | |
29505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29506 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
29507 | ||
29508 | wxPyEndAllowThreads(__tstate); | |
29509 | if (PyErr_Occurred()) SWIG_fail; | |
29510 | } | |
29511 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
29512 | return resultobj; | |
29513 | fail: | |
29514 | return NULL; | |
29515 | } | |
29516 | ||
29517 | ||
29518 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29519 | PyObject *resultobj; | |
29520 | wxString *arg1 = 0 ; | |
29521 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29522 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29523 | wxGenericDragImage *result; | |
29524 | bool temp1 = False ; | |
29525 | PyObject * obj0 = 0 ; | |
29526 | PyObject * obj1 = 0 ; | |
29527 | char *kwnames[] = { | |
29528 | (char *) "str",(char *) "cursor", NULL | |
29529 | }; | |
29530 | ||
29531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
29532 | { | |
29533 | arg1 = wxString_in_helper(obj0); | |
29534 | if (arg1 == NULL) SWIG_fail; | |
29535 | temp1 = True; | |
29536 | } | |
29537 | if (obj1) { | |
29538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
29539 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29540 | SWIG_fail; | |
29541 | if (arg2 == NULL) { | |
29542 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29543 | SWIG_fail; | |
29544 | } | |
29545 | } | |
29546 | { | |
29547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29548 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
29549 | ||
29550 | wxPyEndAllowThreads(__tstate); | |
29551 | if (PyErr_Occurred()) SWIG_fail; | |
29552 | } | |
29553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
29554 | { | |
29555 | if (temp1) | |
29556 | delete arg1; | |
29557 | } | |
29558 | return resultobj; | |
29559 | fail: | |
29560 | { | |
29561 | if (temp1) | |
29562 | delete arg1; | |
29563 | } | |
29564 | return NULL; | |
29565 | } | |
29566 | ||
29567 | ||
29568 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29569 | PyObject *resultobj; | |
29570 | wxPyTreeCtrl *arg1 = 0 ; | |
29571 | wxTreeItemId *arg2 = 0 ; | |
29572 | wxGenericDragImage *result; | |
29573 | PyObject * obj0 = 0 ; | |
29574 | PyObject * obj1 = 0 ; | |
29575 | char *kwnames[] = { | |
29576 | (char *) "treeCtrl",(char *) "id", NULL | |
29577 | }; | |
29578 | ||
29579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
29580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
29581 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29582 | SWIG_fail; | |
29583 | if (arg1 == NULL) { | |
29584 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29585 | SWIG_fail; | |
29586 | } | |
29587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
29588 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29589 | SWIG_fail; | |
29590 | if (arg2 == NULL) { | |
29591 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29592 | SWIG_fail; | |
29593 | } | |
29594 | { | |
29595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29596 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
29597 | ||
29598 | wxPyEndAllowThreads(__tstate); | |
29599 | if (PyErr_Occurred()) SWIG_fail; | |
29600 | } | |
29601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
29602 | return resultobj; | |
29603 | fail: | |
29604 | return NULL; | |
29605 | } | |
29606 | ||
29607 | ||
29608 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29609 | PyObject *resultobj; | |
29610 | wxPyListCtrl *arg1 = 0 ; | |
29611 | long arg2 ; | |
29612 | wxGenericDragImage *result; | |
29613 | PyObject * obj0 = 0 ; | |
29614 | PyObject * obj1 = 0 ; | |
29615 | char *kwnames[] = { | |
29616 | (char *) "listCtrl",(char *) "id", NULL | |
29617 | }; | |
29618 | ||
29619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
29620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
29621 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29622 | SWIG_fail; | |
29623 | if (arg1 == NULL) { | |
29624 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29625 | SWIG_fail; | |
29626 | } | |
29627 | arg2 = (long) SWIG_AsLong(obj1); | |
29628 | if (PyErr_Occurred()) SWIG_fail; | |
29629 | { | |
29630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29631 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
29632 | ||
29633 | wxPyEndAllowThreads(__tstate); | |
29634 | if (PyErr_Occurred()) SWIG_fail; | |
29635 | } | |
29636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
29637 | return resultobj; | |
29638 | fail: | |
29639 | return NULL; | |
29640 | } | |
29641 | ||
29642 | ||
29643 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29644 | PyObject *resultobj; | |
29645 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29646 | PyObject * obj0 = 0 ; | |
29647 | char *kwnames[] = { | |
29648 | (char *) "self", NULL | |
29649 | }; | |
29650 | ||
29651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
29652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
29653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29654 | { | |
29655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29656 | delete arg1; | |
29657 | ||
29658 | wxPyEndAllowThreads(__tstate); | |
29659 | if (PyErr_Occurred()) SWIG_fail; | |
29660 | } | |
29661 | Py_INCREF(Py_None); resultobj = Py_None; | |
29662 | return resultobj; | |
29663 | fail: | |
29664 | return NULL; | |
29665 | } | |
29666 | ||
29667 | ||
29668 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29669 | PyObject *resultobj; | |
29670 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29671 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
29672 | PyObject * obj0 = 0 ; | |
29673 | PyObject * obj1 = 0 ; | |
29674 | char *kwnames[] = { | |
29675 | (char *) "self",(char *) "bitmap", NULL | |
29676 | }; | |
29677 | ||
29678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
29679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
29680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29681 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
29682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29683 | { | |
29684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29685 | (arg1)->SetBackingBitmap(arg2); | |
29686 | ||
29687 | wxPyEndAllowThreads(__tstate); | |
29688 | if (PyErr_Occurred()) SWIG_fail; | |
29689 | } | |
29690 | Py_INCREF(Py_None); resultobj = Py_None; | |
29691 | return resultobj; | |
29692 | fail: | |
29693 | return NULL; | |
29694 | } | |
29695 | ||
29696 | ||
29697 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29698 | PyObject *resultobj; | |
29699 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29700 | wxPoint *arg2 = 0 ; | |
29701 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29702 | bool arg4 = (bool) False ; | |
29703 | wxRect *arg5 = (wxRect *) NULL ; | |
29704 | bool result; | |
29705 | wxPoint temp2 ; | |
29706 | PyObject * obj0 = 0 ; | |
29707 | PyObject * obj1 = 0 ; | |
29708 | PyObject * obj2 = 0 ; | |
29709 | PyObject * obj3 = 0 ; | |
29710 | PyObject * obj4 = 0 ; | |
29711 | char *kwnames[] = { | |
29712 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
29713 | }; | |
29714 | ||
29715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
29717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29718 | { | |
29719 | arg2 = &temp2; | |
29720 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29721 | } | |
29722 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
29723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29724 | if (obj3) { | |
29725 | arg4 = (bool) SWIG_AsBool(obj3); | |
29726 | if (PyErr_Occurred()) SWIG_fail; | |
29727 | } | |
29728 | if (obj4) { | |
29729 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, | |
29730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29731 | } | |
29732 | { | |
29733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29734 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
29735 | ||
29736 | wxPyEndAllowThreads(__tstate); | |
29737 | if (PyErr_Occurred()) SWIG_fail; | |
29738 | } | |
29739 | { | |
29740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29741 | } | |
29742 | return resultobj; | |
29743 | fail: | |
29744 | return NULL; | |
29745 | } | |
29746 | ||
29747 | ||
29748 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29749 | PyObject *resultobj; | |
29750 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29751 | wxPoint *arg2 = 0 ; | |
29752 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29753 | wxWindow *arg4 = (wxWindow *) 0 ; | |
29754 | bool result; | |
29755 | wxPoint temp2 ; | |
29756 | PyObject * obj0 = 0 ; | |
29757 | PyObject * obj1 = 0 ; | |
29758 | PyObject * obj2 = 0 ; | |
29759 | PyObject * obj3 = 0 ; | |
29760 | char *kwnames[] = { | |
29761 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
29762 | }; | |
29763 | ||
29764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
29766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29767 | { | |
29768 | arg2 = &temp2; | |
29769 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29770 | } | |
29771 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
29772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29773 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
29774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29775 | { | |
29776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29777 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
29778 | ||
29779 | wxPyEndAllowThreads(__tstate); | |
29780 | if (PyErr_Occurred()) SWIG_fail; | |
29781 | } | |
29782 | { | |
29783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29784 | } | |
29785 | return resultobj; | |
29786 | fail: | |
29787 | return NULL; | |
29788 | } | |
29789 | ||
29790 | ||
29791 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29792 | PyObject *resultobj; | |
29793 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29794 | bool result; | |
29795 | PyObject * obj0 = 0 ; | |
29796 | char *kwnames[] = { | |
29797 | (char *) "self", NULL | |
29798 | }; | |
29799 | ||
29800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
29801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
29802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29803 | { | |
29804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29805 | result = (bool)(arg1)->EndDrag(); | |
29806 | ||
29807 | wxPyEndAllowThreads(__tstate); | |
29808 | if (PyErr_Occurred()) SWIG_fail; | |
29809 | } | |
29810 | { | |
29811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29812 | } | |
29813 | return resultobj; | |
29814 | fail: | |
29815 | return NULL; | |
29816 | } | |
29817 | ||
29818 | ||
29819 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29820 | PyObject *resultobj; | |
29821 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29822 | wxPoint *arg2 = 0 ; | |
29823 | bool result; | |
29824 | wxPoint temp2 ; | |
29825 | PyObject * obj0 = 0 ; | |
29826 | PyObject * obj1 = 0 ; | |
29827 | char *kwnames[] = { | |
29828 | (char *) "self",(char *) "pt", NULL | |
29829 | }; | |
29830 | ||
29831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
29832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
29833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29834 | { | |
29835 | arg2 = &temp2; | |
29836 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29837 | } | |
29838 | { | |
29839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29840 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
29841 | ||
29842 | wxPyEndAllowThreads(__tstate); | |
29843 | if (PyErr_Occurred()) SWIG_fail; | |
29844 | } | |
29845 | { | |
29846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29847 | } | |
29848 | return resultobj; | |
29849 | fail: | |
29850 | return NULL; | |
29851 | } | |
29852 | ||
29853 | ||
29854 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29855 | PyObject *resultobj; | |
29856 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29857 | bool result; | |
29858 | PyObject * obj0 = 0 ; | |
29859 | char *kwnames[] = { | |
29860 | (char *) "self", NULL | |
29861 | }; | |
29862 | ||
29863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
29864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
29865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29866 | { | |
29867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29868 | result = (bool)(arg1)->Show(); | |
29869 | ||
29870 | wxPyEndAllowThreads(__tstate); | |
29871 | if (PyErr_Occurred()) SWIG_fail; | |
29872 | } | |
29873 | { | |
29874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29875 | } | |
29876 | return resultobj; | |
29877 | fail: | |
29878 | return NULL; | |
29879 | } | |
29880 | ||
29881 | ||
29882 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29883 | PyObject *resultobj; | |
29884 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29885 | bool result; | |
29886 | PyObject * obj0 = 0 ; | |
29887 | char *kwnames[] = { | |
29888 | (char *) "self", NULL | |
29889 | }; | |
29890 | ||
29891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
29892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
29893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29894 | { | |
29895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29896 | result = (bool)(arg1)->Hide(); | |
29897 | ||
29898 | wxPyEndAllowThreads(__tstate); | |
29899 | if (PyErr_Occurred()) SWIG_fail; | |
29900 | } | |
29901 | { | |
29902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29903 | } | |
29904 | return resultobj; | |
29905 | fail: | |
29906 | return NULL; | |
29907 | } | |
29908 | ||
29909 | ||
29910 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29911 | PyObject *resultobj; | |
29912 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29913 | wxPoint *arg2 = 0 ; | |
29914 | wxRect result; | |
29915 | wxPoint temp2 ; | |
29916 | PyObject * obj0 = 0 ; | |
29917 | PyObject * obj1 = 0 ; | |
29918 | char *kwnames[] = { | |
29919 | (char *) "self",(char *) "pos", NULL | |
29920 | }; | |
29921 | ||
29922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
29923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
29924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29925 | { | |
29926 | arg2 = &temp2; | |
29927 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29928 | } | |
29929 | { | |
29930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29931 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
29932 | ||
29933 | wxPyEndAllowThreads(__tstate); | |
29934 | if (PyErr_Occurred()) SWIG_fail; | |
29935 | } | |
29936 | { | |
29937 | wxRect * resultptr; | |
29938 | resultptr = new wxRect((wxRect &) result); | |
29939 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
29940 | } | |
29941 | return resultobj; | |
29942 | fail: | |
29943 | return NULL; | |
29944 | } | |
29945 | ||
29946 | ||
29947 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29948 | PyObject *resultobj; | |
29949 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29950 | wxDC *arg2 = 0 ; | |
29951 | wxPoint *arg3 = 0 ; | |
29952 | bool result; | |
29953 | wxPoint temp3 ; | |
29954 | PyObject * obj0 = 0 ; | |
29955 | PyObject * obj1 = 0 ; | |
29956 | PyObject * obj2 = 0 ; | |
29957 | char *kwnames[] = { | |
29958 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
29959 | }; | |
29960 | ||
29961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
29963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29965 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29966 | SWIG_fail; | |
29967 | if (arg2 == NULL) { | |
29968 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29969 | SWIG_fail; | |
29970 | } | |
29971 | { | |
29972 | arg3 = &temp3; | |
29973 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29974 | } | |
29975 | { | |
29976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29977 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
29978 | ||
29979 | wxPyEndAllowThreads(__tstate); | |
29980 | if (PyErr_Occurred()) SWIG_fail; | |
29981 | } | |
29982 | { | |
29983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29984 | } | |
29985 | return resultobj; | |
29986 | fail: | |
29987 | return NULL; | |
29988 | } | |
29989 | ||
29990 | ||
29991 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29992 | PyObject *resultobj; | |
29993 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29994 | wxDC *arg2 = 0 ; | |
29995 | wxMemoryDC *arg3 = 0 ; | |
29996 | wxRect *arg4 = 0 ; | |
29997 | wxRect *arg5 = 0 ; | |
29998 | bool result; | |
29999 | wxRect temp4 ; | |
30000 | wxRect temp5 ; | |
30001 | PyObject * obj0 = 0 ; | |
30002 | PyObject * obj1 = 0 ; | |
30003 | PyObject * obj2 = 0 ; | |
30004 | PyObject * obj3 = 0 ; | |
30005 | PyObject * obj4 = 0 ; | |
30006 | char *kwnames[] = { | |
30007 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
30008 | }; | |
30009 | ||
30010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30013 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30014 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30015 | SWIG_fail; | |
30016 | if (arg2 == NULL) { | |
30017 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30018 | SWIG_fail; | |
30019 | } | |
30020 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, | |
30021 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30022 | SWIG_fail; | |
30023 | if (arg3 == NULL) { | |
30024 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30025 | SWIG_fail; | |
30026 | } | |
30027 | { | |
30028 | arg4 = &temp4; | |
30029 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
30030 | } | |
30031 | { | |
30032 | arg5 = &temp5; | |
30033 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
30034 | } | |
30035 | { | |
30036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30037 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
30038 | ||
30039 | wxPyEndAllowThreads(__tstate); | |
30040 | if (PyErr_Occurred()) SWIG_fail; | |
30041 | } | |
30042 | { | |
30043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30044 | } | |
30045 | return resultobj; | |
30046 | fail: | |
30047 | return NULL; | |
30048 | } | |
30049 | ||
30050 | ||
30051 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30052 | PyObject *resultobj; | |
30053 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30054 | wxPoint *arg2 = 0 ; | |
30055 | wxPoint *arg3 = 0 ; | |
30056 | bool arg4 ; | |
30057 | bool arg5 ; | |
30058 | bool result; | |
30059 | wxPoint temp2 ; | |
30060 | wxPoint temp3 ; | |
30061 | PyObject * obj0 = 0 ; | |
30062 | PyObject * obj1 = 0 ; | |
30063 | PyObject * obj2 = 0 ; | |
30064 | PyObject * obj3 = 0 ; | |
30065 | PyObject * obj4 = 0 ; | |
30066 | char *kwnames[] = { | |
30067 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
30068 | }; | |
30069 | ||
30070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30073 | { | |
30074 | arg2 = &temp2; | |
30075 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30076 | } | |
30077 | { | |
30078 | arg3 = &temp3; | |
30079 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30080 | } | |
30081 | arg4 = (bool) SWIG_AsBool(obj3); | |
30082 | if (PyErr_Occurred()) SWIG_fail; | |
30083 | arg5 = (bool) SWIG_AsBool(obj4); | |
30084 | if (PyErr_Occurred()) SWIG_fail; | |
30085 | { | |
30086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30087 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
30088 | ||
30089 | wxPyEndAllowThreads(__tstate); | |
30090 | if (PyErr_Occurred()) SWIG_fail; | |
30091 | } | |
30092 | { | |
30093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30094 | } | |
30095 | return resultobj; | |
30096 | fail: | |
30097 | return NULL; | |
30098 | } | |
30099 | ||
30100 | ||
30101 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
30102 | PyObject *obj; | |
30103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30104 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
30105 | Py_INCREF(obj); | |
30106 | return Py_BuildValue((char *)""); | |
30107 | } | |
30108 | static PyMethodDef SwigMethods[] = { | |
30109 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
30110 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
30111 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
30112 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
30113 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
30114 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
30115 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
30116 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
30117 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30118 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
30119 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
30120 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
30121 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
30122 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
30123 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
30124 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
30125 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
30126 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30127 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
30128 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
30129 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
30130 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
30131 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
30132 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30133 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30134 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
30135 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30136 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
30137 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
30138 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
30139 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
30140 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
30141 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
30142 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
30143 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
30144 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30145 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30146 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
30147 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
30148 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
30149 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
30150 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30151 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30152 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30153 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
30154 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
30155 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
30156 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30157 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30158 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
30159 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
30160 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30161 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
30162 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
30163 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
30164 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
30165 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
30166 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
30167 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
30168 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
30169 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30170 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30171 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30172 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30173 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30174 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
30175 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
30176 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
30177 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
30178 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
30179 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
30180 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
30181 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30182 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
30183 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
30184 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
30185 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
30186 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30187 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
30188 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
30189 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
30190 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
30191 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
30192 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
30193 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30194 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30195 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
30196 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30197 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30198 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
30199 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
30200 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
30201 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
30202 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30203 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
30204 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
30205 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
30206 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30207 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30208 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
30209 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
30210 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
30211 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30212 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30213 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
30214 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
30215 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30216 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30217 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
30218 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30219 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30220 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30221 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
30222 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
30223 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
30224 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30225 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
30226 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
30227 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
30228 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30229 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
30230 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
30231 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
30232 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, | |
30233 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
30234 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30235 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30236 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30237 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30238 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
30239 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30240 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30241 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
30242 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30243 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30244 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30245 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30246 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
30247 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30248 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30249 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
30250 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30251 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30252 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30253 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30254 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
30255 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30256 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30257 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
30258 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
30259 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
30260 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
30261 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30262 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30263 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30264 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30265 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30266 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30267 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
30268 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
30269 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
30270 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
30271 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
30272 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
30273 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
30274 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30275 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30276 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30277 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
30278 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
30279 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
30280 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
30281 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
30282 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
30283 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
30284 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
30285 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
30286 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
30287 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30288 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30289 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
30290 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
30291 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
30292 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
30293 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
30294 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30295 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
30296 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
30297 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
30298 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
30299 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
30300 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
30301 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
30302 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
30303 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
30304 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
30305 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30306 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
30307 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30308 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
30309 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30310 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
30311 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
30312 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
30313 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
30314 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
30315 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
30316 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
30317 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
30318 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
30319 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
30320 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
30321 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
30322 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30323 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
30324 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
30325 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30326 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30327 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30328 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
30329 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
30330 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
30331 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
30332 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
30333 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30334 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30335 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30336 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30337 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30338 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
30339 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
30340 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30341 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30342 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
30343 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30344 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30345 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30346 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30347 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30348 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
30349 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30350 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30351 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30352 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30353 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
30354 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, | |
30355 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30356 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30357 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
30358 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, | |
30359 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
30360 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30361 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30362 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30363 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30364 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30365 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30366 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
30367 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
30368 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
30369 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
30370 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
30371 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30372 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
30373 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30374 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
30375 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
30376 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
30377 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30378 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30379 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30380 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
30381 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
30382 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
30383 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
30384 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30385 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30386 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30387 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30388 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30389 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
30390 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
30391 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
30392 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30393 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
30394 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30395 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
30396 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
30397 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
30398 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
30399 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
30400 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
30401 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
30402 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
30403 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
30404 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30405 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
30406 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
30407 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
30408 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30409 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30410 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30411 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30412 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
30413 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
30414 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
30415 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30416 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
30417 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
30418 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30419 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30420 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30421 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
30422 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
30423 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30424 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
30425 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
30426 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
30427 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
30428 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
30429 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
30430 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30431 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
30432 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
30433 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
30434 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30435 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30436 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
30437 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
30438 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
30439 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
30440 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
30441 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
30442 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
30443 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
30444 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
30445 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30446 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
30447 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
30448 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
30449 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
30450 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
30451 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
30452 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
30453 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30454 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
30455 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
30456 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
30457 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
30458 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
30459 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
30460 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30461 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
30462 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
30463 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
30464 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
30465 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
30466 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
30467 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30468 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30469 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30470 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
30471 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
30472 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30473 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30474 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
30475 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30476 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
30477 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
30478 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30479 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30480 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30481 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30482 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30483 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30484 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
30485 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30486 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30487 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30488 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30489 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30490 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30491 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30492 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
30493 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
30494 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30495 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30496 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
30497 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
30498 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
30499 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, | |
30500 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
30501 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, | |
30502 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
30503 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
30504 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30505 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30506 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
30507 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
30508 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
30509 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
30510 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
30511 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
30512 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
30513 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30514 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30515 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30516 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
30517 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
30518 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30519 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30520 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30521 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30522 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30523 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
30524 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30525 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30526 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30527 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
30528 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30529 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30530 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30531 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
30532 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
30533 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
30534 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
30535 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30536 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30537 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
30538 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
30539 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, | |
30540 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30541 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
30542 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30543 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30544 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30545 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
30546 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
30547 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
30548 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30549 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30550 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30551 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30552 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30553 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30554 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30555 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30556 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30557 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30558 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
30559 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30560 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30561 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30562 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30563 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
30564 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30565 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30566 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
30567 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
30568 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
30569 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
30570 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30571 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30572 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30573 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30574 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30575 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30576 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30577 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30578 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30579 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
30580 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30581 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30582 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30583 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30584 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30585 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30586 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30587 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30588 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30589 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30590 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
30591 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
30592 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
30593 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
30594 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30595 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30596 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
30597 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
30598 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
30599 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
30600 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
30601 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
30602 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
30603 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
30604 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
30605 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
30606 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
30607 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
30608 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
30609 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
30610 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
30611 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
30612 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
30613 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
30614 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30615 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30616 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30617 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30618 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30619 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30620 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
30621 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
30622 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
30623 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30624 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
30625 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30626 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30627 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30628 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30629 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30630 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30631 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30632 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30633 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
30634 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
30635 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30636 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
30637 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
30638 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30639 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30640 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30641 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30642 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30643 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30644 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30645 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30646 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30647 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30648 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
30649 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
30650 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30651 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30652 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30653 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30654 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30655 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30656 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30657 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30658 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30659 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30660 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30661 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
30662 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30663 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30664 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30665 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30666 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30667 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30668 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30669 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30670 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
30671 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
30672 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
30673 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30674 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30675 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30676 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30677 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, | |
30678 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
30679 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
30680 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
30681 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
30682 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
30683 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30684 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
30685 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
30686 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
30687 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30688 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30689 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
30690 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
30691 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
30692 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30693 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30694 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30695 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
30696 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30697 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
30698 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
30699 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30700 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
30701 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30702 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30703 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30704 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30705 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
30706 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
30707 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
30708 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
30709 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
30710 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
30711 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
30712 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
30713 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
30714 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
30715 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
30716 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30717 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30718 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30719 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
30720 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30721 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30722 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
30723 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
30724 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
30725 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
30726 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
30727 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
30728 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
30729 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30730 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30731 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30732 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30733 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30734 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
30735 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
30736 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30737 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30738 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30739 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30740 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30741 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30742 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30743 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30744 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30745 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30746 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30747 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30748 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
30749 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
30750 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, | |
30751 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30752 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30753 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30754 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30755 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30756 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30757 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30758 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30759 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30760 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30761 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30762 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30763 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30764 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30765 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30766 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30767 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30768 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30769 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30770 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30771 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30772 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30773 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30774 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30775 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30776 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30777 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30778 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
30779 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30780 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30781 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30782 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
30783 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30784 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
30785 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30786 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
30787 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
30788 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
30789 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30790 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30791 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
30792 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
30793 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
30794 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
30795 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
30796 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
30797 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
30798 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
30799 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
30800 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
30801 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
30802 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30803 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
30804 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
30805 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
30806 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
30807 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30808 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
30809 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
30810 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
30811 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30812 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
30813 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, | |
30814 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
30815 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
30816 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, | |
30817 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30818 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
30819 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30820 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30821 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
30822 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30823 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
30824 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
30825 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30826 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30827 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30828 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
30829 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30830 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30831 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
30832 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
30833 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
30834 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30835 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30836 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30837 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30838 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30839 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30840 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
30841 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30842 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30843 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
30844 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
30845 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
30846 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
30847 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30848 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30849 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30850 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
30851 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
30852 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
30853 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, | |
30854 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30855 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
30856 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
30857 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30858 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30859 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
30860 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30861 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30862 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30863 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
30864 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
30865 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
30866 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30867 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
30868 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
30869 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
30870 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
30871 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
30872 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
30873 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
30874 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
30875 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
30876 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
30877 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30878 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30879 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
30880 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
30881 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30882 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30883 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
30884 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30885 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30886 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30887 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30888 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
30889 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
30890 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
30891 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
30892 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
30893 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
30894 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
30895 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
30896 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
30897 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, | |
30898 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30899 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
30900 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
30901 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
30902 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
30903 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
30904 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
30905 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
30906 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
30907 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
30908 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30909 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
30910 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
30911 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
30912 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
30913 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
30914 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
30915 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
30916 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
30917 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30918 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
30919 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
30920 | { NULL, NULL } | |
30921 | }; | |
30922 | ||
30923 | ||
30924 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
30925 | ||
30926 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
30927 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30928 | } | |
30929 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
30930 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30931 | } | |
30932 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
30933 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
30934 | } | |
30935 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
30936 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30937 | } | |
30938 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
30939 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30940 | } | |
30941 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
30942 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
30943 | } | |
30944 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
30945 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30946 | } | |
30947 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
30948 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
30949 | } | |
30950 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
30951 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
30952 | } | |
30953 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
30954 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
30955 | } | |
30956 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
30957 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30958 | } | |
30959 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
30960 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
30961 | } | |
30962 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
30963 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
30964 | } | |
30965 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
30966 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
30967 | } | |
30968 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
30969 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
30970 | } | |
30971 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
30972 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30973 | } | |
30974 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
30975 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
30976 | } | |
30977 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
30978 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
30979 | } | |
30980 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
30981 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
30982 | } | |
30983 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
30984 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30985 | } | |
30986 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
30987 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30988 | } | |
30989 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
30990 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
30991 | } | |
30992 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
30993 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30994 | } | |
30995 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
30996 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30997 | } | |
30998 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
30999 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31000 | } | |
31001 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
31002 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31003 | } | |
31004 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
31005 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
31006 | } | |
31007 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31008 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31009 | } | |
31010 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31011 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31012 | } | |
31013 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31014 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31015 | } | |
31016 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31017 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31018 | } | |
31019 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31020 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31021 | } | |
31022 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31023 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31024 | } | |
31025 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31026 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31027 | } | |
31028 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31029 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31030 | } | |
31031 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
31032 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31033 | } | |
31034 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31035 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31036 | } | |
31037 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
31038 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31039 | } | |
31040 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31041 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31042 | } | |
31043 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31044 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31045 | } | |
31046 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31047 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31048 | } | |
31049 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31050 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31051 | } | |
31052 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31053 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31054 | } | |
31055 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31056 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31057 | } | |
31058 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
31059 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31060 | } | |
31061 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
31062 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
31063 | } | |
31064 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
31065 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
31066 | } | |
31067 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
31068 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31069 | } | |
31070 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
31071 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31072 | } | |
31073 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
31074 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31075 | } | |
31076 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
31077 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
31078 | } | |
31079 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
31080 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
31081 | } | |
31082 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
31083 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31084 | } | |
31085 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
31086 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
31087 | } | |
31088 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
31089 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31090 | } | |
31091 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
31092 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
31093 | } | |
31094 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
31095 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
31096 | } | |
31097 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
31098 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
31099 | } | |
31100 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
31101 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31102 | } | |
31103 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
31104 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
31105 | } | |
31106 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
31107 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31108 | } | |
31109 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
31110 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
31111 | } | |
31112 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
31113 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
31114 | } | |
31115 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
31116 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
31117 | } | |
31118 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
31119 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
31120 | } | |
31121 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
31122 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
31123 | } | |
31124 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
31125 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
31126 | } | |
31127 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
31128 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
31129 | } | |
31130 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
31131 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
31132 | } | |
31133 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
31134 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
31135 | } | |
31136 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
31137 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31138 | } | |
31139 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
31140 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
31141 | } | |
31142 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
31143 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
31144 | } | |
31145 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
31146 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
31147 | } | |
31148 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
31149 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
31150 | } | |
31151 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
31152 | return (void *)((wxControl *) ((wxGauge *) x)); | |
31153 | } | |
31154 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
31155 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
31156 | } | |
31157 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
31158 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
31159 | } | |
31160 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
31161 | return (void *)((wxControl *) ((wxButton *) x)); | |
31162 | } | |
31163 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
31164 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
31165 | } | |
31166 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
31167 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31168 | } | |
31169 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
31170 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
31171 | } | |
31172 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
31173 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
31174 | } | |
31175 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
31176 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
31177 | } | |
31178 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
31179 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
31180 | } | |
31181 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
31182 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
31183 | } | |
31184 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
31185 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
31186 | } | |
31187 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
31188 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
31189 | } | |
31190 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
31191 | return (void *)((wxControl *) ((wxSlider *) x)); | |
31192 | } | |
31193 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
31194 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
31195 | } | |
31196 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
31197 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
31198 | } | |
31199 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
31200 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
31201 | } | |
31202 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
31203 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
31204 | } | |
31205 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
31206 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
31207 | } | |
31208 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
31209 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31210 | } | |
31211 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
31212 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31213 | } | |
31214 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
31215 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31216 | } | |
31217 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
31218 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
31219 | } | |
31220 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
31221 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31222 | } | |
31223 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
31224 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31225 | } | |
31226 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
31227 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31228 | } | |
31229 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
31230 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31231 | } | |
31232 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
31233 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
31234 | } | |
31235 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
31236 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
31237 | } | |
31238 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
31239 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
31240 | } | |
31241 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
31242 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31243 | } | |
31244 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
31245 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
31246 | } | |
31247 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
31248 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31249 | } | |
31250 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
31251 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
31252 | } | |
31253 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
31254 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
31255 | } | |
31256 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
31257 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
31258 | } | |
31259 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
31260 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31261 | } | |
31262 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
31263 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
31264 | } | |
31265 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
31266 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
31267 | } | |
31268 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
31269 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31270 | } | |
31271 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
31272 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
31273 | } | |
31274 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
31275 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
31276 | } | |
31277 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
31278 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
31279 | } | |
31280 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
31281 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31282 | } | |
31283 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
31284 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31285 | } | |
31286 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
31287 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
31288 | } | |
31289 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
31290 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
31291 | } | |
31292 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
31293 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31294 | } | |
31295 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
31296 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
31297 | } | |
31298 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
31299 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
31300 | } | |
31301 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
31302 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31303 | } | |
31304 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
31305 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31306 | } | |
31307 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
31308 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31309 | } | |
31310 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
31311 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31312 | } | |
31313 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
31314 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31315 | } | |
31316 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
31317 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31318 | } | |
31319 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
31320 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31321 | } | |
31322 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
31323 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31324 | } | |
31325 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
31326 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31327 | } | |
31328 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
31329 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31330 | } | |
31331 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
31332 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31333 | } | |
31334 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
31335 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31336 | } | |
31337 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
31338 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
31339 | } | |
31340 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
31341 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31342 | } | |
31343 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
31344 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31345 | } | |
31346 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
31347 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31348 | } | |
31349 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
31350 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
31351 | } | |
31352 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
31353 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
31354 | } | |
31355 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
31356 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
31357 | } | |
31358 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
31359 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
31360 | } | |
31361 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
31362 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31363 | } | |
31364 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
31365 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31366 | } | |
31367 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
31368 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
31369 | } | |
31370 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
31371 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
31372 | } | |
31373 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
31374 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
31375 | } | |
31376 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
31377 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
31378 | } | |
31379 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
31380 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
31381 | } | |
31382 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
31383 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
31384 | } | |
31385 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
31386 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31387 | } | |
31388 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
31389 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31390 | } | |
31391 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
31392 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31393 | } | |
31394 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
31395 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
31396 | } | |
31397 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
31398 | return (void *)((wxObject *) ((wxSizer *) x)); | |
31399 | } | |
31400 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
31401 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31402 | } | |
31403 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
31404 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
31405 | } | |
31406 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
31407 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
31408 | } | |
31409 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
31410 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31411 | } | |
31412 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
31413 | return (void *)((wxObject *) ((wxEvent *) x)); | |
31414 | } | |
31415 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
31416 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31417 | } | |
31418 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
31419 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
31420 | } | |
31421 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
31422 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
31423 | } | |
31424 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
31425 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
31426 | } | |
31427 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
31428 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
31429 | } | |
31430 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
31431 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31432 | } | |
31433 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
31434 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
31435 | } | |
31436 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
31437 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
31438 | } | |
31439 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
31440 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31441 | } | |
31442 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
31443 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31444 | } | |
31445 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
31446 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31447 | } | |
31448 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
31449 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31450 | } | |
31451 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
31452 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
31453 | } | |
31454 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
31455 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
31456 | } | |
31457 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
31458 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
31459 | } | |
31460 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
31461 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
31462 | } | |
31463 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
31464 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
31465 | } | |
31466 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
31467 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31468 | } | |
31469 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
31470 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31471 | } | |
31472 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
31473 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
31474 | } | |
31475 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
31476 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31477 | } | |
31478 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
31479 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
31480 | } | |
31481 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
31482 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
31483 | } | |
31484 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
31485 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31486 | } | |
31487 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
31488 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31489 | } | |
31490 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
31491 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31492 | } | |
31493 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
31494 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
31495 | } | |
31496 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
31497 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31498 | } | |
31499 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
31500 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31501 | } | |
31502 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
31503 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
31504 | } | |
31505 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
31506 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31507 | } | |
31508 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
31509 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31510 | } | |
31511 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
31512 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
31513 | } | |
31514 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
31515 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
31516 | } | |
31517 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
31518 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31519 | } | |
31520 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
31521 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31522 | } | |
31523 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
31524 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
31525 | } | |
31526 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
31527 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
31528 | } | |
31529 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
31530 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
31531 | } | |
31532 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
31533 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
31534 | } | |
31535 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
31536 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
31537 | } | |
31538 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
31539 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31540 | } | |
31541 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
31542 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
31543 | } | |
31544 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
31545 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
31546 | } | |
31547 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
31548 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
31549 | } | |
31550 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
31551 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
31552 | } | |
31553 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
31554 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
31555 | } | |
31556 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
31557 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
31558 | } | |
31559 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
31560 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
31561 | } | |
31562 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
31563 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
31564 | } | |
31565 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
31566 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
31567 | } | |
31568 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
31569 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
31570 | } | |
31571 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
31572 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
31573 | } | |
31574 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
31575 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
31576 | } | |
31577 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
31578 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
31579 | } | |
31580 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
31581 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
31582 | } | |
31583 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
31584 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31585 | } | |
31586 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
31587 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31588 | } | |
31589 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
31590 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31591 | } | |
31592 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
31593 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31594 | } | |
31595 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
31596 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
31597 | } | |
31598 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
31599 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31600 | } | |
31601 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
31602 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31603 | } | |
31604 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
31605 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31606 | } | |
31607 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
31608 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
31609 | } | |
31610 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
31611 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31612 | } | |
31613 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
31614 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31615 | } | |
31616 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
31617 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
31618 | } | |
31619 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
31620 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
31621 | } | |
31622 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
31623 | return (void *)((wxObject *) ((wxListItem *) x)); | |
31624 | } | |
31625 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
31626 | return (void *)((wxObject *) ((wxImage *) x)); | |
31627 | } | |
31628 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
31629 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
31630 | } | |
31631 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
31632 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
31633 | } | |
31634 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
31635 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31636 | } | |
31637 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
31638 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
31639 | } | |
31640 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
31641 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31642 | } | |
31643 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
31644 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31645 | } | |
31646 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
31647 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31648 | } | |
31649 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
31650 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31651 | } | |
31652 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
31653 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31654 | } | |
31655 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
31656 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
31657 | } | |
31658 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
31659 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
31660 | } | |
31661 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
31662 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
31663 | } | |
31664 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
31665 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
31666 | } | |
31667 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
31668 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
31669 | } | |
31670 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
31671 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31672 | } | |
31673 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
31674 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
31675 | } | |
31676 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
31677 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
31678 | } | |
31679 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
31680 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
31681 | } | |
31682 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
31683 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
31684 | } | |
31685 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
31686 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
31687 | } | |
31688 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
31689 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31690 | } | |
31691 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
31692 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31693 | } | |
31694 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
31695 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
31696 | } | |
31697 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
31698 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31699 | } | |
31700 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
31701 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
31702 | } | |
31703 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
31704 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
31705 | } | |
31706 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
31707 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31708 | } | |
31709 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
31710 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31711 | } | |
31712 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
31713 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
31714 | } | |
31715 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
31716 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31717 | } | |
31718 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
31719 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
31720 | } | |
31721 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
31722 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
31723 | } | |
31724 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
31725 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
31726 | } | |
31727 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
31728 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
31729 | } | |
31730 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
31731 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
31732 | } | |
31733 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
31734 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31735 | } | |
31736 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
31737 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
31738 | } | |
31739 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
31740 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
31741 | } | |
31742 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
31743 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
31744 | } | |
31745 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
31746 | return (void *)((wxWindow *) ((wxControl *) x)); | |
31747 | } | |
31748 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
31749 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
31750 | } | |
31751 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
31752 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31753 | } | |
31754 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
31755 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
31756 | } | |
31757 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
31758 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
31759 | } | |
31760 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
31761 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
31762 | } | |
31763 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
31764 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
31765 | } | |
31766 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
31767 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
31768 | } | |
31769 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
31770 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
31771 | } | |
31772 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
31773 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
31774 | } | |
31775 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
31776 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31777 | } | |
31778 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
31779 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
31780 | } | |
31781 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
31782 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
31783 | } | |
31784 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
31785 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
31786 | } | |
31787 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
31788 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31789 | } | |
31790 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
31791 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31792 | } | |
31793 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
31794 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31795 | } | |
31796 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
31797 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31798 | } | |
31799 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
31800 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31801 | } | |
31802 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
31803 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
31804 | } | |
31805 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
31806 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
31807 | } | |
31808 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
31809 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
31810 | } | |
31811 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
31812 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
31813 | } | |
31814 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
31815 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
31816 | } | |
31817 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
31818 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
31819 | } | |
31820 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
31821 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
31822 | } | |
31823 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
31824 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31825 | } | |
31826 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
31827 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31828 | } | |
31829 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
31830 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
31831 | } | |
31832 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
31833 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31834 | } | |
31835 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
31836 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31837 | } | |
31838 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
31839 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31840 | } | |
31841 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
31842 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
31843 | } | |
31844 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
31845 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31846 | } | |
31847 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
31848 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31849 | } | |
31850 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
31851 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31852 | } | |
31853 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
31854 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31855 | } | |
31856 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
31857 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31858 | } | |
31859 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
31860 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
31861 | } | |
31862 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
31863 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31864 | } | |
31865 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
31866 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31867 | } | |
31868 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
31869 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31870 | } | |
31871 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
31872 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
31873 | } | |
31874 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
31875 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31876 | } | |
31877 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
31878 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31879 | } | |
31880 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
31881 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31882 | } | |
31883 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
31884 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
31885 | } | |
31886 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
31887 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
31888 | } | |
31889 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
31890 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
31891 | } | |
31892 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
31893 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
31894 | } | |
31895 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0, 0, 0, 0},{"_p_wxTextUrlEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31896 | static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31897 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31898 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0, 0, 0, 0},{"_p_wxCheckBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31899 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0, 0, 0, 0},{"_p_wxPyTreeCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31900 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31901 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0, 0, 0, 0},{"_p_wxGenericDirCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31902 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0, 0, 0, 0},{"_p_bool", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31903 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0, 0, 0, 0},{"_p_wxPyTreeItemData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31904 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31905 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31906 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0, 0, 0, 0},{"_p_wxPyListCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31907 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0, 0, 0, 0},{"_p_wxStaticLine", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31908 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31909 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0, 0, 0, 0},{"_p_wxPyControl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31910 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0, 0, 0, 0},{"_p_wxGauge", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31911 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0, 0, 0, 0},{"_p_wxToolBarBase", 0, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31912 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31913 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0, 0, 0, 0},{"_p_wxToggleButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31914 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0, 0, 0, 0},{"_p_wxRadioButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31915 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31916 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31917 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0, 0, 0, 0},{"_p_wxListItemAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31918 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0, 0, 0, 0},{"_p_void", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31919 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31920 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31921 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31922 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0, 0, 0, 0},{"_p_wxListView", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31923 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31924 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31925 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0, 0, 0, 0},{"_p_wxNotebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31926 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31927 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31928 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0, 0, 0, 0},{"_p_wxListbook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31929 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0, 0, 0, 0},{"_p_wxStaticBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31930 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0, 0, 0, 0},{"_p_wxSlider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31931 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31932 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31933 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0, 0, 0, 0},{"_p_wxContextHelp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31934 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31935 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31936 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0, 0, 0, 0},{"_p_wxListEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31937 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0, 0, 0, 0},{"_p_wxListBox", 0, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31938 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0, 0, 0, 0},{"_p_wxCheckListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31939 | static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31940 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0, 0, 0, 0},{"_p_wxSpinButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31941 | static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0, 0, 0, 0},{"_p_wxButton", 0, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31942 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0, 0, 0, 0},{"_p_wxBitmapButton", 0, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31943 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31944 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0, 0, 0, 0},{"_p_wxContextHelpButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31945 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0, 0, 0, 0},{"_p_wxRadioBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31946 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0, 0, 0, 0},{"_p_wxScrollBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31947 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31948 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0, 0, 0, 0},{"_p_wxTreeItemId", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31949 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0, 0, 0, 0},{"_p_wxComboBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31950 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0, 0, 0, 0},{"_p_wxHelpEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31951 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0, 0, 0, 0},{"_p_wxListItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31952 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0, 0, 0, 0},{"_p_wxNotebookSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31953 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0, 0, 0, 0},{"_p_wxSpinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31954 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0, 0, 0, 0},{"_p_wxGenericDragImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31955 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0, 0, 0, 0},{"_p_wxSpinCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31956 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31957 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0, 0, 0, 0},{"_p_wxHelpProvider", 0, 0, 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31958 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0, 0, 0, 0},{"_p_wxTextAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31959 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31960 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31961 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0, 0, 0, 0},{"_p_wxListbookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31962 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0, 0, 0, 0},{"_p_wxNotebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31963 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31964 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31965 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31966 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31967 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31968 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31969 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31970 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31971 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31972 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0, 0, 0, 0},{"_p_wxStaticText", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31973 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31974 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0, 0, 0, 0},{"_p_wxToolBarToolBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31975 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31976 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31977 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0, 0, 0, 0},{"_p_wxBookCtrlSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31978 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
31979 | ||
31980 | static swig_type_info *swig_types_initial[] = { | |
31981 | _swigt__p_wxTextUrlEvent, | |
31982 | _swigt__p_wxBookCtrlEvent, | |
31983 | _swigt__p_wxSizer, | |
31984 | _swigt__p_wxCheckBox, | |
31985 | _swigt__p_wxPyTreeCtrl, | |
31986 | _swigt__p_wxEvent, | |
31987 | _swigt__p_wxGenericDirCtrl, | |
31988 | _swigt__p_bool, | |
31989 | _swigt__p_wxPyTreeItemData, | |
31990 | _swigt__p_wxItemContainer, | |
31991 | _swigt__p_wxDirFilterListCtrl, | |
31992 | _swigt__p_wxPyListCtrl, | |
31993 | _swigt__p_wxStaticLine, | |
31994 | _swigt__p_wxControl, | |
31995 | _swigt__p_wxPyControl, | |
31996 | _swigt__p_wxGauge, | |
31997 | _swigt__p_wxToolBarBase, | |
31998 | _swigt__p_wxFont, | |
31999 | _swigt__p_wxToggleButton, | |
32000 | _swigt__p_wxRadioButton, | |
32001 | _swigt__p_wxChoice, | |
32002 | _swigt__p_wxMemoryDC, | |
32003 | _swigt__p_wxListItemAttr, | |
32004 | _swigt__p_void, | |
32005 | _swigt__p_int, | |
32006 | _swigt__p_wxSize, | |
32007 | _swigt__p_wxDC, | |
32008 | _swigt__p_wxListView, | |
32009 | _swigt__p_wxIcon, | |
32010 | _swigt__p_wxTextCtrl, | |
32011 | _swigt__p_wxNotebook, | |
32012 | _swigt__p_wxNotifyEvent, | |
32013 | _swigt__p_wxArrayString, | |
32014 | _swigt__p_wxListbook, | |
32015 | _swigt__p_wxStaticBitmap, | |
32016 | _swigt__p_wxSlider, | |
32017 | _swigt__p_wxStaticBox, | |
32018 | _swigt__p_wxArrayInt, | |
32019 | _swigt__p_wxContextHelp, | |
32020 | _swigt__p_long, | |
32021 | _swigt__p_wxEvtHandler, | |
32022 | _swigt__p_wxListEvent, | |
32023 | _swigt__p_wxListBox, | |
32024 | _swigt__p_wxCheckListBox, | |
32025 | _swigt__p_wxBookCtrl, | |
32026 | _swigt__p_wxSpinButton, | |
32027 | _swigt__p_wxButton, | |
32028 | _swigt__p_wxBitmapButton, | |
32029 | _swigt__p_wxRect, | |
32030 | _swigt__p_wxContextHelpButton, | |
32031 | _swigt__p_wxRadioBox, | |
32032 | _swigt__p_wxScrollBar, | |
32033 | _swigt__p_char, | |
32034 | _swigt__p_wxTreeItemId, | |
32035 | _swigt__p_wxComboBox, | |
32036 | _swigt__p_wxHelpEvent, | |
32037 | _swigt__p_wxListItem, | |
32038 | _swigt__p_wxNotebookSizer, | |
32039 | _swigt__p_wxSpinEvent, | |
32040 | _swigt__p_wxGenericDragImage, | |
32041 | _swigt__p_wxSpinCtrl, | |
32042 | _swigt__p_wxImageList, | |
32043 | _swigt__p_wxHelpProvider, | |
32044 | _swigt__p_wxTextAttr, | |
32045 | _swigt__p_wxSimpleHelpProvider, | |
32046 | _swigt__p_wxPoint, | |
32047 | _swigt__p_wxListbookEvent, | |
32048 | _swigt__p_wxNotebookEvent, | |
32049 | _swigt__p_wxObject, | |
32050 | _swigt__p_wxCursor, | |
32051 | _swigt__p_wxKeyEvent, | |
32052 | _swigt__p_wxWindow, | |
32053 | _swigt__p_wxString, | |
32054 | _swigt__p_wxBitmap, | |
32055 | _swigt__p_wxTreeEvent, | |
32056 | _swigt__p_wxMouseEvent, | |
32057 | _swigt__p_wxCommandEvent, | |
32058 | _swigt__p_wxStaticText, | |
32059 | _swigt__p_wxControlWithItems, | |
32060 | _swigt__p_wxToolBarToolBase, | |
32061 | _swigt__p_wxColour, | |
32062 | _swigt__p_wxToolBar, | |
32063 | _swigt__p_wxBookCtrlSizer, | |
32064 | _swigt__p_wxValidator, | |
32065 | 0 | |
32066 | }; | |
32067 | ||
32068 | ||
32069 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
32070 | ||
32071 | static swig_const_info swig_const_table[] = { | |
32072 | {0}}; | |
32073 | ||
32074 | #ifdef __cplusplus | |
32075 | } | |
32076 | #endif | |
32077 | ||
32078 | #ifdef __cplusplus | |
32079 | extern "C" | |
32080 | #endif | |
32081 | SWIGEXPORT(void) SWIG_init(void) { | |
32082 | static PyObject *SWIG_globals = 0; | |
32083 | static int typeinit = 0; | |
32084 | PyObject *m, *d; | |
32085 | int i; | |
32086 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
32087 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
32088 | d = PyModule_GetDict(m); | |
32089 | ||
32090 | if (!typeinit) { | |
32091 | for (i = 0; swig_types_initial[i]; i++) { | |
32092 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
32093 | } | |
32094 | typeinit = 1; | |
32095 | } | |
32096 | SWIG_InstallConstants(d,swig_const_table); | |
32097 | ||
32098 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
32099 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
32100 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); | |
32101 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
32102 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
32103 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
32104 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
32105 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
32106 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); | |
32107 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); | |
32108 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
32109 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
32110 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
32111 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
32112 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
32113 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); | |
32114 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
32115 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
32116 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); | |
32117 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
32118 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
32119 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
32120 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); | |
32121 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
32122 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
32123 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
32124 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
32125 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); | |
32126 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
32127 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
32128 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
32129 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
32130 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
32131 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
32132 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
32133 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
32134 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
32135 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
32136 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
32137 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
32138 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
32139 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
32140 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
32141 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
32142 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
32143 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
32144 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
32145 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
32146 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
32147 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
32148 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
32149 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
32150 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
32151 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
32152 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
32153 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
32154 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
32155 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
32156 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
32157 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
32158 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
32159 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
32160 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
32161 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
32162 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
32163 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
32164 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
32165 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
32166 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
32167 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
32168 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
32169 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
32170 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
32171 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
32172 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
32173 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); | |
32174 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
32175 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
32176 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
32177 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
32178 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
32179 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
32180 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
32181 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
32182 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
32183 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); | |
32184 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); | |
32185 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
32186 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
32187 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
32188 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
32189 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
32190 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
32191 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
32192 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
32193 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
32194 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
32195 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
32196 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); | |
32197 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
32198 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
32199 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
32200 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
32201 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
32202 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
32203 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
32204 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); | |
32205 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
32206 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
32207 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
32208 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
32209 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
32210 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
32211 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
32212 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
32213 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
32214 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
32215 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
32216 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
32217 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
32218 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); | |
32219 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); | |
32220 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
32221 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
32222 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
32223 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
32224 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
32225 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
32226 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
32227 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
32228 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
32229 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
32230 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
32231 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
32232 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
32233 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
32234 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
32235 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
32236 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
32237 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
32238 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
32239 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
32240 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
32241 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
32242 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
32243 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
32244 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
32245 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
32246 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
32247 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
32248 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
32249 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
32250 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
32251 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
32252 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
32253 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
32254 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
32255 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
32256 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
32257 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
32258 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
32259 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
32260 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
32261 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
32262 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
32263 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
32264 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
32265 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
32266 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
32267 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
32268 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
32269 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
32270 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
32271 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
32272 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
32273 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
32274 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
32275 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
32276 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
32277 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
32278 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
32279 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
32280 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
32281 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
32282 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
32283 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
32284 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
32285 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
32286 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
32287 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
32288 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
32289 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
32290 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
32291 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
32292 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
32293 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
32294 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
32295 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
32296 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
32297 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
32298 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
32299 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
32300 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
32301 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
32302 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
32303 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
32304 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
32305 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
32306 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
32307 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
32308 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
32309 | ||
32310 | // Map renamed classes back to their common name for OOR | |
32311 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
32312 | ||
32313 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
32314 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); | |
32315 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
32316 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
32317 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
32318 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
32319 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
32320 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
32321 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
32322 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
32323 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
32324 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
32325 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
32326 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
32327 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
32328 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
32329 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
32330 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
32331 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
32332 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
32333 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
32334 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
32335 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
32336 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
32337 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
32338 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
32339 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
32340 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
32341 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
32342 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
32343 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
32344 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
32345 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
32346 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
32347 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
32348 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
32349 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
32350 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
32351 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
32352 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
32353 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
32354 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
32355 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
32356 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
32357 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
32358 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
32359 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
32360 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
32361 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
32362 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
32363 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
32364 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
32365 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
32366 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
32367 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
32368 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
32369 | ||
32370 | // Map renamed classes back to their common name for OOR | |
32371 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
32372 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
32373 | ||
32374 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
32375 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); | |
32376 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
32377 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
32378 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
32379 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
32380 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
32381 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
32382 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
32383 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
32384 | ||
32385 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
32386 | ||
32387 | } | |
32388 |