]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
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_wxPyListCtrl swig_types[10] | |
220 | #define SWIGTYPE_p_wxDirFilterListCtrl 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_wxVisualAttributes swig_types[29] | |
239 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
240 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
241 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
242 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
243 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
244 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
245 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
246 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
247 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
248 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
249 | #define SWIGTYPE_p_long swig_types[40] | |
250 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
251 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
252 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] | |
253 | #define SWIGTYPE_p_wxListBox swig_types[44] | |
254 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
255 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
256 | #define SWIGTYPE_p_wxButton swig_types[47] | |
257 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
258 | #define SWIGTYPE_p_wxRect swig_types[49] | |
259 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
260 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
261 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
262 | #define SWIGTYPE_p_char swig_types[53] | |
263 | #define SWIGTYPE_p_wxTreeItemId swig_types[54] | |
264 | #define SWIGTYPE_p_wxComboBox swig_types[55] | |
265 | #define SWIGTYPE_p_wxHelpEvent swig_types[56] | |
266 | #define SWIGTYPE_p_wxListItem swig_types[57] | |
267 | #define SWIGTYPE_p_wxNotebookSizer swig_types[58] | |
268 | #define SWIGTYPE_p_wxSpinEvent swig_types[59] | |
269 | #define SWIGTYPE_p_wxGenericDragImage swig_types[60] | |
270 | #define SWIGTYPE_p_wxSpinCtrl swig_types[61] | |
271 | #define SWIGTYPE_p_wxImageList swig_types[62] | |
272 | #define SWIGTYPE_p_wxHelpProvider swig_types[63] | |
273 | #define SWIGTYPE_p_wxTextAttr swig_types[64] | |
274 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] | |
275 | #define SWIGTYPE_p_wxPoint swig_types[66] | |
276 | #define SWIGTYPE_p_wxListbookEvent swig_types[67] | |
277 | #define SWIGTYPE_p_wxNotebookEvent swig_types[68] | |
278 | #define SWIGTYPE_p_wxObject swig_types[69] | |
279 | #define SWIGTYPE_p_wxCursor swig_types[70] | |
280 | #define SWIGTYPE_p_wxKeyEvent swig_types[71] | |
281 | #define SWIGTYPE_p_wxWindow swig_types[72] | |
282 | #define SWIGTYPE_p_wxString swig_types[73] | |
283 | #define SWIGTYPE_p_wxBitmap swig_types[74] | |
284 | #define SWIGTYPE_p_wxTreeEvent swig_types[75] | |
285 | #define SWIGTYPE_p_wxMouseEvent swig_types[76] | |
286 | #define SWIGTYPE_p_wxCommandEvent swig_types[77] | |
287 | #define SWIGTYPE_p_wxStaticText swig_types[78] | |
288 | #define SWIGTYPE_p_wxControlWithItems swig_types[79] | |
289 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[80] | |
290 | #define SWIGTYPE_p_wxColour swig_types[81] | |
291 | #define SWIGTYPE_p_wxToolBar swig_types[82] | |
292 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83] | |
293 | #define SWIGTYPE_p_wxValidator swig_types[84] | |
294 | static swig_type_info *swig_types[86]; | |
295 | ||
296 | /* -------- TYPES TABLE (END) -------- */ | |
297 | ||
298 | ||
299 | /*----------------------------------------------- | |
300 | @(target):= _controls_.so | |
301 | ------------------------------------------------*/ | |
302 | #define SWIG_init init_controls_ | |
303 | ||
304 | #define SWIG_name "_controls_" | |
305 | ||
306 | /* Auxiliar swig macros */ | |
307 | ||
308 | #ifdef __cplusplus | |
309 | #define SWIGSTATICINLINE(a) static inline a | |
310 | #define SWIGSTATIC(a) static a | |
311 | #define swig_new_array(type, size) (new type[(size)]) | |
312 | #define swig_delete_array(cptr) delete[] cptr | |
313 | #define swig_const_cast(type,a) const_cast<type>(a) | |
314 | #define swig_static_cast(type,a) static_cast<type>(a) | |
315 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
316 | ||
317 | #ifdef HAVE_NUMERIC_CAST | |
318 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
319 | #else | |
320 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
321 | #endif | |
322 | ||
323 | #else /* C case */ | |
324 | ||
325 | #define SWIGSTATICINLINE(a) static a | |
326 | #define SWIGSTATIC(a) static a | |
327 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
328 | #define swig_delete_array(cptr) free((char*)cptr) | |
329 | #define swig_const_cast(type,a) (type)(a) | |
330 | #define swig_static_cast(type,a) (type)(a) | |
331 | #define swig_reinterpret_cast(type,a) (type)(a) | |
332 | #define swig_numeric_cast(type,a) (type)(a) | |
333 | ||
334 | #endif /* __cplusplus */ | |
335 | ||
336 | ||
337 | #define SWIG_FromSignedChar PyInt_FromLong | |
338 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
339 | #define SWIG_FromShort PyInt_FromLong | |
340 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
341 | #define SWIG_FromInt PyInt_FromLong | |
342 | #define SWIG_FromLong PyInt_FromLong | |
343 | #define SWIG_FromFloat PyFloat_FromDouble | |
344 | #define SWIG_FromDouble PyFloat_FromDouble | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
347 | ||
348 | ||
349 | #include "wx/wxPython/wxPython.h" | |
350 | #include "wx/wxPython/pyclasses.h" | |
351 | ||
352 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
353 | static const wxString wxPyEmptyString(wxEmptyString); | |
354 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
355 | ||
356 | const wxArrayString wxPyEmptyStringArray; | |
357 | ||
358 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
359 | ||
360 | #include <limits.h> | |
361 | ||
362 | ||
363 | SWIGSTATICINLINE(long) | |
364 | SWIG_CheckLongInRange(long value, const char* type, | |
365 | long min_value, long max_value) | |
366 | { | |
367 | if (!PyErr_Occurred()) { | |
368 | if (value < min_value) { | |
369 | PyObject *err = | |
370 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
371 | value, type, min_value); | |
372 | ||
373 | PyErr_SetObject(PyExc_OverflowError, err); | |
374 | Py_DECREF(err); | |
375 | } else if (value > max_value) { | |
376 | PyObject *err = | |
377 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
378 | value, type, max_value); | |
379 | PyErr_SetObject(PyExc_OverflowError, err); | |
380 | Py_DECREF(err); | |
381 | } | |
382 | } | |
383 | return value; | |
384 | } | |
385 | ||
386 | ||
387 | SWIGSTATICINLINE(long) | |
388 | SWIG_AsLong(PyObject * obj) | |
389 | { | |
390 | if (PyNumber_Check(obj)) | |
391 | return PyInt_AsLong(obj); | |
392 | else { | |
393 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
394 | obj->ob_type->tp_name); | |
395 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
396 | Py_DECREF(errmsg); | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | ||
401 | ||
402 | #if INT_MAX != LONG_MAX | |
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_AsInt(PyObject *obj) | |
405 | { | |
406 | return swig_numeric_cast(int, | |
407 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
408 | "int", INT_MIN, INT_MAX)); | |
409 | } | |
410 | #else | |
411 | #define SWIG_AsInt SWIG_AsLong | |
412 | #endif | |
413 | ||
414 | ||
415 | SWIGSTATICINLINE(int) | |
416 | SWIG_CheckInt(PyObject* obj) | |
417 | { | |
418 | SWIG_AsInt(obj); | |
419 | if (PyErr_Occurred()) { | |
420 | PyErr_Clear(); | |
421 | return 0; | |
422 | } else { | |
423 | return 1; | |
424 | } | |
425 | } | |
426 | ||
427 | ||
428 | SWIGSTATICINLINE(int) | |
429 | SWIG_CheckLong(PyObject* obj) | |
430 | { | |
431 | SWIG_AsLong(obj); | |
432 | if (PyErr_Occurred()) { | |
433 | PyErr_Clear(); | |
434 | return 0; | |
435 | } else { | |
436 | return 1; | |
437 | } | |
438 | } | |
439 | ||
440 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); | |
441 | ||
442 | SWIGSTATICINLINE(bool) | |
443 | SWIG_AsBool(PyObject *obj) | |
444 | { | |
445 | return PyObject_IsTrue(obj) ? true : false; | |
446 | } | |
447 | ||
448 | ||
449 | SWIGSTATICINLINE(int) | |
450 | SWIG_CheckBool(PyObject* obj) | |
451 | { | |
452 | SWIG_AsBool(obj); | |
453 | if (PyErr_Occurred()) { | |
454 | PyErr_Clear(); | |
455 | return 0; | |
456 | } else { | |
457 | return 1; | |
458 | } | |
459 | } | |
460 | ||
461 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
462 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
463 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
464 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
465 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
466 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
467 | ||
468 | #include <wx/checklst.h> | |
469 | ||
470 | ||
471 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
472 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ | |
473 | if (clientData) { | |
474 | wxPyClientData* data = new wxPyClientData(clientData); | |
475 | self->Insert(item, pos, data); | |
476 | } else | |
477 | self->Insert(item, pos); | |
478 | } | |
479 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
480 | wxArrayInt lst; | |
481 | self->GetSelections(lst); | |
482 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
483 | for(size_t i=0; i<lst.GetCount(); i++) { | |
484 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
485 | } | |
486 | return tup; | |
487 | } | |
488 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ | |
489 | #ifdef __WXMSW__ | |
490 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
491 | self->GetItem(item)->SetTextColour(c); | |
492 | #endif | |
493 | } | |
494 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
495 | #ifdef __WXMSW__ | |
496 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
497 | self->GetItem(item)->SetBackgroundColour(c); | |
498 | #endif | |
499 | } | |
500 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
501 | #ifdef __WXMSW__ | |
502 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
503 | self->GetItem(item)->SetFont(f); | |
504 | #endif | |
505 | } | |
506 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
507 | ||
508 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
509 | PyObject* o2; | |
510 | PyObject* o3; | |
511 | ||
512 | if (!target) { | |
513 | target = o; | |
514 | } else if (target == Py_None) { | |
515 | Py_DECREF(Py_None); | |
516 | target = o; | |
517 | } else { | |
518 | if (!PyTuple_Check(target)) { | |
519 | o2 = target; | |
520 | target = PyTuple_New(1); | |
521 | PyTuple_SetItem(target, 0, o2); | |
522 | } | |
523 | o3 = PyTuple_New(1); | |
524 | PyTuple_SetItem(o3, 0, o); | |
525 | ||
526 | o2 = target; | |
527 | target = PySequence_Concat(o2, o3); | |
528 | Py_DECREF(o2); | |
529 | Py_DECREF(o3); | |
530 | } | |
531 | return target; | |
532 | } | |
533 | ||
534 | ||
535 | SWIGSTATICINLINE(unsigned long) | |
536 | SWIG_AsUnsignedLong(PyObject * obj) | |
537 | { | |
538 | if (PyLong_Check(obj)) { | |
539 | return PyLong_AsUnsignedLong(obj); | |
540 | } else { | |
541 | long i = SWIG_AsLong(obj); | |
542 | if ( !PyErr_Occurred() && (i < 0)) { | |
543 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
544 | } | |
545 | return i; | |
546 | } | |
547 | } | |
548 | ||
549 | ||
550 | SWIGSTATICINLINE(int) | |
551 | SWIG_CheckUnsignedLong(PyObject* obj) | |
552 | { | |
553 | SWIG_AsUnsignedLong(obj); | |
554 | if (PyErr_Occurred()) { | |
555 | PyErr_Clear(); | |
556 | return 0; | |
557 | } else { | |
558 | return 1; | |
559 | } | |
560 | } | |
561 | ||
562 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
563 | self->AppendText(text); | |
564 | } | |
565 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
566 | return self->GetValue().Mid(from, to - from); | |
567 | } | |
568 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
569 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
570 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
571 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
572 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
573 | ||
574 | #include <wx/slider.h> | |
575 | ||
576 | ||
577 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
578 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
579 | ||
580 | #if !wxUSE_TOGGLEBTN | |
581 | // implement dummy items for platforms that don't have this class | |
582 | ||
583 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
584 | ||
585 | class wxToggleButton : public wxControl | |
586 | { | |
587 | public: | |
588 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
589 | const wxPoint&, const wxSize&, long, | |
590 | const wxValidator&, const wxString&) | |
591 | { wxPyRaiseNotImplemented(); } | |
592 | ||
593 | wxToggleButton() | |
594 | { wxPyRaiseNotImplemented(); } | |
595 | }; | |
596 | #endif | |
597 | ||
598 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); | |
599 | ||
600 | SWIGSTATICINLINE(PyObject* ) | |
601 | SWIG_FromUnsignedLong(unsigned long value) | |
602 | { | |
603 | return (value > LONG_MAX) ? | |
604 | PyLong_FromUnsignedLong(value) | |
605 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
606 | } | |
607 | ||
608 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
609 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ | |
610 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
611 | if (udata) { | |
612 | Py_INCREF(udata->m_obj); | |
613 | return udata->m_obj; | |
614 | } else { | |
615 | Py_INCREF(Py_None); | |
616 | return Py_None; | |
617 | } | |
618 | } | |
619 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
620 | self->SetClientData(new wxPyUserData(clientData)); | |
621 | } | |
622 | 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){ | |
623 | wxPyUserData* udata = NULL; | |
624 | if (clientData && clientData != Py_None) | |
625 | udata = new wxPyUserData(clientData); | |
626 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
627 | shortHelp, longHelp, udata); | |
628 | } | |
629 | 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){ | |
630 | wxPyUserData* udata = NULL; | |
631 | if (clientData && clientData != Py_None) | |
632 | udata = new wxPyUserData(clientData); | |
633 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
634 | shortHelp, longHelp, udata); | |
635 | } | |
636 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
637 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
638 | if (udata) { | |
639 | Py_INCREF(udata->m_obj); | |
640 | return udata->m_obj; | |
641 | } else { | |
642 | Py_INCREF(Py_None); | |
643 | return Py_None; | |
644 | } | |
645 | } | |
646 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
647 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
648 | } | |
649 | ||
650 | #include <wx/listctrl.h> | |
651 | ||
d55e5bfc RD |
652 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
653 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } | |
654 | // Python aware sorting function for wxPyListCtrl | |
655 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
656 | int retval = 0; | |
657 | PyObject* func = (PyObject*)funcPtr; | |
658 | bool blocked = wxPyBeginBlockThreads(); | |
659 | ||
660 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
661 | PyObject* result = PyEval_CallObject(func, args); | |
662 | Py_DECREF(args); | |
663 | if (result) { | |
664 | retval = PyInt_AsLong(result); | |
665 | Py_DECREF(result); | |
666 | } | |
667 | ||
668 | wxPyEndBlockThreads(blocked); | |
669 | return retval; | |
670 | } | |
671 | ||
672 | // C++ Version of a Python aware class | |
673 | class wxPyListCtrl : public wxListCtrl { | |
674 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
675 | public: | |
676 | wxPyListCtrl() : wxListCtrl() {} | |
677 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
678 | const wxPoint& pos, | |
679 | const wxSize& size, | |
680 | long style, | |
681 | const wxValidator& validator, | |
682 | const wxString& name) : | |
683 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
684 | ||
685 | bool Create(wxWindow* parent, wxWindowID id, | |
686 | const wxPoint& pos, | |
687 | const wxSize& size, | |
688 | long style, | |
689 | const wxValidator& validator, | |
690 | const wxString& name) { | |
691 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
692 | } | |
693 | ||
694 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
695 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
696 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
697 | ||
698 | PYPRIVATE; | |
699 | }; | |
700 | ||
701 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
702 | ||
703 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
704 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
705 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
706 | ||
707 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
708 | wxListItem item; | |
709 | item.SetMask( wxLIST_MASK_STATE | | |
710 | wxLIST_MASK_TEXT | | |
711 | wxLIST_MASK_IMAGE | | |
712 | wxLIST_MASK_DATA | | |
713 | wxLIST_SET_ITEM | | |
714 | wxLIST_MASK_WIDTH | | |
715 | wxLIST_MASK_FORMAT | |
716 | ); | |
717 | if (self->GetColumn(col, item)) | |
718 | return new wxListItem(item); | |
719 | else | |
720 | return NULL; | |
721 | } | |
722 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
723 | wxListItem* info = new wxListItem; | |
724 | info->m_itemId = itemId; | |
725 | info->m_col = col; | |
726 | info->m_mask = 0xFFFF; | |
727 | self->GetItem(*info); | |
728 | return info; | |
729 | } | |
730 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
731 | wxPoint pos; | |
732 | self->GetItemPosition(item, pos); | |
733 | return pos; | |
734 | } | |
735 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
736 | wxRect rect; | |
737 | self->GetItemRect(item, rect, code); | |
738 | return rect; | |
739 | } | |
740 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
741 | if (!PyCallable_Check(func)) | |
742 | return False; | |
743 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); | |
744 | } | |
745 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
746 | ||
747 | ||
748 | ||
749 | return (wxWindow*)self->m_mainWin; | |
750 | ||
751 | } | |
752 | ||
753 | #include <wx/treectrl.h> | |
754 | #include "wx/wxPython/pytree.h" | |
755 | ||
756 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
757 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } | |
758 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
759 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
760 | // C++ version of Python aware wxTreeCtrl | |
761 | class wxPyTreeCtrl : public wxTreeCtrl { | |
762 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
763 | public: | |
764 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
765 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
766 | const wxPoint& pos, | |
767 | const wxSize& size, | |
768 | long style, | |
769 | const wxValidator& validator, | |
770 | const wxString& name) : | |
771 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
772 | ||
773 | bool Create(wxWindow *parent, wxWindowID id, | |
774 | const wxPoint& pos, | |
775 | const wxSize& size, | |
776 | long style, | |
777 | const wxValidator& validator, | |
778 | const wxString& name) { | |
779 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
780 | } | |
781 | ||
782 | ||
783 | int OnCompareItems(const wxTreeItemId& item1, | |
784 | const wxTreeItemId& item2) { | |
785 | int rval = 0; | |
786 | bool found; | |
787 | bool blocked = wxPyBeginBlockThreads(); | |
788 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
789 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); | |
790 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
791 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); | |
792 | Py_DECREF(o1); | |
793 | Py_DECREF(o2); | |
794 | } | |
795 | wxPyEndBlockThreads(blocked); | |
796 | if (! found) | |
797 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
798 | return rval; | |
799 | } | |
800 | PYPRIVATE; | |
801 | }; | |
802 | ||
803 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
804 | ||
805 | ||
806 | ||
807 | #if UINT_MAX < LONG_MAX | |
808 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
809 | #else | |
810 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
811 | #endif | |
812 | ||
813 | ||
814 | SWIGSTATICINLINE(unsigned long) | |
815 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
816 | unsigned long max_value) | |
817 | { | |
818 | if (!PyErr_Occurred()) { | |
819 | if (value > max_value) { | |
820 | PyObject *err = | |
821 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
822 | value, type, max_value); | |
823 | PyErr_SetObject(PyExc_OverflowError, err); | |
824 | Py_DECREF(err); | |
825 | } | |
826 | } | |
827 | return value; | |
828 | } | |
829 | ||
830 | ||
831 | #if UINT_MAX != ULONG_MAX | |
832 | SWIGSTATICINLINE(unsigned int) | |
833 | SWIG_AsUnsignedInt(PyObject *obj) | |
834 | { | |
835 | return swig_numeric_cast(unsigned int, | |
836 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
837 | "unsigned int", UINT_MAX)); | |
838 | } | |
839 | #else | |
840 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
841 | #endif | |
842 | ||
843 | ||
844 | SWIGSTATICINLINE(int) | |
845 | SWIG_CheckUnsignedInt(PyObject* obj) | |
846 | { | |
847 | SWIG_AsUnsignedInt(obj); | |
848 | if (PyErr_Occurred()) { | |
849 | PyErr_Clear(); | |
850 | return 0; | |
851 | } else { | |
852 | return 1; | |
853 | } | |
854 | } | |
855 | ||
856 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
857 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
858 | if (data == NULL) { | |
859 | data = new wxPyTreeItemData(); | |
860 | data->SetId(item); // set the id | |
861 | self->SetItemData(item, data); | |
862 | } | |
863 | return data; | |
864 | } | |
865 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
866 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
867 | if (data == NULL) { | |
868 | data = new wxPyTreeItemData(); | |
869 | data->SetId(item); // set the id | |
870 | self->SetItemData(item, data); | |
871 | } | |
872 | return data->GetData(); | |
873 | } | |
874 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
875 | data->SetId(item); // set the id | |
876 | self->SetItemData(item, data); | |
877 | } | |
878 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
879 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
880 | if (data == NULL) { | |
881 | data = new wxPyTreeItemData(obj); | |
882 | data->SetId(item); // set the id | |
883 | self->SetItemData(item, data); | |
884 | } else | |
885 | data->SetData(obj); | |
886 | } | |
887 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
888 | bool blocked = wxPyBeginBlockThreads(); | |
889 | PyObject* rval = PyList_New(0); | |
890 | wxArrayTreeItemIds array; | |
891 | size_t num, x; | |
892 | num = self->GetSelections(array); | |
893 | for (x=0; x < num; x++) { | |
894 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
895 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); | |
896 | PyList_Append(rval, item); | |
68e533f8 | 897 | Py_DECREF(item); |
d55e5bfc RD |
898 | } |
899 | wxPyEndBlockThreads(blocked); | |
900 | return rval; | |
901 | } | |
902 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
903 | void* cookie = 0; | |
904 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
905 | bool blocked = wxPyBeginBlockThreads(); | |
906 | PyObject* tup = PyTuple_New(2); | |
907 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
908 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
909 | wxPyEndBlockThreads(blocked); | |
910 | return tup; | |
911 | } | |
912 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ | |
913 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
914 | bool blocked = wxPyBeginBlockThreads(); | |
915 | PyObject* tup = PyTuple_New(2); | |
916 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
917 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
918 | wxPyEndBlockThreads(blocked); | |
919 | return tup; | |
920 | } | |
921 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
922 | wxRect rect; | |
923 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
924 | bool blocked = wxPyBeginBlockThreads(); | |
925 | wxRect* r = new wxRect(rect); | |
926 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); | |
927 | wxPyEndBlockThreads(blocked); | |
928 | return val; | |
929 | } | |
930 | else | |
931 | RETURN_NONE(); | |
932 | } | |
933 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
934 | // C++ version of Python aware wxControl | |
935 | class wxPyControl : public wxControl | |
936 | { | |
937 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
938 | public: | |
939 | wxPyControl() : wxControl() {} | |
940 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
941 | const wxPoint& pos = wxDefaultPosition, | |
942 | const wxSize& size = wxDefaultSize, | |
943 | long style = 0, | |
944 | const wxValidator& validator=wxDefaultValidator, | |
945 | const wxString& name = wxPyControlNameStr) | |
946 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
947 | ||
a5ee0656 | 948 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d55e5bfc RD |
949 | |
950 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
951 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
952 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
953 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
954 | ||
955 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
956 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
957 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
958 | ||
959 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
960 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
961 | ||
962 | DEC_PYCALLBACK__(InitDialog); | |
963 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
964 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
965 | DEC_PYCALLBACK_BOOL_(Validate); | |
966 | ||
967 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
968 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
969 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
970 | ||
971 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
972 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
973 | ||
a5ee0656 | 974 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 975 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
a5ee0656 | 976 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
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 | ||
a5ee0656 | 1007 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
d55e5bfc | 1008 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
a5ee0656 | 1009 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d55e5bfc RD |
1010 | |
1011 | ||
1012 | ||
1013 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
1014 | ||
1015 | #include <wx/generic/dragimgg.h> | |
1016 | ||
1017 | #ifdef __cplusplus | |
1018 | extern "C" { | |
1019 | #endif | |
1020 | static int _wrap_ButtonNameStr_set(PyObject *_val) { | |
1021 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
1022 | return 1; | |
1023 | } | |
1024 | ||
1025 | ||
1026 | static PyObject *_wrap_ButtonNameStr_get() { | |
1027 | PyObject *pyobj; | |
1028 | ||
1029 | { | |
1030 | #if wxUSE_UNICODE | |
1031 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1032 | #else | |
1033 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1034 | #endif | |
1035 | } | |
1036 | return pyobj; | |
1037 | } | |
1038 | ||
1039 | ||
1040 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1041 | PyObject *resultobj; | |
1042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
1043 | int arg2 = (int) -1 ; |
1044 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1045 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
1046 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1047 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1048 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1049 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1050 | long arg6 = (long) 0 ; | |
1051 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1052 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1053 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1054 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1055 | wxButton *result; | |
1056 | bool temp3 = False ; | |
1057 | wxPoint temp4 ; | |
1058 | wxSize temp5 ; | |
1059 | bool temp8 = False ; | |
1060 | PyObject * obj0 = 0 ; | |
1061 | PyObject * obj1 = 0 ; | |
1062 | PyObject * obj2 = 0 ; | |
1063 | PyObject * obj3 = 0 ; | |
1064 | PyObject * obj4 = 0 ; | |
1065 | PyObject * obj5 = 0 ; | |
1066 | PyObject * obj6 = 0 ; | |
1067 | PyObject * obj7 = 0 ; | |
1068 | char *kwnames[] = { | |
1069 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1070 | }; | |
1071 | ||
bfddbb17 | 1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
1073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
1075 | if (obj1) { |
1076 | arg2 = (int) SWIG_AsInt(obj1); | |
1077 | if (PyErr_Occurred()) SWIG_fail; | |
1078 | } | |
1079 | if (obj2) { | |
1080 | { | |
1081 | arg3 = wxString_in_helper(obj2); | |
1082 | if (arg3 == NULL) SWIG_fail; | |
1083 | temp3 = True; | |
1084 | } | |
d55e5bfc RD |
1085 | } |
1086 | if (obj3) { | |
1087 | { | |
1088 | arg4 = &temp4; | |
1089 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1090 | } | |
1091 | } | |
1092 | if (obj4) { | |
1093 | { | |
1094 | arg5 = &temp5; | |
1095 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1096 | } | |
1097 | } | |
1098 | if (obj5) { | |
1099 | arg6 = (long) SWIG_AsLong(obj5); | |
1100 | if (PyErr_Occurred()) SWIG_fail; | |
1101 | } | |
1102 | if (obj6) { | |
1103 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1104 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1105 | SWIG_fail; | |
1106 | if (arg7 == NULL) { | |
1107 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1108 | SWIG_fail; | |
1109 | } | |
1110 | } | |
1111 | if (obj7) { | |
1112 | { | |
1113 | arg8 = wxString_in_helper(obj7); | |
1114 | if (arg8 == NULL) SWIG_fail; | |
1115 | temp8 = True; | |
1116 | } | |
1117 | } | |
1118 | { | |
0439c23b | 1119 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1121 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1122 | ||
1123 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1124 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1125 | } |
1126 | { | |
412d302d | 1127 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
1128 | } |
1129 | { | |
1130 | if (temp3) | |
1131 | delete arg3; | |
1132 | } | |
1133 | { | |
1134 | if (temp8) | |
1135 | delete arg8; | |
1136 | } | |
1137 | return resultobj; | |
1138 | fail: | |
1139 | { | |
1140 | if (temp3) | |
1141 | delete arg3; | |
1142 | } | |
1143 | { | |
1144 | if (temp8) | |
1145 | delete arg8; | |
1146 | } | |
1147 | return NULL; | |
1148 | } | |
1149 | ||
1150 | ||
1151 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1152 | PyObject *resultobj; | |
1153 | wxButton *result; | |
1154 | char *kwnames[] = { | |
1155 | NULL | |
1156 | }; | |
1157 | ||
1158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1159 | { | |
0439c23b | 1160 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1162 | result = (wxButton *)new wxButton(); | |
1163 | ||
1164 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1165 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1166 | } |
1167 | { | |
412d302d | 1168 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
1169 | } |
1170 | return resultobj; | |
1171 | fail: | |
1172 | return NULL; | |
1173 | } | |
1174 | ||
1175 | ||
1176 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1177 | PyObject *resultobj; | |
1178 | wxButton *arg1 = (wxButton *) 0 ; | |
1179 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
1180 | int arg3 = (int) -1 ; |
1181 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1182 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
1183 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1184 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1185 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1186 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1187 | long arg7 = (long) 0 ; | |
1188 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1189 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1190 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1191 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1192 | bool result; | |
1193 | bool temp4 = False ; | |
1194 | wxPoint temp5 ; | |
1195 | wxSize temp6 ; | |
1196 | bool temp9 = False ; | |
1197 | PyObject * obj0 = 0 ; | |
1198 | PyObject * obj1 = 0 ; | |
1199 | PyObject * obj2 = 0 ; | |
1200 | PyObject * obj3 = 0 ; | |
1201 | PyObject * obj4 = 0 ; | |
1202 | PyObject * obj5 = 0 ; | |
1203 | PyObject * obj6 = 0 ; | |
1204 | PyObject * obj7 = 0 ; | |
1205 | PyObject * obj8 = 0 ; | |
1206 | char *kwnames[] = { | |
1207 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1208 | }; | |
1209 | ||
bfddbb17 | 1210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
1211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
1215 | if (obj2) { |
1216 | arg3 = (int) SWIG_AsInt(obj2); | |
1217 | if (PyErr_Occurred()) SWIG_fail; | |
1218 | } | |
1219 | if (obj3) { | |
1220 | { | |
1221 | arg4 = wxString_in_helper(obj3); | |
1222 | if (arg4 == NULL) SWIG_fail; | |
1223 | temp4 = True; | |
1224 | } | |
d55e5bfc RD |
1225 | } |
1226 | if (obj4) { | |
1227 | { | |
1228 | arg5 = &temp5; | |
1229 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1230 | } | |
1231 | } | |
1232 | if (obj5) { | |
1233 | { | |
1234 | arg6 = &temp6; | |
1235 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1236 | } | |
1237 | } | |
1238 | if (obj6) { | |
1239 | arg7 = (long) SWIG_AsLong(obj6); | |
1240 | if (PyErr_Occurred()) SWIG_fail; | |
1241 | } | |
1242 | if (obj7) { | |
1243 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1244 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1245 | SWIG_fail; | |
1246 | if (arg8 == NULL) { | |
1247 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1248 | SWIG_fail; | |
1249 | } | |
1250 | } | |
1251 | if (obj8) { | |
1252 | { | |
1253 | arg9 = wxString_in_helper(obj8); | |
1254 | if (arg9 == NULL) SWIG_fail; | |
1255 | temp9 = True; | |
1256 | } | |
1257 | } | |
1258 | { | |
1259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1260 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1261 | ||
1262 | wxPyEndAllowThreads(__tstate); | |
1263 | if (PyErr_Occurred()) SWIG_fail; | |
1264 | } | |
1265 | { | |
1266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1267 | } | |
1268 | { | |
1269 | if (temp4) | |
1270 | delete arg4; | |
1271 | } | |
1272 | { | |
1273 | if (temp9) | |
1274 | delete arg9; | |
1275 | } | |
1276 | return resultobj; | |
1277 | fail: | |
1278 | { | |
1279 | if (temp4) | |
1280 | delete arg4; | |
1281 | } | |
1282 | { | |
1283 | if (temp9) | |
1284 | delete arg9; | |
1285 | } | |
1286 | return NULL; | |
1287 | } | |
1288 | ||
1289 | ||
1290 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1291 | PyObject *resultobj; | |
1292 | wxButton *arg1 = (wxButton *) 0 ; | |
1293 | PyObject * obj0 = 0 ; | |
1294 | char *kwnames[] = { | |
1295 | (char *) "self", NULL | |
1296 | }; | |
1297 | ||
1298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, | |
1300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1301 | { | |
1302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1303 | (arg1)->SetDefault(); | |
1304 | ||
1305 | wxPyEndAllowThreads(__tstate); | |
1306 | if (PyErr_Occurred()) SWIG_fail; | |
1307 | } | |
1308 | Py_INCREF(Py_None); resultobj = Py_None; | |
1309 | return resultobj; | |
1310 | fail: | |
1311 | return NULL; | |
1312 | } | |
1313 | ||
1314 | ||
1315 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1316 | PyObject *resultobj; | |
1317 | wxSize result; | |
1318 | char *kwnames[] = { | |
1319 | NULL | |
1320 | }; | |
1321 | ||
1322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1323 | { | |
1324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1325 | result = wxButton::GetDefaultSize(); | |
1326 | ||
1327 | wxPyEndAllowThreads(__tstate); | |
1328 | if (PyErr_Occurred()) SWIG_fail; | |
1329 | } | |
1330 | { | |
1331 | wxSize * resultptr; | |
1332 | resultptr = new wxSize((wxSize &) result); | |
1333 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
1334 | } | |
1335 | return resultobj; | |
1336 | fail: | |
1337 | return NULL; | |
1338 | } | |
1339 | ||
1340 | ||
f20a2e1f RD |
1341 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1342 | PyObject *resultobj; | |
1343 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1344 | wxVisualAttributes result; | |
1345 | PyObject * obj0 = 0 ; | |
1346 | char *kwnames[] = { | |
1347 | (char *) "variant", NULL | |
1348 | }; | |
1349 | ||
1350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1351 | if (obj0) { | |
1352 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1353 | if (PyErr_Occurred()) SWIG_fail; | |
1354 | } | |
1355 | { | |
0439c23b | 1356 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
1357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1358 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1359 | ||
1360 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1361 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
1362 | } |
1363 | { | |
1364 | wxVisualAttributes * resultptr; | |
1365 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1366 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1367 | } | |
1368 | return resultobj; | |
1369 | fail: | |
1370 | return NULL; | |
1371 | } | |
1372 | ||
1373 | ||
d55e5bfc RD |
1374 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { |
1375 | PyObject *obj; | |
1376 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1377 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1378 | Py_INCREF(obj); | |
1379 | return Py_BuildValue((char *)""); | |
1380 | } | |
1381 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1382 | PyObject *resultobj; | |
1383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
1384 | int arg2 = (int) -1 ; |
1385 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
1386 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
1387 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1388 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1389 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1390 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1391 | long arg6 = (long) wxBU_AUTODRAW ; | |
1392 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1393 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1394 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1395 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1396 | wxBitmapButton *result; | |
1397 | wxPoint temp4 ; | |
1398 | wxSize temp5 ; | |
1399 | bool temp8 = False ; | |
1400 | PyObject * obj0 = 0 ; | |
1401 | PyObject * obj1 = 0 ; | |
1402 | PyObject * obj2 = 0 ; | |
1403 | PyObject * obj3 = 0 ; | |
1404 | PyObject * obj4 = 0 ; | |
1405 | PyObject * obj5 = 0 ; | |
1406 | PyObject * obj6 = 0 ; | |
1407 | PyObject * obj7 = 0 ; | |
1408 | char *kwnames[] = { | |
1409 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1410 | }; | |
1411 | ||
bfddbb17 | 1412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
1413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
1415 | if (obj1) { |
1416 | arg2 = (int) SWIG_AsInt(obj1); | |
1417 | if (PyErr_Occurred()) SWIG_fail; | |
1418 | } | |
1419 | if (obj2) { | |
1420 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1421 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 1422 | SWIG_fail; |
bfddbb17 RD |
1423 | if (arg3 == NULL) { |
1424 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1425 | SWIG_fail; | |
1426 | } | |
d55e5bfc RD |
1427 | } |
1428 | if (obj3) { | |
1429 | { | |
1430 | arg4 = &temp4; | |
1431 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1432 | } | |
1433 | } | |
1434 | if (obj4) { | |
1435 | { | |
1436 | arg5 = &temp5; | |
1437 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1438 | } | |
1439 | } | |
1440 | if (obj5) { | |
1441 | arg6 = (long) SWIG_AsLong(obj5); | |
1442 | if (PyErr_Occurred()) SWIG_fail; | |
1443 | } | |
1444 | if (obj6) { | |
1445 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1446 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1447 | SWIG_fail; | |
1448 | if (arg7 == NULL) { | |
1449 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1450 | SWIG_fail; | |
1451 | } | |
1452 | } | |
1453 | if (obj7) { | |
1454 | { | |
1455 | arg8 = wxString_in_helper(obj7); | |
1456 | if (arg8 == NULL) SWIG_fail; | |
1457 | temp8 = True; | |
1458 | } | |
1459 | } | |
1460 | { | |
0439c23b | 1461 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1463 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1464 | ||
1465 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1466 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1467 | } |
1468 | { | |
412d302d | 1469 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
1470 | } |
1471 | { | |
1472 | if (temp8) | |
1473 | delete arg8; | |
1474 | } | |
1475 | return resultobj; | |
1476 | fail: | |
1477 | { | |
1478 | if (temp8) | |
1479 | delete arg8; | |
1480 | } | |
1481 | return NULL; | |
1482 | } | |
1483 | ||
1484 | ||
1485 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1486 | PyObject *resultobj; | |
1487 | wxBitmapButton *result; | |
1488 | char *kwnames[] = { | |
1489 | NULL | |
1490 | }; | |
1491 | ||
1492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1493 | { | |
0439c23b | 1494 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1496 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1497 | ||
1498 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1499 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1500 | } |
1501 | { | |
412d302d | 1502 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
1503 | } |
1504 | return resultobj; | |
1505 | fail: | |
1506 | return NULL; | |
1507 | } | |
1508 | ||
1509 | ||
1510 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1511 | PyObject *resultobj; | |
1512 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1513 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
1514 | int arg3 = (int) -1 ; |
1515 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
1516 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
1517 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1518 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1519 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1520 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1521 | long arg7 = (long) wxBU_AUTODRAW ; | |
1522 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1523 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1524 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1525 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1526 | bool result; | |
1527 | wxPoint temp5 ; | |
1528 | wxSize temp6 ; | |
1529 | bool temp9 = False ; | |
1530 | PyObject * obj0 = 0 ; | |
1531 | PyObject * obj1 = 0 ; | |
1532 | PyObject * obj2 = 0 ; | |
1533 | PyObject * obj3 = 0 ; | |
1534 | PyObject * obj4 = 0 ; | |
1535 | PyObject * obj5 = 0 ; | |
1536 | PyObject * obj6 = 0 ; | |
1537 | PyObject * obj7 = 0 ; | |
1538 | PyObject * obj8 = 0 ; | |
1539 | char *kwnames[] = { | |
1540 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1541 | }; | |
1542 | ||
bfddbb17 | 1543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
1544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1546 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
1548 | if (obj2) { |
1549 | arg3 = (int) SWIG_AsInt(obj2); | |
1550 | if (PyErr_Occurred()) SWIG_fail; | |
1551 | } | |
1552 | if (obj3) { | |
1553 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1554 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 1555 | SWIG_fail; |
bfddbb17 RD |
1556 | if (arg4 == NULL) { |
1557 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1558 | SWIG_fail; | |
1559 | } | |
d55e5bfc RD |
1560 | } |
1561 | if (obj4) { | |
1562 | { | |
1563 | arg5 = &temp5; | |
1564 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1565 | } | |
1566 | } | |
1567 | if (obj5) { | |
1568 | { | |
1569 | arg6 = &temp6; | |
1570 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1571 | } | |
1572 | } | |
1573 | if (obj6) { | |
1574 | arg7 = (long) SWIG_AsLong(obj6); | |
1575 | if (PyErr_Occurred()) SWIG_fail; | |
1576 | } | |
1577 | if (obj7) { | |
1578 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1579 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1580 | SWIG_fail; | |
1581 | if (arg8 == NULL) { | |
1582 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1583 | SWIG_fail; | |
1584 | } | |
1585 | } | |
1586 | if (obj8) { | |
1587 | { | |
1588 | arg9 = wxString_in_helper(obj8); | |
1589 | if (arg9 == NULL) SWIG_fail; | |
1590 | temp9 = True; | |
1591 | } | |
1592 | } | |
1593 | { | |
1594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1595 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1596 | ||
1597 | wxPyEndAllowThreads(__tstate); | |
1598 | if (PyErr_Occurred()) SWIG_fail; | |
1599 | } | |
1600 | { | |
1601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1602 | } | |
1603 | { | |
1604 | if (temp9) | |
1605 | delete arg9; | |
1606 | } | |
1607 | return resultobj; | |
1608 | fail: | |
1609 | { | |
1610 | if (temp9) | |
1611 | delete arg9; | |
1612 | } | |
1613 | return NULL; | |
1614 | } | |
1615 | ||
1616 | ||
1617 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1618 | PyObject *resultobj; | |
1619 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1620 | wxBitmap result; | |
1621 | PyObject * obj0 = 0 ; | |
1622 | char *kwnames[] = { | |
1623 | (char *) "self", NULL | |
1624 | }; | |
1625 | ||
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1629 | { | |
1630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1631 | result = (arg1)->GetBitmapLabel(); | |
1632 | ||
1633 | wxPyEndAllowThreads(__tstate); | |
1634 | if (PyErr_Occurred()) SWIG_fail; | |
1635 | } | |
1636 | { | |
1637 | wxBitmap * resultptr; | |
1638 | resultptr = new wxBitmap((wxBitmap &) result); | |
1639 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1640 | } | |
1641 | return resultobj; | |
1642 | fail: | |
1643 | return NULL; | |
1644 | } | |
1645 | ||
1646 | ||
1647 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1648 | PyObject *resultobj; | |
1649 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1650 | wxBitmap result; | |
1651 | PyObject * obj0 = 0 ; | |
1652 | char *kwnames[] = { | |
1653 | (char *) "self", NULL | |
1654 | }; | |
1655 | ||
1656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1659 | { | |
1660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1661 | result = (arg1)->GetBitmapDisabled(); | |
1662 | ||
1663 | wxPyEndAllowThreads(__tstate); | |
1664 | if (PyErr_Occurred()) SWIG_fail; | |
1665 | } | |
1666 | { | |
1667 | wxBitmap * resultptr; | |
1668 | resultptr = new wxBitmap((wxBitmap &) result); | |
1669 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1670 | } | |
1671 | return resultobj; | |
1672 | fail: | |
1673 | return NULL; | |
1674 | } | |
1675 | ||
1676 | ||
1677 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1678 | PyObject *resultobj; | |
1679 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1680 | wxBitmap result; | |
1681 | PyObject * obj0 = 0 ; | |
1682 | char *kwnames[] = { | |
1683 | (char *) "self", NULL | |
1684 | }; | |
1685 | ||
1686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1689 | { | |
1690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1691 | result = (arg1)->GetBitmapFocus(); | |
1692 | ||
1693 | wxPyEndAllowThreads(__tstate); | |
1694 | if (PyErr_Occurred()) SWIG_fail; | |
1695 | } | |
1696 | { | |
1697 | wxBitmap * resultptr; | |
1698 | resultptr = new wxBitmap((wxBitmap &) result); | |
1699 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1700 | } | |
1701 | return resultobj; | |
1702 | fail: | |
1703 | return NULL; | |
1704 | } | |
1705 | ||
1706 | ||
1707 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1708 | PyObject *resultobj; | |
1709 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1710 | wxBitmap result; | |
1711 | PyObject * obj0 = 0 ; | |
1712 | char *kwnames[] = { | |
1713 | (char *) "self", NULL | |
1714 | }; | |
1715 | ||
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1719 | { | |
1720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1721 | result = (arg1)->GetBitmapSelected(); | |
1722 | ||
1723 | wxPyEndAllowThreads(__tstate); | |
1724 | if (PyErr_Occurred()) SWIG_fail; | |
1725 | } | |
1726 | { | |
1727 | wxBitmap * resultptr; | |
1728 | resultptr = new wxBitmap((wxBitmap &) result); | |
1729 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1730 | } | |
1731 | return resultobj; | |
1732 | fail: | |
1733 | return NULL; | |
1734 | } | |
1735 | ||
1736 | ||
1737 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1738 | PyObject *resultobj; | |
1739 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1740 | wxBitmap *arg2 = 0 ; | |
1741 | PyObject * obj0 = 0 ; | |
1742 | PyObject * obj1 = 0 ; | |
1743 | char *kwnames[] = { | |
1744 | (char *) "self",(char *) "bitmap", NULL | |
1745 | }; | |
1746 | ||
1747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1751 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1752 | SWIG_fail; | |
1753 | if (arg2 == NULL) { | |
1754 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1755 | SWIG_fail; | |
1756 | } | |
1757 | { | |
1758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1759 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1760 | ||
1761 | wxPyEndAllowThreads(__tstate); | |
1762 | if (PyErr_Occurred()) SWIG_fail; | |
1763 | } | |
1764 | Py_INCREF(Py_None); resultobj = Py_None; | |
1765 | return resultobj; | |
1766 | fail: | |
1767 | return NULL; | |
1768 | } | |
1769 | ||
1770 | ||
1771 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1772 | PyObject *resultobj; | |
1773 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1774 | wxBitmap *arg2 = 0 ; | |
1775 | PyObject * obj0 = 0 ; | |
1776 | PyObject * obj1 = 0 ; | |
1777 | char *kwnames[] = { | |
1778 | (char *) "self",(char *) "bitmap", NULL | |
1779 | }; | |
1780 | ||
1781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1784 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1785 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1786 | SWIG_fail; | |
1787 | if (arg2 == NULL) { | |
1788 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1789 | SWIG_fail; | |
1790 | } | |
1791 | { | |
1792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1793 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1794 | ||
1795 | wxPyEndAllowThreads(__tstate); | |
1796 | if (PyErr_Occurred()) SWIG_fail; | |
1797 | } | |
1798 | Py_INCREF(Py_None); resultobj = Py_None; | |
1799 | return resultobj; | |
1800 | fail: | |
1801 | return NULL; | |
1802 | } | |
1803 | ||
1804 | ||
1805 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1806 | PyObject *resultobj; | |
1807 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1808 | wxBitmap *arg2 = 0 ; | |
1809 | PyObject * obj0 = 0 ; | |
1810 | PyObject * obj1 = 0 ; | |
1811 | char *kwnames[] = { | |
1812 | (char *) "self",(char *) "bitmap", NULL | |
1813 | }; | |
1814 | ||
1815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1818 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1819 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1820 | SWIG_fail; | |
1821 | if (arg2 == NULL) { | |
1822 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1823 | SWIG_fail; | |
1824 | } | |
1825 | { | |
1826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1827 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1828 | ||
1829 | wxPyEndAllowThreads(__tstate); | |
1830 | if (PyErr_Occurred()) SWIG_fail; | |
1831 | } | |
1832 | Py_INCREF(Py_None); resultobj = Py_None; | |
1833 | return resultobj; | |
1834 | fail: | |
1835 | return NULL; | |
1836 | } | |
1837 | ||
1838 | ||
1839 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1840 | PyObject *resultobj; | |
1841 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1842 | wxBitmap *arg2 = 0 ; | |
1843 | PyObject * obj0 = 0 ; | |
1844 | PyObject * obj1 = 0 ; | |
1845 | char *kwnames[] = { | |
1846 | (char *) "self",(char *) "bitmap", NULL | |
1847 | }; | |
1848 | ||
1849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1852 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1853 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1854 | SWIG_fail; | |
1855 | if (arg2 == NULL) { | |
1856 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1857 | SWIG_fail; | |
1858 | } | |
1859 | { | |
1860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1861 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1862 | ||
1863 | wxPyEndAllowThreads(__tstate); | |
1864 | if (PyErr_Occurred()) SWIG_fail; | |
1865 | } | |
1866 | Py_INCREF(Py_None); resultobj = Py_None; | |
1867 | return resultobj; | |
1868 | fail: | |
1869 | return NULL; | |
1870 | } | |
1871 | ||
1872 | ||
1873 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1874 | PyObject *resultobj; | |
1875 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1876 | int arg2 ; | |
1877 | int arg3 ; | |
1878 | PyObject * obj0 = 0 ; | |
1879 | PyObject * obj1 = 0 ; | |
1880 | PyObject * obj2 = 0 ; | |
1881 | char *kwnames[] = { | |
1882 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1883 | }; | |
1884 | ||
1885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1888 | arg2 = (int) SWIG_AsInt(obj1); | |
1889 | if (PyErr_Occurred()) SWIG_fail; | |
1890 | arg3 = (int) SWIG_AsInt(obj2); | |
1891 | if (PyErr_Occurred()) SWIG_fail; | |
1892 | { | |
1893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1894 | (arg1)->SetMargins(arg2,arg3); | |
1895 | ||
1896 | wxPyEndAllowThreads(__tstate); | |
1897 | if (PyErr_Occurred()) SWIG_fail; | |
1898 | } | |
1899 | Py_INCREF(Py_None); resultobj = Py_None; | |
1900 | return resultobj; | |
1901 | fail: | |
1902 | return NULL; | |
1903 | } | |
1904 | ||
1905 | ||
1906 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1907 | PyObject *resultobj; | |
1908 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1909 | int result; | |
1910 | PyObject * obj0 = 0 ; | |
1911 | char *kwnames[] = { | |
1912 | (char *) "self", NULL | |
1913 | }; | |
1914 | ||
1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1918 | { | |
1919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1920 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1921 | ||
1922 | wxPyEndAllowThreads(__tstate); | |
1923 | if (PyErr_Occurred()) SWIG_fail; | |
1924 | } | |
1925 | resultobj = SWIG_FromInt((int)result); | |
1926 | return resultobj; | |
1927 | fail: | |
1928 | return NULL; | |
1929 | } | |
1930 | ||
1931 | ||
1932 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1933 | PyObject *resultobj; | |
1934 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1935 | int result; | |
1936 | PyObject * obj0 = 0 ; | |
1937 | char *kwnames[] = { | |
1938 | (char *) "self", NULL | |
1939 | }; | |
1940 | ||
1941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1944 | { | |
1945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1946 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1947 | ||
1948 | wxPyEndAllowThreads(__tstate); | |
1949 | if (PyErr_Occurred()) SWIG_fail; | |
1950 | } | |
1951 | resultobj = SWIG_FromInt((int)result); | |
1952 | return resultobj; | |
1953 | fail: | |
1954 | return NULL; | |
1955 | } | |
1956 | ||
1957 | ||
1958 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1959 | PyObject *obj; | |
1960 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1961 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1962 | Py_INCREF(obj); | |
1963 | return Py_BuildValue((char *)""); | |
1964 | } | |
1965 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { | |
1966 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1967 | return 1; | |
1968 | } | |
1969 | ||
1970 | ||
1971 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1972 | PyObject *pyobj; | |
1973 | ||
1974 | { | |
1975 | #if wxUSE_UNICODE | |
1976 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1977 | #else | |
1978 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1979 | #endif | |
1980 | } | |
1981 | return pyobj; | |
1982 | } | |
1983 | ||
1984 | ||
1985 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1986 | PyObject *resultobj; | |
1987 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
1988 | int arg2 = (int) -1 ; |
1989 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1990 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
1991 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1992 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1993 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1994 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1995 | long arg6 = (long) 0 ; | |
1996 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1997 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1998 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1999 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2000 | wxCheckBox *result; | |
2001 | bool temp3 = False ; | |
2002 | wxPoint temp4 ; | |
2003 | wxSize temp5 ; | |
2004 | bool temp8 = False ; | |
2005 | PyObject * obj0 = 0 ; | |
2006 | PyObject * obj1 = 0 ; | |
2007 | PyObject * obj2 = 0 ; | |
2008 | PyObject * obj3 = 0 ; | |
2009 | PyObject * obj4 = 0 ; | |
2010 | PyObject * obj5 = 0 ; | |
2011 | PyObject * obj6 = 0 ; | |
2012 | PyObject * obj7 = 0 ; | |
2013 | char *kwnames[] = { | |
2014 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2015 | }; | |
2016 | ||
bfddbb17 | 2017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
2018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
2020 | if (obj1) { |
2021 | arg2 = (int) SWIG_AsInt(obj1); | |
2022 | if (PyErr_Occurred()) SWIG_fail; | |
2023 | } | |
2024 | if (obj2) { | |
2025 | { | |
2026 | arg3 = wxString_in_helper(obj2); | |
2027 | if (arg3 == NULL) SWIG_fail; | |
2028 | temp3 = True; | |
2029 | } | |
d55e5bfc RD |
2030 | } |
2031 | if (obj3) { | |
2032 | { | |
2033 | arg4 = &temp4; | |
2034 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2035 | } | |
2036 | } | |
2037 | if (obj4) { | |
2038 | { | |
2039 | arg5 = &temp5; | |
2040 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2041 | } | |
2042 | } | |
2043 | if (obj5) { | |
2044 | arg6 = (long) SWIG_AsLong(obj5); | |
2045 | if (PyErr_Occurred()) SWIG_fail; | |
2046 | } | |
2047 | if (obj6) { | |
2048 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2049 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2050 | SWIG_fail; | |
2051 | if (arg7 == NULL) { | |
2052 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2053 | SWIG_fail; | |
2054 | } | |
2055 | } | |
2056 | if (obj7) { | |
2057 | { | |
2058 | arg8 = wxString_in_helper(obj7); | |
2059 | if (arg8 == NULL) SWIG_fail; | |
2060 | temp8 = True; | |
2061 | } | |
2062 | } | |
2063 | { | |
0439c23b | 2064 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2066 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2067 | ||
2068 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2069 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2070 | } |
2071 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2072 | { | |
2073 | if (temp3) | |
2074 | delete arg3; | |
2075 | } | |
2076 | { | |
2077 | if (temp8) | |
2078 | delete arg8; | |
2079 | } | |
2080 | return resultobj; | |
2081 | fail: | |
2082 | { | |
2083 | if (temp3) | |
2084 | delete arg3; | |
2085 | } | |
2086 | { | |
2087 | if (temp8) | |
2088 | delete arg8; | |
2089 | } | |
2090 | return NULL; | |
2091 | } | |
2092 | ||
2093 | ||
2094 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2095 | PyObject *resultobj; | |
2096 | wxCheckBox *result; | |
2097 | char *kwnames[] = { | |
2098 | NULL | |
2099 | }; | |
2100 | ||
2101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2102 | { | |
0439c23b | 2103 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2105 | result = (wxCheckBox *)new wxCheckBox(); | |
2106 | ||
2107 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2108 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2109 | } |
2110 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2111 | return resultobj; | |
2112 | fail: | |
2113 | return NULL; | |
2114 | } | |
2115 | ||
2116 | ||
2117 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2118 | PyObject *resultobj; | |
2119 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2120 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
2121 | int arg3 = (int) -1 ; |
2122 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2123 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
2124 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2125 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2126 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2127 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2128 | long arg7 = (long) 0 ; | |
2129 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2130 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2131 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2132 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2133 | bool result; | |
2134 | bool temp4 = False ; | |
2135 | wxPoint temp5 ; | |
2136 | wxSize temp6 ; | |
2137 | bool temp9 = False ; | |
2138 | PyObject * obj0 = 0 ; | |
2139 | PyObject * obj1 = 0 ; | |
2140 | PyObject * obj2 = 0 ; | |
2141 | PyObject * obj3 = 0 ; | |
2142 | PyObject * obj4 = 0 ; | |
2143 | PyObject * obj5 = 0 ; | |
2144 | PyObject * obj6 = 0 ; | |
2145 | PyObject * obj7 = 0 ; | |
2146 | PyObject * obj8 = 0 ; | |
2147 | char *kwnames[] = { | |
2148 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2149 | }; | |
2150 | ||
bfddbb17 | 2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
2152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2154 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
2156 | if (obj2) { |
2157 | arg3 = (int) SWIG_AsInt(obj2); | |
2158 | if (PyErr_Occurred()) SWIG_fail; | |
2159 | } | |
2160 | if (obj3) { | |
2161 | { | |
2162 | arg4 = wxString_in_helper(obj3); | |
2163 | if (arg4 == NULL) SWIG_fail; | |
2164 | temp4 = True; | |
2165 | } | |
d55e5bfc RD |
2166 | } |
2167 | if (obj4) { | |
2168 | { | |
2169 | arg5 = &temp5; | |
2170 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2171 | } | |
2172 | } | |
2173 | if (obj5) { | |
2174 | { | |
2175 | arg6 = &temp6; | |
2176 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2177 | } | |
2178 | } | |
2179 | if (obj6) { | |
2180 | arg7 = (long) SWIG_AsLong(obj6); | |
2181 | if (PyErr_Occurred()) SWIG_fail; | |
2182 | } | |
2183 | if (obj7) { | |
2184 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2185 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2186 | SWIG_fail; | |
2187 | if (arg8 == NULL) { | |
2188 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2189 | SWIG_fail; | |
2190 | } | |
2191 | } | |
2192 | if (obj8) { | |
2193 | { | |
2194 | arg9 = wxString_in_helper(obj8); | |
2195 | if (arg9 == NULL) SWIG_fail; | |
2196 | temp9 = True; | |
2197 | } | |
2198 | } | |
2199 | { | |
2200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2201 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2202 | ||
2203 | wxPyEndAllowThreads(__tstate); | |
2204 | if (PyErr_Occurred()) SWIG_fail; | |
2205 | } | |
2206 | { | |
2207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2208 | } | |
2209 | { | |
2210 | if (temp4) | |
2211 | delete arg4; | |
2212 | } | |
2213 | { | |
2214 | if (temp9) | |
2215 | delete arg9; | |
2216 | } | |
2217 | return resultobj; | |
2218 | fail: | |
2219 | { | |
2220 | if (temp4) | |
2221 | delete arg4; | |
2222 | } | |
2223 | { | |
2224 | if (temp9) | |
2225 | delete arg9; | |
2226 | } | |
2227 | return NULL; | |
2228 | } | |
2229 | ||
2230 | ||
2231 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2232 | PyObject *resultobj; | |
2233 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2234 | bool result; | |
2235 | PyObject * obj0 = 0 ; | |
2236 | char *kwnames[] = { | |
2237 | (char *) "self", NULL | |
2238 | }; | |
2239 | ||
2240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2243 | { | |
2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2245 | result = (bool)(arg1)->GetValue(); | |
2246 | ||
2247 | wxPyEndAllowThreads(__tstate); | |
2248 | if (PyErr_Occurred()) SWIG_fail; | |
2249 | } | |
2250 | { | |
2251 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2252 | } | |
2253 | return resultobj; | |
2254 | fail: | |
2255 | return NULL; | |
2256 | } | |
2257 | ||
2258 | ||
2259 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2260 | PyObject *resultobj; | |
2261 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2262 | bool result; | |
2263 | PyObject * obj0 = 0 ; | |
2264 | char *kwnames[] = { | |
2265 | (char *) "self", NULL | |
2266 | }; | |
2267 | ||
2268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2271 | { | |
2272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2273 | result = (bool)(arg1)->IsChecked(); | |
2274 | ||
2275 | wxPyEndAllowThreads(__tstate); | |
2276 | if (PyErr_Occurred()) SWIG_fail; | |
2277 | } | |
2278 | { | |
2279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2280 | } | |
2281 | return resultobj; | |
2282 | fail: | |
2283 | return NULL; | |
2284 | } | |
2285 | ||
2286 | ||
2287 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2288 | PyObject *resultobj; | |
2289 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2290 | bool arg2 ; | |
2291 | PyObject * obj0 = 0 ; | |
2292 | PyObject * obj1 = 0 ; | |
2293 | char *kwnames[] = { | |
2294 | (char *) "self",(char *) "state", NULL | |
2295 | }; | |
2296 | ||
2297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2300 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2301 | if (PyErr_Occurred()) SWIG_fail; | |
2302 | { | |
2303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2304 | (arg1)->SetValue(arg2); | |
2305 | ||
2306 | wxPyEndAllowThreads(__tstate); | |
2307 | if (PyErr_Occurred()) SWIG_fail; | |
2308 | } | |
2309 | Py_INCREF(Py_None); resultobj = Py_None; | |
2310 | return resultobj; | |
2311 | fail: | |
2312 | return NULL; | |
2313 | } | |
2314 | ||
2315 | ||
2316 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2317 | PyObject *resultobj; | |
2318 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2319 | int result; | |
2320 | PyObject * obj0 = 0 ; | |
2321 | char *kwnames[] = { | |
2322 | (char *) "self", NULL | |
2323 | }; | |
2324 | ||
2325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2328 | { | |
2329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2330 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2331 | ||
2332 | wxPyEndAllowThreads(__tstate); | |
2333 | if (PyErr_Occurred()) SWIG_fail; | |
2334 | } | |
2335 | resultobj = SWIG_FromInt((int)result); | |
2336 | return resultobj; | |
2337 | fail: | |
2338 | return NULL; | |
2339 | } | |
2340 | ||
2341 | ||
2342 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2343 | PyObject *resultobj; | |
2344 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2345 | int arg2 ; | |
2346 | PyObject * obj0 = 0 ; | |
2347 | PyObject * obj1 = 0 ; | |
2348 | char *kwnames[] = { | |
2349 | (char *) "self",(char *) "state", NULL | |
2350 | }; | |
2351 | ||
2352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; | |
2353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2355 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2356 | if (PyErr_Occurred()) SWIG_fail; | |
2357 | { | |
2358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2359 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2360 | ||
2361 | wxPyEndAllowThreads(__tstate); | |
2362 | if (PyErr_Occurred()) SWIG_fail; | |
2363 | } | |
2364 | Py_INCREF(Py_None); resultobj = Py_None; | |
2365 | return resultobj; | |
2366 | fail: | |
2367 | return NULL; | |
2368 | } | |
2369 | ||
2370 | ||
2371 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2372 | PyObject *resultobj; | |
2373 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2374 | bool result; | |
2375 | PyObject * obj0 = 0 ; | |
2376 | char *kwnames[] = { | |
2377 | (char *) "self", NULL | |
2378 | }; | |
2379 | ||
2380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2383 | { | |
2384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2385 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2386 | ||
2387 | wxPyEndAllowThreads(__tstate); | |
2388 | if (PyErr_Occurred()) SWIG_fail; | |
2389 | } | |
2390 | { | |
2391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2392 | } | |
2393 | return resultobj; | |
2394 | fail: | |
2395 | return NULL; | |
2396 | } | |
2397 | ||
2398 | ||
2399 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2400 | PyObject *resultobj; | |
2401 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2402 | bool result; | |
2403 | PyObject * obj0 = 0 ; | |
2404 | char *kwnames[] = { | |
2405 | (char *) "self", NULL | |
2406 | }; | |
2407 | ||
2408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2411 | { | |
2412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2413 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2414 | ||
2415 | wxPyEndAllowThreads(__tstate); | |
2416 | if (PyErr_Occurred()) SWIG_fail; | |
2417 | } | |
2418 | { | |
2419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2420 | } | |
2421 | return resultobj; | |
2422 | fail: | |
2423 | return NULL; | |
2424 | } | |
2425 | ||
2426 | ||
f20a2e1f RD |
2427 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2428 | PyObject *resultobj; | |
2429 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2430 | wxVisualAttributes result; | |
2431 | PyObject * obj0 = 0 ; | |
2432 | char *kwnames[] = { | |
2433 | (char *) "variant", NULL | |
2434 | }; | |
2435 | ||
2436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2437 | if (obj0) { | |
2438 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2439 | if (PyErr_Occurred()) SWIG_fail; | |
2440 | } | |
2441 | { | |
0439c23b | 2442 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2444 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2445 | ||
2446 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2447 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2448 | } |
2449 | { | |
2450 | wxVisualAttributes * resultptr; | |
2451 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2453 | } | |
2454 | return resultobj; | |
2455 | fail: | |
2456 | return NULL; | |
2457 | } | |
2458 | ||
2459 | ||
d55e5bfc RD |
2460 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { |
2461 | PyObject *obj; | |
2462 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2463 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2464 | Py_INCREF(obj); | |
2465 | return Py_BuildValue((char *)""); | |
2466 | } | |
2467 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { | |
2468 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2469 | return 1; | |
2470 | } | |
2471 | ||
2472 | ||
2473 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2474 | PyObject *pyobj; | |
2475 | ||
2476 | { | |
2477 | #if wxUSE_UNICODE | |
2478 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2479 | #else | |
2480 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2481 | #endif | |
2482 | } | |
2483 | return pyobj; | |
2484 | } | |
2485 | ||
2486 | ||
2487 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2488 | PyObject *resultobj; | |
2489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2490 | int arg2 = (int) -1 ; | |
2491 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
2492 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2493 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2494 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2495 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
2496 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2497 | long arg6 = (long) 0 ; | |
2498 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2499 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2500 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2501 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2502 | wxChoice *result; | |
2503 | wxPoint temp3 ; | |
2504 | wxSize temp4 ; | |
2505 | bool temp5 = False ; | |
2506 | bool temp8 = False ; | |
2507 | PyObject * obj0 = 0 ; | |
2508 | PyObject * obj1 = 0 ; | |
2509 | PyObject * obj2 = 0 ; | |
2510 | PyObject * obj3 = 0 ; | |
2511 | PyObject * obj4 = 0 ; | |
2512 | PyObject * obj5 = 0 ; | |
2513 | PyObject * obj6 = 0 ; | |
2514 | PyObject * obj7 = 0 ; | |
2515 | char *kwnames[] = { | |
2516 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2517 | }; | |
2518 | ||
2519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
2520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2522 | if (obj1) { | |
2523 | arg2 = (int) SWIG_AsInt(obj1); | |
2524 | if (PyErr_Occurred()) SWIG_fail; | |
2525 | } | |
2526 | if (obj2) { | |
2527 | { | |
2528 | arg3 = &temp3; | |
2529 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2530 | } | |
2531 | } | |
2532 | if (obj3) { | |
2533 | { | |
2534 | arg4 = &temp4; | |
2535 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2536 | } | |
2537 | } | |
2538 | if (obj4) { | |
2539 | { | |
2540 | if (! PySequence_Check(obj4)) { | |
2541 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2542 | SWIG_fail; | |
2543 | } | |
2544 | arg5 = new wxArrayString; | |
2545 | temp5 = True; | |
2546 | int i, len=PySequence_Length(obj4); | |
2547 | for (i=0; i<len; i++) { | |
2548 | PyObject* item = PySequence_GetItem(obj4, i); | |
2549 | #if wxUSE_UNICODE | |
2550 | PyObject* str = PyObject_Unicode(item); | |
2551 | #else | |
2552 | PyObject* str = PyObject_Str(item); | |
2553 | #endif | |
2554 | if (PyErr_Occurred()) SWIG_fail; | |
2555 | arg5->Add(Py2wxString(str)); | |
2556 | Py_DECREF(item); | |
2557 | Py_DECREF(str); | |
2558 | } | |
2559 | } | |
2560 | } | |
2561 | if (obj5) { | |
2562 | arg6 = (long) SWIG_AsLong(obj5); | |
2563 | if (PyErr_Occurred()) SWIG_fail; | |
2564 | } | |
2565 | if (obj6) { | |
2566 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2567 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2568 | SWIG_fail; | |
2569 | if (arg7 == NULL) { | |
2570 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2571 | SWIG_fail; | |
2572 | } | |
2573 | } | |
2574 | if (obj7) { | |
2575 | { | |
2576 | arg8 = wxString_in_helper(obj7); | |
2577 | if (arg8 == NULL) SWIG_fail; | |
2578 | temp8 = True; | |
2579 | } | |
2580 | } | |
2581 | { | |
0439c23b | 2582 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2584 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2585 | ||
2586 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2587 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2588 | } |
2589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2590 | { | |
2591 | if (temp5) delete arg5; | |
2592 | } | |
2593 | { | |
2594 | if (temp8) | |
2595 | delete arg8; | |
2596 | } | |
2597 | return resultobj; | |
2598 | fail: | |
2599 | { | |
2600 | if (temp5) delete arg5; | |
2601 | } | |
2602 | { | |
2603 | if (temp8) | |
2604 | delete arg8; | |
2605 | } | |
2606 | return NULL; | |
2607 | } | |
2608 | ||
2609 | ||
2610 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2611 | PyObject *resultobj; | |
2612 | wxChoice *result; | |
2613 | char *kwnames[] = { | |
2614 | NULL | |
2615 | }; | |
2616 | ||
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2618 | { | |
0439c23b | 2619 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2621 | result = (wxChoice *)new wxChoice(); | |
2622 | ||
2623 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2624 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2625 | } |
2626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2627 | return resultobj; | |
2628 | fail: | |
2629 | return NULL; | |
2630 | } | |
2631 | ||
2632 | ||
2633 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2634 | PyObject *resultobj; | |
2635 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2636 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2637 | int arg3 = (int) -1 ; | |
2638 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2639 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2640 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2641 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2642 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2643 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2644 | long arg7 = (long) 0 ; | |
2645 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2646 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2647 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2648 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2649 | bool result; | |
2650 | wxPoint temp4 ; | |
2651 | wxSize temp5 ; | |
2652 | bool temp6 = False ; | |
2653 | bool temp9 = False ; | |
2654 | PyObject * obj0 = 0 ; | |
2655 | PyObject * obj1 = 0 ; | |
2656 | PyObject * obj2 = 0 ; | |
2657 | PyObject * obj3 = 0 ; | |
2658 | PyObject * obj4 = 0 ; | |
2659 | PyObject * obj5 = 0 ; | |
2660 | PyObject * obj6 = 0 ; | |
2661 | PyObject * obj7 = 0 ; | |
2662 | PyObject * obj8 = 0 ; | |
2663 | char *kwnames[] = { | |
2664 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2665 | }; | |
2666 | ||
2667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2670 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2672 | if (obj2) { | |
2673 | arg3 = (int) SWIG_AsInt(obj2); | |
2674 | if (PyErr_Occurred()) SWIG_fail; | |
2675 | } | |
2676 | if (obj3) { | |
2677 | { | |
2678 | arg4 = &temp4; | |
2679 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2680 | } | |
2681 | } | |
2682 | if (obj4) { | |
2683 | { | |
2684 | arg5 = &temp5; | |
2685 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2686 | } | |
2687 | } | |
2688 | if (obj5) { | |
2689 | { | |
2690 | if (! PySequence_Check(obj5)) { | |
2691 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2692 | SWIG_fail; | |
2693 | } | |
2694 | arg6 = new wxArrayString; | |
2695 | temp6 = True; | |
2696 | int i, len=PySequence_Length(obj5); | |
2697 | for (i=0; i<len; i++) { | |
2698 | PyObject* item = PySequence_GetItem(obj5, i); | |
2699 | #if wxUSE_UNICODE | |
2700 | PyObject* str = PyObject_Unicode(item); | |
2701 | #else | |
2702 | PyObject* str = PyObject_Str(item); | |
2703 | #endif | |
2704 | if (PyErr_Occurred()) SWIG_fail; | |
2705 | arg6->Add(Py2wxString(str)); | |
2706 | Py_DECREF(item); | |
2707 | Py_DECREF(str); | |
2708 | } | |
2709 | } | |
2710 | } | |
2711 | if (obj6) { | |
2712 | arg7 = (long) SWIG_AsLong(obj6); | |
2713 | if (PyErr_Occurred()) SWIG_fail; | |
2714 | } | |
2715 | if (obj7) { | |
2716 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2717 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2718 | SWIG_fail; | |
2719 | if (arg8 == NULL) { | |
2720 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2721 | SWIG_fail; | |
2722 | } | |
2723 | } | |
2724 | if (obj8) { | |
2725 | { | |
2726 | arg9 = wxString_in_helper(obj8); | |
2727 | if (arg9 == NULL) SWIG_fail; | |
2728 | temp9 = True; | |
2729 | } | |
2730 | } | |
2731 | { | |
2732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2733 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2734 | ||
2735 | wxPyEndAllowThreads(__tstate); | |
2736 | if (PyErr_Occurred()) SWIG_fail; | |
2737 | } | |
2738 | { | |
2739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2740 | } | |
2741 | { | |
2742 | if (temp6) delete arg6; | |
2743 | } | |
2744 | { | |
2745 | if (temp9) | |
2746 | delete arg9; | |
2747 | } | |
2748 | return resultobj; | |
2749 | fail: | |
2750 | { | |
2751 | if (temp6) delete arg6; | |
2752 | } | |
2753 | { | |
2754 | if (temp9) | |
2755 | delete arg9; | |
2756 | } | |
2757 | return NULL; | |
2758 | } | |
2759 | ||
2760 | ||
2761 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2762 | PyObject *resultobj; | |
2763 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2764 | int arg2 ; | |
2765 | PyObject * obj0 = 0 ; | |
2766 | PyObject * obj1 = 0 ; | |
2767 | char *kwnames[] = { | |
2768 | (char *) "self",(char *) "n", NULL | |
2769 | }; | |
2770 | ||
2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
2772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2774 | arg2 = (int const) SWIG_AsInt(obj1); | |
2775 | if (PyErr_Occurred()) SWIG_fail; | |
2776 | { | |
2777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2778 | (arg1)->SetSelection(arg2); | |
2779 | ||
2780 | wxPyEndAllowThreads(__tstate); | |
2781 | if (PyErr_Occurred()) SWIG_fail; | |
2782 | } | |
2783 | Py_INCREF(Py_None); resultobj = Py_None; | |
2784 | return resultobj; | |
2785 | fail: | |
2786 | return NULL; | |
2787 | } | |
2788 | ||
2789 | ||
2790 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2791 | PyObject *resultobj; | |
2792 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2793 | wxString *arg2 = 0 ; | |
121b9a67 | 2794 | bool result; |
d55e5bfc RD |
2795 | bool temp2 = False ; |
2796 | PyObject * obj0 = 0 ; | |
2797 | PyObject * obj1 = 0 ; | |
2798 | char *kwnames[] = { | |
2799 | (char *) "self",(char *) "string", NULL | |
2800 | }; | |
2801 | ||
2802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2805 | { | |
2806 | arg2 = wxString_in_helper(obj1); | |
2807 | if (arg2 == NULL) SWIG_fail; | |
2808 | temp2 = True; | |
2809 | } | |
2810 | { | |
2811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2812 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d55e5bfc RD |
2813 | |
2814 | wxPyEndAllowThreads(__tstate); | |
2815 | if (PyErr_Occurred()) SWIG_fail; | |
2816 | } | |
121b9a67 RD |
2817 | { |
2818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2819 | } | |
d55e5bfc RD |
2820 | { |
2821 | if (temp2) | |
2822 | delete arg2; | |
2823 | } | |
2824 | return resultobj; | |
2825 | fail: | |
2826 | { | |
2827 | if (temp2) | |
2828 | delete arg2; | |
2829 | } | |
2830 | return NULL; | |
2831 | } | |
2832 | ||
2833 | ||
2834 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2835 | PyObject *resultobj; | |
2836 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2837 | int arg2 ; | |
2838 | wxString *arg3 = 0 ; | |
2839 | bool temp3 = False ; | |
2840 | PyObject * obj0 = 0 ; | |
2841 | PyObject * obj1 = 0 ; | |
2842 | PyObject * obj2 = 0 ; | |
2843 | char *kwnames[] = { | |
2844 | (char *) "self",(char *) "n",(char *) "string", NULL | |
2845 | }; | |
2846 | ||
2847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2850 | arg2 = (int) SWIG_AsInt(obj1); | |
2851 | if (PyErr_Occurred()) SWIG_fail; | |
2852 | { | |
2853 | arg3 = wxString_in_helper(obj2); | |
2854 | if (arg3 == NULL) SWIG_fail; | |
2855 | temp3 = True; | |
2856 | } | |
2857 | { | |
2858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2859 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2860 | ||
2861 | wxPyEndAllowThreads(__tstate); | |
2862 | if (PyErr_Occurred()) SWIG_fail; | |
2863 | } | |
2864 | Py_INCREF(Py_None); resultobj = Py_None; | |
2865 | { | |
2866 | if (temp3) | |
2867 | delete arg3; | |
2868 | } | |
2869 | return resultobj; | |
2870 | fail: | |
2871 | { | |
2872 | if (temp3) | |
2873 | delete arg3; | |
2874 | } | |
2875 | return NULL; | |
2876 | } | |
2877 | ||
2878 | ||
f20a2e1f RD |
2879 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2880 | PyObject *resultobj; | |
2881 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2882 | wxVisualAttributes result; | |
2883 | PyObject * obj0 = 0 ; | |
2884 | char *kwnames[] = { | |
2885 | (char *) "variant", NULL | |
2886 | }; | |
2887 | ||
2888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2889 | if (obj0) { | |
2890 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2891 | if (PyErr_Occurred()) SWIG_fail; | |
2892 | } | |
2893 | { | |
0439c23b | 2894 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2896 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2897 | ||
2898 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2899 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2900 | } |
2901 | { | |
2902 | wxVisualAttributes * resultptr; | |
2903 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2904 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2905 | } | |
2906 | return resultobj; | |
2907 | fail: | |
2908 | return NULL; | |
2909 | } | |
2910 | ||
2911 | ||
d55e5bfc RD |
2912 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { |
2913 | PyObject *obj; | |
2914 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2915 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2916 | Py_INCREF(obj); | |
2917 | return Py_BuildValue((char *)""); | |
2918 | } | |
2919 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { | |
2920 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2921 | return 1; | |
2922 | } | |
2923 | ||
2924 | ||
2925 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2926 | PyObject *pyobj; | |
2927 | ||
2928 | { | |
2929 | #if wxUSE_UNICODE | |
2930 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2931 | #else | |
2932 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2933 | #endif | |
2934 | } | |
2935 | return pyobj; | |
2936 | } | |
2937 | ||
2938 | ||
2939 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2940 | PyObject *resultobj; | |
2941 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2942 | int arg2 = (int) -1 ; | |
2943 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2944 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2945 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2946 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2947 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2948 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2949 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2950 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2951 | long arg7 = (long) 0 ; | |
2952 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2953 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2954 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2955 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2956 | wxComboBox *result; | |
2957 | bool temp3 = False ; | |
2958 | wxPoint temp4 ; | |
2959 | wxSize temp5 ; | |
2960 | bool temp6 = False ; | |
2961 | bool temp9 = False ; | |
2962 | PyObject * obj0 = 0 ; | |
2963 | PyObject * obj1 = 0 ; | |
2964 | PyObject * obj2 = 0 ; | |
2965 | PyObject * obj3 = 0 ; | |
2966 | PyObject * obj4 = 0 ; | |
2967 | PyObject * obj5 = 0 ; | |
2968 | PyObject * obj6 = 0 ; | |
2969 | PyObject * obj7 = 0 ; | |
2970 | PyObject * obj8 = 0 ; | |
2971 | char *kwnames[] = { | |
2972 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2973 | }; | |
2974 | ||
2975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2978 | if (obj1) { | |
2979 | arg2 = (int) SWIG_AsInt(obj1); | |
2980 | if (PyErr_Occurred()) SWIG_fail; | |
2981 | } | |
2982 | if (obj2) { | |
2983 | { | |
2984 | arg3 = wxString_in_helper(obj2); | |
2985 | if (arg3 == NULL) SWIG_fail; | |
2986 | temp3 = True; | |
2987 | } | |
2988 | } | |
2989 | if (obj3) { | |
2990 | { | |
2991 | arg4 = &temp4; | |
2992 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2993 | } | |
2994 | } | |
2995 | if (obj4) { | |
2996 | { | |
2997 | arg5 = &temp5; | |
2998 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2999 | } | |
3000 | } | |
3001 | if (obj5) { | |
3002 | { | |
3003 | if (! PySequence_Check(obj5)) { | |
3004 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3005 | SWIG_fail; | |
3006 | } | |
3007 | arg6 = new wxArrayString; | |
3008 | temp6 = True; | |
3009 | int i, len=PySequence_Length(obj5); | |
3010 | for (i=0; i<len; i++) { | |
3011 | PyObject* item = PySequence_GetItem(obj5, i); | |
3012 | #if wxUSE_UNICODE | |
3013 | PyObject* str = PyObject_Unicode(item); | |
3014 | #else | |
3015 | PyObject* str = PyObject_Str(item); | |
3016 | #endif | |
3017 | if (PyErr_Occurred()) SWIG_fail; | |
3018 | arg6->Add(Py2wxString(str)); | |
3019 | Py_DECREF(item); | |
3020 | Py_DECREF(str); | |
3021 | } | |
3022 | } | |
3023 | } | |
3024 | if (obj6) { | |
3025 | arg7 = (long) SWIG_AsLong(obj6); | |
3026 | if (PyErr_Occurred()) SWIG_fail; | |
3027 | } | |
3028 | if (obj7) { | |
3029 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
3030 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3031 | SWIG_fail; | |
3032 | if (arg8 == NULL) { | |
3033 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3034 | SWIG_fail; | |
3035 | } | |
3036 | } | |
3037 | if (obj8) { | |
3038 | { | |
3039 | arg9 = wxString_in_helper(obj8); | |
3040 | if (arg9 == NULL) SWIG_fail; | |
3041 | temp9 = True; | |
3042 | } | |
3043 | } | |
3044 | { | |
0439c23b | 3045 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3047 | 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); | |
3048 | ||
3049 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3050 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3051 | } |
3052 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
3053 | { | |
3054 | if (temp3) | |
3055 | delete arg3; | |
3056 | } | |
3057 | { | |
3058 | if (temp6) delete arg6; | |
3059 | } | |
3060 | { | |
3061 | if (temp9) | |
3062 | delete arg9; | |
3063 | } | |
3064 | return resultobj; | |
3065 | fail: | |
3066 | { | |
3067 | if (temp3) | |
3068 | delete arg3; | |
3069 | } | |
3070 | { | |
3071 | if (temp6) delete arg6; | |
3072 | } | |
3073 | { | |
3074 | if (temp9) | |
3075 | delete arg9; | |
3076 | } | |
3077 | return NULL; | |
3078 | } | |
3079 | ||
3080 | ||
3081 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3082 | PyObject *resultobj; | |
3083 | wxComboBox *result; | |
3084 | char *kwnames[] = { | |
3085 | NULL | |
3086 | }; | |
3087 | ||
3088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3089 | { | |
0439c23b | 3090 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3092 | result = (wxComboBox *)new wxComboBox(); | |
3093 | ||
3094 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3095 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3096 | } |
3097 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
3098 | return resultobj; | |
3099 | fail: | |
3100 | return NULL; | |
3101 | } | |
3102 | ||
3103 | ||
3104 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3105 | PyObject *resultobj; | |
3106 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3107 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3108 | int arg3 = (int) -1 ; | |
3109 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3110 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3111 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3112 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3113 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3114 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3115 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
3116 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3117 | long arg8 = (long) 0 ; | |
3118 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3119 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
3120 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
3121 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
3122 | bool result; | |
3123 | bool temp4 = False ; | |
3124 | wxPoint temp5 ; | |
3125 | wxSize temp6 ; | |
3126 | bool temp7 = False ; | |
3127 | bool temp10 = False ; | |
3128 | PyObject * obj0 = 0 ; | |
3129 | PyObject * obj1 = 0 ; | |
3130 | PyObject * obj2 = 0 ; | |
3131 | PyObject * obj3 = 0 ; | |
3132 | PyObject * obj4 = 0 ; | |
3133 | PyObject * obj5 = 0 ; | |
3134 | PyObject * obj6 = 0 ; | |
3135 | PyObject * obj7 = 0 ; | |
3136 | PyObject * obj8 = 0 ; | |
3137 | PyObject * obj9 = 0 ; | |
3138 | char *kwnames[] = { | |
3139 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3140 | }; | |
3141 | ||
3142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
3143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3145 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3147 | if (obj2) { | |
3148 | arg3 = (int) SWIG_AsInt(obj2); | |
3149 | if (PyErr_Occurred()) SWIG_fail; | |
3150 | } | |
3151 | if (obj3) { | |
3152 | { | |
3153 | arg4 = wxString_in_helper(obj3); | |
3154 | if (arg4 == NULL) SWIG_fail; | |
3155 | temp4 = True; | |
3156 | } | |
3157 | } | |
3158 | if (obj4) { | |
3159 | { | |
3160 | arg5 = &temp5; | |
3161 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3162 | } | |
3163 | } | |
3164 | if (obj5) { | |
3165 | { | |
3166 | arg6 = &temp6; | |
3167 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3168 | } | |
3169 | } | |
3170 | if (obj6) { | |
3171 | { | |
3172 | if (! PySequence_Check(obj6)) { | |
3173 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3174 | SWIG_fail; | |
3175 | } | |
3176 | arg7 = new wxArrayString; | |
3177 | temp7 = True; | |
3178 | int i, len=PySequence_Length(obj6); | |
3179 | for (i=0; i<len; i++) { | |
3180 | PyObject* item = PySequence_GetItem(obj6, i); | |
3181 | #if wxUSE_UNICODE | |
3182 | PyObject* str = PyObject_Unicode(item); | |
3183 | #else | |
3184 | PyObject* str = PyObject_Str(item); | |
3185 | #endif | |
3186 | if (PyErr_Occurred()) SWIG_fail; | |
3187 | arg7->Add(Py2wxString(str)); | |
3188 | Py_DECREF(item); | |
3189 | Py_DECREF(str); | |
3190 | } | |
3191 | } | |
3192 | } | |
3193 | if (obj7) { | |
3194 | arg8 = (long) SWIG_AsLong(obj7); | |
3195 | if (PyErr_Occurred()) SWIG_fail; | |
3196 | } | |
3197 | if (obj8) { | |
3198 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
3199 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3200 | SWIG_fail; | |
3201 | if (arg9 == NULL) { | |
3202 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3203 | SWIG_fail; | |
3204 | } | |
3205 | } | |
3206 | if (obj9) { | |
3207 | { | |
3208 | arg10 = wxString_in_helper(obj9); | |
3209 | if (arg10 == NULL) SWIG_fail; | |
3210 | temp10 = True; | |
3211 | } | |
3212 | } | |
3213 | { | |
3214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3215 | 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); | |
3216 | ||
3217 | wxPyEndAllowThreads(__tstate); | |
3218 | if (PyErr_Occurred()) SWIG_fail; | |
3219 | } | |
3220 | { | |
3221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3222 | } | |
3223 | { | |
3224 | if (temp4) | |
3225 | delete arg4; | |
3226 | } | |
3227 | { | |
3228 | if (temp7) delete arg7; | |
3229 | } | |
3230 | { | |
3231 | if (temp10) | |
3232 | delete arg10; | |
3233 | } | |
3234 | return resultobj; | |
3235 | fail: | |
3236 | { | |
3237 | if (temp4) | |
3238 | delete arg4; | |
3239 | } | |
3240 | { | |
3241 | if (temp7) delete arg7; | |
3242 | } | |
3243 | { | |
3244 | if (temp10) | |
3245 | delete arg10; | |
3246 | } | |
3247 | return NULL; | |
3248 | } | |
3249 | ||
3250 | ||
3251 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3252 | PyObject *resultobj; | |
3253 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3254 | wxString result; | |
3255 | PyObject * obj0 = 0 ; | |
3256 | char *kwnames[] = { | |
3257 | (char *) "self", NULL | |
3258 | }; | |
3259 | ||
3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
3261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3263 | { | |
3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3265 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3266 | ||
3267 | wxPyEndAllowThreads(__tstate); | |
3268 | if (PyErr_Occurred()) SWIG_fail; | |
3269 | } | |
3270 | { | |
3271 | #if wxUSE_UNICODE | |
3272 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3273 | #else | |
3274 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3275 | #endif | |
3276 | } | |
3277 | return resultobj; | |
3278 | fail: | |
3279 | return NULL; | |
3280 | } | |
3281 | ||
3282 | ||
3283 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3284 | PyObject *resultobj; | |
3285 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3286 | wxString *arg2 = 0 ; | |
3287 | bool temp2 = False ; | |
3288 | PyObject * obj0 = 0 ; | |
3289 | PyObject * obj1 = 0 ; | |
3290 | char *kwnames[] = { | |
3291 | (char *) "self",(char *) "value", NULL | |
3292 | }; | |
3293 | ||
3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3297 | { | |
3298 | arg2 = wxString_in_helper(obj1); | |
3299 | if (arg2 == NULL) SWIG_fail; | |
3300 | temp2 = True; | |
3301 | } | |
3302 | { | |
3303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3304 | (arg1)->SetValue((wxString const &)*arg2); | |
3305 | ||
3306 | wxPyEndAllowThreads(__tstate); | |
3307 | if (PyErr_Occurred()) SWIG_fail; | |
3308 | } | |
3309 | Py_INCREF(Py_None); resultobj = Py_None; | |
3310 | { | |
3311 | if (temp2) | |
3312 | delete arg2; | |
3313 | } | |
3314 | return resultobj; | |
3315 | fail: | |
3316 | { | |
3317 | if (temp2) | |
3318 | delete arg2; | |
3319 | } | |
3320 | return NULL; | |
3321 | } | |
3322 | ||
3323 | ||
3324 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3325 | PyObject *resultobj; | |
3326 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3327 | PyObject * obj0 = 0 ; | |
3328 | char *kwnames[] = { | |
3329 | (char *) "self", NULL | |
3330 | }; | |
3331 | ||
3332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
3333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3335 | { | |
3336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3337 | (arg1)->Copy(); | |
3338 | ||
3339 | wxPyEndAllowThreads(__tstate); | |
3340 | if (PyErr_Occurred()) SWIG_fail; | |
3341 | } | |
3342 | Py_INCREF(Py_None); resultobj = Py_None; | |
3343 | return resultobj; | |
3344 | fail: | |
3345 | return NULL; | |
3346 | } | |
3347 | ||
3348 | ||
3349 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3350 | PyObject *resultobj; | |
3351 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3352 | PyObject * obj0 = 0 ; | |
3353 | char *kwnames[] = { | |
3354 | (char *) "self", NULL | |
3355 | }; | |
3356 | ||
3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3360 | { | |
3361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3362 | (arg1)->Cut(); | |
3363 | ||
3364 | wxPyEndAllowThreads(__tstate); | |
3365 | if (PyErr_Occurred()) SWIG_fail; | |
3366 | } | |
3367 | Py_INCREF(Py_None); resultobj = Py_None; | |
3368 | return resultobj; | |
3369 | fail: | |
3370 | return NULL; | |
3371 | } | |
3372 | ||
3373 | ||
3374 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3375 | PyObject *resultobj; | |
3376 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3377 | PyObject * obj0 = 0 ; | |
3378 | char *kwnames[] = { | |
3379 | (char *) "self", NULL | |
3380 | }; | |
3381 | ||
3382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3385 | { | |
3386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3387 | (arg1)->Paste(); | |
3388 | ||
3389 | wxPyEndAllowThreads(__tstate); | |
3390 | if (PyErr_Occurred()) SWIG_fail; | |
3391 | } | |
3392 | Py_INCREF(Py_None); resultobj = Py_None; | |
3393 | return resultobj; | |
3394 | fail: | |
3395 | return NULL; | |
3396 | } | |
3397 | ||
3398 | ||
3399 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3400 | PyObject *resultobj; | |
3401 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3402 | long arg2 ; | |
3403 | PyObject * obj0 = 0 ; | |
3404 | PyObject * obj1 = 0 ; | |
3405 | char *kwnames[] = { | |
3406 | (char *) "self",(char *) "pos", NULL | |
3407 | }; | |
3408 | ||
3409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
3410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3412 | arg2 = (long) SWIG_AsLong(obj1); | |
3413 | if (PyErr_Occurred()) SWIG_fail; | |
3414 | { | |
3415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3416 | (arg1)->SetInsertionPoint(arg2); | |
3417 | ||
3418 | wxPyEndAllowThreads(__tstate); | |
3419 | if (PyErr_Occurred()) SWIG_fail; | |
3420 | } | |
3421 | Py_INCREF(Py_None); resultobj = Py_None; | |
3422 | return resultobj; | |
3423 | fail: | |
3424 | return NULL; | |
3425 | } | |
3426 | ||
3427 | ||
3428 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3429 | PyObject *resultobj; | |
3430 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3431 | long result; | |
3432 | PyObject * obj0 = 0 ; | |
3433 | char *kwnames[] = { | |
3434 | (char *) "self", NULL | |
3435 | }; | |
3436 | ||
3437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3440 | { | |
3441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3442 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3443 | ||
3444 | wxPyEndAllowThreads(__tstate); | |
3445 | if (PyErr_Occurred()) SWIG_fail; | |
3446 | } | |
3447 | resultobj = SWIG_FromLong((long)result); | |
3448 | return resultobj; | |
3449 | fail: | |
3450 | return NULL; | |
3451 | } | |
3452 | ||
3453 | ||
3454 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3455 | PyObject *resultobj; | |
3456 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3457 | long result; | |
3458 | PyObject * obj0 = 0 ; | |
3459 | char *kwnames[] = { | |
3460 | (char *) "self", NULL | |
3461 | }; | |
3462 | ||
3463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3466 | { | |
3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3468 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3469 | ||
3470 | wxPyEndAllowThreads(__tstate); | |
3471 | if (PyErr_Occurred()) SWIG_fail; | |
3472 | } | |
3473 | resultobj = SWIG_FromLong((long)result); | |
3474 | return resultobj; | |
3475 | fail: | |
3476 | return NULL; | |
3477 | } | |
3478 | ||
3479 | ||
3480 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3481 | PyObject *resultobj; | |
3482 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3483 | long arg2 ; | |
3484 | long arg3 ; | |
3485 | wxString *arg4 = 0 ; | |
3486 | bool temp4 = False ; | |
3487 | PyObject * obj0 = 0 ; | |
3488 | PyObject * obj1 = 0 ; | |
3489 | PyObject * obj2 = 0 ; | |
3490 | PyObject * obj3 = 0 ; | |
3491 | char *kwnames[] = { | |
3492 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3493 | }; | |
3494 | ||
3495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3498 | arg2 = (long) SWIG_AsLong(obj1); | |
3499 | if (PyErr_Occurred()) SWIG_fail; | |
3500 | arg3 = (long) SWIG_AsLong(obj2); | |
3501 | if (PyErr_Occurred()) SWIG_fail; | |
3502 | { | |
3503 | arg4 = wxString_in_helper(obj3); | |
3504 | if (arg4 == NULL) SWIG_fail; | |
3505 | temp4 = True; | |
3506 | } | |
3507 | { | |
3508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3509 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3510 | ||
3511 | wxPyEndAllowThreads(__tstate); | |
3512 | if (PyErr_Occurred()) SWIG_fail; | |
3513 | } | |
3514 | Py_INCREF(Py_None); resultobj = Py_None; | |
3515 | { | |
3516 | if (temp4) | |
3517 | delete arg4; | |
3518 | } | |
3519 | return resultobj; | |
3520 | fail: | |
3521 | { | |
3522 | if (temp4) | |
3523 | delete arg4; | |
3524 | } | |
3525 | return NULL; | |
3526 | } | |
3527 | ||
3528 | ||
3529 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3530 | PyObject *resultobj; | |
3531 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3532 | int arg2 ; | |
3533 | PyObject * obj0 = 0 ; | |
3534 | PyObject * obj1 = 0 ; | |
3535 | char *kwnames[] = { | |
3536 | (char *) "self",(char *) "n", NULL | |
3537 | }; | |
3538 | ||
3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
3540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3542 | arg2 = (int) SWIG_AsInt(obj1); | |
3543 | if (PyErr_Occurred()) SWIG_fail; | |
3544 | { | |
3545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3546 | (arg1)->SetSelection(arg2); | |
3547 | ||
3548 | wxPyEndAllowThreads(__tstate); | |
3549 | if (PyErr_Occurred()) SWIG_fail; | |
3550 | } | |
3551 | Py_INCREF(Py_None); resultobj = Py_None; | |
3552 | return resultobj; | |
3553 | fail: | |
3554 | return NULL; | |
3555 | } | |
3556 | ||
3557 | ||
3558 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3559 | PyObject *resultobj; | |
3560 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3561 | long arg2 ; | |
3562 | long arg3 ; | |
3563 | PyObject * obj0 = 0 ; | |
3564 | PyObject * obj1 = 0 ; | |
3565 | PyObject * obj2 = 0 ; | |
3566 | char *kwnames[] = { | |
3567 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3568 | }; | |
3569 | ||
3570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3573 | arg2 = (long) SWIG_AsLong(obj1); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
3575 | arg3 = (long) SWIG_AsLong(obj2); | |
3576 | if (PyErr_Occurred()) SWIG_fail; | |
3577 | { | |
3578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3579 | (arg1)->SetSelection(arg2,arg3); | |
3580 | ||
3581 | wxPyEndAllowThreads(__tstate); | |
3582 | if (PyErr_Occurred()) SWIG_fail; | |
3583 | } | |
3584 | Py_INCREF(Py_None); resultobj = Py_None; | |
3585 | return resultobj; | |
3586 | fail: | |
3587 | return NULL; | |
3588 | } | |
3589 | ||
3590 | ||
121b9a67 RD |
3591 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3592 | PyObject *resultobj; | |
3593 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3594 | wxString *arg2 = 0 ; | |
3595 | bool result; | |
3596 | bool temp2 = False ; | |
3597 | PyObject * obj0 = 0 ; | |
3598 | PyObject * obj1 = 0 ; | |
3599 | char *kwnames[] = { | |
3600 | (char *) "self",(char *) "string", NULL | |
3601 | }; | |
3602 | ||
3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3606 | { | |
3607 | arg2 = wxString_in_helper(obj1); | |
3608 | if (arg2 == NULL) SWIG_fail; | |
3609 | temp2 = True; | |
3610 | } | |
3611 | { | |
3612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3613 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3614 | ||
3615 | wxPyEndAllowThreads(__tstate); | |
3616 | if (PyErr_Occurred()) SWIG_fail; | |
3617 | } | |
3618 | { | |
3619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3620 | } | |
3621 | { | |
3622 | if (temp2) | |
3623 | delete arg2; | |
3624 | } | |
3625 | return resultobj; | |
3626 | fail: | |
3627 | { | |
3628 | if (temp2) | |
3629 | delete arg2; | |
3630 | } | |
3631 | return NULL; | |
3632 | } | |
3633 | ||
3634 | ||
3635 | static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3636 | PyObject *resultobj; | |
3637 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3638 | int arg2 ; | |
3639 | wxString *arg3 = 0 ; | |
3640 | bool temp3 = False ; | |
3641 | PyObject * obj0 = 0 ; | |
3642 | PyObject * obj1 = 0 ; | |
3643 | PyObject * obj2 = 0 ; | |
3644 | char *kwnames[] = { | |
3645 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3646 | }; | |
3647 | ||
3648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3651 | arg2 = (int) SWIG_AsInt(obj1); | |
3652 | if (PyErr_Occurred()) SWIG_fail; | |
3653 | { | |
3654 | arg3 = wxString_in_helper(obj2); | |
3655 | if (arg3 == NULL) SWIG_fail; | |
3656 | temp3 = True; | |
3657 | } | |
3658 | { | |
3659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3660 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3661 | ||
3662 | wxPyEndAllowThreads(__tstate); | |
3663 | if (PyErr_Occurred()) SWIG_fail; | |
3664 | } | |
3665 | Py_INCREF(Py_None); resultobj = Py_None; | |
3666 | { | |
3667 | if (temp3) | |
3668 | delete arg3; | |
3669 | } | |
3670 | return resultobj; | |
3671 | fail: | |
3672 | { | |
3673 | if (temp3) | |
3674 | delete arg3; | |
3675 | } | |
3676 | return NULL; | |
3677 | } | |
3678 | ||
3679 | ||
d55e5bfc RD |
3680 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
3681 | PyObject *resultobj; | |
3682 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3683 | bool arg2 ; | |
3684 | PyObject * obj0 = 0 ; | |
3685 | PyObject * obj1 = 0 ; | |
3686 | char *kwnames[] = { | |
3687 | (char *) "self",(char *) "editable", NULL | |
3688 | }; | |
3689 | ||
3690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3693 | arg2 = (bool) SWIG_AsBool(obj1); | |
3694 | if (PyErr_Occurred()) SWIG_fail; | |
3695 | { | |
3696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3697 | (arg1)->SetEditable(arg2); | |
3698 | ||
3699 | wxPyEndAllowThreads(__tstate); | |
3700 | if (PyErr_Occurred()) SWIG_fail; | |
3701 | } | |
3702 | Py_INCREF(Py_None); resultobj = Py_None; | |
3703 | return resultobj; | |
3704 | fail: | |
3705 | return NULL; | |
3706 | } | |
3707 | ||
3708 | ||
3709 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3710 | PyObject *resultobj; | |
3711 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3712 | PyObject * obj0 = 0 ; | |
3713 | char *kwnames[] = { | |
3714 | (char *) "self", NULL | |
3715 | }; | |
3716 | ||
3717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3720 | { | |
3721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3722 | (arg1)->SetInsertionPointEnd(); | |
3723 | ||
3724 | wxPyEndAllowThreads(__tstate); | |
3725 | if (PyErr_Occurred()) SWIG_fail; | |
3726 | } | |
3727 | Py_INCREF(Py_None); resultobj = Py_None; | |
3728 | return resultobj; | |
3729 | fail: | |
3730 | return NULL; | |
3731 | } | |
3732 | ||
3733 | ||
3734 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3735 | PyObject *resultobj; | |
3736 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3737 | long arg2 ; | |
3738 | long arg3 ; | |
3739 | PyObject * obj0 = 0 ; | |
3740 | PyObject * obj1 = 0 ; | |
3741 | PyObject * obj2 = 0 ; | |
3742 | char *kwnames[] = { | |
3743 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3744 | }; | |
3745 | ||
3746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3749 | arg2 = (long) SWIG_AsLong(obj1); | |
3750 | if (PyErr_Occurred()) SWIG_fail; | |
3751 | arg3 = (long) SWIG_AsLong(obj2); | |
3752 | if (PyErr_Occurred()) SWIG_fail; | |
3753 | { | |
3754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3755 | (arg1)->Remove(arg2,arg3); | |
3756 | ||
3757 | wxPyEndAllowThreads(__tstate); | |
3758 | if (PyErr_Occurred()) SWIG_fail; | |
3759 | } | |
3760 | Py_INCREF(Py_None); resultobj = Py_None; | |
3761 | return resultobj; | |
3762 | fail: | |
3763 | return NULL; | |
3764 | } | |
3765 | ||
3766 | ||
f20a2e1f RD |
3767 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
3768 | PyObject *resultobj; | |
3769 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3770 | wxVisualAttributes result; | |
3771 | PyObject * obj0 = 0 ; | |
3772 | char *kwnames[] = { | |
3773 | (char *) "variant", NULL | |
3774 | }; | |
3775 | ||
3776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3777 | if (obj0) { | |
3778 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
3779 | if (PyErr_Occurred()) SWIG_fail; | |
3780 | } | |
3781 | { | |
0439c23b | 3782 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
3783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3784 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3785 | ||
3786 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3787 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
3788 | } |
3789 | { | |
3790 | wxVisualAttributes * resultptr; | |
3791 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3792 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3793 | } | |
3794 | return resultobj; | |
3795 | fail: | |
3796 | return NULL; | |
3797 | } | |
3798 | ||
3799 | ||
d55e5bfc RD |
3800 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { |
3801 | PyObject *obj; | |
3802 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3803 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3804 | Py_INCREF(obj); | |
3805 | return Py_BuildValue((char *)""); | |
3806 | } | |
3807 | static int _wrap_GaugeNameStr_set(PyObject *_val) { | |
3808 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3809 | return 1; | |
3810 | } | |
3811 | ||
3812 | ||
3813 | static PyObject *_wrap_GaugeNameStr_get() { | |
3814 | PyObject *pyobj; | |
3815 | ||
3816 | { | |
3817 | #if wxUSE_UNICODE | |
3818 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3819 | #else | |
3820 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3821 | #endif | |
3822 | } | |
3823 | return pyobj; | |
3824 | } | |
3825 | ||
3826 | ||
3827 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3828 | PyObject *resultobj; | |
3829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
3830 | int arg2 = (int) -1 ; |
3831 | int arg3 = (int) 100 ; | |
d55e5bfc RD |
3832 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3833 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3834 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3835 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3836 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3837 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3838 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3839 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3840 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3841 | wxGauge *result; | |
3842 | wxPoint temp4 ; | |
3843 | wxSize temp5 ; | |
3844 | bool temp8 = False ; | |
3845 | PyObject * obj0 = 0 ; | |
3846 | PyObject * obj1 = 0 ; | |
3847 | PyObject * obj2 = 0 ; | |
3848 | PyObject * obj3 = 0 ; | |
3849 | PyObject * obj4 = 0 ; | |
3850 | PyObject * obj5 = 0 ; | |
3851 | PyObject * obj6 = 0 ; | |
3852 | PyObject * obj7 = 0 ; | |
3853 | char *kwnames[] = { | |
3854 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3855 | }; | |
3856 | ||
bfddbb17 | 3857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
3858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
3860 | if (obj1) { |
3861 | arg2 = (int) SWIG_AsInt(obj1); | |
3862 | if (PyErr_Occurred()) SWIG_fail; | |
3863 | } | |
3864 | if (obj2) { | |
3865 | arg3 = (int) SWIG_AsInt(obj2); | |
3866 | if (PyErr_Occurred()) SWIG_fail; | |
3867 | } | |
d55e5bfc RD |
3868 | if (obj3) { |
3869 | { | |
3870 | arg4 = &temp4; | |
3871 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3872 | } | |
3873 | } | |
3874 | if (obj4) { | |
3875 | { | |
3876 | arg5 = &temp5; | |
3877 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3878 | } | |
3879 | } | |
3880 | if (obj5) { | |
3881 | arg6 = (long) SWIG_AsLong(obj5); | |
3882 | if (PyErr_Occurred()) SWIG_fail; | |
3883 | } | |
3884 | if (obj6) { | |
3885 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
3886 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3887 | SWIG_fail; | |
3888 | if (arg7 == NULL) { | |
3889 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3890 | SWIG_fail; | |
3891 | } | |
3892 | } | |
3893 | if (obj7) { | |
3894 | { | |
3895 | arg8 = wxString_in_helper(obj7); | |
3896 | if (arg8 == NULL) SWIG_fail; | |
3897 | temp8 = True; | |
3898 | } | |
3899 | } | |
3900 | { | |
0439c23b | 3901 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3903 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3904 | ||
3905 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3906 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3907 | } |
3908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
3909 | { | |
3910 | if (temp8) | |
3911 | delete arg8; | |
3912 | } | |
3913 | return resultobj; | |
3914 | fail: | |
3915 | { | |
3916 | if (temp8) | |
3917 | delete arg8; | |
3918 | } | |
3919 | return NULL; | |
3920 | } | |
3921 | ||
3922 | ||
3923 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3924 | PyObject *resultobj; | |
3925 | wxGauge *result; | |
3926 | char *kwnames[] = { | |
3927 | NULL | |
3928 | }; | |
3929 | ||
3930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3931 | { | |
0439c23b | 3932 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3934 | result = (wxGauge *)new wxGauge(); | |
3935 | ||
3936 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3937 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3938 | } |
3939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
3940 | return resultobj; | |
3941 | fail: | |
3942 | return NULL; | |
3943 | } | |
3944 | ||
3945 | ||
3946 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3947 | PyObject *resultobj; | |
3948 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3949 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
3950 | int arg3 = (int) -1 ; |
3951 | int arg4 = (int) 100 ; | |
d55e5bfc RD |
3952 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3953 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3954 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3955 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3956 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3957 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3958 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3959 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3960 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3961 | bool result; | |
3962 | wxPoint temp5 ; | |
3963 | wxSize temp6 ; | |
3964 | bool temp9 = False ; | |
3965 | PyObject * obj0 = 0 ; | |
3966 | PyObject * obj1 = 0 ; | |
3967 | PyObject * obj2 = 0 ; | |
3968 | PyObject * obj3 = 0 ; | |
3969 | PyObject * obj4 = 0 ; | |
3970 | PyObject * obj5 = 0 ; | |
3971 | PyObject * obj6 = 0 ; | |
3972 | PyObject * obj7 = 0 ; | |
3973 | PyObject * obj8 = 0 ; | |
3974 | char *kwnames[] = { | |
3975 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3976 | }; | |
3977 | ||
bfddbb17 | 3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
3979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3981 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
3983 | if (obj2) { |
3984 | arg3 = (int) SWIG_AsInt(obj2); | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | } | |
3987 | if (obj3) { | |
3988 | arg4 = (int) SWIG_AsInt(obj3); | |
3989 | if (PyErr_Occurred()) SWIG_fail; | |
3990 | } | |
d55e5bfc RD |
3991 | if (obj4) { |
3992 | { | |
3993 | arg5 = &temp5; | |
3994 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3995 | } | |
3996 | } | |
3997 | if (obj5) { | |
3998 | { | |
3999 | arg6 = &temp6; | |
4000 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4001 | } | |
4002 | } | |
4003 | if (obj6) { | |
4004 | arg7 = (long) SWIG_AsLong(obj6); | |
4005 | if (PyErr_Occurred()) SWIG_fail; | |
4006 | } | |
4007 | if (obj7) { | |
4008 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
4009 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4010 | SWIG_fail; | |
4011 | if (arg8 == NULL) { | |
4012 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4013 | SWIG_fail; | |
4014 | } | |
4015 | } | |
4016 | if (obj8) { | |
4017 | { | |
4018 | arg9 = wxString_in_helper(obj8); | |
4019 | if (arg9 == NULL) SWIG_fail; | |
4020 | temp9 = True; | |
4021 | } | |
4022 | } | |
4023 | { | |
4024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4025 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4026 | ||
4027 | wxPyEndAllowThreads(__tstate); | |
4028 | if (PyErr_Occurred()) SWIG_fail; | |
4029 | } | |
4030 | { | |
4031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4032 | } | |
4033 | { | |
4034 | if (temp9) | |
4035 | delete arg9; | |
4036 | } | |
4037 | return resultobj; | |
4038 | fail: | |
4039 | { | |
4040 | if (temp9) | |
4041 | delete arg9; | |
4042 | } | |
4043 | return NULL; | |
4044 | } | |
4045 | ||
4046 | ||
4047 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4048 | PyObject *resultobj; | |
4049 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4050 | int arg2 ; | |
4051 | PyObject * obj0 = 0 ; | |
4052 | PyObject * obj1 = 0 ; | |
4053 | char *kwnames[] = { | |
4054 | (char *) "self",(char *) "range", NULL | |
4055 | }; | |
4056 | ||
4057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
4058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4060 | arg2 = (int) SWIG_AsInt(obj1); | |
4061 | if (PyErr_Occurred()) SWIG_fail; | |
4062 | { | |
4063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4064 | (arg1)->SetRange(arg2); | |
4065 | ||
4066 | wxPyEndAllowThreads(__tstate); | |
4067 | if (PyErr_Occurred()) SWIG_fail; | |
4068 | } | |
4069 | Py_INCREF(Py_None); resultobj = Py_None; | |
4070 | return resultobj; | |
4071 | fail: | |
4072 | return NULL; | |
4073 | } | |
4074 | ||
4075 | ||
4076 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4077 | PyObject *resultobj; | |
4078 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4079 | int result; | |
4080 | PyObject * obj0 = 0 ; | |
4081 | char *kwnames[] = { | |
4082 | (char *) "self", NULL | |
4083 | }; | |
4084 | ||
4085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
4086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4088 | { | |
4089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4090 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4091 | ||
4092 | wxPyEndAllowThreads(__tstate); | |
4093 | if (PyErr_Occurred()) SWIG_fail; | |
4094 | } | |
4095 | resultobj = SWIG_FromInt((int)result); | |
4096 | return resultobj; | |
4097 | fail: | |
4098 | return NULL; | |
4099 | } | |
4100 | ||
4101 | ||
4102 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4103 | PyObject *resultobj; | |
4104 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4105 | int arg2 ; | |
4106 | PyObject * obj0 = 0 ; | |
4107 | PyObject * obj1 = 0 ; | |
4108 | char *kwnames[] = { | |
4109 | (char *) "self",(char *) "pos", NULL | |
4110 | }; | |
4111 | ||
4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
4113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4115 | arg2 = (int) SWIG_AsInt(obj1); | |
4116 | if (PyErr_Occurred()) SWIG_fail; | |
4117 | { | |
4118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4119 | (arg1)->SetValue(arg2); | |
4120 | ||
4121 | wxPyEndAllowThreads(__tstate); | |
4122 | if (PyErr_Occurred()) SWIG_fail; | |
4123 | } | |
4124 | Py_INCREF(Py_None); resultobj = Py_None; | |
4125 | return resultobj; | |
4126 | fail: | |
4127 | return NULL; | |
4128 | } | |
4129 | ||
4130 | ||
4131 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4132 | PyObject *resultobj; | |
4133 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4134 | int result; | |
4135 | PyObject * obj0 = 0 ; | |
4136 | char *kwnames[] = { | |
4137 | (char *) "self", NULL | |
4138 | }; | |
4139 | ||
4140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
4141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4143 | { | |
4144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4145 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4146 | ||
4147 | wxPyEndAllowThreads(__tstate); | |
4148 | if (PyErr_Occurred()) SWIG_fail; | |
4149 | } | |
4150 | resultobj = SWIG_FromInt((int)result); | |
4151 | return resultobj; | |
4152 | fail: | |
4153 | return NULL; | |
4154 | } | |
4155 | ||
4156 | ||
4157 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4158 | PyObject *resultobj; | |
4159 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4160 | bool result; | |
4161 | PyObject * obj0 = 0 ; | |
4162 | char *kwnames[] = { | |
4163 | (char *) "self", NULL | |
4164 | }; | |
4165 | ||
4166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
4167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4169 | { | |
4170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4171 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4172 | ||
4173 | wxPyEndAllowThreads(__tstate); | |
4174 | if (PyErr_Occurred()) SWIG_fail; | |
4175 | } | |
4176 | { | |
4177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4178 | } | |
4179 | return resultobj; | |
4180 | fail: | |
4181 | return NULL; | |
4182 | } | |
4183 | ||
4184 | ||
4185 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4186 | PyObject *resultobj; | |
4187 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4188 | int arg2 ; | |
4189 | PyObject * obj0 = 0 ; | |
4190 | PyObject * obj1 = 0 ; | |
4191 | char *kwnames[] = { | |
4192 | (char *) "self",(char *) "w", NULL | |
4193 | }; | |
4194 | ||
4195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
4196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4198 | arg2 = (int) SWIG_AsInt(obj1); | |
4199 | if (PyErr_Occurred()) SWIG_fail; | |
4200 | { | |
4201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4202 | (arg1)->SetShadowWidth(arg2); | |
4203 | ||
4204 | wxPyEndAllowThreads(__tstate); | |
4205 | if (PyErr_Occurred()) SWIG_fail; | |
4206 | } | |
4207 | Py_INCREF(Py_None); resultobj = Py_None; | |
4208 | return resultobj; | |
4209 | fail: | |
4210 | return NULL; | |
4211 | } | |
4212 | ||
4213 | ||
4214 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4215 | PyObject *resultobj; | |
4216 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4217 | int result; | |
4218 | PyObject * obj0 = 0 ; | |
4219 | char *kwnames[] = { | |
4220 | (char *) "self", NULL | |
4221 | }; | |
4222 | ||
4223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
4224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4226 | { | |
4227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4228 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4229 | ||
4230 | wxPyEndAllowThreads(__tstate); | |
4231 | if (PyErr_Occurred()) SWIG_fail; | |
4232 | } | |
4233 | resultobj = SWIG_FromInt((int)result); | |
4234 | return resultobj; | |
4235 | fail: | |
4236 | return NULL; | |
4237 | } | |
4238 | ||
4239 | ||
4240 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4241 | PyObject *resultobj; | |
4242 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4243 | int arg2 ; | |
4244 | PyObject * obj0 = 0 ; | |
4245 | PyObject * obj1 = 0 ; | |
4246 | char *kwnames[] = { | |
4247 | (char *) "self",(char *) "w", NULL | |
4248 | }; | |
4249 | ||
4250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
4251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4253 | arg2 = (int) SWIG_AsInt(obj1); | |
4254 | if (PyErr_Occurred()) SWIG_fail; | |
4255 | { | |
4256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4257 | (arg1)->SetBezelFace(arg2); | |
4258 | ||
4259 | wxPyEndAllowThreads(__tstate); | |
4260 | if (PyErr_Occurred()) SWIG_fail; | |
4261 | } | |
4262 | Py_INCREF(Py_None); resultobj = Py_None; | |
4263 | return resultobj; | |
4264 | fail: | |
4265 | return NULL; | |
4266 | } | |
4267 | ||
4268 | ||
4269 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4270 | PyObject *resultobj; | |
4271 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4272 | int result; | |
4273 | PyObject * obj0 = 0 ; | |
4274 | char *kwnames[] = { | |
4275 | (char *) "self", NULL | |
4276 | }; | |
4277 | ||
4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
4279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4281 | { | |
4282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4283 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4284 | ||
4285 | wxPyEndAllowThreads(__tstate); | |
4286 | if (PyErr_Occurred()) SWIG_fail; | |
4287 | } | |
4288 | resultobj = SWIG_FromInt((int)result); | |
4289 | return resultobj; | |
4290 | fail: | |
4291 | return NULL; | |
4292 | } | |
4293 | ||
4294 | ||
f20a2e1f RD |
4295 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4296 | PyObject *resultobj; | |
4297 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4298 | wxVisualAttributes result; | |
4299 | PyObject * obj0 = 0 ; | |
4300 | char *kwnames[] = { | |
4301 | (char *) "variant", NULL | |
4302 | }; | |
4303 | ||
4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4305 | if (obj0) { | |
4306 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4307 | if (PyErr_Occurred()) SWIG_fail; | |
4308 | } | |
4309 | { | |
0439c23b | 4310 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4312 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4313 | ||
4314 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4315 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4316 | } |
4317 | { | |
4318 | wxVisualAttributes * resultptr; | |
4319 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4321 | } | |
4322 | return resultobj; | |
4323 | fail: | |
4324 | return NULL; | |
4325 | } | |
4326 | ||
4327 | ||
d55e5bfc RD |
4328 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { |
4329 | PyObject *obj; | |
4330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4331 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4332 | Py_INCREF(obj); | |
4333 | return Py_BuildValue((char *)""); | |
4334 | } | |
4335 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { | |
4336 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
4337 | return 1; | |
4338 | } | |
4339 | ||
4340 | ||
4341 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4342 | PyObject *pyobj; | |
4343 | ||
4344 | { | |
4345 | #if wxUSE_UNICODE | |
4346 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4347 | #else | |
4348 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4349 | #endif | |
4350 | } | |
4351 | return pyobj; | |
4352 | } | |
4353 | ||
4354 | ||
4355 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
4356 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
4357 | return 1; | |
4358 | } | |
4359 | ||
4360 | ||
4361 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4362 | PyObject *pyobj; | |
4363 | ||
4364 | { | |
4365 | #if wxUSE_UNICODE | |
4366 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4367 | #else | |
4368 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4369 | #endif | |
4370 | } | |
4371 | return pyobj; | |
4372 | } | |
4373 | ||
4374 | ||
4375 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
4376 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
4377 | return 1; | |
4378 | } | |
4379 | ||
4380 | ||
4381 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4382 | PyObject *pyobj; | |
4383 | ||
4384 | { | |
4385 | #if wxUSE_UNICODE | |
4386 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4387 | #else | |
4388 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4389 | #endif | |
4390 | } | |
4391 | return pyobj; | |
4392 | } | |
4393 | ||
4394 | ||
4395 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4396 | PyObject *resultobj; | |
4397 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
4398 | int arg2 = (int) -1 ; |
4399 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4400 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4401 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4402 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4403 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4404 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4405 | long arg6 = (long) 0 ; | |
4406 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4407 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4408 | wxStaticBox *result; | |
4409 | bool temp3 = False ; | |
4410 | wxPoint temp4 ; | |
4411 | wxSize temp5 ; | |
4412 | bool temp7 = False ; | |
4413 | PyObject * obj0 = 0 ; | |
4414 | PyObject * obj1 = 0 ; | |
4415 | PyObject * obj2 = 0 ; | |
4416 | PyObject * obj3 = 0 ; | |
4417 | PyObject * obj4 = 0 ; | |
4418 | PyObject * obj5 = 0 ; | |
4419 | PyObject * obj6 = 0 ; | |
4420 | char *kwnames[] = { | |
4421 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4422 | }; | |
4423 | ||
bfddbb17 | 4424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
4427 | if (obj1) { |
4428 | arg2 = (int) SWIG_AsInt(obj1); | |
4429 | if (PyErr_Occurred()) SWIG_fail; | |
4430 | } | |
4431 | if (obj2) { | |
4432 | { | |
4433 | arg3 = wxString_in_helper(obj2); | |
4434 | if (arg3 == NULL) SWIG_fail; | |
4435 | temp3 = True; | |
4436 | } | |
d55e5bfc RD |
4437 | } |
4438 | if (obj3) { | |
4439 | { | |
4440 | arg4 = &temp4; | |
4441 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4442 | } | |
4443 | } | |
4444 | if (obj4) { | |
4445 | { | |
4446 | arg5 = &temp5; | |
4447 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4448 | } | |
4449 | } | |
4450 | if (obj5) { | |
4451 | arg6 = (long) SWIG_AsLong(obj5); | |
4452 | if (PyErr_Occurred()) SWIG_fail; | |
4453 | } | |
4454 | if (obj6) { | |
4455 | { | |
4456 | arg7 = wxString_in_helper(obj6); | |
4457 | if (arg7 == NULL) SWIG_fail; | |
4458 | temp7 = True; | |
4459 | } | |
4460 | } | |
4461 | { | |
0439c23b | 4462 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4464 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4465 | ||
4466 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4467 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4468 | } |
4469 | { | |
412d302d | 4470 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
4471 | } |
4472 | { | |
4473 | if (temp3) | |
4474 | delete arg3; | |
4475 | } | |
4476 | { | |
4477 | if (temp7) | |
4478 | delete arg7; | |
4479 | } | |
4480 | return resultobj; | |
4481 | fail: | |
4482 | { | |
4483 | if (temp3) | |
4484 | delete arg3; | |
4485 | } | |
4486 | { | |
4487 | if (temp7) | |
4488 | delete arg7; | |
4489 | } | |
4490 | return NULL; | |
4491 | } | |
4492 | ||
4493 | ||
4494 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4495 | PyObject *resultobj; | |
4496 | wxStaticBox *result; | |
4497 | char *kwnames[] = { | |
4498 | NULL | |
4499 | }; | |
4500 | ||
4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4502 | { | |
0439c23b | 4503 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4505 | result = (wxStaticBox *)new wxStaticBox(); | |
4506 | ||
4507 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4508 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4509 | } |
4510 | { | |
412d302d | 4511 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
4512 | } |
4513 | return resultobj; | |
4514 | fail: | |
4515 | return NULL; | |
4516 | } | |
4517 | ||
4518 | ||
4519 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4520 | PyObject *resultobj; | |
4521 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4522 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
4523 | int arg3 = (int) -1 ; |
4524 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4525 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4526 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4527 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4528 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4529 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4530 | long arg7 = (long) 0 ; | |
4531 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4532 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4533 | bool result; | |
4534 | bool temp4 = False ; | |
4535 | wxPoint temp5 ; | |
4536 | wxSize temp6 ; | |
4537 | bool temp8 = False ; | |
4538 | PyObject * obj0 = 0 ; | |
4539 | PyObject * obj1 = 0 ; | |
4540 | PyObject * obj2 = 0 ; | |
4541 | PyObject * obj3 = 0 ; | |
4542 | PyObject * obj4 = 0 ; | |
4543 | PyObject * obj5 = 0 ; | |
4544 | PyObject * obj6 = 0 ; | |
4545 | PyObject * obj7 = 0 ; | |
4546 | char *kwnames[] = { | |
4547 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4548 | }; | |
4549 | ||
bfddbb17 | 4550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
4555 | if (obj2) { |
4556 | arg3 = (int) SWIG_AsInt(obj2); | |
4557 | if (PyErr_Occurred()) SWIG_fail; | |
4558 | } | |
4559 | if (obj3) { | |
4560 | { | |
4561 | arg4 = wxString_in_helper(obj3); | |
4562 | if (arg4 == NULL) SWIG_fail; | |
4563 | temp4 = True; | |
4564 | } | |
d55e5bfc RD |
4565 | } |
4566 | if (obj4) { | |
4567 | { | |
4568 | arg5 = &temp5; | |
4569 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4570 | } | |
4571 | } | |
4572 | if (obj5) { | |
4573 | { | |
4574 | arg6 = &temp6; | |
4575 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4576 | } | |
4577 | } | |
4578 | if (obj6) { | |
4579 | arg7 = (long) SWIG_AsLong(obj6); | |
4580 | if (PyErr_Occurred()) SWIG_fail; | |
4581 | } | |
4582 | if (obj7) { | |
4583 | { | |
4584 | arg8 = wxString_in_helper(obj7); | |
4585 | if (arg8 == NULL) SWIG_fail; | |
4586 | temp8 = True; | |
4587 | } | |
4588 | } | |
4589 | { | |
4590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4591 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4592 | ||
4593 | wxPyEndAllowThreads(__tstate); | |
4594 | if (PyErr_Occurred()) SWIG_fail; | |
4595 | } | |
4596 | { | |
4597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4598 | } | |
4599 | { | |
4600 | if (temp4) | |
4601 | delete arg4; | |
4602 | } | |
4603 | { | |
4604 | if (temp8) | |
4605 | delete arg8; | |
4606 | } | |
4607 | return resultobj; | |
4608 | fail: | |
4609 | { | |
4610 | if (temp4) | |
4611 | delete arg4; | |
4612 | } | |
4613 | { | |
4614 | if (temp8) | |
4615 | delete arg8; | |
4616 | } | |
4617 | return NULL; | |
4618 | } | |
4619 | ||
4620 | ||
f20a2e1f RD |
4621 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4622 | PyObject *resultobj; | |
4623 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4624 | wxVisualAttributes result; | |
4625 | PyObject * obj0 = 0 ; | |
4626 | char *kwnames[] = { | |
4627 | (char *) "variant", NULL | |
4628 | }; | |
4629 | ||
4630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4631 | if (obj0) { | |
4632 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4633 | if (PyErr_Occurred()) SWIG_fail; | |
4634 | } | |
4635 | { | |
0439c23b | 4636 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4638 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4639 | ||
4640 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4641 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4642 | } |
4643 | { | |
4644 | wxVisualAttributes * resultptr; | |
4645 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4646 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4647 | } | |
4648 | return resultobj; | |
4649 | fail: | |
4650 | return NULL; | |
4651 | } | |
4652 | ||
4653 | ||
d55e5bfc RD |
4654 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { |
4655 | PyObject *obj; | |
4656 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4657 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4658 | Py_INCREF(obj); | |
4659 | return Py_BuildValue((char *)""); | |
4660 | } | |
4661 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4662 | PyObject *resultobj; | |
4663 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 4664 | int arg2 = (int) -1 ; |
d55e5bfc RD |
4665 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4666 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4667 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4668 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4669 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4670 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4671 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4672 | wxStaticLine *result; | |
4673 | wxPoint temp3 ; | |
4674 | wxSize temp4 ; | |
4675 | bool temp6 = False ; | |
4676 | PyObject * obj0 = 0 ; | |
4677 | PyObject * obj1 = 0 ; | |
4678 | PyObject * obj2 = 0 ; | |
4679 | PyObject * obj3 = 0 ; | |
4680 | PyObject * obj4 = 0 ; | |
4681 | PyObject * obj5 = 0 ; | |
4682 | char *kwnames[] = { | |
4683 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4684 | }; | |
4685 | ||
bfddbb17 | 4686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
4687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
4689 | if (obj1) { |
4690 | arg2 = (int) SWIG_AsInt(obj1); | |
4691 | if (PyErr_Occurred()) SWIG_fail; | |
4692 | } | |
d55e5bfc RD |
4693 | if (obj2) { |
4694 | { | |
4695 | arg3 = &temp3; | |
4696 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4697 | } | |
4698 | } | |
4699 | if (obj3) { | |
4700 | { | |
4701 | arg4 = &temp4; | |
4702 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4703 | } | |
4704 | } | |
4705 | if (obj4) { | |
4706 | arg5 = (long) SWIG_AsLong(obj4); | |
4707 | if (PyErr_Occurred()) SWIG_fail; | |
4708 | } | |
4709 | if (obj5) { | |
4710 | { | |
4711 | arg6 = wxString_in_helper(obj5); | |
4712 | if (arg6 == NULL) SWIG_fail; | |
4713 | temp6 = True; | |
4714 | } | |
4715 | } | |
4716 | { | |
0439c23b | 4717 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4719 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4720 | ||
4721 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4722 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4723 | } |
4724 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4725 | { | |
4726 | if (temp6) | |
4727 | delete arg6; | |
4728 | } | |
4729 | return resultobj; | |
4730 | fail: | |
4731 | { | |
4732 | if (temp6) | |
4733 | delete arg6; | |
4734 | } | |
4735 | return NULL; | |
4736 | } | |
4737 | ||
4738 | ||
4739 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4740 | PyObject *resultobj; | |
4741 | wxStaticLine *result; | |
4742 | char *kwnames[] = { | |
4743 | NULL | |
4744 | }; | |
4745 | ||
4746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4747 | { | |
0439c23b | 4748 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4750 | result = (wxStaticLine *)new wxStaticLine(); | |
4751 | ||
4752 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4753 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4754 | } |
4755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4756 | return resultobj; | |
4757 | fail: | |
4758 | return NULL; | |
4759 | } | |
4760 | ||
4761 | ||
4762 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4763 | PyObject *resultobj; | |
4764 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4765 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 4766 | int arg3 = (int) -1 ; |
d55e5bfc RD |
4767 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4768 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4769 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4770 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4771 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4772 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4773 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4774 | bool result; | |
4775 | wxPoint temp4 ; | |
4776 | wxSize temp5 ; | |
4777 | bool temp7 = False ; | |
4778 | PyObject * obj0 = 0 ; | |
4779 | PyObject * obj1 = 0 ; | |
4780 | PyObject * obj2 = 0 ; | |
4781 | PyObject * obj3 = 0 ; | |
4782 | PyObject * obj4 = 0 ; | |
4783 | PyObject * obj5 = 0 ; | |
4784 | PyObject * obj6 = 0 ; | |
4785 | char *kwnames[] = { | |
4786 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4787 | }; | |
4788 | ||
bfddbb17 | 4789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
4794 | if (obj2) { |
4795 | arg3 = (int) SWIG_AsInt(obj2); | |
4796 | if (PyErr_Occurred()) SWIG_fail; | |
4797 | } | |
d55e5bfc RD |
4798 | if (obj3) { |
4799 | { | |
4800 | arg4 = &temp4; | |
4801 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4802 | } | |
4803 | } | |
4804 | if (obj4) { | |
4805 | { | |
4806 | arg5 = &temp5; | |
4807 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4808 | } | |
4809 | } | |
4810 | if (obj5) { | |
4811 | arg6 = (long) SWIG_AsLong(obj5); | |
4812 | if (PyErr_Occurred()) SWIG_fail; | |
4813 | } | |
4814 | if (obj6) { | |
4815 | { | |
4816 | arg7 = wxString_in_helper(obj6); | |
4817 | if (arg7 == NULL) SWIG_fail; | |
4818 | temp7 = True; | |
4819 | } | |
4820 | } | |
4821 | { | |
4822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4823 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4824 | ||
4825 | wxPyEndAllowThreads(__tstate); | |
4826 | if (PyErr_Occurred()) SWIG_fail; | |
4827 | } | |
4828 | { | |
4829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4830 | } | |
4831 | { | |
4832 | if (temp7) | |
4833 | delete arg7; | |
4834 | } | |
4835 | return resultobj; | |
4836 | fail: | |
4837 | { | |
4838 | if (temp7) | |
4839 | delete arg7; | |
4840 | } | |
4841 | return NULL; | |
4842 | } | |
4843 | ||
4844 | ||
4845 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4846 | PyObject *resultobj; | |
4847 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4848 | bool result; | |
4849 | PyObject * obj0 = 0 ; | |
4850 | char *kwnames[] = { | |
4851 | (char *) "self", NULL | |
4852 | }; | |
4853 | ||
4854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, | |
4856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4857 | { | |
4858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4859 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4860 | ||
4861 | wxPyEndAllowThreads(__tstate); | |
4862 | if (PyErr_Occurred()) SWIG_fail; | |
4863 | } | |
4864 | { | |
4865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4866 | } | |
4867 | return resultobj; | |
4868 | fail: | |
4869 | return NULL; | |
4870 | } | |
4871 | ||
4872 | ||
4873 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4874 | PyObject *resultobj; | |
4875 | int result; | |
4876 | char *kwnames[] = { | |
4877 | NULL | |
4878 | }; | |
4879 | ||
4880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4881 | { | |
4882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4883 | result = (int)wxStaticLine::GetDefaultSize(); | |
4884 | ||
4885 | wxPyEndAllowThreads(__tstate); | |
4886 | if (PyErr_Occurred()) SWIG_fail; | |
4887 | } | |
4888 | resultobj = SWIG_FromInt((int)result); | |
4889 | return resultobj; | |
4890 | fail: | |
4891 | return NULL; | |
4892 | } | |
4893 | ||
4894 | ||
f20a2e1f RD |
4895 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4896 | PyObject *resultobj; | |
4897 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4898 | wxVisualAttributes result; | |
4899 | PyObject * obj0 = 0 ; | |
4900 | char *kwnames[] = { | |
4901 | (char *) "variant", NULL | |
4902 | }; | |
4903 | ||
4904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4905 | if (obj0) { | |
4906 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4907 | if (PyErr_Occurred()) SWIG_fail; | |
4908 | } | |
4909 | { | |
0439c23b | 4910 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4912 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4913 | ||
4914 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4915 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4916 | } |
4917 | { | |
4918 | wxVisualAttributes * resultptr; | |
4919 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4920 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4921 | } | |
4922 | return resultobj; | |
4923 | fail: | |
4924 | return NULL; | |
4925 | } | |
4926 | ||
4927 | ||
d55e5bfc RD |
4928 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { |
4929 | PyObject *obj; | |
4930 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4931 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4932 | Py_INCREF(obj); | |
4933 | return Py_BuildValue((char *)""); | |
4934 | } | |
4935 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4936 | PyObject *resultobj; | |
4937 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
4938 | int arg2 = (int) -1 ; |
4939 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4940 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4941 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4942 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4943 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4944 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4945 | long arg6 = (long) 0 ; | |
4946 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4947 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4948 | wxStaticText *result; | |
4949 | bool temp3 = False ; | |
4950 | wxPoint temp4 ; | |
4951 | wxSize temp5 ; | |
4952 | bool temp7 = False ; | |
4953 | PyObject * obj0 = 0 ; | |
4954 | PyObject * obj1 = 0 ; | |
4955 | PyObject * obj2 = 0 ; | |
4956 | PyObject * obj3 = 0 ; | |
4957 | PyObject * obj4 = 0 ; | |
4958 | PyObject * obj5 = 0 ; | |
4959 | PyObject * obj6 = 0 ; | |
4960 | char *kwnames[] = { | |
4961 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4962 | }; | |
4963 | ||
bfddbb17 | 4964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
4967 | if (obj1) { |
4968 | arg2 = (int) SWIG_AsInt(obj1); | |
4969 | if (PyErr_Occurred()) SWIG_fail; | |
4970 | } | |
4971 | if (obj2) { | |
4972 | { | |
4973 | arg3 = wxString_in_helper(obj2); | |
4974 | if (arg3 == NULL) SWIG_fail; | |
4975 | temp3 = True; | |
4976 | } | |
d55e5bfc RD |
4977 | } |
4978 | if (obj3) { | |
4979 | { | |
4980 | arg4 = &temp4; | |
4981 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4982 | } | |
4983 | } | |
4984 | if (obj4) { | |
4985 | { | |
4986 | arg5 = &temp5; | |
4987 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4988 | } | |
4989 | } | |
4990 | if (obj5) { | |
4991 | arg6 = (long) SWIG_AsLong(obj5); | |
4992 | if (PyErr_Occurred()) SWIG_fail; | |
4993 | } | |
4994 | if (obj6) { | |
4995 | { | |
4996 | arg7 = wxString_in_helper(obj6); | |
4997 | if (arg7 == NULL) SWIG_fail; | |
4998 | temp7 = True; | |
4999 | } | |
5000 | } | |
5001 | { | |
0439c23b | 5002 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5004 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5005 | ||
5006 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5007 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5008 | } |
5009 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
5010 | { | |
5011 | if (temp3) | |
5012 | delete arg3; | |
5013 | } | |
5014 | { | |
5015 | if (temp7) | |
5016 | delete arg7; | |
5017 | } | |
5018 | return resultobj; | |
5019 | fail: | |
5020 | { | |
5021 | if (temp3) | |
5022 | delete arg3; | |
5023 | } | |
5024 | { | |
5025 | if (temp7) | |
5026 | delete arg7; | |
5027 | } | |
5028 | return NULL; | |
5029 | } | |
5030 | ||
5031 | ||
5032 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5033 | PyObject *resultobj; | |
5034 | wxStaticText *result; | |
5035 | char *kwnames[] = { | |
5036 | NULL | |
5037 | }; | |
5038 | ||
5039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
5040 | { | |
0439c23b | 5041 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5043 | result = (wxStaticText *)new wxStaticText(); | |
5044 | ||
5045 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5046 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5047 | } |
5048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
5049 | return resultobj; | |
5050 | fail: | |
5051 | return NULL; | |
5052 | } | |
5053 | ||
5054 | ||
5055 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5056 | PyObject *resultobj; | |
5057 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
5058 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
5059 | int arg3 = (int) -1 ; |
5060 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5061 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
5062 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5063 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5064 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5065 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5066 | long arg7 = (long) 0 ; | |
5067 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
5068 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5069 | bool result; | |
5070 | bool temp4 = False ; | |
5071 | wxPoint temp5 ; | |
5072 | wxSize temp6 ; | |
5073 | bool temp8 = False ; | |
5074 | PyObject * obj0 = 0 ; | |
5075 | PyObject * obj1 = 0 ; | |
5076 | PyObject * obj2 = 0 ; | |
5077 | PyObject * obj3 = 0 ; | |
5078 | PyObject * obj4 = 0 ; | |
5079 | PyObject * obj5 = 0 ; | |
5080 | PyObject * obj6 = 0 ; | |
5081 | PyObject * obj7 = 0 ; | |
5082 | char *kwnames[] = { | |
5083 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5084 | }; | |
5085 | ||
bfddbb17 | 5086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
5091 | if (obj2) { |
5092 | arg3 = (int) SWIG_AsInt(obj2); | |
5093 | if (PyErr_Occurred()) SWIG_fail; | |
5094 | } | |
5095 | if (obj3) { | |
5096 | { | |
5097 | arg4 = wxString_in_helper(obj3); | |
5098 | if (arg4 == NULL) SWIG_fail; | |
5099 | temp4 = True; | |
5100 | } | |
d55e5bfc RD |
5101 | } |
5102 | if (obj4) { | |
5103 | { | |
5104 | arg5 = &temp5; | |
5105 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5106 | } | |
5107 | } | |
5108 | if (obj5) { | |
5109 | { | |
5110 | arg6 = &temp6; | |
5111 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5112 | } | |
5113 | } | |
5114 | if (obj6) { | |
5115 | arg7 = (long) SWIG_AsLong(obj6); | |
5116 | if (PyErr_Occurred()) SWIG_fail; | |
5117 | } | |
5118 | if (obj7) { | |
5119 | { | |
5120 | arg8 = wxString_in_helper(obj7); | |
5121 | if (arg8 == NULL) SWIG_fail; | |
5122 | temp8 = True; | |
5123 | } | |
5124 | } | |
5125 | { | |
5126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5127 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5128 | ||
5129 | wxPyEndAllowThreads(__tstate); | |
5130 | if (PyErr_Occurred()) SWIG_fail; | |
5131 | } | |
5132 | { | |
5133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5134 | } | |
5135 | { | |
5136 | if (temp4) | |
5137 | delete arg4; | |
5138 | } | |
5139 | { | |
5140 | if (temp8) | |
5141 | delete arg8; | |
5142 | } | |
5143 | return resultobj; | |
5144 | fail: | |
5145 | { | |
5146 | if (temp4) | |
5147 | delete arg4; | |
5148 | } | |
5149 | { | |
5150 | if (temp8) | |
5151 | delete arg8; | |
5152 | } | |
5153 | return NULL; | |
5154 | } | |
5155 | ||
5156 | ||
f20a2e1f RD |
5157 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5158 | PyObject *resultobj; | |
5159 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5160 | wxVisualAttributes result; | |
5161 | PyObject * obj0 = 0 ; | |
5162 | char *kwnames[] = { | |
5163 | (char *) "variant", NULL | |
5164 | }; | |
5165 | ||
5166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5167 | if (obj0) { | |
5168 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5169 | if (PyErr_Occurred()) SWIG_fail; | |
5170 | } | |
5171 | { | |
0439c23b | 5172 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5174 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5175 | ||
5176 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5177 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5178 | } |
5179 | { | |
5180 | wxVisualAttributes * resultptr; | |
5181 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5182 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5183 | } | |
5184 | return resultobj; | |
5185 | fail: | |
5186 | return NULL; | |
5187 | } | |
5188 | ||
5189 | ||
d55e5bfc RD |
5190 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { |
5191 | PyObject *obj; | |
5192 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5193 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5194 | Py_INCREF(obj); | |
5195 | return Py_BuildValue((char *)""); | |
5196 | } | |
5197 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5198 | PyObject *resultobj; | |
5199 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
5200 | int arg2 = (int) -1 ; |
5201 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
5202 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
5203 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5204 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5205 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5206 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5207 | long arg6 = (long) 0 ; | |
5208 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5209 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5210 | wxStaticBitmap *result; | |
5211 | wxPoint temp4 ; | |
5212 | wxSize temp5 ; | |
5213 | bool temp7 = False ; | |
5214 | PyObject * obj0 = 0 ; | |
5215 | PyObject * obj1 = 0 ; | |
5216 | PyObject * obj2 = 0 ; | |
5217 | PyObject * obj3 = 0 ; | |
5218 | PyObject * obj4 = 0 ; | |
5219 | PyObject * obj5 = 0 ; | |
5220 | PyObject * obj6 = 0 ; | |
5221 | char *kwnames[] = { | |
5222 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5223 | }; | |
5224 | ||
bfddbb17 | 5225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
5226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
5228 | if (obj1) { |
5229 | arg2 = (int) SWIG_AsInt(obj1); | |
5230 | if (PyErr_Occurred()) SWIG_fail; | |
5231 | } | |
5232 | if (obj2) { | |
5233 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5234 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 5235 | SWIG_fail; |
bfddbb17 RD |
5236 | if (arg3 == NULL) { |
5237 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5238 | SWIG_fail; | |
5239 | } | |
d55e5bfc RD |
5240 | } |
5241 | if (obj3) { | |
5242 | { | |
5243 | arg4 = &temp4; | |
5244 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5245 | } | |
5246 | } | |
5247 | if (obj4) { | |
5248 | { | |
5249 | arg5 = &temp5; | |
5250 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5251 | } | |
5252 | } | |
5253 | if (obj5) { | |
5254 | arg6 = (long) SWIG_AsLong(obj5); | |
5255 | if (PyErr_Occurred()) SWIG_fail; | |
5256 | } | |
5257 | if (obj6) { | |
5258 | { | |
5259 | arg7 = wxString_in_helper(obj6); | |
5260 | if (arg7 == NULL) SWIG_fail; | |
5261 | temp7 = True; | |
5262 | } | |
5263 | } | |
5264 | { | |
0439c23b | 5265 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5267 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5268 | ||
5269 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5270 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5271 | } |
5272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
5273 | { | |
5274 | if (temp7) | |
5275 | delete arg7; | |
5276 | } | |
5277 | return resultobj; | |
5278 | fail: | |
5279 | { | |
5280 | if (temp7) | |
5281 | delete arg7; | |
5282 | } | |
5283 | return NULL; | |
5284 | } | |
5285 | ||
5286 | ||
5287 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5288 | PyObject *resultobj; | |
5289 | wxStaticBitmap *result; | |
5290 | char *kwnames[] = { | |
5291 | NULL | |
5292 | }; | |
5293 | ||
5294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5295 | { | |
0439c23b | 5296 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5298 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5299 | ||
5300 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5301 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5302 | } |
5303 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
5304 | return resultobj; | |
5305 | fail: | |
5306 | return NULL; | |
5307 | } | |
5308 | ||
5309 | ||
5310 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5311 | PyObject *resultobj; | |
5312 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5313 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
5314 | int arg3 = (int) -1 ; |
5315 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
5316 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
5317 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5318 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5319 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5320 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5321 | long arg7 = (long) 0 ; | |
5322 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5323 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5324 | bool result; | |
5325 | wxPoint temp5 ; | |
5326 | wxSize temp6 ; | |
5327 | bool temp8 = False ; | |
5328 | PyObject * obj0 = 0 ; | |
5329 | PyObject * obj1 = 0 ; | |
5330 | PyObject * obj2 = 0 ; | |
5331 | PyObject * obj3 = 0 ; | |
5332 | PyObject * obj4 = 0 ; | |
5333 | PyObject * obj5 = 0 ; | |
5334 | PyObject * obj6 = 0 ; | |
5335 | PyObject * obj7 = 0 ; | |
5336 | char *kwnames[] = { | |
5337 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5338 | }; | |
5339 | ||
bfddbb17 | 5340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5343 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
5345 | if (obj2) { |
5346 | arg3 = (int) SWIG_AsInt(obj2); | |
5347 | if (PyErr_Occurred()) SWIG_fail; | |
5348 | } | |
5349 | if (obj3) { | |
5350 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5351 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 5352 | SWIG_fail; |
bfddbb17 RD |
5353 | if (arg4 == NULL) { |
5354 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5355 | SWIG_fail; | |
5356 | } | |
d55e5bfc RD |
5357 | } |
5358 | if (obj4) { | |
5359 | { | |
5360 | arg5 = &temp5; | |
5361 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5362 | } | |
5363 | } | |
5364 | if (obj5) { | |
5365 | { | |
5366 | arg6 = &temp6; | |
5367 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5368 | } | |
5369 | } | |
5370 | if (obj6) { | |
5371 | arg7 = (long) SWIG_AsLong(obj6); | |
5372 | if (PyErr_Occurred()) SWIG_fail; | |
5373 | } | |
5374 | if (obj7) { | |
5375 | { | |
5376 | arg8 = wxString_in_helper(obj7); | |
5377 | if (arg8 == NULL) SWIG_fail; | |
5378 | temp8 = True; | |
5379 | } | |
5380 | } | |
5381 | { | |
5382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5383 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5384 | ||
5385 | wxPyEndAllowThreads(__tstate); | |
5386 | if (PyErr_Occurred()) SWIG_fail; | |
5387 | } | |
5388 | { | |
5389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5390 | } | |
5391 | { | |
5392 | if (temp8) | |
5393 | delete arg8; | |
5394 | } | |
5395 | return resultobj; | |
5396 | fail: | |
5397 | { | |
5398 | if (temp8) | |
5399 | delete arg8; | |
5400 | } | |
5401 | return NULL; | |
5402 | } | |
5403 | ||
5404 | ||
5405 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5406 | PyObject *resultobj; | |
5407 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5408 | wxBitmap result; | |
5409 | PyObject * obj0 = 0 ; | |
5410 | char *kwnames[] = { | |
5411 | (char *) "self", NULL | |
5412 | }; | |
5413 | ||
5414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
5415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5417 | { | |
5418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5419 | result = (arg1)->GetBitmap(); | |
5420 | ||
5421 | wxPyEndAllowThreads(__tstate); | |
5422 | if (PyErr_Occurred()) SWIG_fail; | |
5423 | } | |
5424 | { | |
5425 | wxBitmap * resultptr; | |
5426 | resultptr = new wxBitmap((wxBitmap &) result); | |
5427 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
5428 | } | |
5429 | return resultobj; | |
5430 | fail: | |
5431 | return NULL; | |
5432 | } | |
5433 | ||
5434 | ||
5435 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5436 | PyObject *resultobj; | |
5437 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5438 | wxBitmap *arg2 = 0 ; | |
5439 | PyObject * obj0 = 0 ; | |
5440 | PyObject * obj1 = 0 ; | |
5441 | char *kwnames[] = { | |
5442 | (char *) "self",(char *) "bitmap", NULL | |
5443 | }; | |
5444 | ||
5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5448 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5449 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5450 | SWIG_fail; | |
5451 | if (arg2 == NULL) { | |
5452 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5453 | SWIG_fail; | |
5454 | } | |
5455 | { | |
5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5457 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5458 | ||
5459 | wxPyEndAllowThreads(__tstate); | |
5460 | if (PyErr_Occurred()) SWIG_fail; | |
5461 | } | |
5462 | Py_INCREF(Py_None); resultobj = Py_None; | |
5463 | return resultobj; | |
5464 | fail: | |
5465 | return NULL; | |
5466 | } | |
5467 | ||
5468 | ||
5469 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5470 | PyObject *resultobj; | |
5471 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5472 | wxIcon *arg2 = 0 ; | |
5473 | PyObject * obj0 = 0 ; | |
5474 | PyObject * obj1 = 0 ; | |
5475 | char *kwnames[] = { | |
5476 | (char *) "self",(char *) "icon", NULL | |
5477 | }; | |
5478 | ||
5479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
5480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5482 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5483 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5484 | SWIG_fail; | |
5485 | if (arg2 == NULL) { | |
5486 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5487 | SWIG_fail; | |
5488 | } | |
5489 | { | |
5490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5491 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5492 | ||
5493 | wxPyEndAllowThreads(__tstate); | |
5494 | if (PyErr_Occurred()) SWIG_fail; | |
5495 | } | |
5496 | Py_INCREF(Py_None); resultobj = Py_None; | |
5497 | return resultobj; | |
5498 | fail: | |
5499 | return NULL; | |
5500 | } | |
5501 | ||
5502 | ||
f20a2e1f RD |
5503 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5504 | PyObject *resultobj; | |
5505 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5506 | wxVisualAttributes result; | |
5507 | PyObject * obj0 = 0 ; | |
5508 | char *kwnames[] = { | |
5509 | (char *) "variant", NULL | |
5510 | }; | |
5511 | ||
5512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5513 | if (obj0) { | |
5514 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5515 | if (PyErr_Occurred()) SWIG_fail; | |
5516 | } | |
5517 | { | |
0439c23b | 5518 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5520 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5521 | ||
5522 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5523 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5524 | } |
5525 | { | |
5526 | wxVisualAttributes * resultptr; | |
5527 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5528 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5529 | } | |
5530 | return resultobj; | |
5531 | fail: | |
5532 | return NULL; | |
5533 | } | |
5534 | ||
5535 | ||
d55e5bfc RD |
5536 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { |
5537 | PyObject *obj; | |
5538 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5539 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5540 | Py_INCREF(obj); | |
5541 | return Py_BuildValue((char *)""); | |
5542 | } | |
5543 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { | |
5544 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
5545 | return 1; | |
5546 | } | |
5547 | ||
5548 | ||
5549 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5550 | PyObject *pyobj; | |
5551 | ||
5552 | { | |
5553 | #if wxUSE_UNICODE | |
5554 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5555 | #else | |
5556 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5557 | #endif | |
5558 | } | |
5559 | return pyobj; | |
5560 | } | |
5561 | ||
5562 | ||
5563 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject *resultobj; | |
5565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 5566 | int arg2 = (int) -1 ; |
d55e5bfc RD |
5567 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5568 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5569 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5570 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5571 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5572 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5573 | long arg6 = (long) 0 ; | |
5574 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5575 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5576 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5577 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5578 | wxListBox *result; | |
5579 | wxPoint temp3 ; | |
5580 | wxSize temp4 ; | |
5581 | bool temp5 = False ; | |
5582 | bool temp8 = False ; | |
5583 | PyObject * obj0 = 0 ; | |
5584 | PyObject * obj1 = 0 ; | |
5585 | PyObject * obj2 = 0 ; | |
5586 | PyObject * obj3 = 0 ; | |
5587 | PyObject * obj4 = 0 ; | |
5588 | PyObject * obj5 = 0 ; | |
5589 | PyObject * obj6 = 0 ; | |
5590 | PyObject * obj7 = 0 ; | |
5591 | char *kwnames[] = { | |
5592 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5593 | }; | |
5594 | ||
bfddbb17 | 5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
5598 | if (obj1) { |
5599 | arg2 = (int) SWIG_AsInt(obj1); | |
5600 | if (PyErr_Occurred()) SWIG_fail; | |
5601 | } | |
d55e5bfc RD |
5602 | if (obj2) { |
5603 | { | |
5604 | arg3 = &temp3; | |
5605 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5606 | } | |
5607 | } | |
5608 | if (obj3) { | |
5609 | { | |
5610 | arg4 = &temp4; | |
5611 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5612 | } | |
5613 | } | |
5614 | if (obj4) { | |
5615 | { | |
5616 | if (! PySequence_Check(obj4)) { | |
5617 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5618 | SWIG_fail; | |
5619 | } | |
5620 | arg5 = new wxArrayString; | |
5621 | temp5 = True; | |
5622 | int i, len=PySequence_Length(obj4); | |
5623 | for (i=0; i<len; i++) { | |
5624 | PyObject* item = PySequence_GetItem(obj4, i); | |
5625 | #if wxUSE_UNICODE | |
5626 | PyObject* str = PyObject_Unicode(item); | |
5627 | #else | |
5628 | PyObject* str = PyObject_Str(item); | |
5629 | #endif | |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
5631 | arg5->Add(Py2wxString(str)); | |
5632 | Py_DECREF(item); | |
5633 | Py_DECREF(str); | |
5634 | } | |
5635 | } | |
5636 | } | |
5637 | if (obj5) { | |
5638 | arg6 = (long) SWIG_AsLong(obj5); | |
5639 | if (PyErr_Occurred()) SWIG_fail; | |
5640 | } | |
5641 | if (obj6) { | |
5642 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
5643 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5644 | SWIG_fail; | |
5645 | if (arg7 == NULL) { | |
5646 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5647 | SWIG_fail; | |
5648 | } | |
5649 | } | |
5650 | if (obj7) { | |
5651 | { | |
5652 | arg8 = wxString_in_helper(obj7); | |
5653 | if (arg8 == NULL) SWIG_fail; | |
5654 | temp8 = True; | |
5655 | } | |
5656 | } | |
5657 | { | |
0439c23b | 5658 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5660 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5661 | ||
5662 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5663 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5664 | } |
5665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5666 | { | |
5667 | if (temp5) delete arg5; | |
5668 | } | |
5669 | { | |
5670 | if (temp8) | |
5671 | delete arg8; | |
5672 | } | |
5673 | return resultobj; | |
5674 | fail: | |
5675 | { | |
5676 | if (temp5) delete arg5; | |
5677 | } | |
5678 | { | |
5679 | if (temp8) | |
5680 | delete arg8; | |
5681 | } | |
5682 | return NULL; | |
5683 | } | |
5684 | ||
5685 | ||
5686 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5687 | PyObject *resultobj; | |
5688 | wxListBox *result; | |
5689 | char *kwnames[] = { | |
5690 | NULL | |
5691 | }; | |
5692 | ||
5693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5694 | { | |
0439c23b | 5695 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5697 | result = (wxListBox *)new wxListBox(); | |
5698 | ||
5699 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5700 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5701 | } |
5702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5703 | return resultobj; | |
5704 | fail: | |
5705 | return NULL; | |
5706 | } | |
5707 | ||
5708 | ||
5709 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5710 | PyObject *resultobj; | |
5711 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5712 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 5713 | int arg3 = (int) -1 ; |
d55e5bfc RD |
5714 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5715 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5716 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5717 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5718 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5719 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5720 | long arg7 = (long) 0 ; | |
5721 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5722 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5723 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5724 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5725 | bool result; | |
5726 | wxPoint temp4 ; | |
5727 | wxSize temp5 ; | |
5728 | bool temp6 = False ; | |
5729 | bool temp9 = False ; | |
5730 | PyObject * obj0 = 0 ; | |
5731 | PyObject * obj1 = 0 ; | |
5732 | PyObject * obj2 = 0 ; | |
5733 | PyObject * obj3 = 0 ; | |
5734 | PyObject * obj4 = 0 ; | |
5735 | PyObject * obj5 = 0 ; | |
5736 | PyObject * obj6 = 0 ; | |
5737 | PyObject * obj7 = 0 ; | |
5738 | PyObject * obj8 = 0 ; | |
5739 | char *kwnames[] = { | |
5740 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5741 | }; | |
5742 | ||
bfddbb17 | 5743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
5744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
5748 | if (obj2) { |
5749 | arg3 = (int) SWIG_AsInt(obj2); | |
5750 | if (PyErr_Occurred()) SWIG_fail; | |
5751 | } | |
d55e5bfc RD |
5752 | if (obj3) { |
5753 | { | |
5754 | arg4 = &temp4; | |
5755 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5756 | } | |
5757 | } | |
5758 | if (obj4) { | |
5759 | { | |
5760 | arg5 = &temp5; | |
5761 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5762 | } | |
5763 | } | |
5764 | if (obj5) { | |
5765 | { | |
5766 | if (! PySequence_Check(obj5)) { | |
5767 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5768 | SWIG_fail; | |
5769 | } | |
5770 | arg6 = new wxArrayString; | |
5771 | temp6 = True; | |
5772 | int i, len=PySequence_Length(obj5); | |
5773 | for (i=0; i<len; i++) { | |
5774 | PyObject* item = PySequence_GetItem(obj5, i); | |
5775 | #if wxUSE_UNICODE | |
5776 | PyObject* str = PyObject_Unicode(item); | |
5777 | #else | |
5778 | PyObject* str = PyObject_Str(item); | |
5779 | #endif | |
5780 | if (PyErr_Occurred()) SWIG_fail; | |
5781 | arg6->Add(Py2wxString(str)); | |
5782 | Py_DECREF(item); | |
5783 | Py_DECREF(str); | |
5784 | } | |
5785 | } | |
5786 | } | |
5787 | if (obj6) { | |
5788 | arg7 = (long) SWIG_AsLong(obj6); | |
5789 | if (PyErr_Occurred()) SWIG_fail; | |
5790 | } | |
5791 | if (obj7) { | |
5792 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
5793 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5794 | SWIG_fail; | |
5795 | if (arg8 == NULL) { | |
5796 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5797 | SWIG_fail; | |
5798 | } | |
5799 | } | |
5800 | if (obj8) { | |
5801 | { | |
5802 | arg9 = wxString_in_helper(obj8); | |
5803 | if (arg9 == NULL) SWIG_fail; | |
5804 | temp9 = True; | |
5805 | } | |
5806 | } | |
5807 | { | |
5808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5809 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5810 | ||
5811 | wxPyEndAllowThreads(__tstate); | |
5812 | if (PyErr_Occurred()) SWIG_fail; | |
5813 | } | |
5814 | { | |
5815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5816 | } | |
5817 | { | |
5818 | if (temp6) delete arg6; | |
5819 | } | |
5820 | { | |
5821 | if (temp9) | |
5822 | delete arg9; | |
5823 | } | |
5824 | return resultobj; | |
5825 | fail: | |
5826 | { | |
5827 | if (temp6) delete arg6; | |
5828 | } | |
5829 | { | |
5830 | if (temp9) | |
5831 | delete arg9; | |
5832 | } | |
5833 | return NULL; | |
5834 | } | |
5835 | ||
5836 | ||
5837 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5838 | PyObject *resultobj; | |
5839 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5840 | wxString *arg2 = 0 ; | |
5841 | int arg3 ; | |
5842 | PyObject *arg4 = (PyObject *) NULL ; | |
5843 | bool temp2 = False ; | |
5844 | PyObject * obj0 = 0 ; | |
5845 | PyObject * obj1 = 0 ; | |
5846 | PyObject * obj2 = 0 ; | |
5847 | PyObject * obj3 = 0 ; | |
5848 | char *kwnames[] = { | |
5849 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5850 | }; | |
5851 | ||
5852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5855 | { | |
5856 | arg2 = wxString_in_helper(obj1); | |
5857 | if (arg2 == NULL) SWIG_fail; | |
5858 | temp2 = True; | |
5859 | } | |
5860 | arg3 = (int) SWIG_AsInt(obj2); | |
5861 | if (PyErr_Occurred()) SWIG_fail; | |
5862 | if (obj3) { | |
5863 | arg4 = obj3; | |
5864 | } | |
5865 | { | |
5866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5867 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5868 | ||
5869 | wxPyEndAllowThreads(__tstate); | |
5870 | if (PyErr_Occurred()) SWIG_fail; | |
5871 | } | |
5872 | Py_INCREF(Py_None); resultobj = Py_None; | |
5873 | { | |
5874 | if (temp2) | |
5875 | delete arg2; | |
5876 | } | |
5877 | return resultobj; | |
5878 | fail: | |
5879 | { | |
5880 | if (temp2) | |
5881 | delete arg2; | |
5882 | } | |
5883 | return NULL; | |
5884 | } | |
5885 | ||
5886 | ||
5887 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5888 | PyObject *resultobj; | |
5889 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5890 | wxArrayString *arg2 = 0 ; | |
5891 | int arg3 ; | |
5892 | bool temp2 = False ; | |
5893 | PyObject * obj0 = 0 ; | |
5894 | PyObject * obj1 = 0 ; | |
5895 | PyObject * obj2 = 0 ; | |
5896 | char *kwnames[] = { | |
5897 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5898 | }; | |
5899 | ||
5900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5903 | { | |
5904 | if (! PySequence_Check(obj1)) { | |
5905 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5906 | SWIG_fail; | |
5907 | } | |
5908 | arg2 = new wxArrayString; | |
5909 | temp2 = True; | |
5910 | int i, len=PySequence_Length(obj1); | |
5911 | for (i=0; i<len; i++) { | |
5912 | PyObject* item = PySequence_GetItem(obj1, i); | |
5913 | #if wxUSE_UNICODE | |
5914 | PyObject* str = PyObject_Unicode(item); | |
5915 | #else | |
5916 | PyObject* str = PyObject_Str(item); | |
5917 | #endif | |
5918 | if (PyErr_Occurred()) SWIG_fail; | |
5919 | arg2->Add(Py2wxString(str)); | |
5920 | Py_DECREF(item); | |
5921 | Py_DECREF(str); | |
5922 | } | |
5923 | } | |
5924 | arg3 = (int) SWIG_AsInt(obj2); | |
5925 | if (PyErr_Occurred()) SWIG_fail; | |
5926 | { | |
5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5928 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5929 | ||
5930 | wxPyEndAllowThreads(__tstate); | |
5931 | if (PyErr_Occurred()) SWIG_fail; | |
5932 | } | |
5933 | Py_INCREF(Py_None); resultobj = Py_None; | |
5934 | { | |
5935 | if (temp2) delete arg2; | |
5936 | } | |
5937 | return resultobj; | |
5938 | fail: | |
5939 | { | |
5940 | if (temp2) delete arg2; | |
5941 | } | |
5942 | return NULL; | |
5943 | } | |
5944 | ||
5945 | ||
5946 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5947 | PyObject *resultobj; | |
5948 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5949 | wxArrayString *arg2 = 0 ; | |
5950 | bool temp2 = False ; | |
5951 | PyObject * obj0 = 0 ; | |
5952 | PyObject * obj1 = 0 ; | |
5953 | char *kwnames[] = { | |
5954 | (char *) "self",(char *) "items", NULL | |
5955 | }; | |
5956 | ||
5957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5960 | { | |
5961 | if (! PySequence_Check(obj1)) { | |
5962 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5963 | SWIG_fail; | |
5964 | } | |
5965 | arg2 = new wxArrayString; | |
5966 | temp2 = True; | |
5967 | int i, len=PySequence_Length(obj1); | |
5968 | for (i=0; i<len; i++) { | |
5969 | PyObject* item = PySequence_GetItem(obj1, i); | |
5970 | #if wxUSE_UNICODE | |
5971 | PyObject* str = PyObject_Unicode(item); | |
5972 | #else | |
5973 | PyObject* str = PyObject_Str(item); | |
5974 | #endif | |
5975 | if (PyErr_Occurred()) SWIG_fail; | |
5976 | arg2->Add(Py2wxString(str)); | |
5977 | Py_DECREF(item); | |
5978 | Py_DECREF(str); | |
5979 | } | |
5980 | } | |
5981 | { | |
5982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5983 | (arg1)->Set((wxArrayString const &)*arg2); | |
5984 | ||
5985 | wxPyEndAllowThreads(__tstate); | |
5986 | if (PyErr_Occurred()) SWIG_fail; | |
5987 | } | |
5988 | Py_INCREF(Py_None); resultobj = Py_None; | |
5989 | { | |
5990 | if (temp2) delete arg2; | |
5991 | } | |
5992 | return resultobj; | |
5993 | fail: | |
5994 | { | |
5995 | if (temp2) delete arg2; | |
5996 | } | |
5997 | return NULL; | |
5998 | } | |
5999 | ||
6000 | ||
6001 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6002 | PyObject *resultobj; | |
6003 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6004 | int arg2 ; | |
6005 | bool result; | |
6006 | PyObject * obj0 = 0 ; | |
6007 | PyObject * obj1 = 0 ; | |
6008 | char *kwnames[] = { | |
6009 | (char *) "self",(char *) "n", NULL | |
6010 | }; | |
6011 | ||
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
6013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6015 | arg2 = (int) SWIG_AsInt(obj1); | |
6016 | if (PyErr_Occurred()) SWIG_fail; | |
6017 | { | |
6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6019 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
6022 | if (PyErr_Occurred()) SWIG_fail; | |
6023 | } | |
6024 | { | |
6025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6026 | } | |
6027 | return resultobj; | |
6028 | fail: | |
6029 | return NULL; | |
6030 | } | |
6031 | ||
6032 | ||
6033 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6034 | PyObject *resultobj; | |
6035 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6036 | int arg2 ; | |
6037 | bool arg3 = (bool) True ; | |
6038 | PyObject * obj0 = 0 ; | |
6039 | PyObject * obj1 = 0 ; | |
6040 | PyObject * obj2 = 0 ; | |
6041 | char *kwnames[] = { | |
6042 | (char *) "self",(char *) "n",(char *) "select", NULL | |
6043 | }; | |
6044 | ||
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6048 | arg2 = (int) SWIG_AsInt(obj1); | |
6049 | if (PyErr_Occurred()) SWIG_fail; | |
6050 | if (obj2) { | |
6051 | arg3 = (bool) SWIG_AsBool(obj2); | |
6052 | if (PyErr_Occurred()) SWIG_fail; | |
6053 | } | |
6054 | { | |
6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6056 | (arg1)->SetSelection(arg2,arg3); | |
6057 | ||
6058 | wxPyEndAllowThreads(__tstate); | |
6059 | if (PyErr_Occurred()) SWIG_fail; | |
6060 | } | |
6061 | Py_INCREF(Py_None); resultobj = Py_None; | |
6062 | return resultobj; | |
6063 | fail: | |
6064 | return NULL; | |
6065 | } | |
6066 | ||
6067 | ||
6068 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6069 | PyObject *resultobj; | |
6070 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6071 | int arg2 ; | |
6072 | PyObject * obj0 = 0 ; | |
6073 | PyObject * obj1 = 0 ; | |
6074 | char *kwnames[] = { | |
6075 | (char *) "self",(char *) "n", NULL | |
6076 | }; | |
6077 | ||
6078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
6079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6081 | arg2 = (int) SWIG_AsInt(obj1); | |
6082 | if (PyErr_Occurred()) SWIG_fail; | |
6083 | { | |
6084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6085 | (arg1)->Select(arg2); | |
6086 | ||
6087 | wxPyEndAllowThreads(__tstate); | |
6088 | if (PyErr_Occurred()) SWIG_fail; | |
6089 | } | |
6090 | Py_INCREF(Py_None); resultobj = Py_None; | |
6091 | return resultobj; | |
6092 | fail: | |
6093 | return NULL; | |
6094 | } | |
6095 | ||
6096 | ||
6097 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6098 | PyObject *resultobj; | |
6099 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6100 | int arg2 ; | |
6101 | PyObject * obj0 = 0 ; | |
6102 | PyObject * obj1 = 0 ; | |
6103 | char *kwnames[] = { | |
6104 | (char *) "self",(char *) "n", NULL | |
6105 | }; | |
6106 | ||
6107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
6108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6110 | arg2 = (int) SWIG_AsInt(obj1); | |
6111 | if (PyErr_Occurred()) SWIG_fail; | |
6112 | { | |
6113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6114 | (arg1)->Deselect(arg2); | |
6115 | ||
6116 | wxPyEndAllowThreads(__tstate); | |
6117 | if (PyErr_Occurred()) SWIG_fail; | |
6118 | } | |
6119 | Py_INCREF(Py_None); resultobj = Py_None; | |
6120 | return resultobj; | |
6121 | fail: | |
6122 | return NULL; | |
6123 | } | |
6124 | ||
6125 | ||
6126 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6127 | PyObject *resultobj; | |
6128 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6129 | int arg2 = (int) -1 ; | |
6130 | PyObject * obj0 = 0 ; | |
6131 | PyObject * obj1 = 0 ; | |
6132 | char *kwnames[] = { | |
6133 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6134 | }; | |
6135 | ||
6136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
6137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6139 | if (obj1) { | |
6140 | arg2 = (int) SWIG_AsInt(obj1); | |
6141 | if (PyErr_Occurred()) SWIG_fail; | |
6142 | } | |
6143 | { | |
6144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6145 | (arg1)->DeselectAll(arg2); | |
6146 | ||
6147 | wxPyEndAllowThreads(__tstate); | |
6148 | if (PyErr_Occurred()) SWIG_fail; | |
6149 | } | |
6150 | Py_INCREF(Py_None); resultobj = Py_None; | |
6151 | return resultobj; | |
6152 | fail: | |
6153 | return NULL; | |
6154 | } | |
6155 | ||
6156 | ||
6157 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6158 | PyObject *resultobj; | |
6159 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6160 | wxString *arg2 = 0 ; | |
6161 | bool arg3 = (bool) True ; | |
6162 | bool result; | |
6163 | bool temp2 = False ; | |
6164 | PyObject * obj0 = 0 ; | |
6165 | PyObject * obj1 = 0 ; | |
6166 | PyObject * obj2 = 0 ; | |
6167 | char *kwnames[] = { | |
6168 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6169 | }; | |
6170 | ||
6171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6174 | { | |
6175 | arg2 = wxString_in_helper(obj1); | |
6176 | if (arg2 == NULL) SWIG_fail; | |
6177 | temp2 = True; | |
6178 | } | |
6179 | if (obj2) { | |
6180 | arg3 = (bool) SWIG_AsBool(obj2); | |
6181 | if (PyErr_Occurred()) SWIG_fail; | |
6182 | } | |
6183 | { | |
6184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6185 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6186 | ||
6187 | wxPyEndAllowThreads(__tstate); | |
6188 | if (PyErr_Occurred()) SWIG_fail; | |
6189 | } | |
6190 | { | |
6191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6192 | } | |
6193 | { | |
6194 | if (temp2) | |
6195 | delete arg2; | |
6196 | } | |
6197 | return resultobj; | |
6198 | fail: | |
6199 | { | |
6200 | if (temp2) | |
6201 | delete arg2; | |
6202 | } | |
6203 | return NULL; | |
6204 | } | |
6205 | ||
6206 | ||
6207 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6208 | PyObject *resultobj; | |
6209 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6210 | PyObject *result; | |
6211 | PyObject * obj0 = 0 ; | |
6212 | char *kwnames[] = { | |
6213 | (char *) "self", NULL | |
6214 | }; | |
6215 | ||
6216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
6217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6219 | { | |
6220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6221 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6222 | ||
6223 | wxPyEndAllowThreads(__tstate); | |
6224 | if (PyErr_Occurred()) SWIG_fail; | |
6225 | } | |
6226 | resultobj = result; | |
6227 | return resultobj; | |
6228 | fail: | |
6229 | return NULL; | |
6230 | } | |
6231 | ||
6232 | ||
6233 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6234 | PyObject *resultobj; | |
6235 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6236 | int arg2 ; | |
6237 | PyObject * obj0 = 0 ; | |
6238 | PyObject * obj1 = 0 ; | |
6239 | char *kwnames[] = { | |
6240 | (char *) "self",(char *) "n", NULL | |
6241 | }; | |
6242 | ||
6243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
6244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6246 | arg2 = (int) SWIG_AsInt(obj1); | |
6247 | if (PyErr_Occurred()) SWIG_fail; | |
6248 | { | |
6249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6250 | (arg1)->SetFirstItem(arg2); | |
6251 | ||
6252 | wxPyEndAllowThreads(__tstate); | |
6253 | if (PyErr_Occurred()) SWIG_fail; | |
6254 | } | |
6255 | Py_INCREF(Py_None); resultobj = Py_None; | |
6256 | return resultobj; | |
6257 | fail: | |
6258 | return NULL; | |
6259 | } | |
6260 | ||
6261 | ||
6262 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6263 | PyObject *resultobj; | |
6264 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6265 | wxString *arg2 = 0 ; | |
6266 | bool temp2 = False ; | |
6267 | PyObject * obj0 = 0 ; | |
6268 | PyObject * obj1 = 0 ; | |
6269 | char *kwnames[] = { | |
6270 | (char *) "self",(char *) "s", NULL | |
6271 | }; | |
6272 | ||
6273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
6274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6276 | { | |
6277 | arg2 = wxString_in_helper(obj1); | |
6278 | if (arg2 == NULL) SWIG_fail; | |
6279 | temp2 = True; | |
6280 | } | |
6281 | { | |
6282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6283 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6284 | ||
6285 | wxPyEndAllowThreads(__tstate); | |
6286 | if (PyErr_Occurred()) SWIG_fail; | |
6287 | } | |
6288 | Py_INCREF(Py_None); resultobj = Py_None; | |
6289 | { | |
6290 | if (temp2) | |
6291 | delete arg2; | |
6292 | } | |
6293 | return resultobj; | |
6294 | fail: | |
6295 | { | |
6296 | if (temp2) | |
6297 | delete arg2; | |
6298 | } | |
6299 | return NULL; | |
6300 | } | |
6301 | ||
6302 | ||
6303 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6304 | PyObject *resultobj; | |
6305 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6306 | int arg2 ; | |
6307 | PyObject * obj0 = 0 ; | |
6308 | PyObject * obj1 = 0 ; | |
6309 | char *kwnames[] = { | |
6310 | (char *) "self",(char *) "n", NULL | |
6311 | }; | |
6312 | ||
6313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
6314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6316 | arg2 = (int) SWIG_AsInt(obj1); | |
6317 | if (PyErr_Occurred()) SWIG_fail; | |
6318 | { | |
6319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6320 | (arg1)->EnsureVisible(arg2); | |
6321 | ||
6322 | wxPyEndAllowThreads(__tstate); | |
6323 | if (PyErr_Occurred()) SWIG_fail; | |
6324 | } | |
6325 | Py_INCREF(Py_None); resultobj = Py_None; | |
6326 | return resultobj; | |
6327 | fail: | |
6328 | return NULL; | |
6329 | } | |
6330 | ||
6331 | ||
6332 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6333 | PyObject *resultobj; | |
6334 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6335 | wxString *arg2 = 0 ; | |
6336 | bool temp2 = False ; | |
6337 | PyObject * obj0 = 0 ; | |
6338 | PyObject * obj1 = 0 ; | |
6339 | char *kwnames[] = { | |
6340 | (char *) "self",(char *) "s", NULL | |
6341 | }; | |
6342 | ||
6343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
6344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6346 | { | |
6347 | arg2 = wxString_in_helper(obj1); | |
6348 | if (arg2 == NULL) SWIG_fail; | |
6349 | temp2 = True; | |
6350 | } | |
6351 | { | |
6352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6353 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6354 | ||
6355 | wxPyEndAllowThreads(__tstate); | |
6356 | if (PyErr_Occurred()) SWIG_fail; | |
6357 | } | |
6358 | Py_INCREF(Py_None); resultobj = Py_None; | |
6359 | { | |
6360 | if (temp2) | |
6361 | delete arg2; | |
6362 | } | |
6363 | return resultobj; | |
6364 | fail: | |
6365 | { | |
6366 | if (temp2) | |
6367 | delete arg2; | |
6368 | } | |
6369 | return NULL; | |
6370 | } | |
6371 | ||
6372 | ||
6373 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6374 | PyObject *resultobj; | |
6375 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6376 | bool result; | |
6377 | PyObject * obj0 = 0 ; | |
6378 | char *kwnames[] = { | |
6379 | (char *) "self", NULL | |
6380 | }; | |
6381 | ||
6382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
6383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6385 | { | |
6386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6387 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6388 | ||
6389 | wxPyEndAllowThreads(__tstate); | |
6390 | if (PyErr_Occurred()) SWIG_fail; | |
6391 | } | |
6392 | { | |
6393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6394 | } | |
6395 | return resultobj; | |
6396 | fail: | |
6397 | return NULL; | |
6398 | } | |
6399 | ||
6400 | ||
6401 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6402 | PyObject *resultobj; | |
6403 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6404 | int arg2 ; | |
6405 | wxColour *arg3 = 0 ; | |
6406 | wxColour temp3 ; | |
6407 | PyObject * obj0 = 0 ; | |
6408 | PyObject * obj1 = 0 ; | |
6409 | PyObject * obj2 = 0 ; | |
6410 | char *kwnames[] = { | |
6411 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6412 | }; | |
6413 | ||
6414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6417 | arg2 = (int) SWIG_AsInt(obj1); | |
6418 | if (PyErr_Occurred()) SWIG_fail; | |
6419 | { | |
6420 | arg3 = &temp3; | |
6421 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6422 | } | |
6423 | { | |
6424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6425 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6426 | ||
6427 | wxPyEndAllowThreads(__tstate); | |
6428 | if (PyErr_Occurred()) SWIG_fail; | |
6429 | } | |
6430 | Py_INCREF(Py_None); resultobj = Py_None; | |
6431 | return resultobj; | |
6432 | fail: | |
6433 | return NULL; | |
6434 | } | |
6435 | ||
6436 | ||
6437 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6438 | PyObject *resultobj; | |
6439 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6440 | int arg2 ; | |
6441 | wxColour *arg3 = 0 ; | |
6442 | wxColour temp3 ; | |
6443 | PyObject * obj0 = 0 ; | |
6444 | PyObject * obj1 = 0 ; | |
6445 | PyObject * obj2 = 0 ; | |
6446 | char *kwnames[] = { | |
6447 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6448 | }; | |
6449 | ||
6450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6453 | arg2 = (int) SWIG_AsInt(obj1); | |
6454 | if (PyErr_Occurred()) SWIG_fail; | |
6455 | { | |
6456 | arg3 = &temp3; | |
6457 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6458 | } | |
6459 | { | |
6460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6461 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6462 | ||
6463 | wxPyEndAllowThreads(__tstate); | |
6464 | if (PyErr_Occurred()) SWIG_fail; | |
6465 | } | |
6466 | Py_INCREF(Py_None); resultobj = Py_None; | |
6467 | return resultobj; | |
6468 | fail: | |
6469 | return NULL; | |
6470 | } | |
6471 | ||
6472 | ||
6473 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6474 | PyObject *resultobj; | |
6475 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6476 | int arg2 ; | |
6477 | wxFont *arg3 = 0 ; | |
6478 | PyObject * obj0 = 0 ; | |
6479 | PyObject * obj1 = 0 ; | |
6480 | PyObject * obj2 = 0 ; | |
6481 | char *kwnames[] = { | |
6482 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6483 | }; | |
6484 | ||
6485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6488 | arg2 = (int) SWIG_AsInt(obj1); | |
6489 | if (PyErr_Occurred()) SWIG_fail; | |
6490 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6491 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6492 | SWIG_fail; | |
6493 | if (arg3 == NULL) { | |
6494 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6495 | SWIG_fail; | |
6496 | } | |
6497 | { | |
6498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6499 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6500 | ||
6501 | wxPyEndAllowThreads(__tstate); | |
6502 | if (PyErr_Occurred()) SWIG_fail; | |
6503 | } | |
6504 | Py_INCREF(Py_None); resultobj = Py_None; | |
6505 | return resultobj; | |
6506 | fail: | |
6507 | return NULL; | |
6508 | } | |
6509 | ||
6510 | ||
6511 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6512 | PyObject *resultobj; | |
6513 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6514 | wxVisualAttributes result; | |
6515 | PyObject * obj0 = 0 ; | |
6516 | char *kwnames[] = { | |
6517 | (char *) "variant", NULL | |
6518 | }; | |
6519 | ||
6520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6521 | if (obj0) { | |
6522 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6523 | if (PyErr_Occurred()) SWIG_fail; | |
6524 | } | |
6525 | { | |
0439c23b | 6526 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6528 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6529 | ||
6530 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6531 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6532 | } |
6533 | { | |
6534 | wxVisualAttributes * resultptr; | |
6535 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6536 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6537 | } | |
6538 | return resultobj; | |
6539 | fail: | |
6540 | return NULL; | |
6541 | } | |
6542 | ||
6543 | ||
6544 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
6545 | PyObject *obj; | |
6546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6547 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6548 | Py_INCREF(obj); | |
6549 | return Py_BuildValue((char *)""); | |
6550 | } | |
6551 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6552 | PyObject *resultobj; | |
6553 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 6554 | int arg2 = (int) -1 ; |
d55e5bfc RD |
6555 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6556 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6557 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6558 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6559 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
6560 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6561 | long arg6 = (long) 0 ; | |
6562 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6563 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6564 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6565 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6566 | wxCheckListBox *result; | |
6567 | wxPoint temp3 ; | |
6568 | wxSize temp4 ; | |
6569 | bool temp5 = False ; | |
6570 | bool temp8 = False ; | |
6571 | PyObject * obj0 = 0 ; | |
6572 | PyObject * obj1 = 0 ; | |
6573 | PyObject * obj2 = 0 ; | |
6574 | PyObject * obj3 = 0 ; | |
6575 | PyObject * obj4 = 0 ; | |
6576 | PyObject * obj5 = 0 ; | |
6577 | PyObject * obj6 = 0 ; | |
6578 | PyObject * obj7 = 0 ; | |
6579 | char *kwnames[] = { | |
6580 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6581 | }; | |
6582 | ||
bfddbb17 | 6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
6584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
6586 | if (obj1) { |
6587 | arg2 = (int) SWIG_AsInt(obj1); | |
6588 | if (PyErr_Occurred()) SWIG_fail; | |
6589 | } | |
d55e5bfc RD |
6590 | if (obj2) { |
6591 | { | |
6592 | arg3 = &temp3; | |
6593 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6594 | } | |
6595 | } | |
6596 | if (obj3) { | |
6597 | { | |
6598 | arg4 = &temp4; | |
6599 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6600 | } | |
6601 | } | |
6602 | if (obj4) { | |
6603 | { | |
6604 | if (! PySequence_Check(obj4)) { | |
6605 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6606 | SWIG_fail; | |
6607 | } | |
6608 | arg5 = new wxArrayString; | |
6609 | temp5 = True; | |
6610 | int i, len=PySequence_Length(obj4); | |
6611 | for (i=0; i<len; i++) { | |
6612 | PyObject* item = PySequence_GetItem(obj4, i); | |
6613 | #if wxUSE_UNICODE | |
6614 | PyObject* str = PyObject_Unicode(item); | |
6615 | #else | |
6616 | PyObject* str = PyObject_Str(item); | |
6617 | #endif | |
6618 | if (PyErr_Occurred()) SWIG_fail; | |
6619 | arg5->Add(Py2wxString(str)); | |
6620 | Py_DECREF(item); | |
6621 | Py_DECREF(str); | |
6622 | } | |
6623 | } | |
6624 | } | |
6625 | if (obj5) { | |
6626 | arg6 = (long) SWIG_AsLong(obj5); | |
6627 | if (PyErr_Occurred()) SWIG_fail; | |
6628 | } | |
6629 | if (obj6) { | |
6630 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
6631 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6632 | SWIG_fail; | |
6633 | if (arg7 == NULL) { | |
6634 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6635 | SWIG_fail; | |
6636 | } | |
6637 | } | |
6638 | if (obj7) { | |
6639 | { | |
6640 | arg8 = wxString_in_helper(obj7); | |
6641 | if (arg8 == NULL) SWIG_fail; | |
6642 | temp8 = True; | |
6643 | } | |
6644 | } | |
6645 | { | |
0439c23b | 6646 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6648 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6649 | ||
6650 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6651 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6652 | } |
6653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6654 | { | |
6655 | if (temp5) delete arg5; | |
6656 | } | |
6657 | { | |
6658 | if (temp8) | |
6659 | delete arg8; | |
6660 | } | |
6661 | return resultobj; | |
6662 | fail: | |
6663 | { | |
6664 | if (temp5) delete arg5; | |
6665 | } | |
6666 | { | |
6667 | if (temp8) | |
6668 | delete arg8; | |
6669 | } | |
6670 | return NULL; | |
6671 | } | |
6672 | ||
6673 | ||
6674 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6675 | PyObject *resultobj; | |
6676 | wxCheckListBox *result; | |
6677 | char *kwnames[] = { | |
6678 | NULL | |
6679 | }; | |
6680 | ||
6681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6682 | { | |
0439c23b | 6683 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6685 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6686 | ||
6687 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6688 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6689 | } |
6690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6691 | return resultobj; | |
6692 | fail: | |
6693 | return NULL; | |
6694 | } | |
6695 | ||
6696 | ||
6697 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6698 | PyObject *resultobj; | |
6699 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6700 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 6701 | int arg3 = (int) -1 ; |
d55e5bfc RD |
6702 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6703 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6704 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6705 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6706 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
6707 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6708 | long arg7 = (long) 0 ; | |
6709 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6710 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6711 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6712 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6713 | bool result; | |
6714 | wxPoint temp4 ; | |
6715 | wxSize temp5 ; | |
6716 | bool temp6 = False ; | |
6717 | bool temp9 = False ; | |
6718 | PyObject * obj0 = 0 ; | |
6719 | PyObject * obj1 = 0 ; | |
6720 | PyObject * obj2 = 0 ; | |
6721 | PyObject * obj3 = 0 ; | |
6722 | PyObject * obj4 = 0 ; | |
6723 | PyObject * obj5 = 0 ; | |
6724 | PyObject * obj6 = 0 ; | |
6725 | PyObject * obj7 = 0 ; | |
6726 | PyObject * obj8 = 0 ; | |
6727 | char *kwnames[] = { | |
6728 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6729 | }; | |
6730 | ||
bfddbb17 | 6731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
6732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
6736 | if (obj2) { |
6737 | arg3 = (int) SWIG_AsInt(obj2); | |
6738 | if (PyErr_Occurred()) SWIG_fail; | |
6739 | } | |
d55e5bfc RD |
6740 | if (obj3) { |
6741 | { | |
6742 | arg4 = &temp4; | |
6743 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6744 | } | |
6745 | } | |
6746 | if (obj4) { | |
6747 | { | |
6748 | arg5 = &temp5; | |
6749 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6750 | } | |
6751 | } | |
6752 | if (obj5) { | |
6753 | { | |
6754 | if (! PySequence_Check(obj5)) { | |
6755 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6756 | SWIG_fail; | |
6757 | } | |
6758 | arg6 = new wxArrayString; | |
6759 | temp6 = True; | |
6760 | int i, len=PySequence_Length(obj5); | |
6761 | for (i=0; i<len; i++) { | |
6762 | PyObject* item = PySequence_GetItem(obj5, i); | |
6763 | #if wxUSE_UNICODE | |
6764 | PyObject* str = PyObject_Unicode(item); | |
6765 | #else | |
6766 | PyObject* str = PyObject_Str(item); | |
6767 | #endif | |
6768 | if (PyErr_Occurred()) SWIG_fail; | |
6769 | arg6->Add(Py2wxString(str)); | |
6770 | Py_DECREF(item); | |
6771 | Py_DECREF(str); | |
6772 | } | |
6773 | } | |
6774 | } | |
6775 | if (obj6) { | |
6776 | arg7 = (long) SWIG_AsLong(obj6); | |
6777 | if (PyErr_Occurred()) SWIG_fail; | |
6778 | } | |
6779 | if (obj7) { | |
6780 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
6781 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6782 | SWIG_fail; | |
6783 | if (arg8 == NULL) { | |
6784 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6785 | SWIG_fail; | |
6786 | } | |
6787 | } | |
6788 | if (obj8) { | |
6789 | { | |
6790 | arg9 = wxString_in_helper(obj8); | |
6791 | if (arg9 == NULL) SWIG_fail; | |
6792 | temp9 = True; | |
6793 | } | |
6794 | } | |
6795 | { | |
6796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6797 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6798 | ||
6799 | wxPyEndAllowThreads(__tstate); | |
6800 | if (PyErr_Occurred()) SWIG_fail; | |
6801 | } | |
6802 | { | |
6803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6804 | } | |
6805 | { | |
6806 | if (temp6) delete arg6; | |
6807 | } | |
6808 | { | |
6809 | if (temp9) | |
6810 | delete arg9; | |
6811 | } | |
6812 | return resultobj; | |
6813 | fail: | |
6814 | { | |
6815 | if (temp6) delete arg6; | |
6816 | } | |
6817 | { | |
6818 | if (temp9) | |
6819 | delete arg9; | |
6820 | } | |
6821 | return NULL; | |
6822 | } | |
6823 | ||
6824 | ||
6825 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6826 | PyObject *resultobj; | |
6827 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6828 | int arg2 ; | |
6829 | bool result; | |
6830 | PyObject * obj0 = 0 ; | |
6831 | PyObject * obj1 = 0 ; | |
6832 | char *kwnames[] = { | |
6833 | (char *) "self",(char *) "index", NULL | |
6834 | }; | |
6835 | ||
6836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
6837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6839 | arg2 = (int) SWIG_AsInt(obj1); | |
6840 | if (PyErr_Occurred()) SWIG_fail; | |
6841 | { | |
6842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6843 | result = (bool)(arg1)->IsChecked(arg2); | |
6844 | ||
6845 | wxPyEndAllowThreads(__tstate); | |
6846 | if (PyErr_Occurred()) SWIG_fail; | |
6847 | } | |
6848 | { | |
6849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6850 | } | |
6851 | return resultobj; | |
6852 | fail: | |
6853 | return NULL; | |
6854 | } | |
6855 | ||
6856 | ||
6857 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6858 | PyObject *resultobj; | |
6859 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6860 | int arg2 ; | |
6861 | int arg3 = (int) True ; | |
6862 | PyObject * obj0 = 0 ; | |
6863 | PyObject * obj1 = 0 ; | |
6864 | PyObject * obj2 = 0 ; | |
6865 | char *kwnames[] = { | |
6866 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6867 | }; | |
6868 | ||
6869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6872 | arg2 = (int) SWIG_AsInt(obj1); | |
6873 | if (PyErr_Occurred()) SWIG_fail; | |
6874 | if (obj2) { | |
6875 | arg3 = (int) SWIG_AsInt(obj2); | |
6876 | if (PyErr_Occurred()) SWIG_fail; | |
6877 | } | |
6878 | { | |
6879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6880 | (arg1)->Check(arg2,arg3); | |
6881 | ||
6882 | wxPyEndAllowThreads(__tstate); | |
6883 | if (PyErr_Occurred()) SWIG_fail; | |
6884 | } | |
6885 | Py_INCREF(Py_None); resultobj = Py_None; | |
6886 | return resultobj; | |
6887 | fail: | |
6888 | return NULL; | |
6889 | } | |
6890 | ||
6891 | ||
6892 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6893 | PyObject *resultobj; | |
6894 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6895 | wxPoint *arg2 = 0 ; | |
6896 | int result; | |
6897 | wxPoint temp2 ; | |
6898 | PyObject * obj0 = 0 ; | |
6899 | PyObject * obj1 = 0 ; | |
6900 | char *kwnames[] = { | |
6901 | (char *) "self",(char *) "pt", NULL | |
6902 | }; | |
6903 | ||
6904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6907 | { | |
6908 | arg2 = &temp2; | |
6909 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6910 | } | |
6911 | { | |
6912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6913 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6914 | ||
6915 | wxPyEndAllowThreads(__tstate); | |
6916 | if (PyErr_Occurred()) SWIG_fail; | |
6917 | } | |
6918 | resultobj = SWIG_FromInt((int)result); | |
6919 | return resultobj; | |
6920 | fail: | |
6921 | return NULL; | |
6922 | } | |
6923 | ||
6924 | ||
6925 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6926 | PyObject *resultobj; | |
6927 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6928 | int arg2 ; | |
6929 | int arg3 ; | |
6930 | int result; | |
6931 | PyObject * obj0 = 0 ; | |
6932 | PyObject * obj1 = 0 ; | |
6933 | PyObject * obj2 = 0 ; | |
6934 | char *kwnames[] = { | |
6935 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6936 | }; | |
6937 | ||
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6941 | arg2 = (int) SWIG_AsInt(obj1); | |
6942 | if (PyErr_Occurred()) SWIG_fail; | |
6943 | arg3 = (int) SWIG_AsInt(obj2); | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | { | |
6946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6947 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6948 | ||
6949 | wxPyEndAllowThreads(__tstate); | |
6950 | if (PyErr_Occurred()) SWIG_fail; | |
6951 | } | |
6952 | resultobj = SWIG_FromInt((int)result); | |
6953 | return resultobj; | |
6954 | fail: | |
6955 | return NULL; | |
6956 | } | |
6957 | ||
6958 | ||
6959 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6960 | PyObject *obj; | |
6961 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6962 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6963 | Py_INCREF(obj); | |
6964 | return Py_BuildValue((char *)""); | |
6965 | } | |
6966 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { | |
6967 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6968 | return 1; | |
6969 | } | |
6970 | ||
6971 | ||
6972 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6973 | PyObject *pyobj; | |
6974 | ||
6975 | { | |
6976 | #if wxUSE_UNICODE | |
6977 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6978 | #else | |
6979 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6980 | #endif | |
6981 | } | |
6982 | return pyobj; | |
6983 | } | |
6984 | ||
6985 | ||
908b74cd | 6986 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 6987 | PyObject *resultobj; |
908b74cd RD |
6988 | wxColour const &arg1_defvalue = wxNullColour ; |
6989 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d55e5bfc RD |
6990 | wxColour const &arg2_defvalue = wxNullColour ; |
6991 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6992 | wxFont const &arg3_defvalue = wxNullFont ; | |
6993 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6994 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6995 | wxTextAttr *result; | |
6996 | wxColour temp1 ; | |
6997 | wxColour temp2 ; | |
6998 | PyObject * obj0 = 0 ; | |
6999 | PyObject * obj1 = 0 ; | |
7000 | PyObject * obj2 = 0 ; | |
7001 | PyObject * obj3 = 0 ; | |
908b74cd RD |
7002 | char *kwnames[] = { |
7003 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
7004 | }; | |
d55e5bfc | 7005 | |
908b74cd RD |
7006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7007 | if (obj0) { | |
7008 | { | |
7009 | arg1 = &temp1; | |
7010 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
7011 | } | |
d55e5bfc RD |
7012 | } |
7013 | if (obj1) { | |
7014 | { | |
7015 | arg2 = &temp2; | |
7016 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7017 | } | |
7018 | } | |
7019 | if (obj2) { | |
7020 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
7021 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7022 | SWIG_fail; | |
7023 | if (arg3 == NULL) { | |
7024 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7025 | SWIG_fail; | |
7026 | } | |
7027 | } | |
7028 | if (obj3) { | |
7029 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); | |
7030 | if (PyErr_Occurred()) SWIG_fail; | |
7031 | } | |
7032 | { | |
7033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7034 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
7035 | ||
7036 | wxPyEndAllowThreads(__tstate); | |
7037 | if (PyErr_Occurred()) SWIG_fail; | |
7038 | } | |
7039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
7040 | return resultobj; | |
7041 | fail: | |
7042 | return NULL; | |
7043 | } | |
7044 | ||
7045 | ||
d55e5bfc RD |
7046 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
7047 | PyObject *resultobj; | |
7048 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7049 | PyObject * obj0 = 0 ; | |
7050 | char *kwnames[] = { | |
7051 | (char *) "self", NULL | |
7052 | }; | |
7053 | ||
7054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
7055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7057 | { | |
7058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7059 | delete arg1; | |
7060 | ||
7061 | wxPyEndAllowThreads(__tstate); | |
7062 | if (PyErr_Occurred()) SWIG_fail; | |
7063 | } | |
7064 | Py_INCREF(Py_None); resultobj = Py_None; | |
7065 | return resultobj; | |
7066 | fail: | |
7067 | return NULL; | |
7068 | } | |
7069 | ||
7070 | ||
7071 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7072 | PyObject *resultobj; | |
7073 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7074 | PyObject * obj0 = 0 ; | |
7075 | char *kwnames[] = { | |
7076 | (char *) "self", NULL | |
7077 | }; | |
7078 | ||
7079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
7080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7082 | { | |
7083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7084 | (arg1)->Init(); | |
7085 | ||
7086 | wxPyEndAllowThreads(__tstate); | |
7087 | if (PyErr_Occurred()) SWIG_fail; | |
7088 | } | |
7089 | Py_INCREF(Py_None); resultobj = Py_None; | |
7090 | return resultobj; | |
7091 | fail: | |
7092 | return NULL; | |
7093 | } | |
7094 | ||
7095 | ||
7096 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7097 | PyObject *resultobj; | |
7098 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7099 | wxColour *arg2 = 0 ; | |
7100 | wxColour temp2 ; | |
7101 | PyObject * obj0 = 0 ; | |
7102 | PyObject * obj1 = 0 ; | |
7103 | char *kwnames[] = { | |
7104 | (char *) "self",(char *) "colText", NULL | |
7105 | }; | |
7106 | ||
7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
7108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7110 | { | |
7111 | arg2 = &temp2; | |
7112 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7113 | } | |
7114 | { | |
7115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7116 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7117 | ||
7118 | wxPyEndAllowThreads(__tstate); | |
7119 | if (PyErr_Occurred()) SWIG_fail; | |
7120 | } | |
7121 | Py_INCREF(Py_None); resultobj = Py_None; | |
7122 | return resultobj; | |
7123 | fail: | |
7124 | return NULL; | |
7125 | } | |
7126 | ||
7127 | ||
7128 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7129 | PyObject *resultobj; | |
7130 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7131 | wxColour *arg2 = 0 ; | |
7132 | wxColour temp2 ; | |
7133 | PyObject * obj0 = 0 ; | |
7134 | PyObject * obj1 = 0 ; | |
7135 | char *kwnames[] = { | |
7136 | (char *) "self",(char *) "colBack", NULL | |
7137 | }; | |
7138 | ||
7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
7140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7142 | { | |
7143 | arg2 = &temp2; | |
7144 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7145 | } | |
7146 | { | |
7147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7148 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7149 | ||
7150 | wxPyEndAllowThreads(__tstate); | |
7151 | if (PyErr_Occurred()) SWIG_fail; | |
7152 | } | |
7153 | Py_INCREF(Py_None); resultobj = Py_None; | |
7154 | return resultobj; | |
7155 | fail: | |
7156 | return NULL; | |
7157 | } | |
7158 | ||
7159 | ||
7160 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7161 | PyObject *resultobj; | |
7162 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7163 | wxFont *arg2 = 0 ; | |
7164 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7165 | PyObject * obj0 = 0 ; | |
7166 | PyObject * obj1 = 0 ; | |
7167 | PyObject * obj2 = 0 ; | |
7168 | char *kwnames[] = { | |
7169 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7170 | }; | |
7171 | ||
7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7175 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7176 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7177 | SWIG_fail; | |
7178 | if (arg2 == NULL) { | |
7179 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7180 | SWIG_fail; | |
7181 | } | |
7182 | if (obj2) { | |
7183 | arg3 = (long) SWIG_AsLong(obj2); | |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
7185 | } | |
7186 | { | |
7187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7188 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7189 | ||
7190 | wxPyEndAllowThreads(__tstate); | |
7191 | if (PyErr_Occurred()) SWIG_fail; | |
7192 | } | |
7193 | Py_INCREF(Py_None); resultobj = Py_None; | |
7194 | return resultobj; | |
7195 | fail: | |
7196 | return NULL; | |
7197 | } | |
7198 | ||
7199 | ||
7200 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7201 | PyObject *resultobj; | |
7202 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7203 | int arg2 ; | |
7204 | PyObject * obj0 = 0 ; | |
7205 | PyObject * obj1 = 0 ; | |
7206 | char *kwnames[] = { | |
7207 | (char *) "self",(char *) "alignment", NULL | |
7208 | }; | |
7209 | ||
7210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
7211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7213 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
7214 | if (PyErr_Occurred()) SWIG_fail; | |
7215 | { | |
7216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7217 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7218 | ||
7219 | wxPyEndAllowThreads(__tstate); | |
7220 | if (PyErr_Occurred()) SWIG_fail; | |
7221 | } | |
7222 | Py_INCREF(Py_None); resultobj = Py_None; | |
7223 | return resultobj; | |
7224 | fail: | |
7225 | return NULL; | |
7226 | } | |
7227 | ||
7228 | ||
7229 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7230 | PyObject *resultobj; | |
7231 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7232 | wxArrayInt *arg2 = 0 ; | |
7233 | bool temp2 = False ; | |
7234 | PyObject * obj0 = 0 ; | |
7235 | PyObject * obj1 = 0 ; | |
7236 | char *kwnames[] = { | |
7237 | (char *) "self",(char *) "tabs", NULL | |
7238 | }; | |
7239 | ||
7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
7241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7243 | { | |
7244 | if (! PySequence_Check(obj1)) { | |
7245 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7246 | SWIG_fail; | |
7247 | } | |
7248 | arg2 = new wxArrayInt; | |
7249 | temp2 = True; | |
7250 | int i, len=PySequence_Length(obj1); | |
7251 | for (i=0; i<len; i++) { | |
7252 | PyObject* item = PySequence_GetItem(obj1, i); | |
7253 | PyObject* number = PyNumber_Int(item); | |
7254 | arg2->Add(PyInt_AS_LONG(number)); | |
7255 | Py_DECREF(item); | |
7256 | Py_DECREF(number); | |
7257 | } | |
7258 | } | |
7259 | { | |
7260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7261 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7262 | ||
7263 | wxPyEndAllowThreads(__tstate); | |
7264 | if (PyErr_Occurred()) SWIG_fail; | |
7265 | } | |
7266 | Py_INCREF(Py_None); resultobj = Py_None; | |
7267 | { | |
7268 | if (temp2) delete arg2; | |
7269 | } | |
7270 | return resultobj; | |
7271 | fail: | |
7272 | { | |
7273 | if (temp2) delete arg2; | |
7274 | } | |
7275 | return NULL; | |
7276 | } | |
7277 | ||
7278 | ||
7279 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7280 | PyObject *resultobj; | |
7281 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7282 | int arg2 ; | |
68e533f8 | 7283 | int arg3 = (int) 0 ; |
d55e5bfc RD |
7284 | PyObject * obj0 = 0 ; |
7285 | PyObject * obj1 = 0 ; | |
68e533f8 | 7286 | PyObject * obj2 = 0 ; |
d55e5bfc | 7287 | char *kwnames[] = { |
68e533f8 | 7288 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d55e5bfc RD |
7289 | }; |
7290 | ||
68e533f8 | 7291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
7292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7294 | arg2 = (int) SWIG_AsInt(obj1); | |
7295 | if (PyErr_Occurred()) SWIG_fail; | |
68e533f8 RD |
7296 | if (obj2) { |
7297 | arg3 = (int) SWIG_AsInt(obj2); | |
7298 | if (PyErr_Occurred()) SWIG_fail; | |
7299 | } | |
d55e5bfc RD |
7300 | { |
7301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 7302 | (arg1)->SetLeftIndent(arg2,arg3); |
d55e5bfc RD |
7303 | |
7304 | wxPyEndAllowThreads(__tstate); | |
7305 | if (PyErr_Occurred()) SWIG_fail; | |
7306 | } | |
7307 | Py_INCREF(Py_None); resultobj = Py_None; | |
7308 | return resultobj; | |
7309 | fail: | |
7310 | return NULL; | |
7311 | } | |
7312 | ||
7313 | ||
7314 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7315 | PyObject *resultobj; | |
7316 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7317 | int arg2 ; | |
7318 | PyObject * obj0 = 0 ; | |
7319 | PyObject * obj1 = 0 ; | |
7320 | char *kwnames[] = { | |
7321 | (char *) "self",(char *) "indent", NULL | |
7322 | }; | |
7323 | ||
7324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
7325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7327 | arg2 = (int) SWIG_AsInt(obj1); | |
7328 | if (PyErr_Occurred()) SWIG_fail; | |
7329 | { | |
7330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7331 | (arg1)->SetRightIndent(arg2); | |
7332 | ||
7333 | wxPyEndAllowThreads(__tstate); | |
7334 | if (PyErr_Occurred()) SWIG_fail; | |
7335 | } | |
7336 | Py_INCREF(Py_None); resultobj = Py_None; | |
7337 | return resultobj; | |
7338 | fail: | |
7339 | return NULL; | |
7340 | } | |
7341 | ||
7342 | ||
7343 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7344 | PyObject *resultobj; | |
7345 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7346 | long arg2 ; | |
7347 | PyObject * obj0 = 0 ; | |
7348 | PyObject * obj1 = 0 ; | |
7349 | char *kwnames[] = { | |
7350 | (char *) "self",(char *) "flags", NULL | |
7351 | }; | |
7352 | ||
7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7356 | arg2 = (long) SWIG_AsLong(obj1); | |
7357 | if (PyErr_Occurred()) SWIG_fail; | |
7358 | { | |
7359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7360 | (arg1)->SetFlags(arg2); | |
7361 | ||
7362 | wxPyEndAllowThreads(__tstate); | |
7363 | if (PyErr_Occurred()) SWIG_fail; | |
7364 | } | |
7365 | Py_INCREF(Py_None); resultobj = Py_None; | |
7366 | return resultobj; | |
7367 | fail: | |
7368 | return NULL; | |
7369 | } | |
7370 | ||
7371 | ||
7372 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7373 | PyObject *resultobj; | |
7374 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7375 | bool result; | |
7376 | PyObject * obj0 = 0 ; | |
7377 | char *kwnames[] = { | |
7378 | (char *) "self", NULL | |
7379 | }; | |
7380 | ||
7381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
7382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7384 | { | |
7385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7386 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7387 | ||
7388 | wxPyEndAllowThreads(__tstate); | |
7389 | if (PyErr_Occurred()) SWIG_fail; | |
7390 | } | |
7391 | { | |
7392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7393 | } | |
7394 | return resultobj; | |
7395 | fail: | |
7396 | return NULL; | |
7397 | } | |
7398 | ||
7399 | ||
7400 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7401 | PyObject *resultobj; | |
7402 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7403 | bool result; | |
7404 | PyObject * obj0 = 0 ; | |
7405 | char *kwnames[] = { | |
7406 | (char *) "self", NULL | |
7407 | }; | |
7408 | ||
7409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
7410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7412 | { | |
7413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7414 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7415 | ||
7416 | wxPyEndAllowThreads(__tstate); | |
7417 | if (PyErr_Occurred()) SWIG_fail; | |
7418 | } | |
7419 | { | |
7420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7421 | } | |
7422 | return resultobj; | |
7423 | fail: | |
7424 | return NULL; | |
7425 | } | |
7426 | ||
7427 | ||
7428 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7429 | PyObject *resultobj; | |
7430 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7431 | bool result; | |
7432 | PyObject * obj0 = 0 ; | |
7433 | char *kwnames[] = { | |
7434 | (char *) "self", NULL | |
7435 | }; | |
7436 | ||
7437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
7438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7440 | { | |
7441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7442 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7443 | ||
7444 | wxPyEndAllowThreads(__tstate); | |
7445 | if (PyErr_Occurred()) SWIG_fail; | |
7446 | } | |
7447 | { | |
7448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7449 | } | |
7450 | return resultobj; | |
7451 | fail: | |
7452 | return NULL; | |
7453 | } | |
7454 | ||
7455 | ||
7456 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7457 | PyObject *resultobj; | |
7458 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7459 | bool result; | |
7460 | PyObject * obj0 = 0 ; | |
7461 | char *kwnames[] = { | |
7462 | (char *) "self", NULL | |
7463 | }; | |
7464 | ||
7465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
7466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7468 | { | |
7469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7470 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7471 | ||
7472 | wxPyEndAllowThreads(__tstate); | |
7473 | if (PyErr_Occurred()) SWIG_fail; | |
7474 | } | |
7475 | { | |
7476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7477 | } | |
7478 | return resultobj; | |
7479 | fail: | |
7480 | return NULL; | |
7481 | } | |
7482 | ||
7483 | ||
7484 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7485 | PyObject *resultobj; | |
7486 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7487 | bool result; | |
7488 | PyObject * obj0 = 0 ; | |
7489 | char *kwnames[] = { | |
7490 | (char *) "self", NULL | |
7491 | }; | |
7492 | ||
7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
7494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7496 | { | |
7497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7498 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7499 | ||
7500 | wxPyEndAllowThreads(__tstate); | |
7501 | if (PyErr_Occurred()) SWIG_fail; | |
7502 | } | |
7503 | { | |
7504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7505 | } | |
7506 | return resultobj; | |
7507 | fail: | |
7508 | return NULL; | |
7509 | } | |
7510 | ||
7511 | ||
7512 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7513 | PyObject *resultobj; | |
7514 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7515 | bool result; | |
7516 | PyObject * obj0 = 0 ; | |
7517 | char *kwnames[] = { | |
7518 | (char *) "self", NULL | |
7519 | }; | |
7520 | ||
7521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
7522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7524 | { | |
7525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7526 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7527 | ||
7528 | wxPyEndAllowThreads(__tstate); | |
7529 | if (PyErr_Occurred()) SWIG_fail; | |
7530 | } | |
7531 | { | |
7532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7533 | } | |
7534 | return resultobj; | |
7535 | fail: | |
7536 | return NULL; | |
7537 | } | |
7538 | ||
7539 | ||
7540 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7541 | PyObject *resultobj; | |
7542 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7543 | bool result; | |
7544 | PyObject * obj0 = 0 ; | |
7545 | char *kwnames[] = { | |
7546 | (char *) "self", NULL | |
7547 | }; | |
7548 | ||
7549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
7550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7552 | { | |
7553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7554 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7555 | ||
7556 | wxPyEndAllowThreads(__tstate); | |
7557 | if (PyErr_Occurred()) SWIG_fail; | |
7558 | } | |
7559 | { | |
7560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7561 | } | |
7562 | return resultobj; | |
7563 | fail: | |
7564 | return NULL; | |
7565 | } | |
7566 | ||
7567 | ||
7568 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7569 | PyObject *resultobj; | |
7570 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7571 | long arg2 ; | |
7572 | bool result; | |
7573 | PyObject * obj0 = 0 ; | |
7574 | PyObject * obj1 = 0 ; | |
7575 | char *kwnames[] = { | |
7576 | (char *) "self",(char *) "flag", NULL | |
7577 | }; | |
7578 | ||
7579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
7580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7582 | arg2 = (long) SWIG_AsLong(obj1); | |
7583 | if (PyErr_Occurred()) SWIG_fail; | |
7584 | { | |
7585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7586 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7587 | ||
7588 | wxPyEndAllowThreads(__tstate); | |
7589 | if (PyErr_Occurred()) SWIG_fail; | |
7590 | } | |
7591 | { | |
7592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7593 | } | |
7594 | return resultobj; | |
7595 | fail: | |
7596 | return NULL; | |
7597 | } | |
7598 | ||
7599 | ||
7600 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7601 | PyObject *resultobj; | |
7602 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7603 | wxColour *result; | |
7604 | PyObject * obj0 = 0 ; | |
7605 | char *kwnames[] = { | |
7606 | (char *) "self", NULL | |
7607 | }; | |
7608 | ||
7609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
7610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7612 | { | |
7613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7614 | { | |
7615 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7616 | result = (wxColour *) &_result_ref; | |
7617 | } | |
7618 | ||
7619 | wxPyEndAllowThreads(__tstate); | |
7620 | if (PyErr_Occurred()) SWIG_fail; | |
7621 | } | |
7622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7623 | return resultobj; | |
7624 | fail: | |
7625 | return NULL; | |
7626 | } | |
7627 | ||
7628 | ||
7629 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7630 | PyObject *resultobj; | |
7631 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7632 | wxColour *result; | |
7633 | PyObject * obj0 = 0 ; | |
7634 | char *kwnames[] = { | |
7635 | (char *) "self", NULL | |
7636 | }; | |
7637 | ||
7638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
7639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7641 | { | |
7642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7643 | { | |
7644 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7645 | result = (wxColour *) &_result_ref; | |
7646 | } | |
7647 | ||
7648 | wxPyEndAllowThreads(__tstate); | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | } | |
7651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7652 | return resultobj; | |
7653 | fail: | |
7654 | return NULL; | |
7655 | } | |
7656 | ||
7657 | ||
7658 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7659 | PyObject *resultobj; | |
7660 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7661 | wxFont *result; | |
7662 | PyObject * obj0 = 0 ; | |
7663 | char *kwnames[] = { | |
7664 | (char *) "self", NULL | |
7665 | }; | |
7666 | ||
7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
7668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7670 | { | |
7671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7672 | { | |
7673 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7674 | result = (wxFont *) &_result_ref; | |
7675 | } | |
7676 | ||
7677 | wxPyEndAllowThreads(__tstate); | |
7678 | if (PyErr_Occurred()) SWIG_fail; | |
7679 | } | |
7680 | { | |
7681 | wxFont* resultptr = new wxFont(*result); | |
7682 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7683 | } | |
7684 | return resultobj; | |
7685 | fail: | |
7686 | return NULL; | |
7687 | } | |
7688 | ||
7689 | ||
7690 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7691 | PyObject *resultobj; | |
7692 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7693 | int result; | |
7694 | PyObject * obj0 = 0 ; | |
7695 | char *kwnames[] = { | |
7696 | (char *) "self", NULL | |
7697 | }; | |
7698 | ||
7699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7702 | { | |
7703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7704 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7705 | ||
7706 | wxPyEndAllowThreads(__tstate); | |
7707 | if (PyErr_Occurred()) SWIG_fail; | |
7708 | } | |
7709 | resultobj = SWIG_FromInt((int)result); | |
7710 | return resultobj; | |
7711 | fail: | |
7712 | return NULL; | |
7713 | } | |
7714 | ||
7715 | ||
7716 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7717 | PyObject *resultobj; | |
7718 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7719 | wxArrayInt *result; | |
7720 | PyObject * obj0 = 0 ; | |
7721 | char *kwnames[] = { | |
7722 | (char *) "self", NULL | |
7723 | }; | |
7724 | ||
7725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7728 | { | |
7729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7730 | { | |
7731 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7732 | result = (wxArrayInt *) &_result_ref; | |
7733 | } | |
7734 | ||
7735 | wxPyEndAllowThreads(__tstate); | |
7736 | if (PyErr_Occurred()) SWIG_fail; | |
7737 | } | |
7738 | { | |
7739 | resultobj = PyList_New(0); | |
7740 | size_t idx; | |
7741 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7742 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7743 | PyList_Append(resultobj, val); | |
7744 | Py_DECREF(val); | |
7745 | } | |
7746 | } | |
7747 | return resultobj; | |
7748 | fail: | |
7749 | return NULL; | |
7750 | } | |
7751 | ||
7752 | ||
7753 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7754 | PyObject *resultobj; | |
7755 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7756 | long result; | |
7757 | PyObject * obj0 = 0 ; | |
7758 | char *kwnames[] = { | |
7759 | (char *) "self", NULL | |
7760 | }; | |
7761 | ||
7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7765 | { | |
7766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7767 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7768 | ||
7769 | wxPyEndAllowThreads(__tstate); | |
7770 | if (PyErr_Occurred()) SWIG_fail; | |
7771 | } | |
7772 | resultobj = SWIG_FromLong((long)result); | |
7773 | return resultobj; | |
7774 | fail: | |
7775 | return NULL; | |
7776 | } | |
7777 | ||
7778 | ||
68e533f8 RD |
7779 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7780 | PyObject *resultobj; | |
7781 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7782 | long result; | |
7783 | PyObject * obj0 = 0 ; | |
7784 | char *kwnames[] = { | |
7785 | (char *) "self", NULL | |
7786 | }; | |
7787 | ||
7788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
7789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7791 | { | |
7792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7793 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
7794 | ||
7795 | wxPyEndAllowThreads(__tstate); | |
7796 | if (PyErr_Occurred()) SWIG_fail; | |
7797 | } | |
7798 | resultobj = SWIG_FromLong((long)result); | |
7799 | return resultobj; | |
7800 | fail: | |
7801 | return NULL; | |
7802 | } | |
7803 | ||
7804 | ||
d55e5bfc RD |
7805 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7806 | PyObject *resultobj; | |
7807 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7808 | long result; | |
7809 | PyObject * obj0 = 0 ; | |
7810 | char *kwnames[] = { | |
7811 | (char *) "self", NULL | |
7812 | }; | |
7813 | ||
7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7817 | { | |
7818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7819 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7820 | ||
7821 | wxPyEndAllowThreads(__tstate); | |
7822 | if (PyErr_Occurred()) SWIG_fail; | |
7823 | } | |
7824 | resultobj = SWIG_FromLong((long)result); | |
7825 | return resultobj; | |
7826 | fail: | |
7827 | return NULL; | |
7828 | } | |
7829 | ||
7830 | ||
7831 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7832 | PyObject *resultobj; | |
7833 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7834 | long result; | |
7835 | PyObject * obj0 = 0 ; | |
7836 | char *kwnames[] = { | |
7837 | (char *) "self", NULL | |
7838 | }; | |
7839 | ||
7840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7843 | { | |
7844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7845 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7846 | ||
7847 | wxPyEndAllowThreads(__tstate); | |
7848 | if (PyErr_Occurred()) SWIG_fail; | |
7849 | } | |
7850 | resultobj = SWIG_FromLong((long)result); | |
7851 | return resultobj; | |
7852 | fail: | |
7853 | return NULL; | |
7854 | } | |
7855 | ||
7856 | ||
7857 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7858 | PyObject *resultobj; | |
7859 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7860 | bool result; | |
7861 | PyObject * obj0 = 0 ; | |
7862 | char *kwnames[] = { | |
7863 | (char *) "self", NULL | |
7864 | }; | |
7865 | ||
7866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7869 | { | |
7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7871 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7872 | ||
7873 | wxPyEndAllowThreads(__tstate); | |
7874 | if (PyErr_Occurred()) SWIG_fail; | |
7875 | } | |
7876 | { | |
7877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7878 | } | |
7879 | return resultobj; | |
7880 | fail: | |
7881 | return NULL; | |
7882 | } | |
7883 | ||
7884 | ||
7885 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7886 | PyObject *resultobj; | |
7887 | wxTextAttr *arg1 = 0 ; | |
7888 | wxTextAttr *arg2 = 0 ; | |
7889 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7890 | wxTextAttr result; | |
7891 | PyObject * obj0 = 0 ; | |
7892 | PyObject * obj1 = 0 ; | |
7893 | PyObject * obj2 = 0 ; | |
7894 | char *kwnames[] = { | |
7895 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7896 | }; | |
7897 | ||
7898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7900 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7901 | SWIG_fail; | |
7902 | if (arg1 == NULL) { | |
7903 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7904 | SWIG_fail; | |
7905 | } | |
7906 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
7907 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7908 | SWIG_fail; | |
7909 | if (arg2 == NULL) { | |
7910 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7911 | SWIG_fail; | |
7912 | } | |
7913 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, | |
7914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7915 | { | |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
7922 | { | |
7923 | wxTextAttr * resultptr; | |
7924 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7925 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); | |
7926 | } | |
7927 | return resultobj; | |
7928 | fail: | |
7929 | return NULL; | |
7930 | } | |
7931 | ||
7932 | ||
7933 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7934 | PyObject *obj; | |
7935 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7936 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7937 | Py_INCREF(obj); | |
7938 | return Py_BuildValue((char *)""); | |
7939 | } | |
7940 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7941 | PyObject *resultobj; | |
7942 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 7943 | int arg2 = (int) -1 ; |
d55e5bfc RD |
7944 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7945 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7946 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7947 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7948 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7949 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7950 | long arg6 = (long) 0 ; | |
7951 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7952 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7953 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7954 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7955 | wxTextCtrl *result; | |
7956 | bool temp3 = False ; | |
7957 | wxPoint temp4 ; | |
7958 | wxSize temp5 ; | |
7959 | bool temp8 = False ; | |
7960 | PyObject * obj0 = 0 ; | |
7961 | PyObject * obj1 = 0 ; | |
7962 | PyObject * obj2 = 0 ; | |
7963 | PyObject * obj3 = 0 ; | |
7964 | PyObject * obj4 = 0 ; | |
7965 | PyObject * obj5 = 0 ; | |
7966 | PyObject * obj6 = 0 ; | |
7967 | PyObject * obj7 = 0 ; | |
7968 | char *kwnames[] = { | |
7969 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7970 | }; | |
7971 | ||
bfddbb17 | 7972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
7973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
7974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
7975 | if (obj1) { |
7976 | arg2 = (int) SWIG_AsInt(obj1); | |
7977 | if (PyErr_Occurred()) SWIG_fail; | |
7978 | } | |
d55e5bfc RD |
7979 | if (obj2) { |
7980 | { | |
7981 | arg3 = wxString_in_helper(obj2); | |
7982 | if (arg3 == NULL) SWIG_fail; | |
7983 | temp3 = True; | |
7984 | } | |
7985 | } | |
7986 | if (obj3) { | |
7987 | { | |
7988 | arg4 = &temp4; | |
7989 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7990 | } | |
7991 | } | |
7992 | if (obj4) { | |
7993 | { | |
7994 | arg5 = &temp5; | |
7995 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7996 | } | |
7997 | } | |
7998 | if (obj5) { | |
7999 | arg6 = (long) SWIG_AsLong(obj5); | |
8000 | if (PyErr_Occurred()) SWIG_fail; | |
8001 | } | |
8002 | if (obj6) { | |
8003 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
8004 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8005 | SWIG_fail; | |
8006 | if (arg7 == NULL) { | |
8007 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8008 | SWIG_fail; | |
8009 | } | |
8010 | } | |
8011 | if (obj7) { | |
8012 | { | |
8013 | arg8 = wxString_in_helper(obj7); | |
8014 | if (arg8 == NULL) SWIG_fail; | |
8015 | temp8 = True; | |
8016 | } | |
8017 | } | |
8018 | { | |
0439c23b | 8019 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8021 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8022 | ||
8023 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8024 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8025 | } |
8026 | { | |
412d302d | 8027 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8028 | } |
8029 | { | |
8030 | if (temp3) | |
8031 | delete arg3; | |
8032 | } | |
8033 | { | |
8034 | if (temp8) | |
8035 | delete arg8; | |
8036 | } | |
8037 | return resultobj; | |
8038 | fail: | |
8039 | { | |
8040 | if (temp3) | |
8041 | delete arg3; | |
8042 | } | |
8043 | { | |
8044 | if (temp8) | |
8045 | delete arg8; | |
8046 | } | |
8047 | return NULL; | |
8048 | } | |
8049 | ||
8050 | ||
8051 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8052 | PyObject *resultobj; | |
8053 | wxTextCtrl *result; | |
8054 | char *kwnames[] = { | |
8055 | NULL | |
8056 | }; | |
8057 | ||
8058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8059 | { | |
0439c23b | 8060 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8062 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8063 | ||
8064 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8065 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8066 | } |
8067 | { | |
412d302d | 8068 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8069 | } |
8070 | return resultobj; | |
8071 | fail: | |
8072 | return NULL; | |
8073 | } | |
8074 | ||
8075 | ||
8076 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8077 | PyObject *resultobj; | |
8078 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8079 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 8080 | int arg3 = (int) -1 ; |
d55e5bfc RD |
8081 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8082 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8083 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8084 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8085 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8086 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8087 | long arg7 = (long) 0 ; | |
8088 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8089 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8090 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8091 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8092 | bool result; | |
8093 | bool temp4 = False ; | |
8094 | wxPoint temp5 ; | |
8095 | wxSize temp6 ; | |
8096 | bool temp9 = False ; | |
8097 | PyObject * obj0 = 0 ; | |
8098 | PyObject * obj1 = 0 ; | |
8099 | PyObject * obj2 = 0 ; | |
8100 | PyObject * obj3 = 0 ; | |
8101 | PyObject * obj4 = 0 ; | |
8102 | PyObject * obj5 = 0 ; | |
8103 | PyObject * obj6 = 0 ; | |
8104 | PyObject * obj7 = 0 ; | |
8105 | PyObject * obj8 = 0 ; | |
8106 | char *kwnames[] = { | |
8107 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8108 | }; | |
8109 | ||
bfddbb17 | 8110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
8111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8113 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
8115 | if (obj2) { |
8116 | arg3 = (int) SWIG_AsInt(obj2); | |
8117 | if (PyErr_Occurred()) SWIG_fail; | |
8118 | } | |
d55e5bfc RD |
8119 | if (obj3) { |
8120 | { | |
8121 | arg4 = wxString_in_helper(obj3); | |
8122 | if (arg4 == NULL) SWIG_fail; | |
8123 | temp4 = True; | |
8124 | } | |
8125 | } | |
8126 | if (obj4) { | |
8127 | { | |
8128 | arg5 = &temp5; | |
8129 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8130 | } | |
8131 | } | |
8132 | if (obj5) { | |
8133 | { | |
8134 | arg6 = &temp6; | |
8135 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8136 | } | |
8137 | } | |
8138 | if (obj6) { | |
8139 | arg7 = (long) SWIG_AsLong(obj6); | |
8140 | if (PyErr_Occurred()) SWIG_fail; | |
8141 | } | |
8142 | if (obj7) { | |
8143 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
8144 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8145 | SWIG_fail; | |
8146 | if (arg8 == NULL) { | |
8147 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8148 | SWIG_fail; | |
8149 | } | |
8150 | } | |
8151 | if (obj8) { | |
8152 | { | |
8153 | arg9 = wxString_in_helper(obj8); | |
8154 | if (arg9 == NULL) SWIG_fail; | |
8155 | temp9 = True; | |
8156 | } | |
8157 | } | |
8158 | { | |
8159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8160 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8161 | ||
8162 | wxPyEndAllowThreads(__tstate); | |
8163 | if (PyErr_Occurred()) SWIG_fail; | |
8164 | } | |
8165 | { | |
8166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8167 | } | |
8168 | { | |
8169 | if (temp4) | |
8170 | delete arg4; | |
8171 | } | |
8172 | { | |
8173 | if (temp9) | |
8174 | delete arg9; | |
8175 | } | |
8176 | return resultobj; | |
8177 | fail: | |
8178 | { | |
8179 | if (temp4) | |
8180 | delete arg4; | |
8181 | } | |
8182 | { | |
8183 | if (temp9) | |
8184 | delete arg9; | |
8185 | } | |
8186 | return NULL; | |
8187 | } | |
8188 | ||
8189 | ||
8190 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8191 | PyObject *resultobj; | |
8192 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8193 | wxString result; | |
8194 | PyObject * obj0 = 0 ; | |
8195 | char *kwnames[] = { | |
8196 | (char *) "self", NULL | |
8197 | }; | |
8198 | ||
8199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
8200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8202 | { | |
8203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8204 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8205 | ||
8206 | wxPyEndAllowThreads(__tstate); | |
8207 | if (PyErr_Occurred()) SWIG_fail; | |
8208 | } | |
8209 | { | |
8210 | #if wxUSE_UNICODE | |
8211 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8212 | #else | |
8213 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8214 | #endif | |
8215 | } | |
8216 | return resultobj; | |
8217 | fail: | |
8218 | return NULL; | |
8219 | } | |
8220 | ||
8221 | ||
8222 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8223 | PyObject *resultobj; | |
8224 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8225 | wxString *arg2 = 0 ; | |
8226 | bool temp2 = False ; | |
8227 | PyObject * obj0 = 0 ; | |
8228 | PyObject * obj1 = 0 ; | |
8229 | char *kwnames[] = { | |
8230 | (char *) "self",(char *) "value", NULL | |
8231 | }; | |
8232 | ||
8233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
8234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8236 | { | |
8237 | arg2 = wxString_in_helper(obj1); | |
8238 | if (arg2 == NULL) SWIG_fail; | |
8239 | temp2 = True; | |
8240 | } | |
8241 | { | |
8242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8243 | (arg1)->SetValue((wxString const &)*arg2); | |
8244 | ||
8245 | wxPyEndAllowThreads(__tstate); | |
8246 | if (PyErr_Occurred()) SWIG_fail; | |
8247 | } | |
8248 | Py_INCREF(Py_None); resultobj = Py_None; | |
8249 | { | |
8250 | if (temp2) | |
8251 | delete arg2; | |
8252 | } | |
8253 | return resultobj; | |
8254 | fail: | |
8255 | { | |
8256 | if (temp2) | |
8257 | delete arg2; | |
8258 | } | |
8259 | return NULL; | |
8260 | } | |
8261 | ||
8262 | ||
8263 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8264 | PyObject *resultobj; | |
8265 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8266 | long arg2 ; | |
8267 | long arg3 ; | |
8268 | wxString result; | |
8269 | PyObject * obj0 = 0 ; | |
8270 | PyObject * obj1 = 0 ; | |
8271 | PyObject * obj2 = 0 ; | |
8272 | char *kwnames[] = { | |
8273 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8274 | }; | |
8275 | ||
8276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8279 | arg2 = (long) SWIG_AsLong(obj1); | |
8280 | if (PyErr_Occurred()) SWIG_fail; | |
8281 | arg3 = (long) SWIG_AsLong(obj2); | |
8282 | if (PyErr_Occurred()) SWIG_fail; | |
8283 | { | |
8284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8285 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8286 | ||
8287 | wxPyEndAllowThreads(__tstate); | |
8288 | if (PyErr_Occurred()) SWIG_fail; | |
8289 | } | |
8290 | { | |
8291 | #if wxUSE_UNICODE | |
8292 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8293 | #else | |
8294 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8295 | #endif | |
8296 | } | |
8297 | return resultobj; | |
8298 | fail: | |
8299 | return NULL; | |
8300 | } | |
8301 | ||
8302 | ||
8303 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8304 | PyObject *resultobj; | |
8305 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8306 | long arg2 ; | |
8307 | int result; | |
8308 | PyObject * obj0 = 0 ; | |
8309 | PyObject * obj1 = 0 ; | |
8310 | char *kwnames[] = { | |
8311 | (char *) "self",(char *) "lineNo", NULL | |
8312 | }; | |
8313 | ||
8314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
8315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8317 | arg2 = (long) SWIG_AsLong(obj1); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | { | |
8320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8321 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8322 | ||
8323 | wxPyEndAllowThreads(__tstate); | |
8324 | if (PyErr_Occurred()) SWIG_fail; | |
8325 | } | |
8326 | resultobj = SWIG_FromInt((int)result); | |
8327 | return resultobj; | |
8328 | fail: | |
8329 | return NULL; | |
8330 | } | |
8331 | ||
8332 | ||
8333 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8334 | PyObject *resultobj; | |
8335 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8336 | long arg2 ; | |
8337 | wxString result; | |
8338 | PyObject * obj0 = 0 ; | |
8339 | PyObject * obj1 = 0 ; | |
8340 | char *kwnames[] = { | |
8341 | (char *) "self",(char *) "lineNo", NULL | |
8342 | }; | |
8343 | ||
8344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
8345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8347 | arg2 = (long) SWIG_AsLong(obj1); | |
8348 | if (PyErr_Occurred()) SWIG_fail; | |
8349 | { | |
8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8351 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8352 | ||
8353 | wxPyEndAllowThreads(__tstate); | |
8354 | if (PyErr_Occurred()) SWIG_fail; | |
8355 | } | |
8356 | { | |
8357 | #if wxUSE_UNICODE | |
8358 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8359 | #else | |
8360 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8361 | #endif | |
8362 | } | |
8363 | return resultobj; | |
8364 | fail: | |
8365 | return NULL; | |
8366 | } | |
8367 | ||
8368 | ||
8369 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8370 | PyObject *resultobj; | |
8371 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8372 | int result; | |
8373 | PyObject * obj0 = 0 ; | |
8374 | char *kwnames[] = { | |
8375 | (char *) "self", NULL | |
8376 | }; | |
8377 | ||
8378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
8379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8381 | { | |
8382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8383 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8384 | ||
8385 | wxPyEndAllowThreads(__tstate); | |
8386 | if (PyErr_Occurred()) SWIG_fail; | |
8387 | } | |
8388 | resultobj = SWIG_FromInt((int)result); | |
8389 | return resultobj; | |
8390 | fail: | |
8391 | return NULL; | |
8392 | } | |
8393 | ||
8394 | ||
8395 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8396 | PyObject *resultobj; | |
8397 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8398 | bool result; | |
8399 | PyObject * obj0 = 0 ; | |
8400 | char *kwnames[] = { | |
8401 | (char *) "self", NULL | |
8402 | }; | |
8403 | ||
8404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
8405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8407 | { | |
8408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8409 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8410 | ||
8411 | wxPyEndAllowThreads(__tstate); | |
8412 | if (PyErr_Occurred()) SWIG_fail; | |
8413 | } | |
8414 | { | |
8415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8416 | } | |
8417 | return resultobj; | |
8418 | fail: | |
8419 | return NULL; | |
8420 | } | |
8421 | ||
8422 | ||
8423 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8424 | PyObject *resultobj; | |
8425 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8426 | bool result; | |
8427 | PyObject * obj0 = 0 ; | |
8428 | char *kwnames[] = { | |
8429 | (char *) "self", NULL | |
8430 | }; | |
8431 | ||
8432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
8433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8435 | { | |
8436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8437 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8438 | ||
8439 | wxPyEndAllowThreads(__tstate); | |
8440 | if (PyErr_Occurred()) SWIG_fail; | |
8441 | } | |
8442 | { | |
8443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8444 | } | |
8445 | return resultobj; | |
8446 | fail: | |
8447 | return NULL; | |
8448 | } | |
8449 | ||
8450 | ||
8451 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8452 | PyObject *resultobj; | |
8453 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8454 | bool result; | |
8455 | PyObject * obj0 = 0 ; | |
8456 | char *kwnames[] = { | |
8457 | (char *) "self", NULL | |
8458 | }; | |
8459 | ||
8460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
8461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8463 | { | |
8464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8465 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8466 | ||
8467 | wxPyEndAllowThreads(__tstate); | |
8468 | if (PyErr_Occurred()) SWIG_fail; | |
8469 | } | |
8470 | { | |
8471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8472 | } | |
8473 | return resultobj; | |
8474 | fail: | |
8475 | return NULL; | |
8476 | } | |
8477 | ||
8478 | ||
8479 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8480 | PyObject *resultobj; | |
8481 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8482 | bool result; | |
8483 | PyObject * obj0 = 0 ; | |
8484 | char *kwnames[] = { | |
8485 | (char *) "self", NULL | |
8486 | }; | |
8487 | ||
8488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
8489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8491 | { | |
8492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8493 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8494 | ||
8495 | wxPyEndAllowThreads(__tstate); | |
8496 | if (PyErr_Occurred()) SWIG_fail; | |
8497 | } | |
8498 | { | |
8499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8500 | } | |
8501 | return resultobj; | |
8502 | fail: | |
8503 | return NULL; | |
8504 | } | |
8505 | ||
8506 | ||
8507 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8508 | PyObject *resultobj; | |
8509 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8510 | long *arg2 = (long *) 0 ; | |
8511 | long *arg3 = (long *) 0 ; | |
8512 | long temp2 ; | |
8513 | long temp3 ; | |
8514 | PyObject * obj0 = 0 ; | |
8515 | char *kwnames[] = { | |
8516 | (char *) "self", NULL | |
8517 | }; | |
8518 | ||
8519 | arg2 = &temp2; | |
8520 | arg3 = &temp3; | |
8521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
8522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8524 | { | |
8525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8526 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8527 | ||
8528 | wxPyEndAllowThreads(__tstate); | |
8529 | if (PyErr_Occurred()) SWIG_fail; | |
8530 | } | |
8531 | Py_INCREF(Py_None); resultobj = Py_None; | |
8532 | { | |
8533 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8534 | resultobj = t_output_helper(resultobj,o); | |
8535 | } | |
8536 | { | |
8537 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8538 | resultobj = t_output_helper(resultobj,o); | |
8539 | } | |
8540 | return resultobj; | |
8541 | fail: | |
8542 | return NULL; | |
8543 | } | |
8544 | ||
8545 | ||
8546 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8547 | PyObject *resultobj; | |
8548 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8549 | wxString result; | |
8550 | PyObject * obj0 = 0 ; | |
8551 | char *kwnames[] = { | |
8552 | (char *) "self", NULL | |
8553 | }; | |
8554 | ||
8555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
8556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8558 | { | |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8561 | ||
8562 | wxPyEndAllowThreads(__tstate); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
8565 | { | |
8566 | #if wxUSE_UNICODE | |
8567 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8568 | #else | |
8569 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8570 | #endif | |
8571 | } | |
8572 | return resultobj; | |
8573 | fail: | |
8574 | return NULL; | |
8575 | } | |
8576 | ||
8577 | ||
8578 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8579 | PyObject *resultobj; | |
8580 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8581 | PyObject * obj0 = 0 ; | |
8582 | char *kwnames[] = { | |
8583 | (char *) "self", NULL | |
8584 | }; | |
8585 | ||
8586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
8587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8589 | { | |
8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8591 | (arg1)->Clear(); | |
8592 | ||
8593 | wxPyEndAllowThreads(__tstate); | |
8594 | if (PyErr_Occurred()) SWIG_fail; | |
8595 | } | |
8596 | Py_INCREF(Py_None); resultobj = Py_None; | |
8597 | return resultobj; | |
8598 | fail: | |
8599 | return NULL; | |
8600 | } | |
8601 | ||
8602 | ||
8603 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8604 | PyObject *resultobj; | |
8605 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8606 | long arg2 ; | |
8607 | long arg3 ; | |
8608 | wxString *arg4 = 0 ; | |
8609 | bool temp4 = False ; | |
8610 | PyObject * obj0 = 0 ; | |
8611 | PyObject * obj1 = 0 ; | |
8612 | PyObject * obj2 = 0 ; | |
8613 | PyObject * obj3 = 0 ; | |
8614 | char *kwnames[] = { | |
8615 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8616 | }; | |
8617 | ||
8618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8621 | arg2 = (long) SWIG_AsLong(obj1); | |
8622 | if (PyErr_Occurred()) SWIG_fail; | |
8623 | arg3 = (long) SWIG_AsLong(obj2); | |
8624 | if (PyErr_Occurred()) SWIG_fail; | |
8625 | { | |
8626 | arg4 = wxString_in_helper(obj3); | |
8627 | if (arg4 == NULL) SWIG_fail; | |
8628 | temp4 = True; | |
8629 | } | |
8630 | { | |
8631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8632 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8633 | ||
8634 | wxPyEndAllowThreads(__tstate); | |
8635 | if (PyErr_Occurred()) SWIG_fail; | |
8636 | } | |
8637 | Py_INCREF(Py_None); resultobj = Py_None; | |
8638 | { | |
8639 | if (temp4) | |
8640 | delete arg4; | |
8641 | } | |
8642 | return resultobj; | |
8643 | fail: | |
8644 | { | |
8645 | if (temp4) | |
8646 | delete arg4; | |
8647 | } | |
8648 | return NULL; | |
8649 | } | |
8650 | ||
8651 | ||
8652 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8653 | PyObject *resultobj; | |
8654 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8655 | long arg2 ; | |
8656 | long arg3 ; | |
8657 | PyObject * obj0 = 0 ; | |
8658 | PyObject * obj1 = 0 ; | |
8659 | PyObject * obj2 = 0 ; | |
8660 | char *kwnames[] = { | |
8661 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8662 | }; | |
8663 | ||
8664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8667 | arg2 = (long) SWIG_AsLong(obj1); | |
8668 | if (PyErr_Occurred()) SWIG_fail; | |
8669 | arg3 = (long) SWIG_AsLong(obj2); | |
8670 | if (PyErr_Occurred()) SWIG_fail; | |
8671 | { | |
8672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8673 | (arg1)->Remove(arg2,arg3); | |
8674 | ||
8675 | wxPyEndAllowThreads(__tstate); | |
8676 | if (PyErr_Occurred()) SWIG_fail; | |
8677 | } | |
8678 | Py_INCREF(Py_None); resultobj = Py_None; | |
8679 | return resultobj; | |
8680 | fail: | |
8681 | return NULL; | |
8682 | } | |
8683 | ||
8684 | ||
8685 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8686 | PyObject *resultobj; | |
8687 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8688 | wxString *arg2 = 0 ; | |
8689 | bool result; | |
8690 | bool temp2 = False ; | |
8691 | PyObject * obj0 = 0 ; | |
8692 | PyObject * obj1 = 0 ; | |
8693 | char *kwnames[] = { | |
8694 | (char *) "self",(char *) "file", NULL | |
8695 | }; | |
8696 | ||
8697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
8698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8700 | { | |
8701 | arg2 = wxString_in_helper(obj1); | |
8702 | if (arg2 == NULL) SWIG_fail; | |
8703 | temp2 = True; | |
8704 | } | |
8705 | { | |
8706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8707 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8708 | ||
8709 | wxPyEndAllowThreads(__tstate); | |
8710 | if (PyErr_Occurred()) SWIG_fail; | |
8711 | } | |
8712 | { | |
8713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8714 | } | |
8715 | { | |
8716 | if (temp2) | |
8717 | delete arg2; | |
8718 | } | |
8719 | return resultobj; | |
8720 | fail: | |
8721 | { | |
8722 | if (temp2) | |
8723 | delete arg2; | |
8724 | } | |
8725 | return NULL; | |
8726 | } | |
8727 | ||
8728 | ||
8729 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8730 | PyObject *resultobj; | |
8731 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8732 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8733 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8734 | bool result; | |
8735 | bool temp2 = False ; | |
8736 | PyObject * obj0 = 0 ; | |
8737 | PyObject * obj1 = 0 ; | |
8738 | char *kwnames[] = { | |
8739 | (char *) "self",(char *) "file", NULL | |
8740 | }; | |
8741 | ||
8742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
8743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8745 | if (obj1) { | |
8746 | { | |
8747 | arg2 = wxString_in_helper(obj1); | |
8748 | if (arg2 == NULL) SWIG_fail; | |
8749 | temp2 = True; | |
8750 | } | |
8751 | } | |
8752 | { | |
8753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8754 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8755 | ||
8756 | wxPyEndAllowThreads(__tstate); | |
8757 | if (PyErr_Occurred()) SWIG_fail; | |
8758 | } | |
8759 | { | |
8760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8761 | } | |
8762 | { | |
8763 | if (temp2) | |
8764 | delete arg2; | |
8765 | } | |
8766 | return resultobj; | |
8767 | fail: | |
8768 | { | |
8769 | if (temp2) | |
8770 | delete arg2; | |
8771 | } | |
8772 | return NULL; | |
8773 | } | |
8774 | ||
8775 | ||
8776 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8777 | PyObject *resultobj; | |
8778 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8779 | PyObject * obj0 = 0 ; | |
8780 | char *kwnames[] = { | |
8781 | (char *) "self", NULL | |
8782 | }; | |
8783 | ||
8784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8787 | { | |
8788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8789 | (arg1)->MarkDirty(); | |
8790 | ||
8791 | wxPyEndAllowThreads(__tstate); | |
8792 | if (PyErr_Occurred()) SWIG_fail; | |
8793 | } | |
8794 | Py_INCREF(Py_None); resultobj = Py_None; | |
8795 | return resultobj; | |
8796 | fail: | |
8797 | return NULL; | |
8798 | } | |
8799 | ||
8800 | ||
8801 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8802 | PyObject *resultobj; | |
8803 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8804 | PyObject * obj0 = 0 ; | |
8805 | char *kwnames[] = { | |
8806 | (char *) "self", NULL | |
8807 | }; | |
8808 | ||
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8812 | { | |
8813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8814 | (arg1)->DiscardEdits(); | |
8815 | ||
8816 | wxPyEndAllowThreads(__tstate); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
8819 | Py_INCREF(Py_None); resultobj = Py_None; | |
8820 | return resultobj; | |
8821 | fail: | |
8822 | return NULL; | |
8823 | } | |
8824 | ||
8825 | ||
8826 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8827 | PyObject *resultobj; | |
8828 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8829 | unsigned long arg2 ; | |
8830 | PyObject * obj0 = 0 ; | |
8831 | PyObject * obj1 = 0 ; | |
8832 | char *kwnames[] = { | |
8833 | (char *) "self",(char *) "len", NULL | |
8834 | }; | |
8835 | ||
8836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8839 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8840 | if (PyErr_Occurred()) SWIG_fail; | |
8841 | { | |
8842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8843 | (arg1)->SetMaxLength(arg2); | |
8844 | ||
8845 | wxPyEndAllowThreads(__tstate); | |
8846 | if (PyErr_Occurred()) SWIG_fail; | |
8847 | } | |
8848 | Py_INCREF(Py_None); resultobj = Py_None; | |
8849 | return resultobj; | |
8850 | fail: | |
8851 | return NULL; | |
8852 | } | |
8853 | ||
8854 | ||
8855 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8856 | PyObject *resultobj; | |
8857 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8858 | wxString *arg2 = 0 ; | |
8859 | bool temp2 = False ; | |
8860 | PyObject * obj0 = 0 ; | |
8861 | PyObject * obj1 = 0 ; | |
8862 | char *kwnames[] = { | |
8863 | (char *) "self",(char *) "text", NULL | |
8864 | }; | |
8865 | ||
8866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8869 | { | |
8870 | arg2 = wxString_in_helper(obj1); | |
8871 | if (arg2 == NULL) SWIG_fail; | |
8872 | temp2 = True; | |
8873 | } | |
8874 | { | |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8876 | (arg1)->WriteText((wxString const &)*arg2); | |
8877 | ||
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
8881 | Py_INCREF(Py_None); resultobj = Py_None; | |
8882 | { | |
8883 | if (temp2) | |
8884 | delete arg2; | |
8885 | } | |
8886 | return resultobj; | |
8887 | fail: | |
8888 | { | |
8889 | if (temp2) | |
8890 | delete arg2; | |
8891 | } | |
8892 | return NULL; | |
8893 | } | |
8894 | ||
8895 | ||
8896 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8897 | PyObject *resultobj; | |
8898 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8899 | wxString *arg2 = 0 ; | |
8900 | bool temp2 = False ; | |
8901 | PyObject * obj0 = 0 ; | |
8902 | PyObject * obj1 = 0 ; | |
8903 | char *kwnames[] = { | |
8904 | (char *) "self",(char *) "text", NULL | |
8905 | }; | |
8906 | ||
8907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8910 | { | |
8911 | arg2 = wxString_in_helper(obj1); | |
8912 | if (arg2 == NULL) SWIG_fail; | |
8913 | temp2 = True; | |
8914 | } | |
8915 | { | |
8916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8917 | (arg1)->AppendText((wxString const &)*arg2); | |
8918 | ||
8919 | wxPyEndAllowThreads(__tstate); | |
8920 | if (PyErr_Occurred()) SWIG_fail; | |
8921 | } | |
8922 | Py_INCREF(Py_None); resultobj = Py_None; | |
8923 | { | |
8924 | if (temp2) | |
8925 | delete arg2; | |
8926 | } | |
8927 | return resultobj; | |
8928 | fail: | |
8929 | { | |
8930 | if (temp2) | |
8931 | delete arg2; | |
8932 | } | |
8933 | return NULL; | |
8934 | } | |
8935 | ||
8936 | ||
8937 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8938 | PyObject *resultobj; | |
8939 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8940 | wxKeyEvent *arg2 = 0 ; | |
8941 | bool result; | |
8942 | PyObject * obj0 = 0 ; | |
8943 | PyObject * obj1 = 0 ; | |
8944 | char *kwnames[] = { | |
8945 | (char *) "self",(char *) "event", NULL | |
8946 | }; | |
8947 | ||
8948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8953 | SWIG_fail; | |
8954 | if (arg2 == NULL) { | |
8955 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8956 | SWIG_fail; | |
8957 | } | |
8958 | { | |
8959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8960 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8961 | ||
8962 | wxPyEndAllowThreads(__tstate); | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | } | |
8965 | { | |
8966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8967 | } | |
8968 | return resultobj; | |
8969 | fail: | |
8970 | return NULL; | |
8971 | } | |
8972 | ||
8973 | ||
8974 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8975 | PyObject *resultobj; | |
8976 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8977 | long arg2 ; | |
8978 | long arg3 ; | |
8979 | wxTextAttr *arg4 = 0 ; | |
8980 | bool result; | |
8981 | PyObject * obj0 = 0 ; | |
8982 | PyObject * obj1 = 0 ; | |
8983 | PyObject * obj2 = 0 ; | |
8984 | PyObject * obj3 = 0 ; | |
8985 | char *kwnames[] = { | |
8986 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8987 | }; | |
8988 | ||
8989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8992 | arg2 = (long) SWIG_AsLong(obj1); | |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
8994 | arg3 = (long) SWIG_AsLong(obj2); | |
8995 | if (PyErr_Occurred()) SWIG_fail; | |
8996 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
8997 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8998 | SWIG_fail; | |
8999 | if (arg4 == NULL) { | |
9000 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9001 | SWIG_fail; | |
9002 | } | |
9003 | { | |
9004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9005 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
9006 | ||
9007 | wxPyEndAllowThreads(__tstate); | |
9008 | if (PyErr_Occurred()) SWIG_fail; | |
9009 | } | |
9010 | { | |
9011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9012 | } | |
9013 | return resultobj; | |
9014 | fail: | |
9015 | return NULL; | |
9016 | } | |
9017 | ||
9018 | ||
9019 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9020 | PyObject *resultobj; | |
9021 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9022 | long arg2 ; | |
9023 | wxTextAttr *arg3 = 0 ; | |
9024 | bool result; | |
9025 | PyObject * obj0 = 0 ; | |
9026 | PyObject * obj1 = 0 ; | |
9027 | PyObject * obj2 = 0 ; | |
9028 | char *kwnames[] = { | |
9029 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9030 | }; | |
9031 | ||
9032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9035 | arg2 = (long) SWIG_AsLong(obj1); | |
9036 | if (PyErr_Occurred()) SWIG_fail; | |
9037 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9038 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9039 | SWIG_fail; | |
9040 | if (arg3 == NULL) { | |
9041 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9042 | SWIG_fail; | |
9043 | } | |
9044 | { | |
9045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9046 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9047 | ||
9048 | wxPyEndAllowThreads(__tstate); | |
9049 | if (PyErr_Occurred()) SWIG_fail; | |
9050 | } | |
9051 | { | |
9052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9053 | } | |
9054 | return resultobj; | |
9055 | fail: | |
9056 | return NULL; | |
9057 | } | |
9058 | ||
9059 | ||
9060 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9061 | PyObject *resultobj; | |
9062 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9063 | wxTextAttr *arg2 = 0 ; | |
9064 | bool result; | |
9065 | PyObject * obj0 = 0 ; | |
9066 | PyObject * obj1 = 0 ; | |
9067 | char *kwnames[] = { | |
9068 | (char *) "self",(char *) "style", NULL | |
9069 | }; | |
9070 | ||
9071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
9072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9074 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9075 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9076 | SWIG_fail; | |
9077 | if (arg2 == NULL) { | |
9078 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9079 | SWIG_fail; | |
9080 | } | |
9081 | { | |
9082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9083 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9084 | ||
9085 | wxPyEndAllowThreads(__tstate); | |
9086 | if (PyErr_Occurred()) SWIG_fail; | |
9087 | } | |
9088 | { | |
9089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9090 | } | |
9091 | return resultobj; | |
9092 | fail: | |
9093 | return NULL; | |
9094 | } | |
9095 | ||
9096 | ||
9097 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9098 | PyObject *resultobj; | |
9099 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9100 | wxTextAttr *result; | |
9101 | PyObject * obj0 = 0 ; | |
9102 | char *kwnames[] = { | |
9103 | (char *) "self", NULL | |
9104 | }; | |
9105 | ||
9106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
9107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9109 | { | |
9110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9111 | { | |
9112 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9113 | result = (wxTextAttr *) &_result_ref; | |
9114 | } | |
9115 | ||
9116 | wxPyEndAllowThreads(__tstate); | |
9117 | if (PyErr_Occurred()) SWIG_fail; | |
9118 | } | |
9119 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); | |
9120 | return resultobj; | |
9121 | fail: | |
9122 | return NULL; | |
9123 | } | |
9124 | ||
9125 | ||
9126 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9127 | PyObject *resultobj; | |
9128 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9129 | long arg2 ; | |
9130 | long arg3 ; | |
9131 | long result; | |
9132 | PyObject * obj0 = 0 ; | |
9133 | PyObject * obj1 = 0 ; | |
9134 | PyObject * obj2 = 0 ; | |
9135 | char *kwnames[] = { | |
9136 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9137 | }; | |
9138 | ||
9139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9142 | arg2 = (long) SWIG_AsLong(obj1); | |
9143 | if (PyErr_Occurred()) SWIG_fail; | |
9144 | arg3 = (long) SWIG_AsLong(obj2); | |
9145 | if (PyErr_Occurred()) SWIG_fail; | |
9146 | { | |
9147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9148 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9149 | ||
9150 | wxPyEndAllowThreads(__tstate); | |
9151 | if (PyErr_Occurred()) SWIG_fail; | |
9152 | } | |
9153 | resultobj = SWIG_FromLong((long)result); | |
9154 | return resultobj; | |
9155 | fail: | |
9156 | return NULL; | |
9157 | } | |
9158 | ||
9159 | ||
9160 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9161 | PyObject *resultobj; | |
9162 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9163 | long arg2 ; | |
9164 | long *arg3 = (long *) 0 ; | |
9165 | long *arg4 = (long *) 0 ; | |
9166 | long temp3 ; | |
9167 | long temp4 ; | |
9168 | PyObject * obj0 = 0 ; | |
9169 | PyObject * obj1 = 0 ; | |
9170 | char *kwnames[] = { | |
9171 | (char *) "self",(char *) "pos", NULL | |
9172 | }; | |
9173 | ||
9174 | arg3 = &temp3; | |
9175 | arg4 = &temp4; | |
9176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; | |
9177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9179 | arg2 = (long) SWIG_AsLong(obj1); | |
9180 | if (PyErr_Occurred()) SWIG_fail; | |
9181 | { | |
9182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9183 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9184 | ||
9185 | wxPyEndAllowThreads(__tstate); | |
9186 | if (PyErr_Occurred()) SWIG_fail; | |
9187 | } | |
9188 | Py_INCREF(Py_None); resultobj = Py_None; | |
9189 | { | |
9190 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9191 | resultobj = t_output_helper(resultobj,o); | |
9192 | } | |
9193 | { | |
9194 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9195 | resultobj = t_output_helper(resultobj,o); | |
9196 | } | |
9197 | return resultobj; | |
9198 | fail: | |
9199 | return NULL; | |
9200 | } | |
9201 | ||
9202 | ||
9203 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9204 | PyObject *resultobj; | |
9205 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9206 | long arg2 ; | |
9207 | PyObject * obj0 = 0 ; | |
9208 | PyObject * obj1 = 0 ; | |
9209 | char *kwnames[] = { | |
9210 | (char *) "self",(char *) "pos", NULL | |
9211 | }; | |
9212 | ||
9213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
9214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9216 | arg2 = (long) SWIG_AsLong(obj1); | |
9217 | if (PyErr_Occurred()) SWIG_fail; | |
9218 | { | |
9219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9220 | (arg1)->ShowPosition(arg2); | |
9221 | ||
9222 | wxPyEndAllowThreads(__tstate); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
9225 | Py_INCREF(Py_None); resultobj = Py_None; | |
9226 | return resultobj; | |
9227 | fail: | |
9228 | return NULL; | |
9229 | } | |
9230 | ||
9231 | ||
9232 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9233 | PyObject *resultobj; | |
9234 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9235 | wxPoint *arg2 = 0 ; | |
9236 | long *arg3 = (long *) 0 ; | |
9237 | long *arg4 = (long *) 0 ; | |
9238 | int result; | |
9239 | wxPoint temp2 ; | |
9240 | long temp3 ; | |
9241 | long temp4 ; | |
9242 | PyObject * obj0 = 0 ; | |
9243 | PyObject * obj1 = 0 ; | |
9244 | char *kwnames[] = { | |
9245 | (char *) "self",(char *) "pt", NULL | |
9246 | }; | |
9247 | ||
9248 | arg3 = &temp3; | |
9249 | arg4 = &temp4; | |
9250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9253 | { | |
9254 | arg2 = &temp2; | |
9255 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9256 | } | |
9257 | { | |
9258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9259 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9260 | ||
9261 | wxPyEndAllowThreads(__tstate); | |
9262 | if (PyErr_Occurred()) SWIG_fail; | |
9263 | } | |
9264 | resultobj = SWIG_FromInt((int)result); | |
9265 | { | |
9266 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9267 | resultobj = t_output_helper(resultobj,o); | |
9268 | } | |
9269 | { | |
9270 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9271 | resultobj = t_output_helper(resultobj,o); | |
9272 | } | |
9273 | return resultobj; | |
9274 | fail: | |
9275 | return NULL; | |
9276 | } | |
9277 | ||
9278 | ||
9279 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9280 | PyObject *resultobj; | |
9281 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9282 | PyObject * obj0 = 0 ; | |
9283 | char *kwnames[] = { | |
9284 | (char *) "self", NULL | |
9285 | }; | |
9286 | ||
9287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
9288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9290 | { | |
9291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9292 | (arg1)->Copy(); | |
9293 | ||
9294 | wxPyEndAllowThreads(__tstate); | |
9295 | if (PyErr_Occurred()) SWIG_fail; | |
9296 | } | |
9297 | Py_INCREF(Py_None); resultobj = Py_None; | |
9298 | return resultobj; | |
9299 | fail: | |
9300 | return NULL; | |
9301 | } | |
9302 | ||
9303 | ||
9304 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9305 | PyObject *resultobj; | |
9306 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9307 | PyObject * obj0 = 0 ; | |
9308 | char *kwnames[] = { | |
9309 | (char *) "self", NULL | |
9310 | }; | |
9311 | ||
9312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
9313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9315 | { | |
9316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9317 | (arg1)->Cut(); | |
9318 | ||
9319 | wxPyEndAllowThreads(__tstate); | |
9320 | if (PyErr_Occurred()) SWIG_fail; | |
9321 | } | |
9322 | Py_INCREF(Py_None); resultobj = Py_None; | |
9323 | return resultobj; | |
9324 | fail: | |
9325 | return NULL; | |
9326 | } | |
9327 | ||
9328 | ||
9329 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9330 | PyObject *resultobj; | |
9331 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9332 | PyObject * obj0 = 0 ; | |
9333 | char *kwnames[] = { | |
9334 | (char *) "self", NULL | |
9335 | }; | |
9336 | ||
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
9338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9340 | { | |
9341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9342 | (arg1)->Paste(); | |
9343 | ||
9344 | wxPyEndAllowThreads(__tstate); | |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
9346 | } | |
9347 | Py_INCREF(Py_None); resultobj = Py_None; | |
9348 | return resultobj; | |
9349 | fail: | |
9350 | return NULL; | |
9351 | } | |
9352 | ||
9353 | ||
9354 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9355 | PyObject *resultobj; | |
9356 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9357 | bool result; | |
9358 | PyObject * obj0 = 0 ; | |
9359 | char *kwnames[] = { | |
9360 | (char *) "self", NULL | |
9361 | }; | |
9362 | ||
9363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
9364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9366 | { | |
9367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9368 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9369 | ||
9370 | wxPyEndAllowThreads(__tstate); | |
9371 | if (PyErr_Occurred()) SWIG_fail; | |
9372 | } | |
9373 | { | |
9374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9375 | } | |
9376 | return resultobj; | |
9377 | fail: | |
9378 | return NULL; | |
9379 | } | |
9380 | ||
9381 | ||
9382 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9383 | PyObject *resultobj; | |
9384 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9385 | bool result; | |
9386 | PyObject * obj0 = 0 ; | |
9387 | char *kwnames[] = { | |
9388 | (char *) "self", NULL | |
9389 | }; | |
9390 | ||
9391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
9392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9394 | { | |
9395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9396 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9397 | ||
9398 | wxPyEndAllowThreads(__tstate); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
9401 | { | |
9402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9403 | } | |
9404 | return resultobj; | |
9405 | fail: | |
9406 | return NULL; | |
9407 | } | |
9408 | ||
9409 | ||
9410 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9411 | PyObject *resultobj; | |
9412 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9413 | bool result; | |
9414 | PyObject * obj0 = 0 ; | |
9415 | char *kwnames[] = { | |
9416 | (char *) "self", NULL | |
9417 | }; | |
9418 | ||
9419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
9420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9422 | { | |
9423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9424 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9425 | ||
9426 | wxPyEndAllowThreads(__tstate); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | } | |
9429 | { | |
9430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9431 | } | |
9432 | return resultobj; | |
9433 | fail: | |
9434 | return NULL; | |
9435 | } | |
9436 | ||
9437 | ||
9438 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9439 | PyObject *resultobj; | |
9440 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9441 | PyObject * obj0 = 0 ; | |
9442 | char *kwnames[] = { | |
9443 | (char *) "self", NULL | |
9444 | }; | |
9445 | ||
9446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
9447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9449 | { | |
9450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9451 | (arg1)->Undo(); | |
9452 | ||
9453 | wxPyEndAllowThreads(__tstate); | |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
9455 | } | |
9456 | Py_INCREF(Py_None); resultobj = Py_None; | |
9457 | return resultobj; | |
9458 | fail: | |
9459 | return NULL; | |
9460 | } | |
9461 | ||
9462 | ||
9463 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9464 | PyObject *resultobj; | |
9465 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9466 | PyObject * obj0 = 0 ; | |
9467 | char *kwnames[] = { | |
9468 | (char *) "self", NULL | |
9469 | }; | |
9470 | ||
9471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
9472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9474 | { | |
9475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9476 | (arg1)->Redo(); | |
9477 | ||
9478 | wxPyEndAllowThreads(__tstate); | |
9479 | if (PyErr_Occurred()) SWIG_fail; | |
9480 | } | |
9481 | Py_INCREF(Py_None); resultobj = Py_None; | |
9482 | return resultobj; | |
9483 | fail: | |
9484 | return NULL; | |
9485 | } | |
9486 | ||
9487 | ||
9488 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9489 | PyObject *resultobj; | |
9490 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9491 | bool result; | |
9492 | PyObject * obj0 = 0 ; | |
9493 | char *kwnames[] = { | |
9494 | (char *) "self", NULL | |
9495 | }; | |
9496 | ||
9497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
9498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9500 | { | |
9501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9502 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9503 | ||
9504 | wxPyEndAllowThreads(__tstate); | |
9505 | if (PyErr_Occurred()) SWIG_fail; | |
9506 | } | |
9507 | { | |
9508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9509 | } | |
9510 | return resultobj; | |
9511 | fail: | |
9512 | return NULL; | |
9513 | } | |
9514 | ||
9515 | ||
9516 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9517 | PyObject *resultobj; | |
9518 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9519 | bool result; | |
9520 | PyObject * obj0 = 0 ; | |
9521 | char *kwnames[] = { | |
9522 | (char *) "self", NULL | |
9523 | }; | |
9524 | ||
9525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
9526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9528 | { | |
9529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9530 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9531 | ||
9532 | wxPyEndAllowThreads(__tstate); | |
9533 | if (PyErr_Occurred()) SWIG_fail; | |
9534 | } | |
9535 | { | |
9536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9537 | } | |
9538 | return resultobj; | |
9539 | fail: | |
9540 | return NULL; | |
9541 | } | |
9542 | ||
9543 | ||
9544 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9545 | PyObject *resultobj; | |
9546 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9547 | long arg2 ; | |
9548 | PyObject * obj0 = 0 ; | |
9549 | PyObject * obj1 = 0 ; | |
9550 | char *kwnames[] = { | |
9551 | (char *) "self",(char *) "pos", NULL | |
9552 | }; | |
9553 | ||
9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
9555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9557 | arg2 = (long) SWIG_AsLong(obj1); | |
9558 | if (PyErr_Occurred()) SWIG_fail; | |
9559 | { | |
9560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9561 | (arg1)->SetInsertionPoint(arg2); | |
9562 | ||
9563 | wxPyEndAllowThreads(__tstate); | |
9564 | if (PyErr_Occurred()) SWIG_fail; | |
9565 | } | |
9566 | Py_INCREF(Py_None); resultobj = Py_None; | |
9567 | return resultobj; | |
9568 | fail: | |
9569 | return NULL; | |
9570 | } | |
9571 | ||
9572 | ||
9573 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9574 | PyObject *resultobj; | |
9575 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9576 | PyObject * obj0 = 0 ; | |
9577 | char *kwnames[] = { | |
9578 | (char *) "self", NULL | |
9579 | }; | |
9580 | ||
9581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
9582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9584 | { | |
9585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9586 | (arg1)->SetInsertionPointEnd(); | |
9587 | ||
9588 | wxPyEndAllowThreads(__tstate); | |
9589 | if (PyErr_Occurred()) SWIG_fail; | |
9590 | } | |
9591 | Py_INCREF(Py_None); resultobj = Py_None; | |
9592 | return resultobj; | |
9593 | fail: | |
9594 | return NULL; | |
9595 | } | |
9596 | ||
9597 | ||
9598 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9599 | PyObject *resultobj; | |
9600 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9601 | long result; | |
9602 | PyObject * obj0 = 0 ; | |
9603 | char *kwnames[] = { | |
9604 | (char *) "self", NULL | |
9605 | }; | |
9606 | ||
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
9608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9610 | { | |
9611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9612 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9613 | ||
9614 | wxPyEndAllowThreads(__tstate); | |
9615 | if (PyErr_Occurred()) SWIG_fail; | |
9616 | } | |
9617 | resultobj = SWIG_FromLong((long)result); | |
9618 | return resultobj; | |
9619 | fail: | |
9620 | return NULL; | |
9621 | } | |
9622 | ||
9623 | ||
9624 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9625 | PyObject *resultobj; | |
9626 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9627 | long result; | |
9628 | PyObject * obj0 = 0 ; | |
9629 | char *kwnames[] = { | |
9630 | (char *) "self", NULL | |
9631 | }; | |
9632 | ||
9633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
9634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9636 | { | |
9637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9638 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9639 | ||
9640 | wxPyEndAllowThreads(__tstate); | |
9641 | if (PyErr_Occurred()) SWIG_fail; | |
9642 | } | |
9643 | resultobj = SWIG_FromLong((long)result); | |
9644 | return resultobj; | |
9645 | fail: | |
9646 | return NULL; | |
9647 | } | |
9648 | ||
9649 | ||
9650 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9651 | PyObject *resultobj; | |
9652 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9653 | long arg2 ; | |
9654 | long arg3 ; | |
9655 | PyObject * obj0 = 0 ; | |
9656 | PyObject * obj1 = 0 ; | |
9657 | PyObject * obj2 = 0 ; | |
9658 | char *kwnames[] = { | |
9659 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9660 | }; | |
9661 | ||
9662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9665 | arg2 = (long) SWIG_AsLong(obj1); | |
9666 | if (PyErr_Occurred()) SWIG_fail; | |
9667 | arg3 = (long) SWIG_AsLong(obj2); | |
9668 | if (PyErr_Occurred()) SWIG_fail; | |
9669 | { | |
9670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9671 | (arg1)->SetSelection(arg2,arg3); | |
9672 | ||
9673 | wxPyEndAllowThreads(__tstate); | |
9674 | if (PyErr_Occurred()) SWIG_fail; | |
9675 | } | |
9676 | Py_INCREF(Py_None); resultobj = Py_None; | |
9677 | return resultobj; | |
9678 | fail: | |
9679 | return NULL; | |
9680 | } | |
9681 | ||
9682 | ||
9683 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9684 | PyObject *resultobj; | |
9685 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9686 | PyObject * obj0 = 0 ; | |
9687 | char *kwnames[] = { | |
9688 | (char *) "self", NULL | |
9689 | }; | |
9690 | ||
9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
9692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9694 | { | |
9695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9696 | (arg1)->SelectAll(); | |
9697 | ||
9698 | wxPyEndAllowThreads(__tstate); | |
9699 | if (PyErr_Occurred()) SWIG_fail; | |
9700 | } | |
9701 | Py_INCREF(Py_None); resultobj = Py_None; | |
9702 | return resultobj; | |
9703 | fail: | |
9704 | return NULL; | |
9705 | } | |
9706 | ||
9707 | ||
9708 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9709 | PyObject *resultobj; | |
9710 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9711 | bool arg2 ; | |
9712 | PyObject * obj0 = 0 ; | |
9713 | PyObject * obj1 = 0 ; | |
9714 | char *kwnames[] = { | |
9715 | (char *) "self",(char *) "editable", NULL | |
9716 | }; | |
9717 | ||
9718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
9719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9721 | arg2 = (bool) SWIG_AsBool(obj1); | |
9722 | if (PyErr_Occurred()) SWIG_fail; | |
9723 | { | |
9724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9725 | (arg1)->SetEditable(arg2); | |
9726 | ||
9727 | wxPyEndAllowThreads(__tstate); | |
9728 | if (PyErr_Occurred()) SWIG_fail; | |
9729 | } | |
9730 | Py_INCREF(Py_None); resultobj = Py_None; | |
9731 | return resultobj; | |
9732 | fail: | |
9733 | return NULL; | |
9734 | } | |
9735 | ||
9736 | ||
9737 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9738 | PyObject *resultobj; | |
9739 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9740 | wxString *arg2 = 0 ; | |
9741 | bool temp2 = False ; | |
9742 | PyObject * obj0 = 0 ; | |
9743 | PyObject * obj1 = 0 ; | |
9744 | char *kwnames[] = { | |
9745 | (char *) "self",(char *) "text", NULL | |
9746 | }; | |
9747 | ||
9748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
9749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9751 | { | |
9752 | arg2 = wxString_in_helper(obj1); | |
9753 | if (arg2 == NULL) SWIG_fail; | |
9754 | temp2 = True; | |
9755 | } | |
9756 | { | |
9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9758 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9759 | ||
9760 | wxPyEndAllowThreads(__tstate); | |
9761 | if (PyErr_Occurred()) SWIG_fail; | |
9762 | } | |
9763 | Py_INCREF(Py_None); resultobj = Py_None; | |
9764 | { | |
9765 | if (temp2) | |
9766 | delete arg2; | |
9767 | } | |
9768 | return resultobj; | |
9769 | fail: | |
9770 | { | |
9771 | if (temp2) | |
9772 | delete arg2; | |
9773 | } | |
9774 | return NULL; | |
9775 | } | |
9776 | ||
9777 | ||
9778 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9779 | PyObject *resultobj; | |
9780 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9781 | long arg2 ; | |
9782 | long arg3 ; | |
9783 | wxString result; | |
9784 | PyObject * obj0 = 0 ; | |
9785 | PyObject * obj1 = 0 ; | |
9786 | PyObject * obj2 = 0 ; | |
9787 | char *kwnames[] = { | |
9788 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9789 | }; | |
9790 | ||
9791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9794 | arg2 = (long) SWIG_AsLong(obj1); | |
9795 | if (PyErr_Occurred()) SWIG_fail; | |
9796 | arg3 = (long) SWIG_AsLong(obj2); | |
9797 | if (PyErr_Occurred()) SWIG_fail; | |
9798 | { | |
9799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9800 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9801 | ||
9802 | wxPyEndAllowThreads(__tstate); | |
9803 | if (PyErr_Occurred()) SWIG_fail; | |
9804 | } | |
9805 | { | |
9806 | #if wxUSE_UNICODE | |
9807 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9808 | #else | |
9809 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9810 | #endif | |
9811 | } | |
9812 | return resultobj; | |
9813 | fail: | |
9814 | return NULL; | |
9815 | } | |
9816 | ||
9817 | ||
f20a2e1f RD |
9818 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
9819 | PyObject *resultobj; | |
9820 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
9821 | wxVisualAttributes result; | |
9822 | PyObject * obj0 = 0 ; | |
9823 | char *kwnames[] = { | |
9824 | (char *) "variant", NULL | |
9825 | }; | |
9826 | ||
9827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
9828 | if (obj0) { | |
9829 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
9830 | if (PyErr_Occurred()) SWIG_fail; | |
9831 | } | |
9832 | { | |
0439c23b | 9833 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
9834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9835 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
9836 | ||
9837 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9838 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
9839 | } |
9840 | { | |
9841 | wxVisualAttributes * resultptr; | |
9842 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
9843 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
9844 | } | |
9845 | return resultobj; | |
9846 | fail: | |
9847 | return NULL; | |
9848 | } | |
9849 | ||
9850 | ||
d55e5bfc RD |
9851 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { |
9852 | PyObject *obj; | |
9853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9854 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9855 | Py_INCREF(obj); | |
9856 | return Py_BuildValue((char *)""); | |
9857 | } | |
9858 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9859 | PyObject *resultobj; | |
9860 | int arg1 ; | |
9861 | wxMouseEvent *arg2 = 0 ; | |
9862 | long arg3 ; | |
9863 | long arg4 ; | |
9864 | wxTextUrlEvent *result; | |
9865 | PyObject * obj0 = 0 ; | |
9866 | PyObject * obj1 = 0 ; | |
9867 | PyObject * obj2 = 0 ; | |
9868 | PyObject * obj3 = 0 ; | |
9869 | char *kwnames[] = { | |
9870 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9871 | }; | |
9872 | ||
9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9874 | arg1 = (int) SWIG_AsInt(obj0); | |
9875 | if (PyErr_Occurred()) SWIG_fail; | |
9876 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9877 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9878 | SWIG_fail; | |
9879 | if (arg2 == NULL) { | |
9880 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9881 | SWIG_fail; | |
9882 | } | |
9883 | arg3 = (long) SWIG_AsLong(obj2); | |
9884 | if (PyErr_Occurred()) SWIG_fail; | |
9885 | arg4 = (long) SWIG_AsLong(obj3); | |
9886 | if (PyErr_Occurred()) SWIG_fail; | |
9887 | { | |
9888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9889 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9890 | ||
9891 | wxPyEndAllowThreads(__tstate); | |
9892 | if (PyErr_Occurred()) SWIG_fail; | |
9893 | } | |
9894 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); | |
9895 | return resultobj; | |
9896 | fail: | |
9897 | return NULL; | |
9898 | } | |
9899 | ||
9900 | ||
9901 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9902 | PyObject *resultobj; | |
9903 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9904 | wxMouseEvent *result; | |
9905 | PyObject * obj0 = 0 ; | |
9906 | char *kwnames[] = { | |
9907 | (char *) "self", NULL | |
9908 | }; | |
9909 | ||
9910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9913 | { | |
9914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9915 | { | |
9916 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9917 | result = (wxMouseEvent *) &_result_ref; | |
9918 | } | |
9919 | ||
9920 | wxPyEndAllowThreads(__tstate); | |
9921 | if (PyErr_Occurred()) SWIG_fail; | |
9922 | } | |
9923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); | |
9924 | return resultobj; | |
9925 | fail: | |
9926 | return NULL; | |
9927 | } | |
9928 | ||
9929 | ||
9930 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9931 | PyObject *resultobj; | |
9932 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9933 | long result; | |
9934 | PyObject * obj0 = 0 ; | |
9935 | char *kwnames[] = { | |
9936 | (char *) "self", NULL | |
9937 | }; | |
9938 | ||
9939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
9940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9942 | { | |
9943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9944 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9945 | ||
9946 | wxPyEndAllowThreads(__tstate); | |
9947 | if (PyErr_Occurred()) SWIG_fail; | |
9948 | } | |
9949 | resultobj = SWIG_FromLong((long)result); | |
9950 | return resultobj; | |
9951 | fail: | |
9952 | return NULL; | |
9953 | } | |
9954 | ||
9955 | ||
9956 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9957 | PyObject *resultobj; | |
9958 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9959 | long result; | |
9960 | PyObject * obj0 = 0 ; | |
9961 | char *kwnames[] = { | |
9962 | (char *) "self", NULL | |
9963 | }; | |
9964 | ||
9965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
9966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9968 | { | |
9969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9970 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9971 | ||
9972 | wxPyEndAllowThreads(__tstate); | |
9973 | if (PyErr_Occurred()) SWIG_fail; | |
9974 | } | |
9975 | resultobj = SWIG_FromLong((long)result); | |
9976 | return resultobj; | |
9977 | fail: | |
9978 | return NULL; | |
9979 | } | |
9980 | ||
9981 | ||
9982 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9983 | PyObject *obj; | |
9984 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9985 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9986 | Py_INCREF(obj); | |
9987 | return Py_BuildValue((char *)""); | |
9988 | } | |
9989 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { | |
9990 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
9991 | return 1; | |
9992 | } | |
9993 | ||
9994 | ||
9995 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9996 | PyObject *pyobj; | |
9997 | ||
9998 | { | |
9999 | #if wxUSE_UNICODE | |
10000 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10001 | #else | |
10002 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10003 | #endif | |
10004 | } | |
10005 | return pyobj; | |
10006 | } | |
10007 | ||
10008 | ||
10009 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10010 | PyObject *resultobj; | |
10011 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10012 | int arg2 = (int) -1 ; | |
10013 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10014 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10015 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10016 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10017 | long arg5 = (long) wxSB_HORIZONTAL ; | |
10018 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
10019 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
10020 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
10021 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10022 | wxScrollBar *result; | |
10023 | wxPoint temp3 ; | |
10024 | wxSize temp4 ; | |
10025 | bool temp7 = False ; | |
10026 | PyObject * obj0 = 0 ; | |
10027 | PyObject * obj1 = 0 ; | |
10028 | PyObject * obj2 = 0 ; | |
10029 | PyObject * obj3 = 0 ; | |
10030 | PyObject * obj4 = 0 ; | |
10031 | PyObject * obj5 = 0 ; | |
10032 | PyObject * obj6 = 0 ; | |
10033 | char *kwnames[] = { | |
10034 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10035 | }; | |
10036 | ||
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10040 | if (obj1) { | |
10041 | arg2 = (int) SWIG_AsInt(obj1); | |
10042 | if (PyErr_Occurred()) SWIG_fail; | |
10043 | } | |
10044 | if (obj2) { | |
10045 | { | |
10046 | arg3 = &temp3; | |
10047 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10048 | } | |
10049 | } | |
10050 | if (obj3) { | |
10051 | { | |
10052 | arg4 = &temp4; | |
10053 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10054 | } | |
10055 | } | |
10056 | if (obj4) { | |
10057 | arg5 = (long) SWIG_AsLong(obj4); | |
10058 | if (PyErr_Occurred()) SWIG_fail; | |
10059 | } | |
10060 | if (obj5) { | |
10061 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
10062 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10063 | SWIG_fail; | |
10064 | if (arg6 == NULL) { | |
10065 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10066 | SWIG_fail; | |
10067 | } | |
10068 | } | |
10069 | if (obj6) { | |
10070 | { | |
10071 | arg7 = wxString_in_helper(obj6); | |
10072 | if (arg7 == NULL) SWIG_fail; | |
10073 | temp7 = True; | |
10074 | } | |
10075 | } | |
10076 | { | |
0439c23b | 10077 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10079 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10080 | ||
10081 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10082 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10083 | } |
10084 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
10085 | { | |
10086 | if (temp7) | |
10087 | delete arg7; | |
10088 | } | |
10089 | return resultobj; | |
10090 | fail: | |
10091 | { | |
10092 | if (temp7) | |
10093 | delete arg7; | |
10094 | } | |
10095 | return NULL; | |
10096 | } | |
10097 | ||
10098 | ||
10099 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10100 | PyObject *resultobj; | |
10101 | wxScrollBar *result; | |
10102 | char *kwnames[] = { | |
10103 | NULL | |
10104 | }; | |
10105 | ||
10106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10107 | { | |
0439c23b | 10108 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10110 | result = (wxScrollBar *)new wxScrollBar(); | |
10111 | ||
10112 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10113 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10114 | } |
10115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
10116 | return resultobj; | |
10117 | fail: | |
10118 | return NULL; | |
10119 | } | |
10120 | ||
10121 | ||
10122 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10123 | PyObject *resultobj; | |
10124 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10125 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10126 | int arg3 = (int) -1 ; | |
10127 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10128 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10129 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10130 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10131 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10132 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10133 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10134 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10135 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10136 | bool result; | |
10137 | wxPoint temp4 ; | |
10138 | wxSize temp5 ; | |
10139 | bool temp8 = False ; | |
10140 | PyObject * obj0 = 0 ; | |
10141 | PyObject * obj1 = 0 ; | |
10142 | PyObject * obj2 = 0 ; | |
10143 | PyObject * obj3 = 0 ; | |
10144 | PyObject * obj4 = 0 ; | |
10145 | PyObject * obj5 = 0 ; | |
10146 | PyObject * obj6 = 0 ; | |
10147 | PyObject * obj7 = 0 ; | |
10148 | char *kwnames[] = { | |
10149 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10150 | }; | |
10151 | ||
10152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
10153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10155 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10157 | if (obj2) { | |
10158 | arg3 = (int) SWIG_AsInt(obj2); | |
10159 | if (PyErr_Occurred()) SWIG_fail; | |
10160 | } | |
10161 | if (obj3) { | |
10162 | { | |
10163 | arg4 = &temp4; | |
10164 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10165 | } | |
10166 | } | |
10167 | if (obj4) { | |
10168 | { | |
10169 | arg5 = &temp5; | |
10170 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10171 | } | |
10172 | } | |
10173 | if (obj5) { | |
10174 | arg6 = (long) SWIG_AsLong(obj5); | |
10175 | if (PyErr_Occurred()) SWIG_fail; | |
10176 | } | |
10177 | if (obj6) { | |
10178 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
10179 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10180 | SWIG_fail; | |
10181 | if (arg7 == NULL) { | |
10182 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10183 | SWIG_fail; | |
10184 | } | |
10185 | } | |
10186 | if (obj7) { | |
10187 | { | |
10188 | arg8 = wxString_in_helper(obj7); | |
10189 | if (arg8 == NULL) SWIG_fail; | |
10190 | temp8 = True; | |
10191 | } | |
10192 | } | |
10193 | { | |
10194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10195 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10196 | ||
10197 | wxPyEndAllowThreads(__tstate); | |
10198 | if (PyErr_Occurred()) SWIG_fail; | |
10199 | } | |
10200 | { | |
10201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10202 | } | |
10203 | { | |
10204 | if (temp8) | |
10205 | delete arg8; | |
10206 | } | |
10207 | return resultobj; | |
10208 | fail: | |
10209 | { | |
10210 | if (temp8) | |
10211 | delete arg8; | |
10212 | } | |
10213 | return NULL; | |
10214 | } | |
10215 | ||
10216 | ||
10217 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10218 | PyObject *resultobj; | |
10219 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10220 | int result; | |
10221 | PyObject * obj0 = 0 ; | |
10222 | char *kwnames[] = { | |
10223 | (char *) "self", NULL | |
10224 | }; | |
10225 | ||
10226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
10227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10229 | { | |
10230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10231 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10232 | ||
10233 | wxPyEndAllowThreads(__tstate); | |
10234 | if (PyErr_Occurred()) SWIG_fail; | |
10235 | } | |
10236 | resultobj = SWIG_FromInt((int)result); | |
10237 | return resultobj; | |
10238 | fail: | |
10239 | return NULL; | |
10240 | } | |
10241 | ||
10242 | ||
10243 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10244 | PyObject *resultobj; | |
10245 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10246 | int result; | |
10247 | PyObject * obj0 = 0 ; | |
10248 | char *kwnames[] = { | |
10249 | (char *) "self", NULL | |
10250 | }; | |
10251 | ||
10252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
10253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10255 | { | |
10256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10257 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10258 | ||
10259 | wxPyEndAllowThreads(__tstate); | |
10260 | if (PyErr_Occurred()) SWIG_fail; | |
10261 | } | |
10262 | resultobj = SWIG_FromInt((int)result); | |
10263 | return resultobj; | |
10264 | fail: | |
10265 | return NULL; | |
10266 | } | |
10267 | ||
10268 | ||
10269 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10270 | PyObject *resultobj; | |
10271 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10272 | int result; | |
10273 | PyObject * obj0 = 0 ; | |
10274 | char *kwnames[] = { | |
10275 | (char *) "self", NULL | |
10276 | }; | |
10277 | ||
10278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
10279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10281 | { | |
10282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10283 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10284 | ||
10285 | wxPyEndAllowThreads(__tstate); | |
10286 | if (PyErr_Occurred()) SWIG_fail; | |
10287 | } | |
10288 | resultobj = SWIG_FromInt((int)result); | |
10289 | return resultobj; | |
10290 | fail: | |
10291 | return NULL; | |
10292 | } | |
10293 | ||
10294 | ||
10295 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10296 | PyObject *resultobj; | |
10297 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10298 | int result; | |
10299 | PyObject * obj0 = 0 ; | |
10300 | char *kwnames[] = { | |
10301 | (char *) "self", NULL | |
10302 | }; | |
10303 | ||
10304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
10305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10307 | { | |
10308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10309 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10310 | ||
10311 | wxPyEndAllowThreads(__tstate); | |
10312 | if (PyErr_Occurred()) SWIG_fail; | |
10313 | } | |
10314 | resultobj = SWIG_FromInt((int)result); | |
10315 | return resultobj; | |
10316 | fail: | |
10317 | return NULL; | |
10318 | } | |
10319 | ||
10320 | ||
10321 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10322 | PyObject *resultobj; | |
10323 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10324 | bool result; | |
10325 | PyObject * obj0 = 0 ; | |
10326 | char *kwnames[] = { | |
10327 | (char *) "self", NULL | |
10328 | }; | |
10329 | ||
10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
10331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10333 | { | |
10334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10335 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10336 | ||
10337 | wxPyEndAllowThreads(__tstate); | |
10338 | if (PyErr_Occurred()) SWIG_fail; | |
10339 | } | |
10340 | { | |
10341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10342 | } | |
10343 | return resultobj; | |
10344 | fail: | |
10345 | return NULL; | |
10346 | } | |
10347 | ||
10348 | ||
10349 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10350 | PyObject *resultobj; | |
10351 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10352 | int arg2 ; | |
10353 | PyObject * obj0 = 0 ; | |
10354 | PyObject * obj1 = 0 ; | |
10355 | char *kwnames[] = { | |
10356 | (char *) "self",(char *) "viewStart", NULL | |
10357 | }; | |
10358 | ||
10359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
10360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10362 | arg2 = (int) SWIG_AsInt(obj1); | |
10363 | if (PyErr_Occurred()) SWIG_fail; | |
10364 | { | |
10365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10366 | (arg1)->SetThumbPosition(arg2); | |
10367 | ||
10368 | wxPyEndAllowThreads(__tstate); | |
10369 | if (PyErr_Occurred()) SWIG_fail; | |
10370 | } | |
10371 | Py_INCREF(Py_None); resultobj = Py_None; | |
10372 | return resultobj; | |
10373 | fail: | |
10374 | return NULL; | |
10375 | } | |
10376 | ||
10377 | ||
10378 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10379 | PyObject *resultobj; | |
10380 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10381 | int arg2 ; | |
10382 | int arg3 ; | |
10383 | int arg4 ; | |
10384 | int arg5 ; | |
10385 | bool arg6 = (bool) True ; | |
10386 | PyObject * obj0 = 0 ; | |
10387 | PyObject * obj1 = 0 ; | |
10388 | PyObject * obj2 = 0 ; | |
10389 | PyObject * obj3 = 0 ; | |
10390 | PyObject * obj4 = 0 ; | |
10391 | PyObject * obj5 = 0 ; | |
10392 | char *kwnames[] = { | |
10393 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10394 | }; | |
10395 | ||
10396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10399 | arg2 = (int) SWIG_AsInt(obj1); | |
10400 | if (PyErr_Occurred()) SWIG_fail; | |
10401 | arg3 = (int) SWIG_AsInt(obj2); | |
10402 | if (PyErr_Occurred()) SWIG_fail; | |
10403 | arg4 = (int) SWIG_AsInt(obj3); | |
10404 | if (PyErr_Occurred()) SWIG_fail; | |
10405 | arg5 = (int) SWIG_AsInt(obj4); | |
10406 | if (PyErr_Occurred()) SWIG_fail; | |
10407 | if (obj5) { | |
10408 | arg6 = (bool) SWIG_AsBool(obj5); | |
10409 | if (PyErr_Occurred()) SWIG_fail; | |
10410 | } | |
10411 | { | |
10412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10413 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10414 | ||
10415 | wxPyEndAllowThreads(__tstate); | |
10416 | if (PyErr_Occurred()) SWIG_fail; | |
10417 | } | |
10418 | Py_INCREF(Py_None); resultobj = Py_None; | |
10419 | return resultobj; | |
10420 | fail: | |
10421 | return NULL; | |
10422 | } | |
10423 | ||
10424 | ||
f20a2e1f RD |
10425 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
10426 | PyObject *resultobj; | |
10427 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10428 | wxVisualAttributes result; | |
10429 | PyObject * obj0 = 0 ; | |
10430 | char *kwnames[] = { | |
10431 | (char *) "variant", NULL | |
10432 | }; | |
10433 | ||
10434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10435 | if (obj0) { | |
10436 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10437 | if (PyErr_Occurred()) SWIG_fail; | |
10438 | } | |
10439 | { | |
0439c23b | 10440 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
10441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10442 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10443 | ||
10444 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10445 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
10446 | } |
10447 | { | |
10448 | wxVisualAttributes * resultptr; | |
10449 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10450 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10451 | } | |
10452 | return resultobj; | |
10453 | fail: | |
10454 | return NULL; | |
10455 | } | |
10456 | ||
10457 | ||
d55e5bfc RD |
10458 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { |
10459 | PyObject *obj; | |
10460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10461 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10462 | Py_INCREF(obj); | |
10463 | return Py_BuildValue((char *)""); | |
10464 | } | |
10465 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { | |
10466 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
10467 | return 1; | |
10468 | } | |
10469 | ||
10470 | ||
10471 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10472 | PyObject *pyobj; | |
10473 | ||
10474 | { | |
10475 | #if wxUSE_UNICODE | |
10476 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10477 | #else | |
10478 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10479 | #endif | |
10480 | } | |
10481 | return pyobj; | |
10482 | } | |
10483 | ||
10484 | ||
10485 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
10486 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
10487 | return 1; | |
10488 | } | |
10489 | ||
10490 | ||
10491 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10492 | PyObject *pyobj; | |
10493 | ||
10494 | { | |
10495 | #if wxUSE_UNICODE | |
10496 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10497 | #else | |
10498 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10499 | #endif | |
10500 | } | |
10501 | return pyobj; | |
10502 | } | |
10503 | ||
10504 | ||
10505 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10506 | PyObject *resultobj; | |
10507 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10508 | int arg2 = (int) -1 ; | |
10509 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10510 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10511 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10512 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10513 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10514 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10515 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10516 | wxSpinButton *result; | |
10517 | wxPoint temp3 ; | |
10518 | wxSize temp4 ; | |
10519 | bool temp6 = False ; | |
10520 | PyObject * obj0 = 0 ; | |
10521 | PyObject * obj1 = 0 ; | |
10522 | PyObject * obj2 = 0 ; | |
10523 | PyObject * obj3 = 0 ; | |
10524 | PyObject * obj4 = 0 ; | |
10525 | PyObject * obj5 = 0 ; | |
10526 | char *kwnames[] = { | |
10527 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10528 | }; | |
10529 | ||
10530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10533 | if (obj1) { | |
10534 | arg2 = (int) SWIG_AsInt(obj1); | |
10535 | if (PyErr_Occurred()) SWIG_fail; | |
10536 | } | |
10537 | if (obj2) { | |
10538 | { | |
10539 | arg3 = &temp3; | |
10540 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10541 | } | |
10542 | } | |
10543 | if (obj3) { | |
10544 | { | |
10545 | arg4 = &temp4; | |
10546 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10547 | } | |
10548 | } | |
10549 | if (obj4) { | |
10550 | arg5 = (long) SWIG_AsLong(obj4); | |
10551 | if (PyErr_Occurred()) SWIG_fail; | |
10552 | } | |
10553 | if (obj5) { | |
10554 | { | |
10555 | arg6 = wxString_in_helper(obj5); | |
10556 | if (arg6 == NULL) SWIG_fail; | |
10557 | temp6 = True; | |
10558 | } | |
10559 | } | |
10560 | { | |
0439c23b | 10561 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10563 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10564 | ||
10565 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10566 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10567 | } |
10568 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10569 | { | |
10570 | if (temp6) | |
10571 | delete arg6; | |
10572 | } | |
10573 | return resultobj; | |
10574 | fail: | |
10575 | { | |
10576 | if (temp6) | |
10577 | delete arg6; | |
10578 | } | |
10579 | return NULL; | |
10580 | } | |
10581 | ||
10582 | ||
10583 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10584 | PyObject *resultobj; | |
10585 | wxSpinButton *result; | |
10586 | char *kwnames[] = { | |
10587 | NULL | |
10588 | }; | |
10589 | ||
10590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10591 | { | |
0439c23b | 10592 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10594 | result = (wxSpinButton *)new wxSpinButton(); | |
10595 | ||
10596 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10597 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10598 | } |
10599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10600 | return resultobj; | |
10601 | fail: | |
10602 | return NULL; | |
10603 | } | |
10604 | ||
10605 | ||
10606 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10607 | PyObject *resultobj; | |
10608 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10609 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10610 | int arg3 = (int) -1 ; | |
10611 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10612 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10613 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10614 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10615 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10616 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10617 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10618 | bool result; | |
10619 | wxPoint temp4 ; | |
10620 | wxSize temp5 ; | |
10621 | bool temp7 = False ; | |
10622 | PyObject * obj0 = 0 ; | |
10623 | PyObject * obj1 = 0 ; | |
10624 | PyObject * obj2 = 0 ; | |
10625 | PyObject * obj3 = 0 ; | |
10626 | PyObject * obj4 = 0 ; | |
10627 | PyObject * obj5 = 0 ; | |
10628 | PyObject * obj6 = 0 ; | |
10629 | char *kwnames[] = { | |
10630 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10631 | }; | |
10632 | ||
10633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10638 | if (obj2) { | |
10639 | arg3 = (int) SWIG_AsInt(obj2); | |
10640 | if (PyErr_Occurred()) SWIG_fail; | |
10641 | } | |
10642 | if (obj3) { | |
10643 | { | |
10644 | arg4 = &temp4; | |
10645 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10646 | } | |
10647 | } | |
10648 | if (obj4) { | |
10649 | { | |
10650 | arg5 = &temp5; | |
10651 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10652 | } | |
10653 | } | |
10654 | if (obj5) { | |
10655 | arg6 = (long) SWIG_AsLong(obj5); | |
10656 | if (PyErr_Occurred()) SWIG_fail; | |
10657 | } | |
10658 | if (obj6) { | |
10659 | { | |
10660 | arg7 = wxString_in_helper(obj6); | |
10661 | if (arg7 == NULL) SWIG_fail; | |
10662 | temp7 = True; | |
10663 | } | |
10664 | } | |
10665 | { | |
10666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10667 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10668 | ||
10669 | wxPyEndAllowThreads(__tstate); | |
10670 | if (PyErr_Occurred()) SWIG_fail; | |
10671 | } | |
10672 | { | |
10673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10674 | } | |
10675 | { | |
10676 | if (temp7) | |
10677 | delete arg7; | |
10678 | } | |
10679 | return resultobj; | |
10680 | fail: | |
10681 | { | |
10682 | if (temp7) | |
10683 | delete arg7; | |
10684 | } | |
10685 | return NULL; | |
10686 | } | |
10687 | ||
10688 | ||
10689 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10690 | PyObject *resultobj; | |
10691 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10692 | int result; | |
10693 | PyObject * obj0 = 0 ; | |
10694 | char *kwnames[] = { | |
10695 | (char *) "self", NULL | |
10696 | }; | |
10697 | ||
10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
10699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10701 | { | |
10702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10703 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10704 | ||
10705 | wxPyEndAllowThreads(__tstate); | |
10706 | if (PyErr_Occurred()) SWIG_fail; | |
10707 | } | |
10708 | resultobj = SWIG_FromInt((int)result); | |
10709 | return resultobj; | |
10710 | fail: | |
10711 | return NULL; | |
10712 | } | |
10713 | ||
10714 | ||
10715 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10716 | PyObject *resultobj; | |
10717 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10718 | int result; | |
10719 | PyObject * obj0 = 0 ; | |
10720 | char *kwnames[] = { | |
10721 | (char *) "self", NULL | |
10722 | }; | |
10723 | ||
10724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
10725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10727 | { | |
10728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10729 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10730 | ||
10731 | wxPyEndAllowThreads(__tstate); | |
10732 | if (PyErr_Occurred()) SWIG_fail; | |
10733 | } | |
10734 | resultobj = SWIG_FromInt((int)result); | |
10735 | return resultobj; | |
10736 | fail: | |
10737 | return NULL; | |
10738 | } | |
10739 | ||
10740 | ||
10741 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10742 | PyObject *resultobj; | |
10743 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10744 | int result; | |
10745 | PyObject * obj0 = 0 ; | |
10746 | char *kwnames[] = { | |
10747 | (char *) "self", NULL | |
10748 | }; | |
10749 | ||
10750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
10751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10753 | { | |
10754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10755 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10756 | ||
10757 | wxPyEndAllowThreads(__tstate); | |
10758 | if (PyErr_Occurred()) SWIG_fail; | |
10759 | } | |
10760 | resultobj = SWIG_FromInt((int)result); | |
10761 | return resultobj; | |
10762 | fail: | |
10763 | return NULL; | |
10764 | } | |
10765 | ||
10766 | ||
10767 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10768 | PyObject *resultobj; | |
10769 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10770 | int arg2 ; | |
10771 | PyObject * obj0 = 0 ; | |
10772 | PyObject * obj1 = 0 ; | |
10773 | char *kwnames[] = { | |
10774 | (char *) "self",(char *) "val", NULL | |
10775 | }; | |
10776 | ||
10777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10780 | arg2 = (int) SWIG_AsInt(obj1); | |
10781 | if (PyErr_Occurred()) SWIG_fail; | |
10782 | { | |
10783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10784 | (arg1)->SetValue(arg2); | |
10785 | ||
10786 | wxPyEndAllowThreads(__tstate); | |
10787 | if (PyErr_Occurred()) SWIG_fail; | |
10788 | } | |
10789 | Py_INCREF(Py_None); resultobj = Py_None; | |
10790 | return resultobj; | |
10791 | fail: | |
10792 | return NULL; | |
10793 | } | |
10794 | ||
10795 | ||
10796 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10797 | PyObject *resultobj; | |
10798 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10799 | int arg2 ; | |
10800 | PyObject * obj0 = 0 ; | |
10801 | PyObject * obj1 = 0 ; | |
10802 | char *kwnames[] = { | |
10803 | (char *) "self",(char *) "minVal", NULL | |
10804 | }; | |
10805 | ||
10806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
10807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10809 | arg2 = (int) SWIG_AsInt(obj1); | |
10810 | if (PyErr_Occurred()) SWIG_fail; | |
10811 | { | |
10812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10813 | (arg1)->SetMin(arg2); | |
10814 | ||
10815 | wxPyEndAllowThreads(__tstate); | |
10816 | if (PyErr_Occurred()) SWIG_fail; | |
10817 | } | |
10818 | Py_INCREF(Py_None); resultobj = Py_None; | |
10819 | return resultobj; | |
10820 | fail: | |
10821 | return NULL; | |
10822 | } | |
10823 | ||
10824 | ||
10825 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10826 | PyObject *resultobj; | |
10827 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10828 | int arg2 ; | |
10829 | PyObject * obj0 = 0 ; | |
10830 | PyObject * obj1 = 0 ; | |
10831 | char *kwnames[] = { | |
10832 | (char *) "self",(char *) "maxVal", NULL | |
10833 | }; | |
10834 | ||
10835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
10836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10838 | arg2 = (int) SWIG_AsInt(obj1); | |
10839 | if (PyErr_Occurred()) SWIG_fail; | |
10840 | { | |
10841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10842 | (arg1)->SetMax(arg2); | |
10843 | ||
10844 | wxPyEndAllowThreads(__tstate); | |
10845 | if (PyErr_Occurred()) SWIG_fail; | |
10846 | } | |
10847 | Py_INCREF(Py_None); resultobj = Py_None; | |
10848 | return resultobj; | |
10849 | fail: | |
10850 | return NULL; | |
10851 | } | |
10852 | ||
10853 | ||
10854 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10855 | PyObject *resultobj; | |
10856 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10857 | int arg2 ; | |
10858 | int arg3 ; | |
10859 | PyObject * obj0 = 0 ; | |
10860 | PyObject * obj1 = 0 ; | |
10861 | PyObject * obj2 = 0 ; | |
10862 | char *kwnames[] = { | |
10863 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10864 | }; | |
10865 | ||
10866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10869 | arg2 = (int) SWIG_AsInt(obj1); | |
10870 | if (PyErr_Occurred()) SWIG_fail; | |
10871 | arg3 = (int) SWIG_AsInt(obj2); | |
10872 | if (PyErr_Occurred()) SWIG_fail; | |
10873 | { | |
10874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10875 | (arg1)->SetRange(arg2,arg3); | |
10876 | ||
10877 | wxPyEndAllowThreads(__tstate); | |
10878 | if (PyErr_Occurred()) SWIG_fail; | |
10879 | } | |
f20a2e1f RD |
10880 | Py_INCREF(Py_None); resultobj = Py_None; |
10881 | return resultobj; | |
10882 | fail: | |
10883 | return NULL; | |
10884 | } | |
10885 | ||
10886 | ||
10887 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10888 | PyObject *resultobj; | |
10889 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10890 | bool result; | |
10891 | PyObject * obj0 = 0 ; | |
10892 | char *kwnames[] = { | |
10893 | (char *) "self", NULL | |
10894 | }; | |
10895 | ||
10896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10899 | { | |
10900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10901 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10902 | ||
10903 | wxPyEndAllowThreads(__tstate); | |
10904 | if (PyErr_Occurred()) SWIG_fail; | |
10905 | } | |
10906 | { | |
10907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10908 | } | |
d55e5bfc RD |
10909 | return resultobj; |
10910 | fail: | |
10911 | return NULL; | |
10912 | } | |
10913 | ||
10914 | ||
f20a2e1f | 10915 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 10916 | PyObject *resultobj; |
f20a2e1f RD |
10917 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
10918 | wxVisualAttributes result; | |
d55e5bfc RD |
10919 | PyObject * obj0 = 0 ; |
10920 | char *kwnames[] = { | |
f20a2e1f | 10921 | (char *) "variant", NULL |
d55e5bfc RD |
10922 | }; |
10923 | ||
f20a2e1f RD |
10924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
10925 | if (obj0) { | |
10926 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10927 | if (PyErr_Occurred()) SWIG_fail; | |
10928 | } | |
d55e5bfc | 10929 | { |
0439c23b | 10930 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 10931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f20a2e1f | 10932 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d55e5bfc RD |
10933 | |
10934 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10935 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10936 | } |
10937 | { | |
f20a2e1f RD |
10938 | wxVisualAttributes * resultptr; |
10939 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10940 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
d55e5bfc RD |
10941 | } |
10942 | return resultobj; | |
10943 | fail: | |
10944 | return NULL; | |
10945 | } | |
10946 | ||
10947 | ||
10948 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10949 | PyObject *obj; | |
10950 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10951 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10952 | Py_INCREF(obj); | |
10953 | return Py_BuildValue((char *)""); | |
10954 | } | |
10955 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10956 | PyObject *resultobj; | |
10957 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10958 | int arg2 = (int) -1 ; | |
10959 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10960 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10961 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10962 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10963 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10964 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10965 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10966 | int arg7 = (int) 0 ; | |
10967 | int arg8 = (int) 100 ; | |
10968 | int arg9 = (int) 0 ; | |
10969 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10970 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10971 | wxSpinCtrl *result; | |
10972 | bool temp3 = False ; | |
10973 | wxPoint temp4 ; | |
10974 | wxSize temp5 ; | |
10975 | bool temp10 = False ; | |
10976 | PyObject * obj0 = 0 ; | |
10977 | PyObject * obj1 = 0 ; | |
10978 | PyObject * obj2 = 0 ; | |
10979 | PyObject * obj3 = 0 ; | |
10980 | PyObject * obj4 = 0 ; | |
10981 | PyObject * obj5 = 0 ; | |
10982 | PyObject * obj6 = 0 ; | |
10983 | PyObject * obj7 = 0 ; | |
10984 | PyObject * obj8 = 0 ; | |
10985 | PyObject * obj9 = 0 ; | |
10986 | char *kwnames[] = { | |
10987 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10988 | }; | |
10989 | ||
10990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
10991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10993 | if (obj1) { | |
10994 | arg2 = (int) SWIG_AsInt(obj1); | |
10995 | if (PyErr_Occurred()) SWIG_fail; | |
10996 | } | |
10997 | if (obj2) { | |
10998 | { | |
10999 | arg3 = wxString_in_helper(obj2); | |
11000 | if (arg3 == NULL) SWIG_fail; | |
11001 | temp3 = True; | |
11002 | } | |
11003 | } | |
11004 | if (obj3) { | |
11005 | { | |
11006 | arg4 = &temp4; | |
11007 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11008 | } | |
11009 | } | |
11010 | if (obj4) { | |
11011 | { | |
11012 | arg5 = &temp5; | |
11013 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11014 | } | |
11015 | } | |
11016 | if (obj5) { | |
11017 | arg6 = (long) SWIG_AsLong(obj5); | |
11018 | if (PyErr_Occurred()) SWIG_fail; | |
11019 | } | |
11020 | if (obj6) { | |
11021 | arg7 = (int) SWIG_AsInt(obj6); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
11024 | if (obj7) { | |
11025 | arg8 = (int) SWIG_AsInt(obj7); | |
11026 | if (PyErr_Occurred()) SWIG_fail; | |
11027 | } | |
11028 | if (obj8) { | |
11029 | arg9 = (int) SWIG_AsInt(obj8); | |
11030 | if (PyErr_Occurred()) SWIG_fail; | |
11031 | } | |
11032 | if (obj9) { | |
11033 | { | |
11034 | arg10 = wxString_in_helper(obj9); | |
11035 | if (arg10 == NULL) SWIG_fail; | |
11036 | temp10 = True; | |
11037 | } | |
11038 | } | |
11039 | { | |
0439c23b | 11040 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11042 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11043 | ||
11044 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11045 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11046 | } |
11047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
11048 | { | |
11049 | if (temp3) | |
11050 | delete arg3; | |
11051 | } | |
11052 | { | |
11053 | if (temp10) | |
11054 | delete arg10; | |
11055 | } | |
11056 | return resultobj; | |
11057 | fail: | |
11058 | { | |
11059 | if (temp3) | |
11060 | delete arg3; | |
11061 | } | |
11062 | { | |
11063 | if (temp10) | |
11064 | delete arg10; | |
11065 | } | |
11066 | return NULL; | |
11067 | } | |
11068 | ||
11069 | ||
11070 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11071 | PyObject *resultobj; | |
11072 | wxSpinCtrl *result; | |
11073 | char *kwnames[] = { | |
11074 | NULL | |
11075 | }; | |
11076 | ||
11077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11078 | { | |
0439c23b | 11079 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11081 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11082 | ||
11083 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11084 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11085 | } |
11086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
11087 | return resultobj; | |
11088 | fail: | |
11089 | return NULL; | |
11090 | } | |
11091 | ||
11092 | ||
11093 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11094 | PyObject *resultobj; | |
11095 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11096 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11097 | int arg3 = (int) -1 ; | |
11098 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11099 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11100 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11101 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11102 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11103 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11104 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11105 | int arg8 = (int) 0 ; | |
11106 | int arg9 = (int) 100 ; | |
11107 | int arg10 = (int) 0 ; | |
11108 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11109 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11110 | bool result; | |
11111 | bool temp4 = False ; | |
11112 | wxPoint temp5 ; | |
11113 | wxSize temp6 ; | |
11114 | bool temp11 = False ; | |
11115 | PyObject * obj0 = 0 ; | |
11116 | PyObject * obj1 = 0 ; | |
11117 | PyObject * obj2 = 0 ; | |
11118 | PyObject * obj3 = 0 ; | |
11119 | PyObject * obj4 = 0 ; | |
11120 | PyObject * obj5 = 0 ; | |
11121 | PyObject * obj6 = 0 ; | |
11122 | PyObject * obj7 = 0 ; | |
11123 | PyObject * obj8 = 0 ; | |
11124 | PyObject * obj9 = 0 ; | |
11125 | PyObject * obj10 = 0 ; | |
11126 | char *kwnames[] = { | |
11127 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11128 | }; | |
11129 | ||
11130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
11131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11133 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11135 | if (obj2) { | |
11136 | arg3 = (int) SWIG_AsInt(obj2); | |
11137 | if (PyErr_Occurred()) SWIG_fail; | |
11138 | } | |
11139 | if (obj3) { | |
11140 | { | |
11141 | arg4 = wxString_in_helper(obj3); | |
11142 | if (arg4 == NULL) SWIG_fail; | |
11143 | temp4 = True; | |
11144 | } | |
11145 | } | |
11146 | if (obj4) { | |
11147 | { | |
11148 | arg5 = &temp5; | |
11149 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11150 | } | |
11151 | } | |
11152 | if (obj5) { | |
11153 | { | |
11154 | arg6 = &temp6; | |
11155 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11156 | } | |
11157 | } | |
11158 | if (obj6) { | |
11159 | arg7 = (long) SWIG_AsLong(obj6); | |
11160 | if (PyErr_Occurred()) SWIG_fail; | |
11161 | } | |
11162 | if (obj7) { | |
11163 | arg8 = (int) SWIG_AsInt(obj7); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | } | |
11166 | if (obj8) { | |
11167 | arg9 = (int) SWIG_AsInt(obj8); | |
11168 | if (PyErr_Occurred()) SWIG_fail; | |
11169 | } | |
11170 | if (obj9) { | |
11171 | arg10 = (int) SWIG_AsInt(obj9); | |
11172 | if (PyErr_Occurred()) SWIG_fail; | |
11173 | } | |
11174 | if (obj10) { | |
11175 | { | |
11176 | arg11 = wxString_in_helper(obj10); | |
11177 | if (arg11 == NULL) SWIG_fail; | |
11178 | temp11 = True; | |
11179 | } | |
11180 | } | |
11181 | { | |
11182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11183 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11184 | ||
11185 | wxPyEndAllowThreads(__tstate); | |
11186 | if (PyErr_Occurred()) SWIG_fail; | |
11187 | } | |
11188 | { | |
11189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11190 | } | |
11191 | { | |
11192 | if (temp4) | |
11193 | delete arg4; | |
11194 | } | |
11195 | { | |
11196 | if (temp11) | |
11197 | delete arg11; | |
11198 | } | |
11199 | return resultobj; | |
11200 | fail: | |
11201 | { | |
11202 | if (temp4) | |
11203 | delete arg4; | |
11204 | } | |
11205 | { | |
11206 | if (temp11) | |
11207 | delete arg11; | |
11208 | } | |
11209 | return NULL; | |
11210 | } | |
11211 | ||
11212 | ||
11213 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11214 | PyObject *resultobj; | |
11215 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11216 | int result; | |
11217 | PyObject * obj0 = 0 ; | |
11218 | char *kwnames[] = { | |
11219 | (char *) "self", NULL | |
11220 | }; | |
11221 | ||
11222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
11223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11225 | { | |
11226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11227 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11228 | ||
11229 | wxPyEndAllowThreads(__tstate); | |
11230 | if (PyErr_Occurred()) SWIG_fail; | |
11231 | } | |
11232 | resultobj = SWIG_FromInt((int)result); | |
11233 | return resultobj; | |
11234 | fail: | |
11235 | return NULL; | |
11236 | } | |
11237 | ||
11238 | ||
11239 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11240 | PyObject *resultobj; | |
11241 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11242 | int arg2 ; | |
11243 | PyObject * obj0 = 0 ; | |
11244 | PyObject * obj1 = 0 ; | |
11245 | char *kwnames[] = { | |
11246 | (char *) "self",(char *) "value", NULL | |
11247 | }; | |
11248 | ||
11249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11252 | arg2 = (int) SWIG_AsInt(obj1); | |
11253 | if (PyErr_Occurred()) SWIG_fail; | |
11254 | { | |
11255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11256 | (arg1)->SetValue(arg2); | |
11257 | ||
11258 | wxPyEndAllowThreads(__tstate); | |
11259 | if (PyErr_Occurred()) SWIG_fail; | |
11260 | } | |
11261 | Py_INCREF(Py_None); resultobj = Py_None; | |
11262 | return resultobj; | |
11263 | fail: | |
11264 | return NULL; | |
11265 | } | |
11266 | ||
11267 | ||
11268 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11269 | PyObject *resultobj; | |
11270 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11271 | wxString *arg2 = 0 ; | |
11272 | bool temp2 = False ; | |
11273 | PyObject * obj0 = 0 ; | |
11274 | PyObject * obj1 = 0 ; | |
11275 | char *kwnames[] = { | |
11276 | (char *) "self",(char *) "text", NULL | |
11277 | }; | |
11278 | ||
11279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
11280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11282 | { | |
11283 | arg2 = wxString_in_helper(obj1); | |
11284 | if (arg2 == NULL) SWIG_fail; | |
11285 | temp2 = True; | |
11286 | } | |
11287 | { | |
11288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11289 | (arg1)->SetValue((wxString const &)*arg2); | |
11290 | ||
11291 | wxPyEndAllowThreads(__tstate); | |
11292 | if (PyErr_Occurred()) SWIG_fail; | |
11293 | } | |
11294 | Py_INCREF(Py_None); resultobj = Py_None; | |
11295 | { | |
11296 | if (temp2) | |
11297 | delete arg2; | |
11298 | } | |
11299 | return resultobj; | |
11300 | fail: | |
11301 | { | |
11302 | if (temp2) | |
11303 | delete arg2; | |
11304 | } | |
11305 | return NULL; | |
11306 | } | |
11307 | ||
11308 | ||
11309 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11310 | PyObject *resultobj; | |
11311 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11312 | int arg2 ; | |
11313 | int arg3 ; | |
11314 | PyObject * obj0 = 0 ; | |
11315 | PyObject * obj1 = 0 ; | |
11316 | PyObject * obj2 = 0 ; | |
11317 | char *kwnames[] = { | |
11318 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11319 | }; | |
11320 | ||
11321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11324 | arg2 = (int) SWIG_AsInt(obj1); | |
11325 | if (PyErr_Occurred()) SWIG_fail; | |
11326 | arg3 = (int) SWIG_AsInt(obj2); | |
11327 | if (PyErr_Occurred()) SWIG_fail; | |
11328 | { | |
11329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11330 | (arg1)->SetRange(arg2,arg3); | |
11331 | ||
11332 | wxPyEndAllowThreads(__tstate); | |
11333 | if (PyErr_Occurred()) SWIG_fail; | |
11334 | } | |
11335 | Py_INCREF(Py_None); resultobj = Py_None; | |
11336 | return resultobj; | |
11337 | fail: | |
11338 | return NULL; | |
11339 | } | |
11340 | ||
11341 | ||
11342 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11343 | PyObject *resultobj; | |
11344 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11345 | int result; | |
11346 | PyObject * obj0 = 0 ; | |
11347 | char *kwnames[] = { | |
11348 | (char *) "self", NULL | |
11349 | }; | |
11350 | ||
11351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
11352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11354 | { | |
11355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11356 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11357 | ||
11358 | wxPyEndAllowThreads(__tstate); | |
11359 | if (PyErr_Occurred()) SWIG_fail; | |
11360 | } | |
11361 | resultobj = SWIG_FromInt((int)result); | |
11362 | return resultobj; | |
11363 | fail: | |
11364 | return NULL; | |
11365 | } | |
11366 | ||
11367 | ||
11368 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11369 | PyObject *resultobj; | |
11370 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11371 | int result; | |
11372 | PyObject * obj0 = 0 ; | |
11373 | char *kwnames[] = { | |
11374 | (char *) "self", NULL | |
11375 | }; | |
11376 | ||
11377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
11378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11380 | { | |
11381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11382 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11383 | ||
11384 | wxPyEndAllowThreads(__tstate); | |
11385 | if (PyErr_Occurred()) SWIG_fail; | |
11386 | } | |
11387 | resultobj = SWIG_FromInt((int)result); | |
11388 | return resultobj; | |
11389 | fail: | |
11390 | return NULL; | |
11391 | } | |
11392 | ||
11393 | ||
11394 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11395 | PyObject *resultobj; | |
11396 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11397 | long arg2 ; | |
11398 | long arg3 ; | |
11399 | PyObject * obj0 = 0 ; | |
11400 | PyObject * obj1 = 0 ; | |
11401 | PyObject * obj2 = 0 ; | |
11402 | char *kwnames[] = { | |
11403 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11404 | }; | |
11405 | ||
11406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11409 | arg2 = (long) SWIG_AsLong(obj1); | |
11410 | if (PyErr_Occurred()) SWIG_fail; | |
11411 | arg3 = (long) SWIG_AsLong(obj2); | |
11412 | if (PyErr_Occurred()) SWIG_fail; | |
11413 | { | |
11414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11415 | (arg1)->SetSelection(arg2,arg3); | |
11416 | ||
11417 | wxPyEndAllowThreads(__tstate); | |
11418 | if (PyErr_Occurred()) SWIG_fail; | |
11419 | } | |
11420 | Py_INCREF(Py_None); resultobj = Py_None; | |
11421 | return resultobj; | |
11422 | fail: | |
11423 | return NULL; | |
11424 | } | |
11425 | ||
11426 | ||
f20a2e1f RD |
11427 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
11428 | PyObject *resultobj; | |
11429 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11430 | wxVisualAttributes result; | |
11431 | PyObject * obj0 = 0 ; | |
11432 | char *kwnames[] = { | |
11433 | (char *) "variant", NULL | |
11434 | }; | |
11435 | ||
11436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11437 | if (obj0) { | |
11438 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
11439 | if (PyErr_Occurred()) SWIG_fail; | |
11440 | } | |
11441 | { | |
0439c23b | 11442 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
11443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11444 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11445 | ||
11446 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11447 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
11448 | } |
11449 | { | |
11450 | wxVisualAttributes * resultptr; | |
11451 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11453 | } | |
11454 | return resultobj; | |
11455 | fail: | |
11456 | return NULL; | |
11457 | } | |
11458 | ||
11459 | ||
d55e5bfc RD |
11460 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { |
11461 | PyObject *obj; | |
11462 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11463 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11464 | Py_INCREF(obj); | |
11465 | return Py_BuildValue((char *)""); | |
11466 | } | |
11467 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11468 | PyObject *resultobj; | |
11469 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11470 | int arg2 = (int) 0 ; | |
11471 | wxSpinEvent *result; | |
11472 | PyObject * obj0 = 0 ; | |
11473 | PyObject * obj1 = 0 ; | |
11474 | char *kwnames[] = { | |
11475 | (char *) "commandType",(char *) "winid", NULL | |
11476 | }; | |
11477 | ||
11478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
11479 | if (obj0) { | |
11480 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
11481 | if (PyErr_Occurred()) SWIG_fail; | |
11482 | } | |
11483 | if (obj1) { | |
11484 | arg2 = (int) SWIG_AsInt(obj1); | |
11485 | if (PyErr_Occurred()) SWIG_fail; | |
11486 | } | |
11487 | { | |
11488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11489 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11490 | ||
11491 | wxPyEndAllowThreads(__tstate); | |
11492 | if (PyErr_Occurred()) SWIG_fail; | |
11493 | } | |
11494 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); | |
11495 | return resultobj; | |
11496 | fail: | |
11497 | return NULL; | |
11498 | } | |
11499 | ||
11500 | ||
11501 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11502 | PyObject *resultobj; | |
11503 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11504 | int result; | |
11505 | PyObject * obj0 = 0 ; | |
11506 | char *kwnames[] = { | |
11507 | (char *) "self", NULL | |
11508 | }; | |
11509 | ||
11510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
11512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11513 | { | |
11514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11515 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11516 | ||
11517 | wxPyEndAllowThreads(__tstate); | |
11518 | if (PyErr_Occurred()) SWIG_fail; | |
11519 | } | |
11520 | resultobj = SWIG_FromInt((int)result); | |
11521 | return resultobj; | |
11522 | fail: | |
11523 | return NULL; | |
11524 | } | |
11525 | ||
11526 | ||
11527 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11528 | PyObject *resultobj; | |
11529 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11530 | int arg2 ; | |
11531 | PyObject * obj0 = 0 ; | |
11532 | PyObject * obj1 = 0 ; | |
11533 | char *kwnames[] = { | |
11534 | (char *) "self",(char *) "pos", NULL | |
11535 | }; | |
11536 | ||
11537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
11539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11540 | arg2 = (int) SWIG_AsInt(obj1); | |
11541 | if (PyErr_Occurred()) SWIG_fail; | |
11542 | { | |
11543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11544 | (arg1)->SetPosition(arg2); | |
11545 | ||
11546 | wxPyEndAllowThreads(__tstate); | |
11547 | if (PyErr_Occurred()) SWIG_fail; | |
11548 | } | |
11549 | Py_INCREF(Py_None); resultobj = Py_None; | |
11550 | return resultobj; | |
11551 | fail: | |
11552 | return NULL; | |
11553 | } | |
11554 | ||
11555 | ||
11556 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
11557 | PyObject *obj; | |
11558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11559 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11560 | Py_INCREF(obj); | |
11561 | return Py_BuildValue((char *)""); | |
11562 | } | |
11563 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { | |
11564 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
11565 | return 1; | |
11566 | } | |
11567 | ||
11568 | ||
11569 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11570 | PyObject *pyobj; | |
11571 | ||
11572 | { | |
11573 | #if wxUSE_UNICODE | |
11574 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11575 | #else | |
11576 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11577 | #endif | |
11578 | } | |
11579 | return pyobj; | |
11580 | } | |
11581 | ||
11582 | ||
11583 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
11584 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
11585 | return 1; | |
11586 | } | |
11587 | ||
11588 | ||
11589 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11590 | PyObject *pyobj; | |
11591 | ||
11592 | { | |
11593 | #if wxUSE_UNICODE | |
11594 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11595 | #else | |
11596 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11597 | #endif | |
11598 | } | |
11599 | return pyobj; | |
11600 | } | |
11601 | ||
11602 | ||
11603 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11604 | PyObject *resultobj; | |
11605 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
11606 | int arg2 = (int) -1 ; |
11607 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11608 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
11609 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11610 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11611 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11612 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11613 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
11614 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11615 | int arg7 = (int) 0 ; | |
11616 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11617 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11618 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11619 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11620 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11621 | wxRadioBox *result; | |
11622 | bool temp3 = False ; | |
11623 | wxPoint temp4 ; | |
11624 | wxSize temp5 ; | |
11625 | bool temp6 = False ; | |
11626 | bool temp10 = False ; | |
11627 | PyObject * obj0 = 0 ; | |
11628 | PyObject * obj1 = 0 ; | |
11629 | PyObject * obj2 = 0 ; | |
11630 | PyObject * obj3 = 0 ; | |
11631 | PyObject * obj4 = 0 ; | |
11632 | PyObject * obj5 = 0 ; | |
11633 | PyObject * obj6 = 0 ; | |
11634 | PyObject * obj7 = 0 ; | |
11635 | PyObject * obj8 = 0 ; | |
11636 | PyObject * obj9 = 0 ; | |
11637 | char *kwnames[] = { | |
11638 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11639 | }; | |
11640 | ||
bfddbb17 | 11641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d55e5bfc RD |
11642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
11644 | if (obj1) { |
11645 | arg2 = (int) SWIG_AsInt(obj1); | |
11646 | if (PyErr_Occurred()) SWIG_fail; | |
11647 | } | |
11648 | if (obj2) { | |
11649 | { | |
11650 | arg3 = wxString_in_helper(obj2); | |
11651 | if (arg3 == NULL) SWIG_fail; | |
11652 | temp3 = True; | |
11653 | } | |
d55e5bfc RD |
11654 | } |
11655 | if (obj3) { | |
11656 | { | |
11657 | arg4 = &temp4; | |
11658 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11659 | } | |
11660 | } | |
11661 | if (obj4) { | |
11662 | { | |
11663 | arg5 = &temp5; | |
11664 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11665 | } | |
11666 | } | |
11667 | if (obj5) { | |
11668 | { | |
11669 | if (! PySequence_Check(obj5)) { | |
11670 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11671 | SWIG_fail; | |
11672 | } | |
11673 | arg6 = new wxArrayString; | |
11674 | temp6 = True; | |
11675 | int i, len=PySequence_Length(obj5); | |
11676 | for (i=0; i<len; i++) { | |
11677 | PyObject* item = PySequence_GetItem(obj5, i); | |
11678 | #if wxUSE_UNICODE | |
11679 | PyObject* str = PyObject_Unicode(item); | |
11680 | #else | |
11681 | PyObject* str = PyObject_Str(item); | |
11682 | #endif | |
11683 | if (PyErr_Occurred()) SWIG_fail; | |
11684 | arg6->Add(Py2wxString(str)); | |
11685 | Py_DECREF(item); | |
11686 | Py_DECREF(str); | |
11687 | } | |
11688 | } | |
11689 | } | |
11690 | if (obj6) { | |
11691 | arg7 = (int) SWIG_AsInt(obj6); | |
11692 | if (PyErr_Occurred()) SWIG_fail; | |
11693 | } | |
11694 | if (obj7) { | |
11695 | arg8 = (long) SWIG_AsLong(obj7); | |
11696 | if (PyErr_Occurred()) SWIG_fail; | |
11697 | } | |
11698 | if (obj8) { | |
11699 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
11700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11701 | SWIG_fail; | |
11702 | if (arg9 == NULL) { | |
11703 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11704 | SWIG_fail; | |
11705 | } | |
11706 | } | |
11707 | if (obj9) { | |
11708 | { | |
11709 | arg10 = wxString_in_helper(obj9); | |
11710 | if (arg10 == NULL) SWIG_fail; | |
11711 | temp10 = True; | |
11712 | } | |
11713 | } | |
11714 | { | |
0439c23b | 11715 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11717 | 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); | |
11718 | ||
11719 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11720 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11721 | } |
11722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11723 | { | |
11724 | if (temp3) | |
11725 | delete arg3; | |
11726 | } | |
11727 | { | |
11728 | if (temp6) delete arg6; | |
11729 | } | |
11730 | { | |
11731 | if (temp10) | |
11732 | delete arg10; | |
11733 | } | |
11734 | return resultobj; | |
11735 | fail: | |
11736 | { | |
11737 | if (temp3) | |
11738 | delete arg3; | |
11739 | } | |
11740 | { | |
11741 | if (temp6) delete arg6; | |
11742 | } | |
11743 | { | |
11744 | if (temp10) | |
11745 | delete arg10; | |
11746 | } | |
11747 | return NULL; | |
11748 | } | |
11749 | ||
11750 | ||
11751 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11752 | PyObject *resultobj; | |
11753 | wxRadioBox *result; | |
11754 | char *kwnames[] = { | |
11755 | NULL | |
11756 | }; | |
11757 | ||
11758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11759 | { | |
0439c23b | 11760 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11762 | result = (wxRadioBox *)new wxRadioBox(); | |
11763 | ||
11764 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11765 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11766 | } |
11767 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11768 | return resultobj; | |
11769 | fail: | |
11770 | return NULL; | |
11771 | } | |
11772 | ||
11773 | ||
11774 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11775 | PyObject *resultobj; | |
11776 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11777 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
11778 | int arg3 = (int) -1 ; |
11779 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11780 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
11781 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
11782 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11783 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11784 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11785 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
11786 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11787 | int arg8 = (int) 0 ; | |
11788 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11789 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11790 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11791 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11792 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11793 | bool result; | |
11794 | bool temp4 = False ; | |
11795 | wxPoint temp5 ; | |
11796 | wxSize temp6 ; | |
11797 | bool temp7 = False ; | |
11798 | bool temp11 = False ; | |
11799 | PyObject * obj0 = 0 ; | |
11800 | PyObject * obj1 = 0 ; | |
11801 | PyObject * obj2 = 0 ; | |
11802 | PyObject * obj3 = 0 ; | |
11803 | PyObject * obj4 = 0 ; | |
11804 | PyObject * obj5 = 0 ; | |
11805 | PyObject * obj6 = 0 ; | |
11806 | PyObject * obj7 = 0 ; | |
11807 | PyObject * obj8 = 0 ; | |
11808 | PyObject * obj9 = 0 ; | |
11809 | PyObject * obj10 = 0 ; | |
11810 | char *kwnames[] = { | |
11811 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11812 | }; | |
11813 | ||
bfddbb17 | 11814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d55e5bfc RD |
11815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11817 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
11819 | if (obj2) { |
11820 | arg3 = (int) SWIG_AsInt(obj2); | |
11821 | if (PyErr_Occurred()) SWIG_fail; | |
11822 | } | |
11823 | if (obj3) { | |
11824 | { | |
11825 | arg4 = wxString_in_helper(obj3); | |
11826 | if (arg4 == NULL) SWIG_fail; | |
11827 | temp4 = True; | |
11828 | } | |
d55e5bfc RD |
11829 | } |
11830 | if (obj4) { | |
11831 | { | |
11832 | arg5 = &temp5; | |
11833 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11834 | } | |
11835 | } | |
11836 | if (obj5) { | |
11837 | { | |
11838 | arg6 = &temp6; | |
11839 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11840 | } | |
11841 | } | |
11842 | if (obj6) { | |
11843 | { | |
11844 | if (! PySequence_Check(obj6)) { | |
11845 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11846 | SWIG_fail; | |
11847 | } | |
11848 | arg7 = new wxArrayString; | |
11849 | temp7 = True; | |
11850 | int i, len=PySequence_Length(obj6); | |
11851 | for (i=0; i<len; i++) { | |
11852 | PyObject* item = PySequence_GetItem(obj6, i); | |
11853 | #if wxUSE_UNICODE | |
11854 | PyObject* str = PyObject_Unicode(item); | |
11855 | #else | |
11856 | PyObject* str = PyObject_Str(item); | |
11857 | #endif | |
11858 | if (PyErr_Occurred()) SWIG_fail; | |
11859 | arg7->Add(Py2wxString(str)); | |
11860 | Py_DECREF(item); | |
11861 | Py_DECREF(str); | |
11862 | } | |
11863 | } | |
11864 | } | |
11865 | if (obj7) { | |
11866 | arg8 = (int) SWIG_AsInt(obj7); | |
11867 | if (PyErr_Occurred()) SWIG_fail; | |
11868 | } | |
11869 | if (obj8) { | |
11870 | arg9 = (long) SWIG_AsLong(obj8); | |
11871 | if (PyErr_Occurred()) SWIG_fail; | |
11872 | } | |
11873 | if (obj9) { | |
11874 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
11875 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11876 | SWIG_fail; | |
11877 | if (arg10 == NULL) { | |
11878 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11879 | SWIG_fail; | |
11880 | } | |
11881 | } | |
11882 | if (obj10) { | |
11883 | { | |
11884 | arg11 = wxString_in_helper(obj10); | |
11885 | if (arg11 == NULL) SWIG_fail; | |
11886 | temp11 = True; | |
11887 | } | |
11888 | } | |
11889 | { | |
11890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11891 | 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); | |
11892 | ||
11893 | wxPyEndAllowThreads(__tstate); | |
11894 | if (PyErr_Occurred()) SWIG_fail; | |
11895 | } | |
11896 | { | |
11897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11898 | } | |
11899 | { | |
11900 | if (temp4) | |
11901 | delete arg4; | |
11902 | } | |
11903 | { | |
11904 | if (temp7) delete arg7; | |
11905 | } | |
11906 | { | |
11907 | if (temp11) | |
11908 | delete arg11; | |
11909 | } | |
11910 | return resultobj; | |
11911 | fail: | |
11912 | { | |
11913 | if (temp4) | |
11914 | delete arg4; | |
11915 | } | |
11916 | { | |
11917 | if (temp7) delete arg7; | |
11918 | } | |
11919 | { | |
11920 | if (temp11) | |
11921 | delete arg11; | |
11922 | } | |
11923 | return NULL; | |
11924 | } | |
11925 | ||
11926 | ||
11927 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11928 | PyObject *resultobj; | |
11929 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11930 | int arg2 ; | |
11931 | PyObject * obj0 = 0 ; | |
11932 | PyObject * obj1 = 0 ; | |
11933 | char *kwnames[] = { | |
11934 | (char *) "self",(char *) "n", NULL | |
11935 | }; | |
11936 | ||
11937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
11938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11940 | arg2 = (int) SWIG_AsInt(obj1); | |
11941 | if (PyErr_Occurred()) SWIG_fail; | |
11942 | { | |
11943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11944 | (arg1)->SetSelection(arg2); | |
11945 | ||
11946 | wxPyEndAllowThreads(__tstate); | |
11947 | if (PyErr_Occurred()) SWIG_fail; | |
11948 | } | |
11949 | Py_INCREF(Py_None); resultobj = Py_None; | |
11950 | return resultobj; | |
11951 | fail: | |
11952 | return NULL; | |
11953 | } | |
11954 | ||
11955 | ||
11956 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11957 | PyObject *resultobj; | |
11958 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11959 | int result; | |
11960 | PyObject * obj0 = 0 ; | |
11961 | char *kwnames[] = { | |
11962 | (char *) "self", NULL | |
11963 | }; | |
11964 | ||
11965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
11966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11968 | { | |
11969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11970 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11971 | ||
11972 | wxPyEndAllowThreads(__tstate); | |
11973 | if (PyErr_Occurred()) SWIG_fail; | |
11974 | } | |
11975 | resultobj = SWIG_FromInt((int)result); | |
11976 | return resultobj; | |
11977 | fail: | |
11978 | return NULL; | |
11979 | } | |
11980 | ||
11981 | ||
11982 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11983 | PyObject *resultobj; | |
11984 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11985 | wxString result; | |
11986 | PyObject * obj0 = 0 ; | |
11987 | char *kwnames[] = { | |
11988 | (char *) "self", NULL | |
11989 | }; | |
11990 | ||
11991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
11992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11994 | { | |
11995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11996 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11997 | ||
11998 | wxPyEndAllowThreads(__tstate); | |
11999 | if (PyErr_Occurred()) SWIG_fail; | |
12000 | } | |
12001 | { | |
12002 | #if wxUSE_UNICODE | |
12003 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12004 | #else | |
12005 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12006 | #endif | |
12007 | } | |
12008 | return resultobj; | |
12009 | fail: | |
12010 | return NULL; | |
12011 | } | |
12012 | ||
12013 | ||
12014 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12015 | PyObject *resultobj; | |
12016 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12017 | wxString *arg2 = 0 ; | |
12018 | bool result; | |
12019 | bool temp2 = False ; | |
12020 | PyObject * obj0 = 0 ; | |
12021 | PyObject * obj1 = 0 ; | |
12022 | char *kwnames[] = { | |
12023 | (char *) "self",(char *) "s", NULL | |
12024 | }; | |
12025 | ||
12026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
12027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12029 | { | |
12030 | arg2 = wxString_in_helper(obj1); | |
12031 | if (arg2 == NULL) SWIG_fail; | |
12032 | temp2 = True; | |
12033 | } | |
12034 | { | |
12035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12036 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
12037 | ||
12038 | wxPyEndAllowThreads(__tstate); | |
12039 | if (PyErr_Occurred()) SWIG_fail; | |
12040 | } | |
12041 | { | |
12042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12043 | } | |
12044 | { | |
12045 | if (temp2) | |
12046 | delete arg2; | |
12047 | } | |
12048 | return resultobj; | |
12049 | fail: | |
12050 | { | |
12051 | if (temp2) | |
12052 | delete arg2; | |
12053 | } | |
12054 | return NULL; | |
12055 | } | |
12056 | ||
12057 | ||
12058 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12059 | PyObject *resultobj; | |
12060 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12061 | int result; | |
12062 | PyObject * obj0 = 0 ; | |
12063 | char *kwnames[] = { | |
12064 | (char *) "self", NULL | |
12065 | }; | |
12066 | ||
12067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
12068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12070 | { | |
12071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12072 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12073 | ||
12074 | wxPyEndAllowThreads(__tstate); | |
12075 | if (PyErr_Occurred()) SWIG_fail; | |
12076 | } | |
12077 | resultobj = SWIG_FromInt((int)result); | |
12078 | return resultobj; | |
12079 | fail: | |
12080 | return NULL; | |
12081 | } | |
12082 | ||
12083 | ||
12084 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12085 | PyObject *resultobj; | |
12086 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12087 | wxString *arg2 = 0 ; | |
12088 | int result; | |
12089 | bool temp2 = False ; | |
12090 | PyObject * obj0 = 0 ; | |
12091 | PyObject * obj1 = 0 ; | |
12092 | char *kwnames[] = { | |
12093 | (char *) "self",(char *) "s", NULL | |
12094 | }; | |
12095 | ||
12096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
12097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12099 | { | |
12100 | arg2 = wxString_in_helper(obj1); | |
12101 | if (arg2 == NULL) SWIG_fail; | |
12102 | temp2 = True; | |
12103 | } | |
12104 | { | |
12105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12106 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12107 | ||
12108 | wxPyEndAllowThreads(__tstate); | |
12109 | if (PyErr_Occurred()) SWIG_fail; | |
12110 | } | |
12111 | resultobj = SWIG_FromInt((int)result); | |
12112 | { | |
12113 | if (temp2) | |
12114 | delete arg2; | |
12115 | } | |
12116 | return resultobj; | |
12117 | fail: | |
12118 | { | |
12119 | if (temp2) | |
12120 | delete arg2; | |
12121 | } | |
12122 | return NULL; | |
12123 | } | |
12124 | ||
12125 | ||
12126 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12127 | PyObject *resultobj; | |
12128 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12129 | int arg2 ; | |
12130 | wxString result; | |
12131 | PyObject * obj0 = 0 ; | |
12132 | PyObject * obj1 = 0 ; | |
12133 | char *kwnames[] = { | |
12134 | (char *) "self",(char *) "n", NULL | |
12135 | }; | |
12136 | ||
12137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
12138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12140 | arg2 = (int) SWIG_AsInt(obj1); | |
12141 | if (PyErr_Occurred()) SWIG_fail; | |
12142 | { | |
12143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12144 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12145 | ||
12146 | wxPyEndAllowThreads(__tstate); | |
12147 | if (PyErr_Occurred()) SWIG_fail; | |
12148 | } | |
12149 | { | |
12150 | #if wxUSE_UNICODE | |
12151 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12152 | #else | |
12153 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12154 | #endif | |
12155 | } | |
12156 | return resultobj; | |
12157 | fail: | |
12158 | return NULL; | |
12159 | } | |
12160 | ||
12161 | ||
12162 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12163 | PyObject *resultobj; | |
12164 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12165 | int arg2 ; | |
12166 | wxString *arg3 = 0 ; | |
12167 | bool temp3 = False ; | |
12168 | PyObject * obj0 = 0 ; | |
12169 | PyObject * obj1 = 0 ; | |
12170 | PyObject * obj2 = 0 ; | |
12171 | char *kwnames[] = { | |
12172 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12173 | }; | |
12174 | ||
12175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12178 | arg2 = (int) SWIG_AsInt(obj1); | |
12179 | if (PyErr_Occurred()) SWIG_fail; | |
12180 | { | |
12181 | arg3 = wxString_in_helper(obj2); | |
12182 | if (arg3 == NULL) SWIG_fail; | |
12183 | temp3 = True; | |
12184 | } | |
12185 | { | |
12186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12187 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12188 | ||
12189 | wxPyEndAllowThreads(__tstate); | |
12190 | if (PyErr_Occurred()) SWIG_fail; | |
12191 | } | |
12192 | Py_INCREF(Py_None); resultobj = Py_None; | |
12193 | { | |
12194 | if (temp3) | |
12195 | delete arg3; | |
12196 | } | |
12197 | return resultobj; | |
12198 | fail: | |
12199 | { | |
12200 | if (temp3) | |
12201 | delete arg3; | |
12202 | } | |
12203 | return NULL; | |
12204 | } | |
12205 | ||
12206 | ||
12207 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12208 | PyObject *resultobj; | |
12209 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12210 | int arg2 ; | |
12211 | bool arg3 = (bool) True ; | |
12212 | PyObject * obj0 = 0 ; | |
12213 | PyObject * obj1 = 0 ; | |
12214 | PyObject * obj2 = 0 ; | |
12215 | char *kwnames[] = { | |
12216 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12217 | }; | |
12218 | ||
12219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12222 | arg2 = (int) SWIG_AsInt(obj1); | |
12223 | if (PyErr_Occurred()) SWIG_fail; | |
12224 | if (obj2) { | |
12225 | arg3 = (bool) SWIG_AsBool(obj2); | |
12226 | if (PyErr_Occurred()) SWIG_fail; | |
12227 | } | |
12228 | { | |
12229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12230 | (arg1)->Enable(arg2,arg3); | |
12231 | ||
12232 | wxPyEndAllowThreads(__tstate); | |
12233 | if (PyErr_Occurred()) SWIG_fail; | |
12234 | } | |
12235 | Py_INCREF(Py_None); resultobj = Py_None; | |
12236 | return resultobj; | |
12237 | fail: | |
12238 | return NULL; | |
12239 | } | |
12240 | ||
12241 | ||
12242 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12243 | PyObject *resultobj; | |
12244 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12245 | int arg2 ; | |
12246 | bool arg3 = (bool) True ; | |
12247 | PyObject * obj0 = 0 ; | |
12248 | PyObject * obj1 = 0 ; | |
12249 | PyObject * obj2 = 0 ; | |
12250 | char *kwnames[] = { | |
12251 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12252 | }; | |
12253 | ||
12254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12257 | arg2 = (int) SWIG_AsInt(obj1); | |
12258 | if (PyErr_Occurred()) SWIG_fail; | |
12259 | if (obj2) { | |
12260 | arg3 = (bool) SWIG_AsBool(obj2); | |
12261 | if (PyErr_Occurred()) SWIG_fail; | |
12262 | } | |
12263 | { | |
12264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12265 | (arg1)->Show(arg2,arg3); | |
12266 | ||
12267 | wxPyEndAllowThreads(__tstate); | |
12268 | if (PyErr_Occurred()) SWIG_fail; | |
12269 | } | |
12270 | Py_INCREF(Py_None); resultobj = Py_None; | |
12271 | return resultobj; | |
12272 | fail: | |
12273 | return NULL; | |
12274 | } | |
12275 | ||
12276 | ||
12277 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12278 | PyObject *resultobj; | |
12279 | wxRadioBox *arg1 = (wxRadioBox *) 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:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
12287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12289 | { | |
12290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12291 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
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_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12304 | PyObject *resultobj; | |
12305 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12306 | int result; | |
12307 | PyObject * obj0 = 0 ; | |
12308 | char *kwnames[] = { | |
12309 | (char *) "self", NULL | |
12310 | }; | |
12311 | ||
12312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
12313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12315 | { | |
12316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12317 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
12318 | ||
12319 | wxPyEndAllowThreads(__tstate); | |
12320 | if (PyErr_Occurred()) SWIG_fail; | |
12321 | } | |
12322 | resultobj = SWIG_FromInt((int)result); | |
12323 | return resultobj; | |
12324 | fail: | |
12325 | return NULL; | |
12326 | } | |
12327 | ||
12328 | ||
12329 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12330 | PyObject *resultobj; | |
12331 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12332 | int arg2 ; | |
12333 | int arg3 ; | |
12334 | long arg4 ; | |
12335 | int result; | |
12336 | PyObject * obj0 = 0 ; | |
12337 | PyObject * obj1 = 0 ; | |
12338 | PyObject * obj2 = 0 ; | |
12339 | PyObject * obj3 = 0 ; | |
12340 | char *kwnames[] = { | |
12341 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12342 | }; | |
12343 | ||
12344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12347 | arg2 = (int) SWIG_AsInt(obj1); | |
12348 | if (PyErr_Occurred()) SWIG_fail; | |
12349 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
12350 | if (PyErr_Occurred()) SWIG_fail; | |
12351 | arg4 = (long) SWIG_AsLong(obj3); | |
12352 | if (PyErr_Occurred()) SWIG_fail; | |
12353 | { | |
12354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12355 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
12356 | ||
12357 | wxPyEndAllowThreads(__tstate); | |
12358 | if (PyErr_Occurred()) SWIG_fail; | |
12359 | } | |
12360 | resultobj = SWIG_FromInt((int)result); | |
12361 | return resultobj; | |
12362 | fail: | |
12363 | return NULL; | |
12364 | } | |
12365 | ||
12366 | ||
f20a2e1f RD |
12367 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12368 | PyObject *resultobj; | |
12369 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12370 | wxVisualAttributes result; | |
12371 | PyObject * obj0 = 0 ; | |
12372 | char *kwnames[] = { | |
12373 | (char *) "variant", NULL | |
12374 | }; | |
12375 | ||
12376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12377 | if (obj0) { | |
12378 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12379 | if (PyErr_Occurred()) SWIG_fail; | |
12380 | } | |
12381 | { | |
0439c23b | 12382 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
12383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12384 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12385 | ||
12386 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12387 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12388 | } |
12389 | { | |
12390 | wxVisualAttributes * resultptr; | |
12391 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12392 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12393 | } | |
12394 | return resultobj; | |
12395 | fail: | |
12396 | return NULL; | |
12397 | } | |
12398 | ||
12399 | ||
d55e5bfc RD |
12400 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { |
12401 | PyObject *obj; | |
12402 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12403 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12404 | Py_INCREF(obj); | |
12405 | return Py_BuildValue((char *)""); | |
12406 | } | |
12407 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12408 | PyObject *resultobj; | |
12409 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
12410 | int arg2 = (int) -1 ; |
12411 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12412 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
12413 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12414 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12415 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12416 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12417 | long arg6 = (long) 0 ; | |
12418 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12419 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12420 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12421 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12422 | wxRadioButton *result; | |
12423 | bool temp3 = False ; | |
12424 | wxPoint temp4 ; | |
12425 | wxSize temp5 ; | |
12426 | bool temp8 = False ; | |
12427 | PyObject * obj0 = 0 ; | |
12428 | PyObject * obj1 = 0 ; | |
12429 | PyObject * obj2 = 0 ; | |
12430 | PyObject * obj3 = 0 ; | |
12431 | PyObject * obj4 = 0 ; | |
12432 | PyObject * obj5 = 0 ; | |
12433 | PyObject * obj6 = 0 ; | |
12434 | PyObject * obj7 = 0 ; | |
12435 | char *kwnames[] = { | |
12436 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12437 | }; | |
12438 | ||
bfddbb17 | 12439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
12440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
12442 | if (obj1) { |
12443 | arg2 = (int) SWIG_AsInt(obj1); | |
12444 | if (PyErr_Occurred()) SWIG_fail; | |
12445 | } | |
12446 | if (obj2) { | |
12447 | { | |
12448 | arg3 = wxString_in_helper(obj2); | |
12449 | if (arg3 == NULL) SWIG_fail; | |
12450 | temp3 = True; | |
12451 | } | |
d55e5bfc RD |
12452 | } |
12453 | if (obj3) { | |
12454 | { | |
12455 | arg4 = &temp4; | |
12456 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12457 | } | |
12458 | } | |
12459 | if (obj4) { | |
12460 | { | |
12461 | arg5 = &temp5; | |
12462 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12463 | } | |
12464 | } | |
12465 | if (obj5) { | |
12466 | arg6 = (long) SWIG_AsLong(obj5); | |
12467 | if (PyErr_Occurred()) SWIG_fail; | |
12468 | } | |
12469 | if (obj6) { | |
12470 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
12471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12472 | SWIG_fail; | |
12473 | if (arg7 == NULL) { | |
12474 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12475 | SWIG_fail; | |
12476 | } | |
12477 | } | |
12478 | if (obj7) { | |
12479 | { | |
12480 | arg8 = wxString_in_helper(obj7); | |
12481 | if (arg8 == NULL) SWIG_fail; | |
12482 | temp8 = True; | |
12483 | } | |
12484 | } | |
12485 | { | |
0439c23b | 12486 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12488 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12489 | ||
12490 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12491 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12492 | } |
12493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
12494 | { | |
12495 | if (temp3) | |
12496 | delete arg3; | |
12497 | } | |
12498 | { | |
12499 | if (temp8) | |
12500 | delete arg8; | |
12501 | } | |
12502 | return resultobj; | |
12503 | fail: | |
12504 | { | |
12505 | if (temp3) | |
12506 | delete arg3; | |
12507 | } | |
12508 | { | |
12509 | if (temp8) | |
12510 | delete arg8; | |
12511 | } | |
12512 | return NULL; | |
12513 | } | |
12514 | ||
12515 | ||
12516 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12517 | PyObject *resultobj; | |
12518 | wxRadioButton *result; | |
12519 | char *kwnames[] = { | |
12520 | NULL | |
12521 | }; | |
12522 | ||
12523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12524 | { | |
0439c23b | 12525 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12527 | result = (wxRadioButton *)new wxRadioButton(); | |
12528 | ||
12529 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12530 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12531 | } |
12532 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
12533 | return resultobj; | |
12534 | fail: | |
12535 | return NULL; | |
12536 | } | |
12537 | ||
12538 | ||
12539 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12540 | PyObject *resultobj; | |
12541 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12542 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
12543 | int arg3 = (int) -1 ; |
12544 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12545 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
12546 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12547 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12548 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12549 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12550 | long arg7 = (long) 0 ; | |
12551 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12552 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12553 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12554 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12555 | bool result; | |
12556 | bool temp4 = False ; | |
12557 | wxPoint temp5 ; | |
12558 | wxSize temp6 ; | |
12559 | bool temp9 = False ; | |
12560 | PyObject * obj0 = 0 ; | |
12561 | PyObject * obj1 = 0 ; | |
12562 | PyObject * obj2 = 0 ; | |
12563 | PyObject * obj3 = 0 ; | |
12564 | PyObject * obj4 = 0 ; | |
12565 | PyObject * obj5 = 0 ; | |
12566 | PyObject * obj6 = 0 ; | |
12567 | PyObject * obj7 = 0 ; | |
12568 | PyObject * obj8 = 0 ; | |
12569 | char *kwnames[] = { | |
12570 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12571 | }; | |
12572 | ||
bfddbb17 | 12573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
12574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12576 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
12578 | if (obj2) { |
12579 | arg3 = (int) SWIG_AsInt(obj2); | |
12580 | if (PyErr_Occurred()) SWIG_fail; | |
12581 | } | |
12582 | if (obj3) { | |
12583 | { | |
12584 | arg4 = wxString_in_helper(obj3); | |
12585 | if (arg4 == NULL) SWIG_fail; | |
12586 | temp4 = True; | |
12587 | } | |
d55e5bfc RD |
12588 | } |
12589 | if (obj4) { | |
12590 | { | |
12591 | arg5 = &temp5; | |
12592 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12593 | } | |
12594 | } | |
12595 | if (obj5) { | |
12596 | { | |
12597 | arg6 = &temp6; | |
12598 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12599 | } | |
12600 | } | |
12601 | if (obj6) { | |
12602 | arg7 = (long) SWIG_AsLong(obj6); | |
12603 | if (PyErr_Occurred()) SWIG_fail; | |
12604 | } | |
12605 | if (obj7) { | |
12606 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
12607 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12608 | SWIG_fail; | |
12609 | if (arg8 == NULL) { | |
12610 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12611 | SWIG_fail; | |
12612 | } | |
12613 | } | |
12614 | if (obj8) { | |
12615 | { | |
12616 | arg9 = wxString_in_helper(obj8); | |
12617 | if (arg9 == NULL) SWIG_fail; | |
12618 | temp9 = True; | |
12619 | } | |
12620 | } | |
12621 | { | |
12622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12623 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12624 | ||
12625 | wxPyEndAllowThreads(__tstate); | |
12626 | if (PyErr_Occurred()) SWIG_fail; | |
12627 | } | |
12628 | { | |
12629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12630 | } | |
12631 | { | |
12632 | if (temp4) | |
12633 | delete arg4; | |
12634 | } | |
12635 | { | |
12636 | if (temp9) | |
12637 | delete arg9; | |
12638 | } | |
12639 | return resultobj; | |
12640 | fail: | |
12641 | { | |
12642 | if (temp4) | |
12643 | delete arg4; | |
12644 | } | |
12645 | { | |
12646 | if (temp9) | |
12647 | delete arg9; | |
12648 | } | |
12649 | return NULL; | |
12650 | } | |
12651 | ||
12652 | ||
12653 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12654 | PyObject *resultobj; | |
12655 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12656 | bool result; | |
12657 | PyObject * obj0 = 0 ; | |
12658 | char *kwnames[] = { | |
12659 | (char *) "self", NULL | |
12660 | }; | |
12661 | ||
12662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
12663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12665 | { | |
12666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12667 | result = (bool)(arg1)->GetValue(); | |
12668 | ||
12669 | wxPyEndAllowThreads(__tstate); | |
12670 | if (PyErr_Occurred()) SWIG_fail; | |
12671 | } | |
12672 | { | |
12673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12674 | } | |
12675 | return resultobj; | |
12676 | fail: | |
12677 | return NULL; | |
12678 | } | |
12679 | ||
12680 | ||
12681 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12682 | PyObject *resultobj; | |
12683 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12684 | bool arg2 ; | |
12685 | PyObject * obj0 = 0 ; | |
12686 | PyObject * obj1 = 0 ; | |
12687 | char *kwnames[] = { | |
12688 | (char *) "self",(char *) "value", NULL | |
12689 | }; | |
12690 | ||
12691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12694 | arg2 = (bool) SWIG_AsBool(obj1); | |
12695 | if (PyErr_Occurred()) SWIG_fail; | |
12696 | { | |
12697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12698 | (arg1)->SetValue(arg2); | |
12699 | ||
12700 | wxPyEndAllowThreads(__tstate); | |
12701 | if (PyErr_Occurred()) SWIG_fail; | |
12702 | } | |
12703 | Py_INCREF(Py_None); resultobj = Py_None; | |
12704 | return resultobj; | |
12705 | fail: | |
12706 | return NULL; | |
12707 | } | |
12708 | ||
12709 | ||
f20a2e1f RD |
12710 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12711 | PyObject *resultobj; | |
12712 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12713 | wxVisualAttributes result; | |
12714 | PyObject * obj0 = 0 ; | |
12715 | char *kwnames[] = { | |
12716 | (char *) "variant", NULL | |
12717 | }; | |
12718 | ||
12719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12720 | if (obj0) { | |
12721 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12722 | if (PyErr_Occurred()) SWIG_fail; | |
12723 | } | |
12724 | { | |
0439c23b | 12725 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
12726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12727 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12728 | ||
12729 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12730 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12731 | } |
12732 | { | |
12733 | wxVisualAttributes * resultptr; | |
12734 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12736 | } | |
12737 | return resultobj; | |
12738 | fail: | |
12739 | return NULL; | |
12740 | } | |
12741 | ||
12742 | ||
d55e5bfc RD |
12743 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { |
12744 | PyObject *obj; | |
12745 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12746 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12747 | Py_INCREF(obj); | |
12748 | return Py_BuildValue((char *)""); | |
12749 | } | |
12750 | static int _wrap_SliderNameStr_set(PyObject *_val) { | |
12751 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
12752 | return 1; | |
12753 | } | |
12754 | ||
12755 | ||
12756 | static PyObject *_wrap_SliderNameStr_get() { | |
12757 | PyObject *pyobj; | |
12758 | ||
12759 | { | |
12760 | #if wxUSE_UNICODE | |
12761 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12762 | #else | |
12763 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12764 | #endif | |
12765 | } | |
12766 | return pyobj; | |
12767 | } | |
12768 | ||
12769 | ||
12770 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12771 | PyObject *resultobj; | |
12772 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
12773 | int arg2 = (int) -1 ; |
12774 | int arg3 = (int) 0 ; | |
12775 | int arg4 = (int) 0 ; | |
12776 | int arg5 = (int) 100 ; | |
d55e5bfc RD |
12777 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
12778 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12779 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12780 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12781 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12782 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12783 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12784 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12785 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12786 | wxSlider *result; | |
12787 | wxPoint temp6 ; | |
12788 | wxSize temp7 ; | |
12789 | bool temp10 = False ; | |
12790 | PyObject * obj0 = 0 ; | |
12791 | PyObject * obj1 = 0 ; | |
12792 | PyObject * obj2 = 0 ; | |
12793 | PyObject * obj3 = 0 ; | |
12794 | PyObject * obj4 = 0 ; | |
12795 | PyObject * obj5 = 0 ; | |
12796 | PyObject * obj6 = 0 ; | |
12797 | PyObject * obj7 = 0 ; | |
12798 | PyObject * obj8 = 0 ; | |
12799 | PyObject * obj9 = 0 ; | |
12800 | char *kwnames[] = { | |
12801 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12802 | }; | |
12803 | ||
bfddbb17 | 12804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d55e5bfc RD |
12805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
12807 | if (obj1) { |
12808 | arg2 = (int) SWIG_AsInt(obj1); | |
12809 | if (PyErr_Occurred()) SWIG_fail; | |
12810 | } | |
12811 | if (obj2) { | |
12812 | arg3 = (int) SWIG_AsInt(obj2); | |
12813 | if (PyErr_Occurred()) SWIG_fail; | |
12814 | } | |
12815 | if (obj3) { | |
12816 | arg4 = (int) SWIG_AsInt(obj3); | |
12817 | if (PyErr_Occurred()) SWIG_fail; | |
12818 | } | |
12819 | if (obj4) { | |
12820 | arg5 = (int) SWIG_AsInt(obj4); | |
12821 | if (PyErr_Occurred()) SWIG_fail; | |
12822 | } | |
d55e5bfc RD |
12823 | if (obj5) { |
12824 | { | |
12825 | arg6 = &temp6; | |
12826 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12827 | } | |
12828 | } | |
12829 | if (obj6) { | |
12830 | { | |
12831 | arg7 = &temp7; | |
12832 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12833 | } | |
12834 | } | |
12835 | if (obj7) { | |
12836 | arg8 = (long) SWIG_AsLong(obj7); | |
12837 | if (PyErr_Occurred()) SWIG_fail; | |
12838 | } | |
12839 | if (obj8) { | |
12840 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
12841 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12842 | SWIG_fail; | |
12843 | if (arg9 == NULL) { | |
12844 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12845 | SWIG_fail; | |
12846 | } | |
12847 | } | |
12848 | if (obj9) { | |
12849 | { | |
12850 | arg10 = wxString_in_helper(obj9); | |
12851 | if (arg10 == NULL) SWIG_fail; | |
12852 | temp10 = True; | |
12853 | } | |
12854 | } | |
12855 | { | |
0439c23b | 12856 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12858 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12859 | ||
12860 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12861 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12862 | } |
12863 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
12864 | { | |
12865 | if (temp10) | |
12866 | delete arg10; | |
12867 | } | |
12868 | return resultobj; | |
12869 | fail: | |
12870 | { | |
12871 | if (temp10) | |
12872 | delete arg10; | |
12873 | } | |
12874 | return NULL; | |
12875 | } | |
12876 | ||
12877 | ||
12878 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12879 | PyObject *resultobj; | |
12880 | wxSlider *result; | |
12881 | char *kwnames[] = { | |
12882 | NULL | |
12883 | }; | |
12884 | ||
12885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12886 | { | |
0439c23b | 12887 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12889 | result = (wxSlider *)new wxSlider(); | |
12890 | ||
12891 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12892 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12893 | } |
12894 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
12895 | return resultobj; | |
12896 | fail: | |
12897 | return NULL; | |
12898 | } | |
12899 | ||
12900 | ||
12901 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12902 | PyObject *resultobj; | |
12903 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12904 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
12905 | int arg3 = (int) -1 ; |
12906 | int arg4 = (int) 0 ; | |
12907 | int arg5 = (int) 0 ; | |
12908 | int arg6 = (int) 100 ; | |
d55e5bfc RD |
12909 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
12910 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12911 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12912 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12913 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12914 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12915 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12916 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12917 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12918 | bool result; | |
12919 | wxPoint temp7 ; | |
12920 | wxSize temp8 ; | |
12921 | bool temp11 = False ; | |
12922 | PyObject * obj0 = 0 ; | |
12923 | PyObject * obj1 = 0 ; | |
12924 | PyObject * obj2 = 0 ; | |
12925 | PyObject * obj3 = 0 ; | |
12926 | PyObject * obj4 = 0 ; | |
12927 | PyObject * obj5 = 0 ; | |
12928 | PyObject * obj6 = 0 ; | |
12929 | PyObject * obj7 = 0 ; | |
12930 | PyObject * obj8 = 0 ; | |
12931 | PyObject * obj9 = 0 ; | |
12932 | PyObject * obj10 = 0 ; | |
12933 | char *kwnames[] = { | |
12934 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12935 | }; | |
12936 | ||
bfddbb17 | 12937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d55e5bfc RD |
12938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12940 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
12942 | if (obj2) { |
12943 | arg3 = (int) SWIG_AsInt(obj2); | |
12944 | if (PyErr_Occurred()) SWIG_fail; | |
12945 | } | |
12946 | if (obj3) { | |
12947 | arg4 = (int) SWIG_AsInt(obj3); | |
12948 | if (PyErr_Occurred()) SWIG_fail; | |
12949 | } | |
12950 | if (obj4) { | |
12951 | arg5 = (int) SWIG_AsInt(obj4); | |
12952 | if (PyErr_Occurred()) SWIG_fail; | |
12953 | } | |
12954 | if (obj5) { | |
12955 | arg6 = (int) SWIG_AsInt(obj5); | |
12956 | if (PyErr_Occurred()) SWIG_fail; | |
12957 | } | |
d55e5bfc RD |
12958 | if (obj6) { |
12959 | { | |
12960 | arg7 = &temp7; | |
12961 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12962 | } | |
12963 | } | |
12964 | if (obj7) { | |
12965 | { | |
12966 | arg8 = &temp8; | |
12967 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12968 | } | |
12969 | } | |
12970 | if (obj8) { | |
12971 | arg9 = (long) SWIG_AsLong(obj8); | |
12972 | if (PyErr_Occurred()) SWIG_fail; | |
12973 | } | |
12974 | if (obj9) { | |
12975 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
12976 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12977 | SWIG_fail; | |
12978 | if (arg10 == NULL) { | |
12979 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12980 | SWIG_fail; | |
12981 | } | |
12982 | } | |
12983 | if (obj10) { | |
12984 | { | |
12985 | arg11 = wxString_in_helper(obj10); | |
12986 | if (arg11 == NULL) SWIG_fail; | |
12987 | temp11 = True; | |
12988 | } | |
12989 | } | |
12990 | { | |
12991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12992 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12993 | ||
12994 | wxPyEndAllowThreads(__tstate); | |
12995 | if (PyErr_Occurred()) SWIG_fail; | |
12996 | } | |
12997 | { | |
12998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12999 | } | |
13000 | { | |
13001 | if (temp11) | |
13002 | delete arg11; | |
13003 | } | |
13004 | return resultobj; | |
13005 | fail: | |
13006 | { | |
13007 | if (temp11) | |
13008 | delete arg11; | |
13009 | } | |
13010 | return NULL; | |
13011 | } | |
13012 | ||
13013 | ||
13014 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13015 | PyObject *resultobj; | |
13016 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13017 | int result; | |
13018 | PyObject * obj0 = 0 ; | |
13019 | char *kwnames[] = { | |
13020 | (char *) "self", NULL | |
13021 | }; | |
13022 | ||
13023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
13024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13026 | { | |
13027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13028 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
13029 | ||
13030 | wxPyEndAllowThreads(__tstate); | |
13031 | if (PyErr_Occurred()) SWIG_fail; | |
13032 | } | |
13033 | resultobj = SWIG_FromInt((int)result); | |
13034 | return resultobj; | |
13035 | fail: | |
13036 | return NULL; | |
13037 | } | |
13038 | ||
13039 | ||
13040 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13041 | PyObject *resultobj; | |
13042 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13043 | int arg2 ; | |
13044 | PyObject * obj0 = 0 ; | |
13045 | PyObject * obj1 = 0 ; | |
13046 | char *kwnames[] = { | |
13047 | (char *) "self",(char *) "value", NULL | |
13048 | }; | |
13049 | ||
13050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13053 | arg2 = (int) SWIG_AsInt(obj1); | |
13054 | if (PyErr_Occurred()) SWIG_fail; | |
13055 | { | |
13056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13057 | (arg1)->SetValue(arg2); | |
13058 | ||
13059 | wxPyEndAllowThreads(__tstate); | |
13060 | if (PyErr_Occurred()) SWIG_fail; | |
13061 | } | |
13062 | Py_INCREF(Py_None); resultobj = Py_None; | |
13063 | return resultobj; | |
13064 | fail: | |
13065 | return NULL; | |
13066 | } | |
13067 | ||
13068 | ||
13069 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13070 | PyObject *resultobj; | |
13071 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13072 | int arg2 ; | |
13073 | int arg3 ; | |
13074 | PyObject * obj0 = 0 ; | |
13075 | PyObject * obj1 = 0 ; | |
13076 | PyObject * obj2 = 0 ; | |
13077 | char *kwnames[] = { | |
13078 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13079 | }; | |
13080 | ||
13081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13084 | arg2 = (int) SWIG_AsInt(obj1); | |
13085 | if (PyErr_Occurred()) SWIG_fail; | |
13086 | arg3 = (int) SWIG_AsInt(obj2); | |
13087 | if (PyErr_Occurred()) SWIG_fail; | |
13088 | { | |
13089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13090 | (arg1)->SetRange(arg2,arg3); | |
13091 | ||
13092 | wxPyEndAllowThreads(__tstate); | |
13093 | if (PyErr_Occurred()) SWIG_fail; | |
13094 | } | |
13095 | Py_INCREF(Py_None); resultobj = Py_None; | |
13096 | return resultobj; | |
13097 | fail: | |
13098 | return NULL; | |
13099 | } | |
13100 | ||
13101 | ||
13102 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13103 | PyObject *resultobj; | |
13104 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13105 | int result; | |
13106 | PyObject * obj0 = 0 ; | |
13107 | char *kwnames[] = { | |
13108 | (char *) "self", NULL | |
13109 | }; | |
13110 | ||
13111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
13112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13114 | { | |
13115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13116 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13117 | ||
13118 | wxPyEndAllowThreads(__tstate); | |
13119 | if (PyErr_Occurred()) SWIG_fail; | |
13120 | } | |
13121 | resultobj = SWIG_FromInt((int)result); | |
13122 | return resultobj; | |
13123 | fail: | |
13124 | return NULL; | |
13125 | } | |
13126 | ||
13127 | ||
13128 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13129 | PyObject *resultobj; | |
13130 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13131 | int result; | |
13132 | PyObject * obj0 = 0 ; | |
13133 | char *kwnames[] = { | |
13134 | (char *) "self", NULL | |
13135 | }; | |
13136 | ||
13137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
13138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13140 | { | |
13141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13142 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13143 | ||
13144 | wxPyEndAllowThreads(__tstate); | |
13145 | if (PyErr_Occurred()) SWIG_fail; | |
13146 | } | |
13147 | resultobj = SWIG_FromInt((int)result); | |
13148 | return resultobj; | |
13149 | fail: | |
13150 | return NULL; | |
13151 | } | |
13152 | ||
13153 | ||
13154 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13155 | PyObject *resultobj; | |
13156 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13157 | int arg2 ; | |
13158 | PyObject * obj0 = 0 ; | |
13159 | PyObject * obj1 = 0 ; | |
13160 | char *kwnames[] = { | |
13161 | (char *) "self",(char *) "minValue", NULL | |
13162 | }; | |
13163 | ||
13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
13165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13167 | arg2 = (int) SWIG_AsInt(obj1); | |
13168 | if (PyErr_Occurred()) SWIG_fail; | |
13169 | { | |
13170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13171 | (arg1)->SetMin(arg2); | |
13172 | ||
13173 | wxPyEndAllowThreads(__tstate); | |
13174 | if (PyErr_Occurred()) SWIG_fail; | |
13175 | } | |
13176 | Py_INCREF(Py_None); resultobj = Py_None; | |
13177 | return resultobj; | |
13178 | fail: | |
13179 | return NULL; | |
13180 | } | |
13181 | ||
13182 | ||
13183 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13184 | PyObject *resultobj; | |
13185 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13186 | int arg2 ; | |
13187 | PyObject * obj0 = 0 ; | |
13188 | PyObject * obj1 = 0 ; | |
13189 | char *kwnames[] = { | |
13190 | (char *) "self",(char *) "maxValue", NULL | |
13191 | }; | |
13192 | ||
13193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
13194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13196 | arg2 = (int) SWIG_AsInt(obj1); | |
13197 | if (PyErr_Occurred()) SWIG_fail; | |
13198 | { | |
13199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13200 | (arg1)->SetMax(arg2); | |
13201 | ||
13202 | wxPyEndAllowThreads(__tstate); | |
13203 | if (PyErr_Occurred()) SWIG_fail; | |
13204 | } | |
13205 | Py_INCREF(Py_None); resultobj = Py_None; | |
13206 | return resultobj; | |
13207 | fail: | |
13208 | return NULL; | |
13209 | } | |
13210 | ||
13211 | ||
13212 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13213 | PyObject *resultobj; | |
13214 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13215 | int arg2 ; | |
13216 | PyObject * obj0 = 0 ; | |
13217 | PyObject * obj1 = 0 ; | |
13218 | char *kwnames[] = { | |
13219 | (char *) "self",(char *) "lineSize", NULL | |
13220 | }; | |
13221 | ||
13222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
13223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13225 | arg2 = (int) SWIG_AsInt(obj1); | |
13226 | if (PyErr_Occurred()) SWIG_fail; | |
13227 | { | |
13228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13229 | (arg1)->SetLineSize(arg2); | |
13230 | ||
13231 | wxPyEndAllowThreads(__tstate); | |
13232 | if (PyErr_Occurred()) SWIG_fail; | |
13233 | } | |
13234 | Py_INCREF(Py_None); resultobj = Py_None; | |
13235 | return resultobj; | |
13236 | fail: | |
13237 | return NULL; | |
13238 | } | |
13239 | ||
13240 | ||
13241 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13242 | PyObject *resultobj; | |
13243 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13244 | int arg2 ; | |
13245 | PyObject * obj0 = 0 ; | |
13246 | PyObject * obj1 = 0 ; | |
13247 | char *kwnames[] = { | |
13248 | (char *) "self",(char *) "pageSize", NULL | |
13249 | }; | |
13250 | ||
13251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13254 | arg2 = (int) SWIG_AsInt(obj1); | |
13255 | if (PyErr_Occurred()) SWIG_fail; | |
13256 | { | |
13257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13258 | (arg1)->SetPageSize(arg2); | |
13259 | ||
13260 | wxPyEndAllowThreads(__tstate); | |
13261 | if (PyErr_Occurred()) SWIG_fail; | |
13262 | } | |
13263 | Py_INCREF(Py_None); resultobj = Py_None; | |
13264 | return resultobj; | |
13265 | fail: | |
13266 | return NULL; | |
13267 | } | |
13268 | ||
13269 | ||
13270 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13271 | PyObject *resultobj; | |
13272 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13273 | int result; | |
13274 | PyObject * obj0 = 0 ; | |
13275 | char *kwnames[] = { | |
13276 | (char *) "self", NULL | |
13277 | }; | |
13278 | ||
13279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
13280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13282 | { | |
13283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13284 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13285 | ||
13286 | wxPyEndAllowThreads(__tstate); | |
13287 | if (PyErr_Occurred()) SWIG_fail; | |
13288 | } | |
13289 | resultobj = SWIG_FromInt((int)result); | |
13290 | return resultobj; | |
13291 | fail: | |
13292 | return NULL; | |
13293 | } | |
13294 | ||
13295 | ||
13296 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13297 | PyObject *resultobj; | |
13298 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13299 | int result; | |
13300 | PyObject * obj0 = 0 ; | |
13301 | char *kwnames[] = { | |
13302 | (char *) "self", NULL | |
13303 | }; | |
13304 | ||
13305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
13306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13308 | { | |
13309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13310 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13311 | ||
13312 | wxPyEndAllowThreads(__tstate); | |
13313 | if (PyErr_Occurred()) SWIG_fail; | |
13314 | } | |
13315 | resultobj = SWIG_FromInt((int)result); | |
13316 | return resultobj; | |
13317 | fail: | |
13318 | return NULL; | |
13319 | } | |
13320 | ||
13321 | ||
13322 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13323 | PyObject *resultobj; | |
13324 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13325 | int arg2 ; | |
13326 | PyObject * obj0 = 0 ; | |
13327 | PyObject * obj1 = 0 ; | |
13328 | char *kwnames[] = { | |
13329 | (char *) "self",(char *) "lenPixels", NULL | |
13330 | }; | |
13331 | ||
13332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
13333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13335 | arg2 = (int) SWIG_AsInt(obj1); | |
13336 | if (PyErr_Occurred()) SWIG_fail; | |
13337 | { | |
13338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13339 | (arg1)->SetThumbLength(arg2); | |
13340 | ||
13341 | wxPyEndAllowThreads(__tstate); | |
13342 | if (PyErr_Occurred()) SWIG_fail; | |
13343 | } | |
13344 | Py_INCREF(Py_None); resultobj = Py_None; | |
13345 | return resultobj; | |
13346 | fail: | |
13347 | return NULL; | |
13348 | } | |
13349 | ||
13350 | ||
13351 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13352 | PyObject *resultobj; | |
13353 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13354 | int result; | |
13355 | PyObject * obj0 = 0 ; | |
13356 | char *kwnames[] = { | |
13357 | (char *) "self", NULL | |
13358 | }; | |
13359 | ||
13360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
13361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13363 | { | |
13364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13365 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13366 | ||
13367 | wxPyEndAllowThreads(__tstate); | |
13368 | if (PyErr_Occurred()) SWIG_fail; | |
13369 | } | |
13370 | resultobj = SWIG_FromInt((int)result); | |
13371 | return resultobj; | |
13372 | fail: | |
13373 | return NULL; | |
13374 | } | |
13375 | ||
13376 | ||
13377 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13378 | PyObject *resultobj; | |
13379 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13380 | int arg2 ; | |
13381 | int arg3 = (int) 1 ; | |
13382 | PyObject * obj0 = 0 ; | |
13383 | PyObject * obj1 = 0 ; | |
13384 | PyObject * obj2 = 0 ; | |
13385 | char *kwnames[] = { | |
13386 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13387 | }; | |
13388 | ||
13389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13392 | arg2 = (int) SWIG_AsInt(obj1); | |
13393 | if (PyErr_Occurred()) SWIG_fail; | |
13394 | if (obj2) { | |
13395 | arg3 = (int) SWIG_AsInt(obj2); | |
13396 | if (PyErr_Occurred()) SWIG_fail; | |
13397 | } | |
13398 | { | |
13399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13400 | (arg1)->SetTickFreq(arg2,arg3); | |
13401 | ||
13402 | wxPyEndAllowThreads(__tstate); | |
13403 | if (PyErr_Occurred()) SWIG_fail; | |
13404 | } | |
13405 | Py_INCREF(Py_None); resultobj = Py_None; | |
13406 | return resultobj; | |
13407 | fail: | |
13408 | return NULL; | |
13409 | } | |
13410 | ||
13411 | ||
13412 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13413 | PyObject *resultobj; | |
13414 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13415 | int result; | |
13416 | PyObject * obj0 = 0 ; | |
13417 | char *kwnames[] = { | |
13418 | (char *) "self", NULL | |
13419 | }; | |
13420 | ||
13421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
13422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13424 | { | |
13425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13426 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13427 | ||
13428 | wxPyEndAllowThreads(__tstate); | |
13429 | if (PyErr_Occurred()) SWIG_fail; | |
13430 | } | |
13431 | resultobj = SWIG_FromInt((int)result); | |
13432 | return resultobj; | |
13433 | fail: | |
13434 | return NULL; | |
13435 | } | |
13436 | ||
13437 | ||
13438 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13439 | PyObject *resultobj; | |
13440 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13441 | PyObject * obj0 = 0 ; | |
13442 | char *kwnames[] = { | |
13443 | (char *) "self", NULL | |
13444 | }; | |
13445 | ||
13446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
13447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13449 | { | |
13450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13451 | (arg1)->ClearTicks(); | |
13452 | ||
13453 | wxPyEndAllowThreads(__tstate); | |
13454 | if (PyErr_Occurred()) SWIG_fail; | |
13455 | } | |
13456 | Py_INCREF(Py_None); resultobj = Py_None; | |
13457 | return resultobj; | |
13458 | fail: | |
13459 | return NULL; | |
13460 | } | |
13461 | ||
13462 | ||
13463 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13464 | PyObject *resultobj; | |
13465 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13466 | int arg2 ; | |
13467 | PyObject * obj0 = 0 ; | |
13468 | PyObject * obj1 = 0 ; | |
13469 | char *kwnames[] = { | |
13470 | (char *) "self",(char *) "tickPos", NULL | |
13471 | }; | |
13472 | ||
13473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
13474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13476 | arg2 = (int) SWIG_AsInt(obj1); | |
13477 | if (PyErr_Occurred()) SWIG_fail; | |
13478 | { | |
13479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13480 | (arg1)->SetTick(arg2); | |
13481 | ||
13482 | wxPyEndAllowThreads(__tstate); | |
13483 | if (PyErr_Occurred()) SWIG_fail; | |
13484 | } | |
13485 | Py_INCREF(Py_None); resultobj = Py_None; | |
13486 | return resultobj; | |
13487 | fail: | |
13488 | return NULL; | |
13489 | } | |
13490 | ||
13491 | ||
13492 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13493 | PyObject *resultobj; | |
13494 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13495 | PyObject * obj0 = 0 ; | |
13496 | char *kwnames[] = { | |
13497 | (char *) "self", NULL | |
13498 | }; | |
13499 | ||
13500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
13501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13503 | { | |
13504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13505 | (arg1)->ClearSel(); | |
13506 | ||
13507 | wxPyEndAllowThreads(__tstate); | |
13508 | if (PyErr_Occurred()) SWIG_fail; | |
13509 | } | |
13510 | Py_INCREF(Py_None); resultobj = Py_None; | |
13511 | return resultobj; | |
13512 | fail: | |
13513 | return NULL; | |
13514 | } | |
13515 | ||
13516 | ||
13517 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13518 | PyObject *resultobj; | |
13519 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13520 | int result; | |
13521 | PyObject * obj0 = 0 ; | |
13522 | char *kwnames[] = { | |
13523 | (char *) "self", NULL | |
13524 | }; | |
13525 | ||
13526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
13527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13529 | { | |
13530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13531 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
13532 | ||
13533 | wxPyEndAllowThreads(__tstate); | |
13534 | if (PyErr_Occurred()) SWIG_fail; | |
13535 | } | |
13536 | resultobj = SWIG_FromInt((int)result); | |
13537 | return resultobj; | |
13538 | fail: | |
13539 | return NULL; | |
13540 | } | |
13541 | ||
13542 | ||
13543 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13544 | PyObject *resultobj; | |
13545 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13546 | int result; | |
13547 | PyObject * obj0 = 0 ; | |
13548 | char *kwnames[] = { | |
13549 | (char *) "self", NULL | |
13550 | }; | |
13551 | ||
13552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
13553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13555 | { | |
13556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13557 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13558 | ||
13559 | wxPyEndAllowThreads(__tstate); | |
13560 | if (PyErr_Occurred()) SWIG_fail; | |
13561 | } | |
13562 | resultobj = SWIG_FromInt((int)result); | |
13563 | return resultobj; | |
13564 | fail: | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
13569 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13570 | PyObject *resultobj; | |
13571 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13572 | int arg2 ; | |
13573 | int arg3 ; | |
13574 | PyObject * obj0 = 0 ; | |
13575 | PyObject * obj1 = 0 ; | |
13576 | PyObject * obj2 = 0 ; | |
13577 | char *kwnames[] = { | |
13578 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13579 | }; | |
13580 | ||
13581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13584 | arg2 = (int) SWIG_AsInt(obj1); | |
13585 | if (PyErr_Occurred()) SWIG_fail; | |
13586 | arg3 = (int) SWIG_AsInt(obj2); | |
13587 | if (PyErr_Occurred()) SWIG_fail; | |
13588 | { | |
13589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13590 | (arg1)->SetSelection(arg2,arg3); | |
13591 | ||
13592 | wxPyEndAllowThreads(__tstate); | |
13593 | if (PyErr_Occurred()) SWIG_fail; | |
13594 | } | |
13595 | Py_INCREF(Py_None); resultobj = Py_None; | |
13596 | return resultobj; | |
13597 | fail: | |
13598 | return NULL; | |
13599 | } | |
13600 | ||
13601 | ||
f20a2e1f RD |
13602 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
13603 | PyObject *resultobj; | |
13604 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13605 | wxVisualAttributes result; | |
13606 | PyObject * obj0 = 0 ; | |
13607 | char *kwnames[] = { | |
13608 | (char *) "variant", NULL | |
13609 | }; | |
13610 | ||
13611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13612 | if (obj0) { | |
13613 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
13614 | if (PyErr_Occurred()) SWIG_fail; | |
13615 | } | |
13616 | { | |
0439c23b | 13617 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
13618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13619 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13620 | ||
13621 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13622 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
13623 | } |
13624 | { | |
13625 | wxVisualAttributes * resultptr; | |
13626 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13627 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13628 | } | |
13629 | return resultobj; | |
13630 | fail: | |
13631 | return NULL; | |
13632 | } | |
13633 | ||
13634 | ||
d55e5bfc RD |
13635 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { |
13636 | PyObject *obj; | |
13637 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13638 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13639 | Py_INCREF(obj); | |
13640 | return Py_BuildValue((char *)""); | |
13641 | } | |
13642 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { | |
13643 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
13644 | return 1; | |
13645 | } | |
13646 | ||
13647 | ||
13648 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13649 | PyObject *pyobj; | |
13650 | ||
13651 | { | |
13652 | #if wxUSE_UNICODE | |
13653 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13654 | #else | |
13655 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13656 | #endif | |
13657 | } | |
13658 | return pyobj; | |
13659 | } | |
13660 | ||
13661 | ||
13662 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13663 | PyObject *resultobj; | |
13664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
13665 | int arg2 = (int) -1 ; |
13666 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13667 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
13668 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13669 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13670 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13671 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13672 | long arg6 = (long) 0 ; | |
13673 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13674 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13675 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13676 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13677 | wxToggleButton *result; | |
13678 | bool temp3 = False ; | |
13679 | wxPoint temp4 ; | |
13680 | wxSize temp5 ; | |
13681 | bool temp8 = False ; | |
13682 | PyObject * obj0 = 0 ; | |
13683 | PyObject * obj1 = 0 ; | |
13684 | PyObject * obj2 = 0 ; | |
13685 | PyObject * obj3 = 0 ; | |
13686 | PyObject * obj4 = 0 ; | |
13687 | PyObject * obj5 = 0 ; | |
13688 | PyObject * obj6 = 0 ; | |
13689 | PyObject * obj7 = 0 ; | |
13690 | char *kwnames[] = { | |
13691 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13692 | }; | |
13693 | ||
bfddbb17 | 13694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
13695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
13697 | if (obj1) { |
13698 | arg2 = (int) SWIG_AsInt(obj1); | |
13699 | if (PyErr_Occurred()) SWIG_fail; | |
13700 | } | |
13701 | if (obj2) { | |
13702 | { | |
13703 | arg3 = wxString_in_helper(obj2); | |
13704 | if (arg3 == NULL) SWIG_fail; | |
13705 | temp3 = True; | |
13706 | } | |
d55e5bfc RD |
13707 | } |
13708 | if (obj3) { | |
13709 | { | |
13710 | arg4 = &temp4; | |
13711 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13712 | } | |
13713 | } | |
13714 | if (obj4) { | |
13715 | { | |
13716 | arg5 = &temp5; | |
13717 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13718 | } | |
13719 | } | |
13720 | if (obj5) { | |
13721 | arg6 = (long) SWIG_AsLong(obj5); | |
13722 | if (PyErr_Occurred()) SWIG_fail; | |
13723 | } | |
13724 | if (obj6) { | |
13725 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
13726 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13727 | SWIG_fail; | |
13728 | if (arg7 == NULL) { | |
13729 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13730 | SWIG_fail; | |
13731 | } | |
13732 | } | |
13733 | if (obj7) { | |
13734 | { | |
13735 | arg8 = wxString_in_helper(obj7); | |
13736 | if (arg8 == NULL) SWIG_fail; | |
13737 | temp8 = True; | |
13738 | } | |
13739 | } | |
13740 | { | |
0439c23b | 13741 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13743 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13744 | ||
13745 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13746 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13747 | } |
13748 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13749 | { | |
13750 | if (temp3) | |
13751 | delete arg3; | |
13752 | } | |
13753 | { | |
13754 | if (temp8) | |
13755 | delete arg8; | |
13756 | } | |
13757 | return resultobj; | |
13758 | fail: | |
13759 | { | |
13760 | if (temp3) | |
13761 | delete arg3; | |
13762 | } | |
13763 | { | |
13764 | if (temp8) | |
13765 | delete arg8; | |
13766 | } | |
13767 | return NULL; | |
13768 | } | |
13769 | ||
13770 | ||
13771 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13772 | PyObject *resultobj; | |
13773 | wxToggleButton *result; | |
13774 | char *kwnames[] = { | |
13775 | NULL | |
13776 | }; | |
13777 | ||
13778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13779 | { | |
0439c23b | 13780 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13782 | result = (wxToggleButton *)new wxToggleButton(); | |
13783 | ||
13784 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13785 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13786 | } |
13787 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13788 | return resultobj; | |
13789 | fail: | |
13790 | return NULL; | |
13791 | } | |
13792 | ||
13793 | ||
121b9a67 RD |
13794 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
13795 | PyObject *resultobj; | |
13796 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13797 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
13798 | int arg3 = (int) -1 ; |
13799 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13800 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
121b9a67 RD |
13801 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13802 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13803 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13804 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13805 | long arg7 = (long) 0 ; | |
13806 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13807 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13808 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13809 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13810 | bool result; | |
13811 | bool temp4 = False ; | |
13812 | wxPoint temp5 ; | |
13813 | wxSize temp6 ; | |
13814 | bool temp9 = False ; | |
13815 | PyObject * obj0 = 0 ; | |
13816 | PyObject * obj1 = 0 ; | |
13817 | PyObject * obj2 = 0 ; | |
13818 | PyObject * obj3 = 0 ; | |
13819 | PyObject * obj4 = 0 ; | |
13820 | PyObject * obj5 = 0 ; | |
13821 | PyObject * obj6 = 0 ; | |
13822 | PyObject * obj7 = 0 ; | |
13823 | PyObject * obj8 = 0 ; | |
13824 | char *kwnames[] = { | |
13825 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13826 | }; | |
13827 | ||
bfddbb17 | 13828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
121b9a67 RD |
13829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13831 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
13833 | if (obj2) { |
13834 | arg3 = (int) SWIG_AsInt(obj2); | |
13835 | if (PyErr_Occurred()) SWIG_fail; | |
13836 | } | |
13837 | if (obj3) { | |
13838 | { | |
13839 | arg4 = wxString_in_helper(obj3); | |
13840 | if (arg4 == NULL) SWIG_fail; | |
13841 | temp4 = True; | |
13842 | } | |
121b9a67 RD |
13843 | } |
13844 | if (obj4) { | |
13845 | { | |
13846 | arg5 = &temp5; | |
13847 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13848 | } | |
13849 | } | |
13850 | if (obj5) { | |
13851 | { | |
13852 | arg6 = &temp6; | |
13853 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13854 | } | |
13855 | } | |
13856 | if (obj6) { | |
13857 | arg7 = (long) SWIG_AsLong(obj6); | |
13858 | if (PyErr_Occurred()) SWIG_fail; | |
13859 | } | |
13860 | if (obj7) { | |
13861 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
13862 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13863 | SWIG_fail; | |
13864 | if (arg8 == NULL) { | |
13865 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13866 | SWIG_fail; | |
13867 | } | |
13868 | } | |
13869 | if (obj8) { | |
13870 | { | |
13871 | arg9 = wxString_in_helper(obj8); | |
13872 | if (arg9 == NULL) SWIG_fail; | |
13873 | temp9 = True; | |
13874 | } | |
13875 | } | |
13876 | { | |
13877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13878 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13879 | ||
13880 | wxPyEndAllowThreads(__tstate); | |
13881 | if (PyErr_Occurred()) SWIG_fail; | |
13882 | } | |
13883 | { | |
13884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13885 | } | |
13886 | { | |
13887 | if (temp4) | |
13888 | delete arg4; | |
13889 | } | |
13890 | { | |
13891 | if (temp9) | |
13892 | delete arg9; | |
13893 | } | |
13894 | return resultobj; | |
13895 | fail: | |
13896 | { | |
13897 | if (temp4) | |
13898 | delete arg4; | |
13899 | } | |
13900 | { | |
13901 | if (temp9) | |
13902 | delete arg9; | |
13903 | } | |
13904 | return NULL; | |
13905 | } | |
13906 | ||
13907 | ||
13908 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13909 | PyObject *resultobj; | |
13910 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13911 | bool arg2 ; | |
13912 | PyObject * obj0 = 0 ; | |
13913 | PyObject * obj1 = 0 ; | |
13914 | char *kwnames[] = { | |
13915 | (char *) "self",(char *) "value", NULL | |
13916 | }; | |
13917 | ||
13918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13921 | arg2 = (bool) SWIG_AsBool(obj1); | |
13922 | if (PyErr_Occurred()) SWIG_fail; | |
13923 | { | |
13924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13925 | (arg1)->SetValue(arg2); | |
13926 | ||
13927 | wxPyEndAllowThreads(__tstate); | |
13928 | if (PyErr_Occurred()) SWIG_fail; | |
13929 | } | |
13930 | Py_INCREF(Py_None); resultobj = Py_None; | |
13931 | return resultobj; | |
13932 | fail: | |
13933 | return NULL; | |
13934 | } | |
13935 | ||
13936 | ||
13937 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13938 | PyObject *resultobj; | |
13939 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13940 | bool result; | |
13941 | PyObject * obj0 = 0 ; | |
13942 | char *kwnames[] = { | |
13943 | (char *) "self", NULL | |
13944 | }; | |
13945 | ||
13946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
13947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13949 | { | |
13950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13951 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13952 | ||
13953 | wxPyEndAllowThreads(__tstate); | |
13954 | if (PyErr_Occurred()) SWIG_fail; | |
13955 | } | |
13956 | { | |
13957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13958 | } | |
13959 | return resultobj; | |
13960 | fail: | |
13961 | return NULL; | |
13962 | } | |
13963 | ||
13964 | ||
13965 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13966 | PyObject *resultobj; | |
13967 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13968 | wxString *arg2 = 0 ; | |
13969 | bool temp2 = False ; | |
13970 | PyObject * obj0 = 0 ; | |
13971 | PyObject * obj1 = 0 ; | |
13972 | char *kwnames[] = { | |
13973 | (char *) "self",(char *) "label", NULL | |
13974 | }; | |
13975 | ||
13976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13979 | { | |
13980 | arg2 = wxString_in_helper(obj1); | |
13981 | if (arg2 == NULL) SWIG_fail; | |
13982 | temp2 = True; | |
13983 | } | |
13984 | { | |
13985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13986 | (arg1)->SetLabel((wxString const &)*arg2); | |
13987 | ||
13988 | wxPyEndAllowThreads(__tstate); | |
13989 | if (PyErr_Occurred()) SWIG_fail; | |
13990 | } | |
13991 | Py_INCREF(Py_None); resultobj = Py_None; | |
13992 | { | |
13993 | if (temp2) | |
13994 | delete arg2; | |
13995 | } | |
13996 | return resultobj; | |
13997 | fail: | |
13998 | { | |
13999 | if (temp2) | |
14000 | delete arg2; | |
14001 | } | |
14002 | return NULL; | |
14003 | } | |
14004 | ||
14005 | ||
f20a2e1f RD |
14006 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14007 | PyObject *resultobj; | |
14008 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14009 | wxVisualAttributes result; | |
14010 | PyObject * obj0 = 0 ; | |
14011 | char *kwnames[] = { | |
14012 | (char *) "variant", NULL | |
14013 | }; | |
14014 | ||
14015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14016 | if (obj0) { | |
14017 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14018 | if (PyErr_Occurred()) SWIG_fail; | |
14019 | } | |
14020 | { | |
0439c23b | 14021 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14023 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14024 | ||
14025 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14026 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14027 | } |
14028 | { | |
14029 | wxVisualAttributes * resultptr; | |
14030 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14031 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14032 | } | |
14033 | return resultobj; | |
14034 | fail: | |
14035 | return NULL; | |
14036 | } | |
14037 | ||
14038 | ||
d55e5bfc RD |
14039 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { |
14040 | PyObject *obj; | |
14041 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14042 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
14043 | Py_INCREF(obj); | |
14044 | return Py_BuildValue((char *)""); | |
14045 | } | |
14046 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { | |
14047 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
14048 | return 1; | |
14049 | } | |
14050 | ||
14051 | ||
14052 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
14053 | PyObject *pyobj; | |
14054 | ||
14055 | { | |
14056 | #if wxUSE_UNICODE | |
14057 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14058 | #else | |
14059 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14060 | #endif | |
14061 | } | |
14062 | return pyobj; | |
14063 | } | |
14064 | ||
14065 | ||
14066 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14067 | PyObject *resultobj; | |
14068 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14069 | size_t result; | |
14070 | PyObject * obj0 = 0 ; | |
14071 | char *kwnames[] = { | |
14072 | (char *) "self", NULL | |
14073 | }; | |
14074 | ||
14075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
14076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14078 | { | |
14079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14080 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
14081 | ||
14082 | wxPyEndAllowThreads(__tstate); | |
14083 | if (PyErr_Occurred()) SWIG_fail; | |
14084 | } | |
14085 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14086 | return resultobj; | |
14087 | fail: | |
14088 | return NULL; | |
14089 | } | |
14090 | ||
14091 | ||
14092 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14093 | PyObject *resultobj; | |
14094 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14095 | size_t arg2 ; | |
14096 | wxWindow *result; | |
14097 | PyObject * obj0 = 0 ; | |
14098 | PyObject * obj1 = 0 ; | |
14099 | char *kwnames[] = { | |
14100 | (char *) "self",(char *) "n", NULL | |
14101 | }; | |
14102 | ||
14103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
14104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14106 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14107 | if (PyErr_Occurred()) SWIG_fail; | |
14108 | { | |
14109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14110 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14111 | ||
14112 | wxPyEndAllowThreads(__tstate); | |
14113 | if (PyErr_Occurred()) SWIG_fail; | |
14114 | } | |
14115 | { | |
412d302d | 14116 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14117 | } |
14118 | return resultobj; | |
14119 | fail: | |
14120 | return NULL; | |
14121 | } | |
14122 | ||
14123 | ||
14124 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14125 | PyObject *resultobj; | |
14126 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14127 | int result; | |
14128 | PyObject * obj0 = 0 ; | |
14129 | char *kwnames[] = { | |
14130 | (char *) "self", NULL | |
14131 | }; | |
14132 | ||
14133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
14134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14136 | { | |
14137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14138 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
14139 | ||
14140 | wxPyEndAllowThreads(__tstate); | |
14141 | if (PyErr_Occurred()) SWIG_fail; | |
14142 | } | |
14143 | resultobj = SWIG_FromInt((int)result); | |
14144 | return resultobj; | |
14145 | fail: | |
14146 | return NULL; | |
14147 | } | |
14148 | ||
14149 | ||
14150 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14151 | PyObject *resultobj; | |
14152 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14153 | size_t arg2 ; | |
14154 | wxString *arg3 = 0 ; | |
14155 | bool result; | |
14156 | bool temp3 = False ; | |
14157 | PyObject * obj0 = 0 ; | |
14158 | PyObject * obj1 = 0 ; | |
14159 | PyObject * obj2 = 0 ; | |
14160 | char *kwnames[] = { | |
14161 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14162 | }; | |
14163 | ||
14164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14167 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14168 | if (PyErr_Occurred()) SWIG_fail; | |
14169 | { | |
14170 | arg3 = wxString_in_helper(obj2); | |
14171 | if (arg3 == NULL) SWIG_fail; | |
14172 | temp3 = True; | |
14173 | } | |
14174 | { | |
14175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14176 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14177 | ||
14178 | wxPyEndAllowThreads(__tstate); | |
14179 | if (PyErr_Occurred()) SWIG_fail; | |
14180 | } | |
14181 | { | |
14182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14183 | } | |
14184 | { | |
14185 | if (temp3) | |
14186 | delete arg3; | |
14187 | } | |
14188 | return resultobj; | |
14189 | fail: | |
14190 | { | |
14191 | if (temp3) | |
14192 | delete arg3; | |
14193 | } | |
14194 | return NULL; | |
14195 | } | |
14196 | ||
14197 | ||
14198 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14199 | PyObject *resultobj; | |
14200 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14201 | size_t arg2 ; | |
14202 | wxString result; | |
14203 | PyObject * obj0 = 0 ; | |
14204 | PyObject * obj1 = 0 ; | |
14205 | char *kwnames[] = { | |
14206 | (char *) "self",(char *) "n", NULL | |
14207 | }; | |
14208 | ||
14209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
14210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14212 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14213 | if (PyErr_Occurred()) SWIG_fail; | |
14214 | { | |
14215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14216 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
14217 | ||
14218 | wxPyEndAllowThreads(__tstate); | |
14219 | if (PyErr_Occurred()) SWIG_fail; | |
14220 | } | |
14221 | { | |
14222 | #if wxUSE_UNICODE | |
14223 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14224 | #else | |
14225 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14226 | #endif | |
14227 | } | |
14228 | return resultobj; | |
14229 | fail: | |
14230 | return NULL; | |
14231 | } | |
14232 | ||
14233 | ||
14234 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14235 | PyObject *resultobj; | |
14236 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14237 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14238 | PyObject * obj0 = 0 ; | |
14239 | PyObject * obj1 = 0 ; | |
14240 | char *kwnames[] = { | |
14241 | (char *) "self",(char *) "imageList", NULL | |
14242 | }; | |
14243 | ||
14244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
14245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14249 | { | |
14250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14251 | (arg1)->SetImageList(arg2); | |
14252 | ||
14253 | wxPyEndAllowThreads(__tstate); | |
14254 | if (PyErr_Occurred()) SWIG_fail; | |
14255 | } | |
14256 | Py_INCREF(Py_None); resultobj = Py_None; | |
14257 | return resultobj; | |
14258 | fail: | |
14259 | return NULL; | |
14260 | } | |
14261 | ||
14262 | ||
14263 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14264 | PyObject *resultobj; | |
14265 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14266 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14267 | PyObject * obj0 = 0 ; | |
14268 | PyObject * obj1 = 0 ; | |
14269 | char *kwnames[] = { | |
14270 | (char *) "self",(char *) "imageList", NULL | |
14271 | }; | |
14272 | ||
14273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
14274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14276 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14277 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
14278 | { | |
14279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14280 | (arg1)->AssignImageList(arg2); | |
14281 | ||
14282 | wxPyEndAllowThreads(__tstate); | |
14283 | if (PyErr_Occurred()) SWIG_fail; | |
14284 | } | |
14285 | Py_INCREF(Py_None); resultobj = Py_None; | |
14286 | return resultobj; | |
14287 | fail: | |
14288 | return NULL; | |
14289 | } | |
14290 | ||
14291 | ||
14292 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14293 | PyObject *resultobj; | |
14294 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14295 | wxImageList *result; | |
14296 | PyObject * obj0 = 0 ; | |
14297 | char *kwnames[] = { | |
14298 | (char *) "self", NULL | |
14299 | }; | |
14300 | ||
14301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
14302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14304 | { | |
14305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14306 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
14307 | ||
14308 | wxPyEndAllowThreads(__tstate); | |
14309 | if (PyErr_Occurred()) SWIG_fail; | |
14310 | } | |
14311 | { | |
412d302d | 14312 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14313 | } |
14314 | return resultobj; | |
14315 | fail: | |
14316 | return NULL; | |
14317 | } | |
14318 | ||
14319 | ||
14320 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14321 | PyObject *resultobj; | |
14322 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14323 | size_t arg2 ; | |
14324 | int result; | |
14325 | PyObject * obj0 = 0 ; | |
14326 | PyObject * obj1 = 0 ; | |
14327 | char *kwnames[] = { | |
14328 | (char *) "self",(char *) "n", NULL | |
14329 | }; | |
14330 | ||
14331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
14332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14334 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14335 | if (PyErr_Occurred()) SWIG_fail; | |
14336 | { | |
14337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14338 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
14339 | ||
14340 | wxPyEndAllowThreads(__tstate); | |
14341 | if (PyErr_Occurred()) SWIG_fail; | |
14342 | } | |
14343 | resultobj = SWIG_FromInt((int)result); | |
14344 | return resultobj; | |
14345 | fail: | |
14346 | return NULL; | |
14347 | } | |
14348 | ||
14349 | ||
14350 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14351 | PyObject *resultobj; | |
14352 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14353 | size_t arg2 ; | |
14354 | int arg3 ; | |
14355 | bool result; | |
14356 | PyObject * obj0 = 0 ; | |
14357 | PyObject * obj1 = 0 ; | |
14358 | PyObject * obj2 = 0 ; | |
14359 | char *kwnames[] = { | |
14360 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14361 | }; | |
14362 | ||
14363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14366 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14367 | if (PyErr_Occurred()) SWIG_fail; | |
14368 | arg3 = (int) SWIG_AsInt(obj2); | |
14369 | if (PyErr_Occurred()) SWIG_fail; | |
14370 | { | |
14371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14372 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14373 | ||
14374 | wxPyEndAllowThreads(__tstate); | |
14375 | if (PyErr_Occurred()) SWIG_fail; | |
14376 | } | |
14377 | { | |
14378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14379 | } | |
14380 | return resultobj; | |
14381 | fail: | |
14382 | return NULL; | |
14383 | } | |
14384 | ||
14385 | ||
14386 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14387 | PyObject *resultobj; | |
14388 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14389 | wxSize *arg2 = 0 ; | |
14390 | wxSize temp2 ; | |
14391 | PyObject * obj0 = 0 ; | |
14392 | PyObject * obj1 = 0 ; | |
14393 | char *kwnames[] = { | |
14394 | (char *) "self",(char *) "size", NULL | |
14395 | }; | |
14396 | ||
14397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
14398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14400 | { | |
14401 | arg2 = &temp2; | |
14402 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14403 | } | |
14404 | { | |
14405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14406 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14407 | ||
14408 | wxPyEndAllowThreads(__tstate); | |
14409 | if (PyErr_Occurred()) SWIG_fail; | |
14410 | } | |
14411 | Py_INCREF(Py_None); resultobj = Py_None; | |
14412 | return resultobj; | |
14413 | fail: | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
14418 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14419 | PyObject *resultobj; | |
14420 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14421 | wxSize *arg2 = 0 ; | |
14422 | wxSize result; | |
14423 | wxSize temp2 ; | |
14424 | PyObject * obj0 = 0 ; | |
14425 | PyObject * obj1 = 0 ; | |
14426 | char *kwnames[] = { | |
14427 | (char *) "self",(char *) "sizePage", NULL | |
14428 | }; | |
14429 | ||
14430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
14431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14433 | { | |
14434 | arg2 = &temp2; | |
14435 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14436 | } | |
14437 | { | |
14438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14439 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14440 | ||
14441 | wxPyEndAllowThreads(__tstate); | |
14442 | if (PyErr_Occurred()) SWIG_fail; | |
14443 | } | |
14444 | { | |
14445 | wxSize * resultptr; | |
14446 | resultptr = new wxSize((wxSize &) result); | |
14447 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14448 | } | |
14449 | return resultobj; | |
14450 | fail: | |
14451 | return NULL; | |
14452 | } | |
14453 | ||
14454 | ||
14455 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14456 | PyObject *resultobj; | |
14457 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14458 | size_t arg2 ; | |
14459 | bool result; | |
14460 | PyObject * obj0 = 0 ; | |
14461 | PyObject * obj1 = 0 ; | |
14462 | char *kwnames[] = { | |
14463 | (char *) "self",(char *) "n", NULL | |
14464 | }; | |
14465 | ||
14466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
14467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14469 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14470 | if (PyErr_Occurred()) SWIG_fail; | |
14471 | { | |
14472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14473 | result = (bool)(arg1)->DeletePage(arg2); | |
14474 | ||
14475 | wxPyEndAllowThreads(__tstate); | |
14476 | if (PyErr_Occurred()) SWIG_fail; | |
14477 | } | |
14478 | { | |
14479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14480 | } | |
14481 | return resultobj; | |
14482 | fail: | |
14483 | return NULL; | |
14484 | } | |
14485 | ||
14486 | ||
14487 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14488 | PyObject *resultobj; | |
14489 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14490 | size_t arg2 ; | |
14491 | bool result; | |
14492 | PyObject * obj0 = 0 ; | |
14493 | PyObject * obj1 = 0 ; | |
14494 | char *kwnames[] = { | |
14495 | (char *) "self",(char *) "n", NULL | |
14496 | }; | |
14497 | ||
14498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
14499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14501 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14502 | if (PyErr_Occurred()) SWIG_fail; | |
14503 | { | |
14504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14505 | result = (bool)(arg1)->RemovePage(arg2); | |
14506 | ||
14507 | wxPyEndAllowThreads(__tstate); | |
14508 | if (PyErr_Occurred()) SWIG_fail; | |
14509 | } | |
14510 | { | |
14511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14512 | } | |
14513 | return resultobj; | |
14514 | fail: | |
14515 | return NULL; | |
14516 | } | |
14517 | ||
14518 | ||
14519 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14520 | PyObject *resultobj; | |
14521 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14522 | bool result; | |
14523 | PyObject * obj0 = 0 ; | |
14524 | char *kwnames[] = { | |
14525 | (char *) "self", NULL | |
14526 | }; | |
14527 | ||
14528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
14529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14531 | { | |
14532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14533 | result = (bool)(arg1)->DeleteAllPages(); | |
14534 | ||
14535 | wxPyEndAllowThreads(__tstate); | |
14536 | if (PyErr_Occurred()) SWIG_fail; | |
14537 | } | |
14538 | { | |
14539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14540 | } | |
14541 | return resultobj; | |
14542 | fail: | |
14543 | return NULL; | |
14544 | } | |
14545 | ||
14546 | ||
14547 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14548 | PyObject *resultobj; | |
14549 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14550 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14551 | wxString *arg3 = 0 ; | |
14552 | bool arg4 = (bool) False ; | |
14553 | int arg5 = (int) -1 ; | |
14554 | bool result; | |
14555 | bool temp3 = False ; | |
14556 | PyObject * obj0 = 0 ; | |
14557 | PyObject * obj1 = 0 ; | |
14558 | PyObject * obj2 = 0 ; | |
14559 | PyObject * obj3 = 0 ; | |
14560 | PyObject * obj4 = 0 ; | |
14561 | char *kwnames[] = { | |
14562 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14563 | }; | |
14564 | ||
14565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14568 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14570 | { | |
14571 | arg3 = wxString_in_helper(obj2); | |
14572 | if (arg3 == NULL) SWIG_fail; | |
14573 | temp3 = True; | |
14574 | } | |
14575 | if (obj3) { | |
14576 | arg4 = (bool) SWIG_AsBool(obj3); | |
14577 | if (PyErr_Occurred()) SWIG_fail; | |
14578 | } | |
14579 | if (obj4) { | |
14580 | arg5 = (int) SWIG_AsInt(obj4); | |
14581 | if (PyErr_Occurred()) SWIG_fail; | |
14582 | } | |
14583 | { | |
14584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14585 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
14586 | ||
14587 | wxPyEndAllowThreads(__tstate); | |
14588 | if (PyErr_Occurred()) SWIG_fail; | |
14589 | } | |
14590 | { | |
14591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14592 | } | |
14593 | { | |
14594 | if (temp3) | |
14595 | delete arg3; | |
14596 | } | |
14597 | return resultobj; | |
14598 | fail: | |
14599 | { | |
14600 | if (temp3) | |
14601 | delete arg3; | |
14602 | } | |
14603 | return NULL; | |
14604 | } | |
14605 | ||
14606 | ||
14607 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14608 | PyObject *resultobj; | |
14609 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14610 | size_t arg2 ; | |
14611 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14612 | wxString *arg4 = 0 ; | |
14613 | bool arg5 = (bool) False ; | |
14614 | int arg6 = (int) -1 ; | |
14615 | bool result; | |
14616 | bool temp4 = False ; | |
14617 | PyObject * obj0 = 0 ; | |
14618 | PyObject * obj1 = 0 ; | |
14619 | PyObject * obj2 = 0 ; | |
14620 | PyObject * obj3 = 0 ; | |
14621 | PyObject * obj4 = 0 ; | |
14622 | PyObject * obj5 = 0 ; | |
14623 | char *kwnames[] = { | |
14624 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14625 | }; | |
14626 | ||
14627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14630 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14631 | if (PyErr_Occurred()) SWIG_fail; | |
14632 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14634 | { | |
14635 | arg4 = wxString_in_helper(obj3); | |
14636 | if (arg4 == NULL) SWIG_fail; | |
14637 | temp4 = True; | |
14638 | } | |
14639 | if (obj4) { | |
14640 | arg5 = (bool) SWIG_AsBool(obj4); | |
14641 | if (PyErr_Occurred()) SWIG_fail; | |
14642 | } | |
14643 | if (obj5) { | |
14644 | arg6 = (int) SWIG_AsInt(obj5); | |
14645 | if (PyErr_Occurred()) SWIG_fail; | |
14646 | } | |
14647 | { | |
14648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14649 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14650 | ||
14651 | wxPyEndAllowThreads(__tstate); | |
14652 | if (PyErr_Occurred()) SWIG_fail; | |
14653 | } | |
14654 | { | |
14655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14656 | } | |
14657 | { | |
14658 | if (temp4) | |
14659 | delete arg4; | |
14660 | } | |
14661 | return resultobj; | |
14662 | fail: | |
14663 | { | |
14664 | if (temp4) | |
14665 | delete arg4; | |
14666 | } | |
14667 | return NULL; | |
14668 | } | |
14669 | ||
14670 | ||
14671 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14672 | PyObject *resultobj; | |
14673 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14674 | size_t arg2 ; | |
14675 | int result; | |
14676 | PyObject * obj0 = 0 ; | |
14677 | PyObject * obj1 = 0 ; | |
14678 | char *kwnames[] = { | |
14679 | (char *) "self",(char *) "n", NULL | |
14680 | }; | |
14681 | ||
14682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
14683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14685 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14686 | if (PyErr_Occurred()) SWIG_fail; | |
14687 | { | |
14688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14689 | result = (int)(arg1)->SetSelection(arg2); | |
14690 | ||
14691 | wxPyEndAllowThreads(__tstate); | |
14692 | if (PyErr_Occurred()) SWIG_fail; | |
14693 | } | |
14694 | resultobj = SWIG_FromInt((int)result); | |
14695 | return resultobj; | |
14696 | fail: | |
14697 | return NULL; | |
14698 | } | |
14699 | ||
14700 | ||
14701 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14702 | PyObject *resultobj; | |
14703 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14704 | bool arg2 = (bool) True ; | |
14705 | PyObject * obj0 = 0 ; | |
14706 | PyObject * obj1 = 0 ; | |
14707 | char *kwnames[] = { | |
14708 | (char *) "self",(char *) "forward", NULL | |
14709 | }; | |
14710 | ||
14711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
14712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14714 | if (obj1) { | |
14715 | arg2 = (bool) SWIG_AsBool(obj1); | |
14716 | if (PyErr_Occurred()) SWIG_fail; | |
14717 | } | |
14718 | { | |
14719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14720 | (arg1)->AdvanceSelection(arg2); | |
14721 | ||
14722 | wxPyEndAllowThreads(__tstate); | |
14723 | if (PyErr_Occurred()) SWIG_fail; | |
14724 | } | |
14725 | Py_INCREF(Py_None); resultobj = Py_None; | |
14726 | return resultobj; | |
14727 | fail: | |
14728 | return NULL; | |
14729 | } | |
14730 | ||
14731 | ||
f20a2e1f RD |
14732 | static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14733 | PyObject *resultobj; | |
14734 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14735 | wxVisualAttributes result; | |
14736 | PyObject * obj0 = 0 ; | |
14737 | char *kwnames[] = { | |
14738 | (char *) "variant", NULL | |
14739 | }; | |
14740 | ||
14741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14742 | if (obj0) { | |
14743 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14744 | if (PyErr_Occurred()) SWIG_fail; | |
14745 | } | |
14746 | { | |
0439c23b | 14747 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14749 | result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14750 | ||
14751 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14752 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14753 | } |
14754 | { | |
14755 | wxVisualAttributes * resultptr; | |
14756 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14757 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14758 | } | |
14759 | return resultobj; | |
14760 | fail: | |
14761 | return NULL; | |
14762 | } | |
14763 | ||
14764 | ||
d55e5bfc RD |
14765 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { |
14766 | PyObject *obj; | |
14767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14768 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14769 | Py_INCREF(obj); | |
14770 | return Py_BuildValue((char *)""); | |
14771 | } | |
14772 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14773 | PyObject *resultobj; | |
14774 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14775 | int arg2 = (int) 0 ; | |
14776 | int arg3 = (int) -1 ; | |
14777 | int arg4 = (int) -1 ; | |
14778 | wxBookCtrlEvent *result; | |
14779 | PyObject * obj0 = 0 ; | |
14780 | PyObject * obj1 = 0 ; | |
14781 | PyObject * obj2 = 0 ; | |
14782 | PyObject * obj3 = 0 ; | |
14783 | char *kwnames[] = { | |
14784 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14785 | }; | |
14786 | ||
14787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14788 | if (obj0) { | |
14789 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
14790 | if (PyErr_Occurred()) SWIG_fail; | |
14791 | } | |
14792 | if (obj1) { | |
14793 | arg2 = (int) SWIG_AsInt(obj1); | |
14794 | if (PyErr_Occurred()) SWIG_fail; | |
14795 | } | |
14796 | if (obj2) { | |
14797 | arg3 = (int) SWIG_AsInt(obj2); | |
14798 | if (PyErr_Occurred()) SWIG_fail; | |
14799 | } | |
14800 | if (obj3) { | |
14801 | arg4 = (int) SWIG_AsInt(obj3); | |
14802 | if (PyErr_Occurred()) SWIG_fail; | |
14803 | } | |
14804 | { | |
14805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14806 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14807 | ||
14808 | wxPyEndAllowThreads(__tstate); | |
14809 | if (PyErr_Occurred()) SWIG_fail; | |
14810 | } | |
14811 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); | |
14812 | return resultobj; | |
14813 | fail: | |
14814 | return NULL; | |
14815 | } | |
14816 | ||
14817 | ||
14818 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14819 | PyObject *resultobj; | |
14820 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14821 | int result; | |
14822 | PyObject * obj0 = 0 ; | |
14823 | char *kwnames[] = { | |
14824 | (char *) "self", NULL | |
14825 | }; | |
14826 | ||
14827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
14828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14830 | { | |
14831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14832 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14833 | ||
14834 | wxPyEndAllowThreads(__tstate); | |
14835 | if (PyErr_Occurred()) SWIG_fail; | |
14836 | } | |
14837 | resultobj = SWIG_FromInt((int)result); | |
14838 | return resultobj; | |
14839 | fail: | |
14840 | return NULL; | |
14841 | } | |
14842 | ||
14843 | ||
14844 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14845 | PyObject *resultobj; | |
14846 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14847 | int arg2 ; | |
14848 | PyObject * obj0 = 0 ; | |
14849 | PyObject * obj1 = 0 ; | |
14850 | char *kwnames[] = { | |
14851 | (char *) "self",(char *) "nSel", NULL | |
14852 | }; | |
14853 | ||
14854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
14855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14857 | arg2 = (int) SWIG_AsInt(obj1); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | { | |
14860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14861 | (arg1)->SetSelection(arg2); | |
14862 | ||
14863 | wxPyEndAllowThreads(__tstate); | |
14864 | if (PyErr_Occurred()) SWIG_fail; | |
14865 | } | |
14866 | Py_INCREF(Py_None); resultobj = Py_None; | |
14867 | return resultobj; | |
14868 | fail: | |
14869 | return NULL; | |
14870 | } | |
14871 | ||
14872 | ||
14873 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14874 | PyObject *resultobj; | |
14875 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14876 | int result; | |
14877 | PyObject * obj0 = 0 ; | |
14878 | char *kwnames[] = { | |
14879 | (char *) "self", NULL | |
14880 | }; | |
14881 | ||
14882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
14883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14885 | { | |
14886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14887 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14888 | ||
14889 | wxPyEndAllowThreads(__tstate); | |
14890 | if (PyErr_Occurred()) SWIG_fail; | |
14891 | } | |
14892 | resultobj = SWIG_FromInt((int)result); | |
14893 | return resultobj; | |
14894 | fail: | |
14895 | return NULL; | |
14896 | } | |
14897 | ||
14898 | ||
14899 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14900 | PyObject *resultobj; | |
14901 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14902 | int arg2 ; | |
14903 | PyObject * obj0 = 0 ; | |
14904 | PyObject * obj1 = 0 ; | |
14905 | char *kwnames[] = { | |
14906 | (char *) "self",(char *) "nOldSel", NULL | |
14907 | }; | |
14908 | ||
14909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; | |
14910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14912 | arg2 = (int) SWIG_AsInt(obj1); | |
14913 | if (PyErr_Occurred()) SWIG_fail; | |
14914 | { | |
14915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14916 | (arg1)->SetOldSelection(arg2); | |
14917 | ||
14918 | wxPyEndAllowThreads(__tstate); | |
14919 | if (PyErr_Occurred()) SWIG_fail; | |
14920 | } | |
14921 | Py_INCREF(Py_None); resultobj = Py_None; | |
14922 | return resultobj; | |
14923 | fail: | |
14924 | return NULL; | |
14925 | } | |
14926 | ||
14927 | ||
14928 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14929 | PyObject *obj; | |
14930 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14931 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14932 | Py_INCREF(obj); | |
14933 | return Py_BuildValue((char *)""); | |
14934 | } | |
14935 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14936 | PyObject *resultobj; | |
14937 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14938 | int arg2 = (int) -1 ; | |
14939 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14940 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14941 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14942 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14943 | long arg5 = (long) 0 ; | |
14944 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14945 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14946 | wxNotebook *result; | |
14947 | wxPoint temp3 ; | |
14948 | wxSize temp4 ; | |
14949 | bool temp6 = False ; | |
14950 | PyObject * obj0 = 0 ; | |
14951 | PyObject * obj1 = 0 ; | |
14952 | PyObject * obj2 = 0 ; | |
14953 | PyObject * obj3 = 0 ; | |
14954 | PyObject * obj4 = 0 ; | |
14955 | PyObject * obj5 = 0 ; | |
14956 | char *kwnames[] = { | |
14957 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14958 | }; | |
14959 | ||
14960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14963 | if (obj1) { | |
14964 | arg2 = (int) SWIG_AsInt(obj1); | |
14965 | if (PyErr_Occurred()) SWIG_fail; | |
14966 | } | |
14967 | if (obj2) { | |
14968 | { | |
14969 | arg3 = &temp3; | |
14970 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14971 | } | |
14972 | } | |
14973 | if (obj3) { | |
14974 | { | |
14975 | arg4 = &temp4; | |
14976 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14977 | } | |
14978 | } | |
14979 | if (obj4) { | |
14980 | arg5 = (long) SWIG_AsLong(obj4); | |
14981 | if (PyErr_Occurred()) SWIG_fail; | |
14982 | } | |
14983 | if (obj5) { | |
14984 | { | |
14985 | arg6 = wxString_in_helper(obj5); | |
14986 | if (arg6 == NULL) SWIG_fail; | |
14987 | temp6 = True; | |
14988 | } | |
14989 | } | |
14990 | { | |
0439c23b | 14991 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14993 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14994 | ||
14995 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14996 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14997 | } |
14998 | { | |
412d302d | 14999 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
15000 | } |
15001 | { | |
15002 | if (temp6) | |
15003 | delete arg6; | |
15004 | } | |
15005 | return resultobj; | |
15006 | fail: | |
15007 | { | |
15008 | if (temp6) | |
15009 | delete arg6; | |
15010 | } | |
15011 | return NULL; | |
15012 | } | |
15013 | ||
15014 | ||
15015 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15016 | PyObject *resultobj; | |
15017 | wxNotebook *result; | |
15018 | char *kwnames[] = { | |
15019 | NULL | |
15020 | }; | |
15021 | ||
15022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
15023 | { | |
0439c23b | 15024 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15026 | result = (wxNotebook *)new wxNotebook(); | |
15027 | ||
15028 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15029 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15030 | } |
15031 | { | |
412d302d | 15032 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
15033 | } |
15034 | return resultobj; | |
15035 | fail: | |
15036 | return NULL; | |
15037 | } | |
15038 | ||
15039 | ||
15040 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15041 | PyObject *resultobj; | |
15042 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15043 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 15044 | int arg3 = (int) -1 ; |
d55e5bfc RD |
15045 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15046 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15047 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15048 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15049 | long arg6 = (long) 0 ; | |
15050 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
15051 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15052 | bool result; | |
15053 | wxPoint temp4 ; | |
15054 | wxSize temp5 ; | |
15055 | bool temp7 = False ; | |
15056 | PyObject * obj0 = 0 ; | |
15057 | PyObject * obj1 = 0 ; | |
15058 | PyObject * obj2 = 0 ; | |
15059 | PyObject * obj3 = 0 ; | |
15060 | PyObject * obj4 = 0 ; | |
15061 | PyObject * obj5 = 0 ; | |
15062 | PyObject * obj6 = 0 ; | |
15063 | char *kwnames[] = { | |
15064 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15065 | }; | |
15066 | ||
bfddbb17 | 15067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15070 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
15072 | if (obj2) { |
15073 | arg3 = (int) SWIG_AsInt(obj2); | |
15074 | if (PyErr_Occurred()) SWIG_fail; | |
15075 | } | |
d55e5bfc RD |
15076 | if (obj3) { |
15077 | { | |
15078 | arg4 = &temp4; | |
15079 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15080 | } | |
15081 | } | |
15082 | if (obj4) { | |
15083 | { | |
15084 | arg5 = &temp5; | |
15085 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15086 | } | |
15087 | } | |
15088 | if (obj5) { | |
15089 | arg6 = (long) SWIG_AsLong(obj5); | |
15090 | if (PyErr_Occurred()) SWIG_fail; | |
15091 | } | |
15092 | if (obj6) { | |
15093 | { | |
15094 | arg7 = wxString_in_helper(obj6); | |
15095 | if (arg7 == NULL) SWIG_fail; | |
15096 | temp7 = True; | |
15097 | } | |
15098 | } | |
15099 | { | |
15100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15101 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15102 | ||
15103 | wxPyEndAllowThreads(__tstate); | |
15104 | if (PyErr_Occurred()) SWIG_fail; | |
15105 | } | |
15106 | { | |
15107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15108 | } | |
15109 | { | |
15110 | if (temp7) | |
15111 | delete arg7; | |
15112 | } | |
15113 | return resultobj; | |
15114 | fail: | |
15115 | { | |
15116 | if (temp7) | |
15117 | delete arg7; | |
15118 | } | |
15119 | return NULL; | |
15120 | } | |
15121 | ||
15122 | ||
15123 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15124 | PyObject *resultobj; | |
15125 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15126 | int result; | |
15127 | PyObject * obj0 = 0 ; | |
15128 | char *kwnames[] = { | |
15129 | (char *) "self", NULL | |
15130 | }; | |
15131 | ||
15132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15135 | { | |
15136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15137 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15138 | ||
15139 | wxPyEndAllowThreads(__tstate); | |
15140 | if (PyErr_Occurred()) SWIG_fail; | |
15141 | } | |
15142 | resultobj = SWIG_FromInt((int)result); | |
15143 | return resultobj; | |
15144 | fail: | |
15145 | return NULL; | |
15146 | } | |
15147 | ||
15148 | ||
15149 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15150 | PyObject *resultobj; | |
15151 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15152 | wxSize *arg2 = 0 ; | |
15153 | wxSize temp2 ; | |
15154 | PyObject * obj0 = 0 ; | |
15155 | PyObject * obj1 = 0 ; | |
15156 | char *kwnames[] = { | |
15157 | (char *) "self",(char *) "padding", NULL | |
15158 | }; | |
15159 | ||
15160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15163 | { | |
15164 | arg2 = &temp2; | |
15165 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15166 | } | |
15167 | { | |
15168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15169 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15170 | ||
15171 | wxPyEndAllowThreads(__tstate); | |
15172 | if (PyErr_Occurred()) SWIG_fail; | |
15173 | } | |
15174 | Py_INCREF(Py_None); resultobj = Py_None; | |
15175 | return resultobj; | |
15176 | fail: | |
15177 | return NULL; | |
15178 | } | |
15179 | ||
15180 | ||
15181 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15182 | PyObject *resultobj; | |
15183 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15184 | wxSize *arg2 = 0 ; | |
15185 | wxSize temp2 ; | |
15186 | PyObject * obj0 = 0 ; | |
15187 | PyObject * obj1 = 0 ; | |
15188 | char *kwnames[] = { | |
15189 | (char *) "self",(char *) "sz", NULL | |
15190 | }; | |
15191 | ||
15192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15195 | { | |
15196 | arg2 = &temp2; | |
15197 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15198 | } | |
15199 | { | |
15200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15201 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15202 | ||
15203 | wxPyEndAllowThreads(__tstate); | |
15204 | if (PyErr_Occurred()) SWIG_fail; | |
15205 | } | |
15206 | Py_INCREF(Py_None); resultobj = Py_None; | |
15207 | return resultobj; | |
15208 | fail: | |
15209 | return NULL; | |
15210 | } | |
15211 | ||
15212 | ||
15213 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15214 | PyObject *resultobj; | |
15215 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15216 | wxPoint *arg2 = 0 ; | |
15217 | long *arg3 = (long *) 0 ; | |
15218 | int result; | |
15219 | wxPoint temp2 ; | |
15220 | long temp3 ; | |
15221 | PyObject * obj0 = 0 ; | |
15222 | PyObject * obj1 = 0 ; | |
15223 | char *kwnames[] = { | |
15224 | (char *) "self",(char *) "pt", NULL | |
15225 | }; | |
15226 | ||
15227 | arg3 = &temp3; | |
15228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15231 | { | |
15232 | arg2 = &temp2; | |
15233 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15234 | } | |
15235 | { | |
15236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15237 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15238 | ||
15239 | wxPyEndAllowThreads(__tstate); | |
15240 | if (PyErr_Occurred()) SWIG_fail; | |
15241 | } | |
15242 | resultobj = SWIG_FromInt((int)result); | |
15243 | { | |
15244 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15245 | resultobj = t_output_helper(resultobj,o); | |
15246 | } | |
15247 | return resultobj; | |
15248 | fail: | |
15249 | return NULL; | |
15250 | } | |
15251 | ||
15252 | ||
15253 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15254 | PyObject *resultobj; | |
15255 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15256 | wxSize *arg2 = 0 ; | |
15257 | wxSize result; | |
15258 | wxSize temp2 ; | |
15259 | PyObject * obj0 = 0 ; | |
15260 | PyObject * obj1 = 0 ; | |
15261 | char *kwnames[] = { | |
15262 | (char *) "self",(char *) "sizePage", NULL | |
15263 | }; | |
15264 | ||
15265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15268 | { | |
15269 | arg2 = &temp2; | |
15270 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15271 | } | |
15272 | { | |
15273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15274 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15275 | ||
15276 | wxPyEndAllowThreads(__tstate); | |
15277 | if (PyErr_Occurred()) SWIG_fail; | |
15278 | } | |
15279 | { | |
15280 | wxSize * resultptr; | |
15281 | resultptr = new wxSize((wxSize &) result); | |
15282 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15283 | } | |
15284 | return resultobj; | |
15285 | fail: | |
15286 | return NULL; | |
15287 | } | |
15288 | ||
15289 | ||
f20a2e1f RD |
15290 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
15291 | PyObject *resultobj; | |
15292 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15293 | wxVisualAttributes result; | |
15294 | PyObject * obj0 = 0 ; | |
15295 | char *kwnames[] = { | |
15296 | (char *) "variant", NULL | |
15297 | }; | |
15298 | ||
15299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15300 | if (obj0) { | |
15301 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
15302 | if (PyErr_Occurred()) SWIG_fail; | |
15303 | } | |
15304 | { | |
0439c23b | 15305 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
15306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15307 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15308 | ||
15309 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15310 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
15311 | } |
15312 | { | |
15313 | wxVisualAttributes * resultptr; | |
15314 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15315 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15316 | } | |
15317 | return resultobj; | |
15318 | fail: | |
15319 | return NULL; | |
15320 | } | |
15321 | ||
15322 | ||
d55e5bfc RD |
15323 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { |
15324 | PyObject *obj; | |
15325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15326 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15327 | Py_INCREF(obj); | |
15328 | return Py_BuildValue((char *)""); | |
15329 | } | |
15330 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15331 | PyObject *resultobj; | |
15332 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15333 | int arg2 = (int) 0 ; | |
15334 | int arg3 = (int) -1 ; | |
15335 | int arg4 = (int) -1 ; | |
15336 | wxNotebookEvent *result; | |
15337 | PyObject * obj0 = 0 ; | |
15338 | PyObject * obj1 = 0 ; | |
15339 | PyObject * obj2 = 0 ; | |
15340 | PyObject * obj3 = 0 ; | |
15341 | char *kwnames[] = { | |
15342 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15343 | }; | |
15344 | ||
15345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15346 | if (obj0) { | |
15347 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
15349 | } | |
15350 | if (obj1) { | |
15351 | arg2 = (int) SWIG_AsInt(obj1); | |
15352 | if (PyErr_Occurred()) SWIG_fail; | |
15353 | } | |
15354 | if (obj2) { | |
15355 | arg3 = (int) SWIG_AsInt(obj2); | |
15356 | if (PyErr_Occurred()) SWIG_fail; | |
15357 | } | |
15358 | if (obj3) { | |
15359 | arg4 = (int) SWIG_AsInt(obj3); | |
15360 | if (PyErr_Occurred()) SWIG_fail; | |
15361 | } | |
15362 | { | |
15363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15364 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15365 | ||
15366 | wxPyEndAllowThreads(__tstate); | |
15367 | if (PyErr_Occurred()) SWIG_fail; | |
15368 | } | |
15369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); | |
15370 | return resultobj; | |
15371 | fail: | |
15372 | return NULL; | |
15373 | } | |
15374 | ||
15375 | ||
15376 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
15377 | PyObject *obj; | |
15378 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15379 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15380 | Py_INCREF(obj); | |
15381 | return Py_BuildValue((char *)""); | |
15382 | } | |
15383 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15384 | PyObject *resultobj; | |
15385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15386 | int arg2 = (int) -1 ; | |
15387 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15388 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15389 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15390 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15391 | long arg5 = (long) 0 ; | |
15392 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15393 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15394 | wxListbook *result; | |
15395 | wxPoint temp3 ; | |
15396 | wxSize temp4 ; | |
15397 | bool temp6 = False ; | |
15398 | PyObject * obj0 = 0 ; | |
15399 | PyObject * obj1 = 0 ; | |
15400 | PyObject * obj2 = 0 ; | |
15401 | PyObject * obj3 = 0 ; | |
15402 | PyObject * obj4 = 0 ; | |
15403 | PyObject * obj5 = 0 ; | |
15404 | char *kwnames[] = { | |
15405 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15406 | }; | |
15407 | ||
15408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15411 | if (obj1) { | |
15412 | arg2 = (int) SWIG_AsInt(obj1); | |
15413 | if (PyErr_Occurred()) SWIG_fail; | |
15414 | } | |
15415 | if (obj2) { | |
15416 | { | |
15417 | arg3 = &temp3; | |
15418 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15419 | } | |
15420 | } | |
15421 | if (obj3) { | |
15422 | { | |
15423 | arg4 = &temp4; | |
15424 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15425 | } | |
15426 | } | |
15427 | if (obj4) { | |
15428 | arg5 = (long) SWIG_AsLong(obj4); | |
15429 | if (PyErr_Occurred()) SWIG_fail; | |
15430 | } | |
15431 | if (obj5) { | |
15432 | { | |
15433 | arg6 = wxString_in_helper(obj5); | |
15434 | if (arg6 == NULL) SWIG_fail; | |
15435 | temp6 = True; | |
15436 | } | |
15437 | } | |
15438 | { | |
0439c23b | 15439 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15441 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15442 | ||
15443 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15444 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15445 | } |
15446 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
15447 | { | |
15448 | if (temp6) | |
15449 | delete arg6; | |
15450 | } | |
15451 | return resultobj; | |
15452 | fail: | |
15453 | { | |
15454 | if (temp6) | |
15455 | delete arg6; | |
15456 | } | |
15457 | return NULL; | |
15458 | } | |
15459 | ||
15460 | ||
15461 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15462 | PyObject *resultobj; | |
15463 | wxListbook *result; | |
15464 | char *kwnames[] = { | |
15465 | NULL | |
15466 | }; | |
15467 | ||
15468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15469 | { | |
0439c23b | 15470 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15472 | result = (wxListbook *)new wxListbook(); | |
15473 | ||
15474 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15475 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15476 | } |
15477 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
15478 | return resultobj; | |
15479 | fail: | |
15480 | return NULL; | |
15481 | } | |
15482 | ||
15483 | ||
15484 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15485 | PyObject *resultobj; | |
15486 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15487 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 15488 | int arg3 = (int) -1 ; |
d55e5bfc RD |
15489 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15490 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15491 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15492 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15493 | long arg6 = (long) 0 ; | |
15494 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15495 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15496 | bool result; | |
15497 | wxPoint temp4 ; | |
15498 | wxSize temp5 ; | |
15499 | bool temp7 = False ; | |
15500 | PyObject * obj0 = 0 ; | |
15501 | PyObject * obj1 = 0 ; | |
15502 | PyObject * obj2 = 0 ; | |
15503 | PyObject * obj3 = 0 ; | |
15504 | PyObject * obj4 = 0 ; | |
15505 | PyObject * obj5 = 0 ; | |
15506 | PyObject * obj6 = 0 ; | |
15507 | char *kwnames[] = { | |
15508 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15509 | }; | |
15510 | ||
bfddbb17 | 15511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15514 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
15516 | if (obj2) { |
15517 | arg3 = (int) SWIG_AsInt(obj2); | |
15518 | if (PyErr_Occurred()) SWIG_fail; | |
15519 | } | |
d55e5bfc RD |
15520 | if (obj3) { |
15521 | { | |
15522 | arg4 = &temp4; | |
15523 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15524 | } | |
15525 | } | |
15526 | if (obj4) { | |
15527 | { | |
15528 | arg5 = &temp5; | |
15529 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15530 | } | |
15531 | } | |
15532 | if (obj5) { | |
15533 | arg6 = (long) SWIG_AsLong(obj5); | |
15534 | if (PyErr_Occurred()) SWIG_fail; | |
15535 | } | |
15536 | if (obj6) { | |
15537 | { | |
15538 | arg7 = wxString_in_helper(obj6); | |
15539 | if (arg7 == NULL) SWIG_fail; | |
15540 | temp7 = True; | |
15541 | } | |
15542 | } | |
15543 | { | |
15544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15545 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15546 | ||
15547 | wxPyEndAllowThreads(__tstate); | |
15548 | if (PyErr_Occurred()) SWIG_fail; | |
15549 | } | |
15550 | { | |
15551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15552 | } | |
15553 | { | |
15554 | if (temp7) | |
15555 | delete arg7; | |
15556 | } | |
15557 | return resultobj; | |
15558 | fail: | |
15559 | { | |
15560 | if (temp7) | |
15561 | delete arg7; | |
15562 | } | |
15563 | return NULL; | |
15564 | } | |
15565 | ||
15566 | ||
15567 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15568 | PyObject *resultobj; | |
15569 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15570 | bool result; | |
15571 | PyObject * obj0 = 0 ; | |
15572 | char *kwnames[] = { | |
15573 | (char *) "self", NULL | |
15574 | }; | |
15575 | ||
15576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
15578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15579 | { | |
15580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15581 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
15582 | ||
15583 | wxPyEndAllowThreads(__tstate); | |
15584 | if (PyErr_Occurred()) SWIG_fail; | |
15585 | } | |
15586 | { | |
15587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15588 | } | |
15589 | return resultobj; | |
15590 | fail: | |
15591 | return NULL; | |
15592 | } | |
15593 | ||
15594 | ||
15595 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
15596 | PyObject *obj; | |
15597 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15598 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
15599 | Py_INCREF(obj); | |
15600 | return Py_BuildValue((char *)""); | |
15601 | } | |
15602 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15603 | PyObject *resultobj; | |
15604 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15605 | int arg2 = (int) 0 ; | |
15606 | int arg3 = (int) -1 ; | |
15607 | int arg4 = (int) -1 ; | |
15608 | wxListbookEvent *result; | |
15609 | PyObject * obj0 = 0 ; | |
15610 | PyObject * obj1 = 0 ; | |
15611 | PyObject * obj2 = 0 ; | |
15612 | PyObject * obj3 = 0 ; | |
15613 | char *kwnames[] = { | |
15614 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15615 | }; | |
15616 | ||
15617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15618 | if (obj0) { | |
15619 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
15620 | if (PyErr_Occurred()) SWIG_fail; | |
15621 | } | |
15622 | if (obj1) { | |
15623 | arg2 = (int) SWIG_AsInt(obj1); | |
15624 | if (PyErr_Occurred()) SWIG_fail; | |
15625 | } | |
15626 | if (obj2) { | |
15627 | arg3 = (int) SWIG_AsInt(obj2); | |
15628 | if (PyErr_Occurred()) SWIG_fail; | |
15629 | } | |
15630 | if (obj3) { | |
15631 | arg4 = (int) SWIG_AsInt(obj3); | |
15632 | if (PyErr_Occurred()) SWIG_fail; | |
15633 | } | |
15634 | { | |
15635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15636 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
15637 | ||
15638 | wxPyEndAllowThreads(__tstate); | |
15639 | if (PyErr_Occurred()) SWIG_fail; | |
15640 | } | |
15641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
15642 | return resultobj; | |
15643 | fail: | |
15644 | return NULL; | |
15645 | } | |
15646 | ||
15647 | ||
15648 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
15649 | PyObject *obj; | |
15650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15651 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15652 | Py_INCREF(obj); | |
15653 | return Py_BuildValue((char *)""); | |
15654 | } | |
15655 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15656 | PyObject *resultobj; | |
15657 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
15658 | wxBookCtrlSizer *result; | |
15659 | PyObject * obj0 = 0 ; | |
15660 | char *kwnames[] = { | |
15661 | (char *) "nb", NULL | |
15662 | }; | |
15663 | ||
15664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
15666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15667 | { | |
15668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15669 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
15670 | ||
15671 | wxPyEndAllowThreads(__tstate); | |
15672 | if (PyErr_Occurred()) SWIG_fail; | |
15673 | } | |
15674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); | |
15675 | return resultobj; | |
15676 | fail: | |
15677 | return NULL; | |
15678 | } | |
15679 | ||
15680 | ||
15681 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15682 | PyObject *resultobj; | |
15683 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15684 | PyObject * obj0 = 0 ; | |
15685 | char *kwnames[] = { | |
15686 | (char *) "self", NULL | |
15687 | }; | |
15688 | ||
15689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15692 | { | |
15693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15694 | (arg1)->RecalcSizes(); | |
15695 | ||
15696 | wxPyEndAllowThreads(__tstate); | |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
15698 | } | |
15699 | Py_INCREF(Py_None); resultobj = Py_None; | |
15700 | return resultobj; | |
15701 | fail: | |
15702 | return NULL; | |
15703 | } | |
15704 | ||
15705 | ||
15706 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15707 | PyObject *resultobj; | |
15708 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15709 | wxSize result; | |
15710 | PyObject * obj0 = 0 ; | |
15711 | char *kwnames[] = { | |
15712 | (char *) "self", NULL | |
15713 | }; | |
15714 | ||
15715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15718 | { | |
15719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15720 | result = (arg1)->CalcMin(); | |
15721 | ||
15722 | wxPyEndAllowThreads(__tstate); | |
15723 | if (PyErr_Occurred()) SWIG_fail; | |
15724 | } | |
15725 | { | |
15726 | wxSize * resultptr; | |
15727 | resultptr = new wxSize((wxSize &) result); | |
15728 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15729 | } | |
15730 | return resultobj; | |
15731 | fail: | |
15732 | return NULL; | |
15733 | } | |
15734 | ||
15735 | ||
15736 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15737 | PyObject *resultobj; | |
15738 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15739 | wxBookCtrl *result; | |
15740 | PyObject * obj0 = 0 ; | |
15741 | char *kwnames[] = { | |
15742 | (char *) "self", NULL | |
15743 | }; | |
15744 | ||
15745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15748 | { | |
15749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15750 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15751 | ||
15752 | wxPyEndAllowThreads(__tstate); | |
15753 | if (PyErr_Occurred()) SWIG_fail; | |
15754 | } | |
15755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); | |
15756 | return resultobj; | |
15757 | fail: | |
15758 | return NULL; | |
15759 | } | |
15760 | ||
15761 | ||
15762 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
15763 | PyObject *obj; | |
15764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15765 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15766 | Py_INCREF(obj); | |
15767 | return Py_BuildValue((char *)""); | |
15768 | } | |
15769 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15770 | PyObject *resultobj; | |
15771 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15772 | wxNotebookSizer *result; | |
15773 | PyObject * obj0 = 0 ; | |
15774 | char *kwnames[] = { | |
15775 | (char *) "nb", NULL | |
15776 | }; | |
15777 | ||
15778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15781 | { | |
15782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15783 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15784 | ||
15785 | wxPyEndAllowThreads(__tstate); | |
15786 | if (PyErr_Occurred()) SWIG_fail; | |
15787 | } | |
15788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); | |
15789 | return resultobj; | |
15790 | fail: | |
15791 | return NULL; | |
15792 | } | |
15793 | ||
15794 | ||
15795 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15796 | PyObject *resultobj; | |
15797 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15798 | PyObject * obj0 = 0 ; | |
15799 | char *kwnames[] = { | |
15800 | (char *) "self", NULL | |
15801 | }; | |
15802 | ||
15803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15806 | { | |
15807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15808 | (arg1)->RecalcSizes(); | |
15809 | ||
15810 | wxPyEndAllowThreads(__tstate); | |
15811 | if (PyErr_Occurred()) SWIG_fail; | |
15812 | } | |
15813 | Py_INCREF(Py_None); resultobj = Py_None; | |
15814 | return resultobj; | |
15815 | fail: | |
15816 | return NULL; | |
15817 | } | |
15818 | ||
15819 | ||
15820 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15821 | PyObject *resultobj; | |
15822 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15823 | wxSize result; | |
15824 | PyObject * obj0 = 0 ; | |
15825 | char *kwnames[] = { | |
15826 | (char *) "self", NULL | |
15827 | }; | |
15828 | ||
15829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15832 | { | |
15833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15834 | result = (arg1)->CalcMin(); | |
15835 | ||
15836 | wxPyEndAllowThreads(__tstate); | |
15837 | if (PyErr_Occurred()) SWIG_fail; | |
15838 | } | |
15839 | { | |
15840 | wxSize * resultptr; | |
15841 | resultptr = new wxSize((wxSize &) result); | |
15842 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15843 | } | |
15844 | return resultobj; | |
15845 | fail: | |
15846 | return NULL; | |
15847 | } | |
15848 | ||
15849 | ||
15850 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15851 | PyObject *resultobj; | |
15852 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15853 | wxNotebook *result; | |
15854 | PyObject * obj0 = 0 ; | |
15855 | char *kwnames[] = { | |
15856 | (char *) "self", NULL | |
15857 | }; | |
15858 | ||
15859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15862 | { | |
15863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15864 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15865 | ||
15866 | wxPyEndAllowThreads(__tstate); | |
15867 | if (PyErr_Occurred()) SWIG_fail; | |
15868 | } | |
15869 | { | |
412d302d | 15870 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15871 | } |
15872 | return resultobj; | |
15873 | fail: | |
15874 | return NULL; | |
15875 | } | |
15876 | ||
15877 | ||
15878 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15879 | PyObject *obj; | |
15880 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15881 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15882 | Py_INCREF(obj); | |
15883 | return Py_BuildValue((char *)""); | |
15884 | } | |
15885 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15886 | PyObject *resultobj; | |
15887 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15888 | int result; | |
15889 | PyObject * obj0 = 0 ; | |
15890 | char *kwnames[] = { | |
15891 | (char *) "self", NULL | |
15892 | }; | |
15893 | ||
15894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15897 | { | |
15898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15899 | result = (int)(arg1)->GetId(); | |
15900 | ||
15901 | wxPyEndAllowThreads(__tstate); | |
15902 | if (PyErr_Occurred()) SWIG_fail; | |
15903 | } | |
15904 | resultobj = SWIG_FromInt((int)result); | |
15905 | return resultobj; | |
15906 | fail: | |
15907 | return NULL; | |
15908 | } | |
15909 | ||
15910 | ||
15911 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15912 | PyObject *resultobj; | |
15913 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15914 | wxControl *result; | |
15915 | PyObject * obj0 = 0 ; | |
15916 | char *kwnames[] = { | |
15917 | (char *) "self", NULL | |
15918 | }; | |
15919 | ||
15920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
15921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15923 | { | |
15924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15925 | result = (wxControl *)(arg1)->GetControl(); | |
15926 | ||
15927 | wxPyEndAllowThreads(__tstate); | |
15928 | if (PyErr_Occurred()) SWIG_fail; | |
15929 | } | |
15930 | { | |
412d302d | 15931 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15932 | } |
15933 | return resultobj; | |
15934 | fail: | |
15935 | return NULL; | |
15936 | } | |
15937 | ||
15938 | ||
15939 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15940 | PyObject *resultobj; | |
15941 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15942 | wxToolBarBase *result; | |
15943 | PyObject * obj0 = 0 ; | |
15944 | char *kwnames[] = { | |
15945 | (char *) "self", NULL | |
15946 | }; | |
15947 | ||
15948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15951 | { | |
15952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15953 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
15954 | ||
15955 | wxPyEndAllowThreads(__tstate); | |
15956 | if (PyErr_Occurred()) SWIG_fail; | |
15957 | } | |
15958 | { | |
412d302d | 15959 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15960 | } |
15961 | return resultobj; | |
15962 | fail: | |
15963 | return NULL; | |
15964 | } | |
15965 | ||
15966 | ||
15967 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15968 | PyObject *resultobj; | |
15969 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15970 | int result; | |
15971 | PyObject * obj0 = 0 ; | |
15972 | char *kwnames[] = { | |
15973 | (char *) "self", NULL | |
15974 | }; | |
15975 | ||
15976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15979 | { | |
15980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15981 | result = (int)(arg1)->IsButton(); | |
15982 | ||
15983 | wxPyEndAllowThreads(__tstate); | |
15984 | if (PyErr_Occurred()) SWIG_fail; | |
15985 | } | |
15986 | resultobj = SWIG_FromInt((int)result); | |
15987 | return resultobj; | |
15988 | fail: | |
15989 | return NULL; | |
15990 | } | |
15991 | ||
15992 | ||
15993 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15994 | PyObject *resultobj; | |
15995 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15996 | int result; | |
15997 | PyObject * obj0 = 0 ; | |
15998 | char *kwnames[] = { | |
15999 | (char *) "self", NULL | |
16000 | }; | |
16001 | ||
16002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
16003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16005 | { | |
16006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16007 | result = (int)(arg1)->IsControl(); | |
16008 | ||
16009 | wxPyEndAllowThreads(__tstate); | |
16010 | if (PyErr_Occurred()) SWIG_fail; | |
16011 | } | |
16012 | resultobj = SWIG_FromInt((int)result); | |
16013 | return resultobj; | |
16014 | fail: | |
16015 | return NULL; | |
16016 | } | |
16017 | ||
16018 | ||
16019 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16020 | PyObject *resultobj; | |
16021 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16022 | int result; | |
16023 | PyObject * obj0 = 0 ; | |
16024 | char *kwnames[] = { | |
16025 | (char *) "self", NULL | |
16026 | }; | |
16027 | ||
16028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
16029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16031 | { | |
16032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16033 | result = (int)(arg1)->IsSeparator(); | |
16034 | ||
16035 | wxPyEndAllowThreads(__tstate); | |
16036 | if (PyErr_Occurred()) SWIG_fail; | |
16037 | } | |
16038 | resultobj = SWIG_FromInt((int)result); | |
16039 | return resultobj; | |
16040 | fail: | |
16041 | return NULL; | |
16042 | } | |
16043 | ||
16044 | ||
16045 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16046 | PyObject *resultobj; | |
16047 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16048 | int result; | |
16049 | PyObject * obj0 = 0 ; | |
16050 | char *kwnames[] = { | |
16051 | (char *) "self", NULL | |
16052 | }; | |
16053 | ||
16054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
16055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16057 | { | |
16058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16059 | result = (int)(arg1)->GetStyle(); | |
16060 | ||
16061 | wxPyEndAllowThreads(__tstate); | |
16062 | if (PyErr_Occurred()) SWIG_fail; | |
16063 | } | |
16064 | resultobj = SWIG_FromInt((int)result); | |
16065 | return resultobj; | |
16066 | fail: | |
16067 | return NULL; | |
16068 | } | |
16069 | ||
16070 | ||
16071 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16072 | PyObject *resultobj; | |
16073 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16074 | int result; | |
16075 | PyObject * obj0 = 0 ; | |
16076 | char *kwnames[] = { | |
16077 | (char *) "self", NULL | |
16078 | }; | |
16079 | ||
16080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
16081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16083 | { | |
16084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16085 | result = (int)(arg1)->GetKind(); | |
16086 | ||
16087 | wxPyEndAllowThreads(__tstate); | |
16088 | if (PyErr_Occurred()) SWIG_fail; | |
16089 | } | |
16090 | resultobj = SWIG_FromInt((int)result); | |
16091 | return resultobj; | |
16092 | fail: | |
16093 | return NULL; | |
16094 | } | |
16095 | ||
16096 | ||
16097 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16098 | PyObject *resultobj; | |
16099 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16100 | bool result; | |
16101 | PyObject * obj0 = 0 ; | |
16102 | char *kwnames[] = { | |
16103 | (char *) "self", NULL | |
16104 | }; | |
16105 | ||
16106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
16107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16109 | { | |
16110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16111 | result = (bool)(arg1)->IsEnabled(); | |
16112 | ||
16113 | wxPyEndAllowThreads(__tstate); | |
16114 | if (PyErr_Occurred()) SWIG_fail; | |
16115 | } | |
16116 | { | |
16117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16118 | } | |
16119 | return resultobj; | |
16120 | fail: | |
16121 | return NULL; | |
16122 | } | |
16123 | ||
16124 | ||
16125 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16126 | PyObject *resultobj; | |
16127 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16128 | bool result; | |
16129 | PyObject * obj0 = 0 ; | |
16130 | char *kwnames[] = { | |
16131 | (char *) "self", NULL | |
16132 | }; | |
16133 | ||
16134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
16135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16137 | { | |
16138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16139 | result = (bool)(arg1)->IsToggled(); | |
16140 | ||
16141 | wxPyEndAllowThreads(__tstate); | |
16142 | if (PyErr_Occurred()) SWIG_fail; | |
16143 | } | |
16144 | { | |
16145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16146 | } | |
16147 | return resultobj; | |
16148 | fail: | |
16149 | return NULL; | |
16150 | } | |
16151 | ||
16152 | ||
16153 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16154 | PyObject *resultobj; | |
16155 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16156 | bool result; | |
16157 | PyObject * obj0 = 0 ; | |
16158 | char *kwnames[] = { | |
16159 | (char *) "self", NULL | |
16160 | }; | |
16161 | ||
16162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
16163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16165 | { | |
16166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16167 | result = (bool)(arg1)->CanBeToggled(); | |
16168 | ||
16169 | wxPyEndAllowThreads(__tstate); | |
16170 | if (PyErr_Occurred()) SWIG_fail; | |
16171 | } | |
16172 | { | |
16173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16174 | } | |
16175 | return resultobj; | |
16176 | fail: | |
16177 | return NULL; | |
16178 | } | |
16179 | ||
16180 | ||
16181 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16182 | PyObject *resultobj; | |
16183 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16184 | wxBitmap *result; | |
16185 | PyObject * obj0 = 0 ; | |
16186 | char *kwnames[] = { | |
16187 | (char *) "self", NULL | |
16188 | }; | |
16189 | ||
16190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
16191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16193 | { | |
16194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16195 | { | |
16196 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16197 | result = (wxBitmap *) &_result_ref; | |
16198 | } | |
16199 | ||
16200 | wxPyEndAllowThreads(__tstate); | |
16201 | if (PyErr_Occurred()) SWIG_fail; | |
16202 | } | |
16203 | { | |
16204 | wxBitmap* resultptr = new wxBitmap(*result); | |
16205 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16206 | } | |
16207 | return resultobj; | |
16208 | fail: | |
16209 | return NULL; | |
16210 | } | |
16211 | ||
16212 | ||
16213 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16214 | PyObject *resultobj; | |
16215 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16216 | wxBitmap *result; | |
16217 | PyObject * obj0 = 0 ; | |
16218 | char *kwnames[] = { | |
16219 | (char *) "self", NULL | |
16220 | }; | |
16221 | ||
16222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
16223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16225 | { | |
16226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16227 | { | |
16228 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
16229 | result = (wxBitmap *) &_result_ref; | |
16230 | } | |
16231 | ||
16232 | wxPyEndAllowThreads(__tstate); | |
16233 | if (PyErr_Occurred()) SWIG_fail; | |
16234 | } | |
16235 | { | |
16236 | wxBitmap* resultptr = new wxBitmap(*result); | |
16237 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16238 | } | |
16239 | return resultobj; | |
16240 | fail: | |
16241 | return NULL; | |
16242 | } | |
16243 | ||
16244 | ||
16245 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16246 | PyObject *resultobj; | |
16247 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16248 | wxBitmap result; | |
16249 | PyObject * obj0 = 0 ; | |
16250 | char *kwnames[] = { | |
16251 | (char *) "self", NULL | |
16252 | }; | |
16253 | ||
16254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
16255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16257 | { | |
16258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16259 | result = (arg1)->GetBitmap(); | |
16260 | ||
16261 | wxPyEndAllowThreads(__tstate); | |
16262 | if (PyErr_Occurred()) SWIG_fail; | |
16263 | } | |
16264 | { | |
16265 | wxBitmap * resultptr; | |
16266 | resultptr = new wxBitmap((wxBitmap &) result); | |
16267 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16268 | } | |
16269 | return resultobj; | |
16270 | fail: | |
16271 | return NULL; | |
16272 | } | |
16273 | ||
16274 | ||
16275 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16276 | PyObject *resultobj; | |
16277 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16278 | wxString result; | |
16279 | PyObject * obj0 = 0 ; | |
16280 | char *kwnames[] = { | |
16281 | (char *) "self", NULL | |
16282 | }; | |
16283 | ||
16284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
16285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16287 | { | |
16288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16289 | result = (arg1)->GetLabel(); | |
16290 | ||
16291 | wxPyEndAllowThreads(__tstate); | |
16292 | if (PyErr_Occurred()) SWIG_fail; | |
16293 | } | |
16294 | { | |
16295 | #if wxUSE_UNICODE | |
16296 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16297 | #else | |
16298 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16299 | #endif | |
16300 | } | |
16301 | return resultobj; | |
16302 | fail: | |
16303 | return NULL; | |
16304 | } | |
16305 | ||
16306 | ||
16307 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16308 | PyObject *resultobj; | |
16309 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16310 | wxString result; | |
16311 | PyObject * obj0 = 0 ; | |
16312 | char *kwnames[] = { | |
16313 | (char *) "self", NULL | |
16314 | }; | |
16315 | ||
16316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
16317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16319 | { | |
16320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16321 | result = (arg1)->GetShortHelp(); | |
16322 | ||
16323 | wxPyEndAllowThreads(__tstate); | |
16324 | if (PyErr_Occurred()) SWIG_fail; | |
16325 | } | |
16326 | { | |
16327 | #if wxUSE_UNICODE | |
16328 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16329 | #else | |
16330 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16331 | #endif | |
16332 | } | |
16333 | return resultobj; | |
16334 | fail: | |
16335 | return NULL; | |
16336 | } | |
16337 | ||
16338 | ||
16339 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16340 | PyObject *resultobj; | |
16341 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16342 | wxString result; | |
16343 | PyObject * obj0 = 0 ; | |
16344 | char *kwnames[] = { | |
16345 | (char *) "self", NULL | |
16346 | }; | |
16347 | ||
16348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
16349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16351 | { | |
16352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16353 | result = (arg1)->GetLongHelp(); | |
16354 | ||
16355 | wxPyEndAllowThreads(__tstate); | |
16356 | if (PyErr_Occurred()) SWIG_fail; | |
16357 | } | |
16358 | { | |
16359 | #if wxUSE_UNICODE | |
16360 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16361 | #else | |
16362 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16363 | #endif | |
16364 | } | |
16365 | return resultobj; | |
16366 | fail: | |
16367 | return NULL; | |
16368 | } | |
16369 | ||
16370 | ||
16371 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16372 | PyObject *resultobj; | |
16373 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16374 | bool arg2 ; | |
16375 | bool result; | |
16376 | PyObject * obj0 = 0 ; | |
16377 | PyObject * obj1 = 0 ; | |
16378 | char *kwnames[] = { | |
16379 | (char *) "self",(char *) "enable", NULL | |
16380 | }; | |
16381 | ||
16382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
16383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16385 | arg2 = (bool) SWIG_AsBool(obj1); | |
16386 | if (PyErr_Occurred()) SWIG_fail; | |
16387 | { | |
16388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16389 | result = (bool)(arg1)->Enable(arg2); | |
16390 | ||
16391 | wxPyEndAllowThreads(__tstate); | |
16392 | if (PyErr_Occurred()) SWIG_fail; | |
16393 | } | |
16394 | { | |
16395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16396 | } | |
16397 | return resultobj; | |
16398 | fail: | |
16399 | return NULL; | |
16400 | } | |
16401 | ||
16402 | ||
16403 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16404 | PyObject *resultobj; | |
16405 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16406 | PyObject * obj0 = 0 ; | |
16407 | char *kwnames[] = { | |
16408 | (char *) "self", NULL | |
16409 | }; | |
16410 | ||
16411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
16412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16414 | { | |
16415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16416 | (arg1)->Toggle(); | |
16417 | ||
16418 | wxPyEndAllowThreads(__tstate); | |
16419 | if (PyErr_Occurred()) SWIG_fail; | |
16420 | } | |
16421 | Py_INCREF(Py_None); resultobj = Py_None; | |
16422 | return resultobj; | |
16423 | fail: | |
16424 | return NULL; | |
16425 | } | |
16426 | ||
16427 | ||
16428 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16429 | PyObject *resultobj; | |
16430 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16431 | bool arg2 ; | |
16432 | bool result; | |
16433 | PyObject * obj0 = 0 ; | |
16434 | PyObject * obj1 = 0 ; | |
16435 | char *kwnames[] = { | |
16436 | (char *) "self",(char *) "toggle", NULL | |
16437 | }; | |
16438 | ||
16439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
16440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16442 | arg2 = (bool) SWIG_AsBool(obj1); | |
16443 | if (PyErr_Occurred()) SWIG_fail; | |
16444 | { | |
16445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16446 | result = (bool)(arg1)->SetToggle(arg2); | |
16447 | ||
16448 | wxPyEndAllowThreads(__tstate); | |
16449 | if (PyErr_Occurred()) SWIG_fail; | |
16450 | } | |
16451 | { | |
16452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16453 | } | |
16454 | return resultobj; | |
16455 | fail: | |
16456 | return NULL; | |
16457 | } | |
16458 | ||
16459 | ||
16460 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16461 | PyObject *resultobj; | |
16462 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16463 | wxString *arg2 = 0 ; | |
16464 | bool result; | |
16465 | bool temp2 = False ; | |
16466 | PyObject * obj0 = 0 ; | |
16467 | PyObject * obj1 = 0 ; | |
16468 | char *kwnames[] = { | |
16469 | (char *) "self",(char *) "help", NULL | |
16470 | }; | |
16471 | ||
16472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
16473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16475 | { | |
16476 | arg2 = wxString_in_helper(obj1); | |
16477 | if (arg2 == NULL) SWIG_fail; | |
16478 | temp2 = True; | |
16479 | } | |
16480 | { | |
16481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16482 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
16483 | ||
16484 | wxPyEndAllowThreads(__tstate); | |
16485 | if (PyErr_Occurred()) SWIG_fail; | |
16486 | } | |
16487 | { | |
16488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16489 | } | |
16490 | { | |
16491 | if (temp2) | |
16492 | delete arg2; | |
16493 | } | |
16494 | return resultobj; | |
16495 | fail: | |
16496 | { | |
16497 | if (temp2) | |
16498 | delete arg2; | |
16499 | } | |
16500 | return NULL; | |
16501 | } | |
16502 | ||
16503 | ||
16504 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16505 | PyObject *resultobj; | |
16506 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16507 | wxString *arg2 = 0 ; | |
16508 | bool result; | |
16509 | bool temp2 = False ; | |
16510 | PyObject * obj0 = 0 ; | |
16511 | PyObject * obj1 = 0 ; | |
16512 | char *kwnames[] = { | |
16513 | (char *) "self",(char *) "help", NULL | |
16514 | }; | |
16515 | ||
16516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
16517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16519 | { | |
16520 | arg2 = wxString_in_helper(obj1); | |
16521 | if (arg2 == NULL) SWIG_fail; | |
16522 | temp2 = True; | |
16523 | } | |
16524 | { | |
16525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16526 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
16527 | ||
16528 | wxPyEndAllowThreads(__tstate); | |
16529 | if (PyErr_Occurred()) SWIG_fail; | |
16530 | } | |
16531 | { | |
16532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16533 | } | |
16534 | { | |
16535 | if (temp2) | |
16536 | delete arg2; | |
16537 | } | |
16538 | return resultobj; | |
16539 | fail: | |
16540 | { | |
16541 | if (temp2) | |
16542 | delete arg2; | |
16543 | } | |
16544 | return NULL; | |
16545 | } | |
16546 | ||
16547 | ||
16548 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16549 | PyObject *resultobj; | |
16550 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16551 | wxBitmap *arg2 = 0 ; | |
16552 | PyObject * obj0 = 0 ; | |
16553 | PyObject * obj1 = 0 ; | |
16554 | char *kwnames[] = { | |
16555 | (char *) "self",(char *) "bmp", NULL | |
16556 | }; | |
16557 | ||
16558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
16559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16561 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16562 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16563 | SWIG_fail; | |
16564 | if (arg2 == NULL) { | |
16565 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16566 | SWIG_fail; | |
16567 | } | |
16568 | { | |
16569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16570 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
16571 | ||
16572 | wxPyEndAllowThreads(__tstate); | |
16573 | if (PyErr_Occurred()) SWIG_fail; | |
16574 | } | |
16575 | Py_INCREF(Py_None); resultobj = Py_None; | |
16576 | return resultobj; | |
16577 | fail: | |
16578 | return NULL; | |
16579 | } | |
16580 | ||
16581 | ||
16582 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16583 | PyObject *resultobj; | |
16584 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16585 | wxBitmap *arg2 = 0 ; | |
16586 | PyObject * obj0 = 0 ; | |
16587 | PyObject * obj1 = 0 ; | |
16588 | char *kwnames[] = { | |
16589 | (char *) "self",(char *) "bmp", NULL | |
16590 | }; | |
16591 | ||
16592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
16593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16596 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16597 | SWIG_fail; | |
16598 | if (arg2 == NULL) { | |
16599 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16600 | SWIG_fail; | |
16601 | } | |
16602 | { | |
16603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16604 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
16605 | ||
16606 | wxPyEndAllowThreads(__tstate); | |
16607 | if (PyErr_Occurred()) SWIG_fail; | |
16608 | } | |
16609 | Py_INCREF(Py_None); resultobj = Py_None; | |
16610 | return resultobj; | |
16611 | fail: | |
16612 | return NULL; | |
16613 | } | |
16614 | ||
16615 | ||
16616 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16617 | PyObject *resultobj; | |
16618 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16619 | wxString *arg2 = 0 ; | |
16620 | bool temp2 = False ; | |
16621 | PyObject * obj0 = 0 ; | |
16622 | PyObject * obj1 = 0 ; | |
16623 | char *kwnames[] = { | |
16624 | (char *) "self",(char *) "label", NULL | |
16625 | }; | |
16626 | ||
16627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
16628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16630 | { | |
16631 | arg2 = wxString_in_helper(obj1); | |
16632 | if (arg2 == NULL) SWIG_fail; | |
16633 | temp2 = True; | |
16634 | } | |
16635 | { | |
16636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16637 | (arg1)->SetLabel((wxString const &)*arg2); | |
16638 | ||
16639 | wxPyEndAllowThreads(__tstate); | |
16640 | if (PyErr_Occurred()) SWIG_fail; | |
16641 | } | |
16642 | Py_INCREF(Py_None); resultobj = Py_None; | |
16643 | { | |
16644 | if (temp2) | |
16645 | delete arg2; | |
16646 | } | |
16647 | return resultobj; | |
16648 | fail: | |
16649 | { | |
16650 | if (temp2) | |
16651 | delete arg2; | |
16652 | } | |
16653 | return NULL; | |
16654 | } | |
16655 | ||
16656 | ||
16657 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16658 | PyObject *resultobj; | |
16659 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16660 | PyObject * obj0 = 0 ; | |
16661 | char *kwnames[] = { | |
16662 | (char *) "self", NULL | |
16663 | }; | |
16664 | ||
16665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
16666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16668 | { | |
16669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16670 | (arg1)->Detach(); | |
16671 | ||
16672 | wxPyEndAllowThreads(__tstate); | |
16673 | if (PyErr_Occurred()) SWIG_fail; | |
16674 | } | |
16675 | Py_INCREF(Py_None); resultobj = Py_None; | |
16676 | return resultobj; | |
16677 | fail: | |
16678 | return NULL; | |
16679 | } | |
16680 | ||
16681 | ||
16682 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16683 | PyObject *resultobj; | |
16684 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16685 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
16686 | PyObject * obj0 = 0 ; | |
16687 | PyObject * obj1 = 0 ; | |
16688 | char *kwnames[] = { | |
16689 | (char *) "self",(char *) "tbar", NULL | |
16690 | }; | |
16691 | ||
16692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
16693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16695 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
16696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16697 | { | |
16698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16699 | (arg1)->Attach(arg2); | |
16700 | ||
16701 | wxPyEndAllowThreads(__tstate); | |
16702 | if (PyErr_Occurred()) SWIG_fail; | |
16703 | } | |
16704 | Py_INCREF(Py_None); resultobj = Py_None; | |
16705 | return resultobj; | |
16706 | fail: | |
16707 | return NULL; | |
16708 | } | |
16709 | ||
16710 | ||
16711 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16712 | PyObject *resultobj; | |
16713 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16714 | PyObject *result; | |
16715 | PyObject * obj0 = 0 ; | |
16716 | char *kwnames[] = { | |
16717 | (char *) "self", NULL | |
16718 | }; | |
16719 | ||
16720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
16721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16723 | { | |
16724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16725 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
16726 | ||
16727 | wxPyEndAllowThreads(__tstate); | |
16728 | if (PyErr_Occurred()) SWIG_fail; | |
16729 | } | |
16730 | resultobj = result; | |
16731 | return resultobj; | |
16732 | fail: | |
16733 | return NULL; | |
16734 | } | |
16735 | ||
16736 | ||
16737 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16738 | PyObject *resultobj; | |
16739 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16740 | PyObject *arg2 = (PyObject *) 0 ; | |
16741 | PyObject * obj0 = 0 ; | |
16742 | PyObject * obj1 = 0 ; | |
16743 | char *kwnames[] = { | |
16744 | (char *) "self",(char *) "clientData", NULL | |
16745 | }; | |
16746 | ||
16747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
16748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16750 | arg2 = obj1; | |
16751 | { | |
16752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16753 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16754 | ||
16755 | wxPyEndAllowThreads(__tstate); | |
16756 | if (PyErr_Occurred()) SWIG_fail; | |
16757 | } | |
16758 | Py_INCREF(Py_None); resultobj = Py_None; | |
16759 | return resultobj; | |
16760 | fail: | |
16761 | return NULL; | |
16762 | } | |
16763 | ||
16764 | ||
16765 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
16766 | PyObject *obj; | |
16767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16768 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16769 | Py_INCREF(obj); | |
16770 | return Py_BuildValue((char *)""); | |
16771 | } | |
16772 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16773 | PyObject *resultobj; | |
16774 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16775 | int arg2 ; | |
16776 | wxString *arg3 = 0 ; | |
16777 | wxBitmap *arg4 = 0 ; | |
16778 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16779 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16780 | int arg6 = (int) wxITEM_NORMAL ; | |
16781 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16782 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16783 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16784 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16785 | PyObject *arg9 = (PyObject *) NULL ; | |
16786 | wxToolBarToolBase *result; | |
16787 | bool temp3 = False ; | |
16788 | bool temp7 = False ; | |
16789 | bool temp8 = False ; | |
16790 | PyObject * obj0 = 0 ; | |
16791 | PyObject * obj1 = 0 ; | |
16792 | PyObject * obj2 = 0 ; | |
16793 | PyObject * obj3 = 0 ; | |
16794 | PyObject * obj4 = 0 ; | |
16795 | PyObject * obj5 = 0 ; | |
16796 | PyObject * obj6 = 0 ; | |
16797 | PyObject * obj7 = 0 ; | |
16798 | PyObject * obj8 = 0 ; | |
16799 | char *kwnames[] = { | |
16800 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16801 | }; | |
16802 | ||
16803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
16804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16806 | arg2 = (int) SWIG_AsInt(obj1); | |
16807 | if (PyErr_Occurred()) SWIG_fail; | |
16808 | { | |
16809 | arg3 = wxString_in_helper(obj2); | |
16810 | if (arg3 == NULL) SWIG_fail; | |
16811 | temp3 = True; | |
16812 | } | |
16813 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
16814 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16815 | SWIG_fail; | |
16816 | if (arg4 == NULL) { | |
16817 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16818 | SWIG_fail; | |
16819 | } | |
16820 | if (obj4) { | |
16821 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
16822 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16823 | SWIG_fail; | |
16824 | if (arg5 == NULL) { | |
16825 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16826 | SWIG_fail; | |
16827 | } | |
16828 | } | |
16829 | if (obj5) { | |
16830 | arg6 = (wxItemKind) SWIG_AsInt(obj5); | |
16831 | if (PyErr_Occurred()) SWIG_fail; | |
16832 | } | |
16833 | if (obj6) { | |
16834 | { | |
16835 | arg7 = wxString_in_helper(obj6); | |
16836 | if (arg7 == NULL) SWIG_fail; | |
16837 | temp7 = True; | |
16838 | } | |
16839 | } | |
16840 | if (obj7) { | |
16841 | { | |
16842 | arg8 = wxString_in_helper(obj7); | |
16843 | if (arg8 == NULL) SWIG_fail; | |
16844 | temp8 = True; | |
16845 | } | |
16846 | } | |
16847 | if (obj8) { | |
16848 | arg9 = obj8; | |
16849 | } | |
16850 | { | |
16851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16852 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16853 | ||
16854 | wxPyEndAllowThreads(__tstate); | |
16855 | if (PyErr_Occurred()) SWIG_fail; | |
16856 | } | |
16857 | { | |
412d302d | 16858 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16859 | } |
16860 | { | |
16861 | if (temp3) | |
16862 | delete arg3; | |
16863 | } | |
16864 | { | |
16865 | if (temp7) | |
16866 | delete arg7; | |
16867 | } | |
16868 | { | |
16869 | if (temp8) | |
16870 | delete arg8; | |
16871 | } | |
16872 | return resultobj; | |
16873 | fail: | |
16874 | { | |
16875 | if (temp3) | |
16876 | delete arg3; | |
16877 | } | |
16878 | { | |
16879 | if (temp7) | |
16880 | delete arg7; | |
16881 | } | |
16882 | { | |
16883 | if (temp8) | |
16884 | delete arg8; | |
16885 | } | |
16886 | return NULL; | |
16887 | } | |
16888 | ||
16889 | ||
16890 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16891 | PyObject *resultobj; | |
16892 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16893 | size_t arg2 ; | |
16894 | int arg3 ; | |
16895 | wxString *arg4 = 0 ; | |
16896 | wxBitmap *arg5 = 0 ; | |
16897 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
16898 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
16899 | int arg7 = (int) wxITEM_NORMAL ; | |
16900 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16901 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16902 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
16903 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16904 | PyObject *arg10 = (PyObject *) NULL ; | |
16905 | wxToolBarToolBase *result; | |
16906 | bool temp4 = False ; | |
16907 | bool temp8 = False ; | |
16908 | bool temp9 = False ; | |
16909 | PyObject * obj0 = 0 ; | |
16910 | PyObject * obj1 = 0 ; | |
16911 | PyObject * obj2 = 0 ; | |
16912 | PyObject * obj3 = 0 ; | |
16913 | PyObject * obj4 = 0 ; | |
16914 | PyObject * obj5 = 0 ; | |
16915 | PyObject * obj6 = 0 ; | |
16916 | PyObject * obj7 = 0 ; | |
16917 | PyObject * obj8 = 0 ; | |
16918 | PyObject * obj9 = 0 ; | |
16919 | char *kwnames[] = { | |
16920 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16921 | }; | |
16922 | ||
16923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
16924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16926 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16927 | if (PyErr_Occurred()) SWIG_fail; | |
16928 | arg3 = (int) SWIG_AsInt(obj2); | |
16929 | if (PyErr_Occurred()) SWIG_fail; | |
16930 | { | |
16931 | arg4 = wxString_in_helper(obj3); | |
16932 | if (arg4 == NULL) SWIG_fail; | |
16933 | temp4 = True; | |
16934 | } | |
16935 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
16936 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16937 | SWIG_fail; | |
16938 | if (arg5 == NULL) { | |
16939 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16940 | SWIG_fail; | |
16941 | } | |
16942 | if (obj5) { | |
16943 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, | |
16944 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16945 | SWIG_fail; | |
16946 | if (arg6 == NULL) { | |
16947 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16948 | SWIG_fail; | |
16949 | } | |
16950 | } | |
16951 | if (obj6) { | |
16952 | arg7 = (wxItemKind) SWIG_AsInt(obj6); | |
16953 | if (PyErr_Occurred()) SWIG_fail; | |
16954 | } | |
16955 | if (obj7) { | |
16956 | { | |
16957 | arg8 = wxString_in_helper(obj7); | |
16958 | if (arg8 == NULL) SWIG_fail; | |
16959 | temp8 = True; | |
16960 | } | |
16961 | } | |
16962 | if (obj8) { | |
16963 | { | |
16964 | arg9 = wxString_in_helper(obj8); | |
16965 | if (arg9 == NULL) SWIG_fail; | |
16966 | temp9 = True; | |
16967 | } | |
16968 | } | |
16969 | if (obj9) { | |
16970 | arg10 = obj9; | |
16971 | } | |
16972 | { | |
16973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16974 | 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); | |
16975 | ||
16976 | wxPyEndAllowThreads(__tstate); | |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
16979 | { | |
412d302d | 16980 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16981 | } |
16982 | { | |
16983 | if (temp4) | |
16984 | delete arg4; | |
16985 | } | |
16986 | { | |
16987 | if (temp8) | |
16988 | delete arg8; | |
16989 | } | |
16990 | { | |
16991 | if (temp9) | |
16992 | delete arg9; | |
16993 | } | |
16994 | return resultobj; | |
16995 | fail: | |
16996 | { | |
16997 | if (temp4) | |
16998 | delete arg4; | |
16999 | } | |
17000 | { | |
17001 | if (temp8) | |
17002 | delete arg8; | |
17003 | } | |
17004 | { | |
17005 | if (temp9) | |
17006 | delete arg9; | |
17007 | } | |
17008 | return NULL; | |
17009 | } | |
17010 | ||
17011 | ||
17012 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17013 | PyObject *resultobj; | |
17014 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17015 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
17016 | wxToolBarToolBase *result; | |
17017 | PyObject * obj0 = 0 ; | |
17018 | PyObject * obj1 = 0 ; | |
17019 | char *kwnames[] = { | |
17020 | (char *) "self",(char *) "tool", NULL | |
17021 | }; | |
17022 | ||
17023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
17024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
17027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17028 | { | |
17029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17030 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
17031 | ||
17032 | wxPyEndAllowThreads(__tstate); | |
17033 | if (PyErr_Occurred()) SWIG_fail; | |
17034 | } | |
17035 | { | |
412d302d | 17036 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17037 | } |
17038 | return resultobj; | |
17039 | fail: | |
17040 | return NULL; | |
17041 | } | |
17042 | ||
17043 | ||
17044 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17045 | PyObject *resultobj; | |
17046 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17047 | size_t arg2 ; | |
17048 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
17049 | wxToolBarToolBase *result; | |
17050 | PyObject * obj0 = 0 ; | |
17051 | PyObject * obj1 = 0 ; | |
17052 | PyObject * obj2 = 0 ; | |
17053 | char *kwnames[] = { | |
17054 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
17055 | }; | |
17056 | ||
17057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17060 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17061 | if (PyErr_Occurred()) SWIG_fail; | |
17062 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
17063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17064 | { | |
17065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17066 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
17067 | ||
17068 | wxPyEndAllowThreads(__tstate); | |
17069 | if (PyErr_Occurred()) SWIG_fail; | |
17070 | } | |
17071 | { | |
412d302d | 17072 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17073 | } |
17074 | return resultobj; | |
17075 | fail: | |
17076 | return NULL; | |
17077 | } | |
17078 | ||
17079 | ||
17080 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17081 | PyObject *resultobj; | |
17082 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17083 | wxControl *arg2 = (wxControl *) 0 ; | |
17084 | wxToolBarToolBase *result; | |
17085 | PyObject * obj0 = 0 ; | |
17086 | PyObject * obj1 = 0 ; | |
17087 | char *kwnames[] = { | |
17088 | (char *) "self",(char *) "control", NULL | |
17089 | }; | |
17090 | ||
17091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
17092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17094 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
17095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17096 | { | |
17097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17098 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
17099 | ||
17100 | wxPyEndAllowThreads(__tstate); | |
17101 | if (PyErr_Occurred()) SWIG_fail; | |
17102 | } | |
17103 | { | |
412d302d | 17104 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17105 | } |
17106 | return resultobj; | |
17107 | fail: | |
17108 | return NULL; | |
17109 | } | |
17110 | ||
17111 | ||
17112 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17113 | PyObject *resultobj; | |
17114 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17115 | size_t arg2 ; | |
17116 | wxControl *arg3 = (wxControl *) 0 ; | |
17117 | wxToolBarToolBase *result; | |
17118 | PyObject * obj0 = 0 ; | |
17119 | PyObject * obj1 = 0 ; | |
17120 | PyObject * obj2 = 0 ; | |
17121 | char *kwnames[] = { | |
17122 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17123 | }; | |
17124 | ||
17125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17128 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17129 | if (PyErr_Occurred()) SWIG_fail; | |
17130 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
17131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17132 | { | |
17133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17134 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17135 | ||
17136 | wxPyEndAllowThreads(__tstate); | |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
17138 | } | |
17139 | { | |
412d302d | 17140 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17141 | } |
17142 | return resultobj; | |
17143 | fail: | |
17144 | return NULL; | |
17145 | } | |
17146 | ||
17147 | ||
17148 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17149 | PyObject *resultobj; | |
17150 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17151 | int arg2 ; | |
17152 | wxControl *result; | |
17153 | PyObject * obj0 = 0 ; | |
17154 | PyObject * obj1 = 0 ; | |
17155 | char *kwnames[] = { | |
17156 | (char *) "self",(char *) "id", NULL | |
17157 | }; | |
17158 | ||
17159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
17160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17162 | arg2 = (int) SWIG_AsInt(obj1); | |
17163 | if (PyErr_Occurred()) SWIG_fail; | |
17164 | { | |
17165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17166 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17167 | ||
17168 | wxPyEndAllowThreads(__tstate); | |
17169 | if (PyErr_Occurred()) SWIG_fail; | |
17170 | } | |
17171 | { | |
412d302d | 17172 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17173 | } |
17174 | return resultobj; | |
17175 | fail: | |
17176 | return NULL; | |
17177 | } | |
17178 | ||
17179 | ||
17180 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17181 | PyObject *resultobj; | |
17182 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17183 | wxToolBarToolBase *result; | |
17184 | PyObject * obj0 = 0 ; | |
17185 | char *kwnames[] = { | |
17186 | (char *) "self", NULL | |
17187 | }; | |
17188 | ||
17189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
17190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17192 | { | |
17193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17194 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17195 | ||
17196 | wxPyEndAllowThreads(__tstate); | |
17197 | if (PyErr_Occurred()) SWIG_fail; | |
17198 | } | |
17199 | { | |
412d302d | 17200 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17201 | } |
17202 | return resultobj; | |
17203 | fail: | |
17204 | return NULL; | |
17205 | } | |
17206 | ||
17207 | ||
17208 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17209 | PyObject *resultobj; | |
17210 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17211 | size_t arg2 ; | |
17212 | wxToolBarToolBase *result; | |
17213 | PyObject * obj0 = 0 ; | |
17214 | PyObject * obj1 = 0 ; | |
17215 | char *kwnames[] = { | |
17216 | (char *) "self",(char *) "pos", NULL | |
17217 | }; | |
17218 | ||
17219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
17220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17222 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17223 | if (PyErr_Occurred()) SWIG_fail; | |
17224 | { | |
17225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17226 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
17227 | ||
17228 | wxPyEndAllowThreads(__tstate); | |
17229 | if (PyErr_Occurred()) SWIG_fail; | |
17230 | } | |
17231 | { | |
412d302d | 17232 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17233 | } |
17234 | return resultobj; | |
17235 | fail: | |
17236 | return NULL; | |
17237 | } | |
17238 | ||
17239 | ||
17240 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17241 | PyObject *resultobj; | |
17242 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17243 | int arg2 ; | |
17244 | wxToolBarToolBase *result; | |
17245 | PyObject * obj0 = 0 ; | |
17246 | PyObject * obj1 = 0 ; | |
17247 | char *kwnames[] = { | |
17248 | (char *) "self",(char *) "id", NULL | |
17249 | }; | |
17250 | ||
17251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
17252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17254 | arg2 = (int) SWIG_AsInt(obj1); | |
17255 | if (PyErr_Occurred()) SWIG_fail; | |
17256 | { | |
17257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17258 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
17259 | ||
17260 | wxPyEndAllowThreads(__tstate); | |
17261 | if (PyErr_Occurred()) SWIG_fail; | |
17262 | } | |
17263 | { | |
412d302d | 17264 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17265 | } |
17266 | return resultobj; | |
17267 | fail: | |
17268 | return NULL; | |
17269 | } | |
17270 | ||
17271 | ||
17272 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17273 | PyObject *resultobj; | |
17274 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17275 | size_t arg2 ; | |
17276 | bool result; | |
17277 | PyObject * obj0 = 0 ; | |
17278 | PyObject * obj1 = 0 ; | |
17279 | char *kwnames[] = { | |
17280 | (char *) "self",(char *) "pos", NULL | |
17281 | }; | |
17282 | ||
17283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
17284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17286 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17287 | if (PyErr_Occurred()) SWIG_fail; | |
17288 | { | |
17289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17290 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
17291 | ||
17292 | wxPyEndAllowThreads(__tstate); | |
17293 | if (PyErr_Occurred()) SWIG_fail; | |
17294 | } | |
17295 | { | |
17296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17297 | } | |
17298 | return resultobj; | |
17299 | fail: | |
17300 | return NULL; | |
17301 | } | |
17302 | ||
17303 | ||
17304 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17305 | PyObject *resultobj; | |
17306 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17307 | int arg2 ; | |
17308 | bool result; | |
17309 | PyObject * obj0 = 0 ; | |
17310 | PyObject * obj1 = 0 ; | |
17311 | char *kwnames[] = { | |
17312 | (char *) "self",(char *) "id", NULL | |
17313 | }; | |
17314 | ||
17315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
17316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17318 | arg2 = (int) SWIG_AsInt(obj1); | |
17319 | if (PyErr_Occurred()) SWIG_fail; | |
17320 | { | |
17321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17322 | result = (bool)(arg1)->DeleteTool(arg2); | |
17323 | ||
17324 | wxPyEndAllowThreads(__tstate); | |
17325 | if (PyErr_Occurred()) SWIG_fail; | |
17326 | } | |
17327 | { | |
17328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17329 | } | |
17330 | return resultobj; | |
17331 | fail: | |
17332 | return NULL; | |
17333 | } | |
17334 | ||
17335 | ||
17336 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17337 | PyObject *resultobj; | |
17338 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17339 | PyObject * obj0 = 0 ; | |
17340 | char *kwnames[] = { | |
17341 | (char *) "self", NULL | |
17342 | }; | |
17343 | ||
17344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
17345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17347 | { | |
17348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17349 | (arg1)->ClearTools(); | |
17350 | ||
17351 | wxPyEndAllowThreads(__tstate); | |
17352 | if (PyErr_Occurred()) SWIG_fail; | |
17353 | } | |
17354 | Py_INCREF(Py_None); resultobj = Py_None; | |
17355 | return resultobj; | |
17356 | fail: | |
17357 | return NULL; | |
17358 | } | |
17359 | ||
17360 | ||
17361 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17362 | PyObject *resultobj; | |
17363 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17364 | bool result; | |
17365 | PyObject * obj0 = 0 ; | |
17366 | char *kwnames[] = { | |
17367 | (char *) "self", NULL | |
17368 | }; | |
17369 | ||
17370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
17371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17373 | { | |
17374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17375 | result = (bool)(arg1)->Realize(); | |
17376 | ||
17377 | wxPyEndAllowThreads(__tstate); | |
17378 | if (PyErr_Occurred()) SWIG_fail; | |
17379 | } | |
17380 | { | |
17381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17382 | } | |
17383 | return resultobj; | |
17384 | fail: | |
17385 | return NULL; | |
17386 | } | |
17387 | ||
17388 | ||
17389 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17390 | PyObject *resultobj; | |
17391 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17392 | int arg2 ; | |
17393 | bool arg3 ; | |
17394 | PyObject * obj0 = 0 ; | |
17395 | PyObject * obj1 = 0 ; | |
17396 | PyObject * obj2 = 0 ; | |
17397 | char *kwnames[] = { | |
17398 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
17399 | }; | |
17400 | ||
17401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17404 | arg2 = (int) SWIG_AsInt(obj1); | |
17405 | if (PyErr_Occurred()) SWIG_fail; | |
17406 | arg3 = (bool) SWIG_AsBool(obj2); | |
17407 | if (PyErr_Occurred()) SWIG_fail; | |
17408 | { | |
17409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17410 | (arg1)->EnableTool(arg2,arg3); | |
17411 | ||
17412 | wxPyEndAllowThreads(__tstate); | |
17413 | if (PyErr_Occurred()) SWIG_fail; | |
17414 | } | |
17415 | Py_INCREF(Py_None); resultobj = Py_None; | |
17416 | return resultobj; | |
17417 | fail: | |
17418 | return NULL; | |
17419 | } | |
17420 | ||
17421 | ||
17422 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17423 | PyObject *resultobj; | |
17424 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17425 | int arg2 ; | |
17426 | bool arg3 ; | |
17427 | PyObject * obj0 = 0 ; | |
17428 | PyObject * obj1 = 0 ; | |
17429 | PyObject * obj2 = 0 ; | |
17430 | char *kwnames[] = { | |
17431 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17432 | }; | |
17433 | ||
17434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17437 | arg2 = (int) SWIG_AsInt(obj1); | |
17438 | if (PyErr_Occurred()) SWIG_fail; | |
17439 | arg3 = (bool) SWIG_AsBool(obj2); | |
17440 | if (PyErr_Occurred()) SWIG_fail; | |
17441 | { | |
17442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17443 | (arg1)->ToggleTool(arg2,arg3); | |
17444 | ||
17445 | wxPyEndAllowThreads(__tstate); | |
17446 | if (PyErr_Occurred()) SWIG_fail; | |
17447 | } | |
17448 | Py_INCREF(Py_None); resultobj = Py_None; | |
17449 | return resultobj; | |
17450 | fail: | |
17451 | return NULL; | |
17452 | } | |
17453 | ||
17454 | ||
17455 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17456 | PyObject *resultobj; | |
17457 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17458 | int arg2 ; | |
17459 | bool arg3 ; | |
17460 | PyObject * obj0 = 0 ; | |
17461 | PyObject * obj1 = 0 ; | |
17462 | PyObject * obj2 = 0 ; | |
17463 | char *kwnames[] = { | |
17464 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17465 | }; | |
17466 | ||
17467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17470 | arg2 = (int) SWIG_AsInt(obj1); | |
17471 | if (PyErr_Occurred()) SWIG_fail; | |
17472 | arg3 = (bool) SWIG_AsBool(obj2); | |
17473 | if (PyErr_Occurred()) SWIG_fail; | |
17474 | { | |
17475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17476 | (arg1)->SetToggle(arg2,arg3); | |
17477 | ||
17478 | wxPyEndAllowThreads(__tstate); | |
17479 | if (PyErr_Occurred()) SWIG_fail; | |
17480 | } | |
17481 | Py_INCREF(Py_None); resultobj = Py_None; | |
17482 | return resultobj; | |
17483 | fail: | |
17484 | return NULL; | |
17485 | } | |
17486 | ||
17487 | ||
17488 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17489 | PyObject *resultobj; | |
17490 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17491 | int arg2 ; | |
17492 | PyObject *result; | |
17493 | PyObject * obj0 = 0 ; | |
17494 | PyObject * obj1 = 0 ; | |
17495 | char *kwnames[] = { | |
17496 | (char *) "self",(char *) "id", NULL | |
17497 | }; | |
17498 | ||
17499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
17500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17502 | arg2 = (int) SWIG_AsInt(obj1); | |
17503 | if (PyErr_Occurred()) SWIG_fail; | |
17504 | { | |
17505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17506 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
17507 | ||
17508 | wxPyEndAllowThreads(__tstate); | |
17509 | if (PyErr_Occurred()) SWIG_fail; | |
17510 | } | |
17511 | resultobj = result; | |
17512 | return resultobj; | |
17513 | fail: | |
17514 | return NULL; | |
17515 | } | |
17516 | ||
17517 | ||
17518 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17519 | PyObject *resultobj; | |
17520 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17521 | int arg2 ; | |
17522 | PyObject *arg3 = (PyObject *) 0 ; | |
17523 | PyObject * obj0 = 0 ; | |
17524 | PyObject * obj1 = 0 ; | |
17525 | PyObject * obj2 = 0 ; | |
17526 | char *kwnames[] = { | |
17527 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
17528 | }; | |
17529 | ||
17530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17533 | arg2 = (int) SWIG_AsInt(obj1); | |
17534 | if (PyErr_Occurred()) SWIG_fail; | |
17535 | arg3 = obj2; | |
17536 | { | |
17537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17538 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
17539 | ||
17540 | wxPyEndAllowThreads(__tstate); | |
17541 | if (PyErr_Occurred()) SWIG_fail; | |
17542 | } | |
17543 | Py_INCREF(Py_None); resultobj = Py_None; | |
17544 | return resultobj; | |
17545 | fail: | |
17546 | return NULL; | |
17547 | } | |
17548 | ||
17549 | ||
17550 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17551 | PyObject *resultobj; | |
17552 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17553 | int arg2 ; | |
17554 | int result; | |
17555 | PyObject * obj0 = 0 ; | |
17556 | PyObject * obj1 = 0 ; | |
17557 | char *kwnames[] = { | |
17558 | (char *) "self",(char *) "id", NULL | |
17559 | }; | |
17560 | ||
17561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
17562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17564 | arg2 = (int) SWIG_AsInt(obj1); | |
17565 | if (PyErr_Occurred()) SWIG_fail; | |
17566 | { | |
17567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17568 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
17569 | ||
17570 | wxPyEndAllowThreads(__tstate); | |
17571 | if (PyErr_Occurred()) SWIG_fail; | |
17572 | } | |
17573 | resultobj = SWIG_FromInt((int)result); | |
17574 | return resultobj; | |
17575 | fail: | |
17576 | return NULL; | |
17577 | } | |
17578 | ||
17579 | ||
17580 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17581 | PyObject *resultobj; | |
17582 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17583 | int arg2 ; | |
17584 | bool result; | |
17585 | PyObject * obj0 = 0 ; | |
17586 | PyObject * obj1 = 0 ; | |
17587 | char *kwnames[] = { | |
17588 | (char *) "self",(char *) "id", NULL | |
17589 | }; | |
17590 | ||
17591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
17592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17594 | arg2 = (int) SWIG_AsInt(obj1); | |
17595 | if (PyErr_Occurred()) SWIG_fail; | |
17596 | { | |
17597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17598 | result = (bool)(arg1)->GetToolState(arg2); | |
17599 | ||
17600 | wxPyEndAllowThreads(__tstate); | |
17601 | if (PyErr_Occurred()) SWIG_fail; | |
17602 | } | |
17603 | { | |
17604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17605 | } | |
17606 | return resultobj; | |
17607 | fail: | |
17608 | return NULL; | |
17609 | } | |
17610 | ||
17611 | ||
17612 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17613 | PyObject *resultobj; | |
17614 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17615 | int arg2 ; | |
17616 | bool result; | |
17617 | PyObject * obj0 = 0 ; | |
17618 | PyObject * obj1 = 0 ; | |
17619 | char *kwnames[] = { | |
17620 | (char *) "self",(char *) "id", NULL | |
17621 | }; | |
17622 | ||
17623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
17624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17626 | arg2 = (int) SWIG_AsInt(obj1); | |
17627 | if (PyErr_Occurred()) SWIG_fail; | |
17628 | { | |
17629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17630 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
17631 | ||
17632 | wxPyEndAllowThreads(__tstate); | |
17633 | if (PyErr_Occurred()) SWIG_fail; | |
17634 | } | |
17635 | { | |
17636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17637 | } | |
17638 | return resultobj; | |
17639 | fail: | |
17640 | return NULL; | |
17641 | } | |
17642 | ||
17643 | ||
17644 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17645 | PyObject *resultobj; | |
17646 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17647 | int arg2 ; | |
17648 | wxString *arg3 = 0 ; | |
17649 | bool temp3 = False ; | |
17650 | PyObject * obj0 = 0 ; | |
17651 | PyObject * obj1 = 0 ; | |
17652 | PyObject * obj2 = 0 ; | |
17653 | char *kwnames[] = { | |
17654 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17655 | }; | |
17656 | ||
17657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17660 | arg2 = (int) SWIG_AsInt(obj1); | |
17661 | if (PyErr_Occurred()) SWIG_fail; | |
17662 | { | |
17663 | arg3 = wxString_in_helper(obj2); | |
17664 | if (arg3 == NULL) SWIG_fail; | |
17665 | temp3 = True; | |
17666 | } | |
17667 | { | |
17668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17669 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
17670 | ||
17671 | wxPyEndAllowThreads(__tstate); | |
17672 | if (PyErr_Occurred()) SWIG_fail; | |
17673 | } | |
17674 | Py_INCREF(Py_None); resultobj = Py_None; | |
17675 | { | |
17676 | if (temp3) | |
17677 | delete arg3; | |
17678 | } | |
17679 | return resultobj; | |
17680 | fail: | |
17681 | { | |
17682 | if (temp3) | |
17683 | delete arg3; | |
17684 | } | |
17685 | return NULL; | |
17686 | } | |
17687 | ||
17688 | ||
17689 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17690 | PyObject *resultobj; | |
17691 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17692 | int arg2 ; | |
17693 | wxString result; | |
17694 | PyObject * obj0 = 0 ; | |
17695 | PyObject * obj1 = 0 ; | |
17696 | char *kwnames[] = { | |
17697 | (char *) "self",(char *) "id", NULL | |
17698 | }; | |
17699 | ||
17700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
17701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17703 | arg2 = (int) SWIG_AsInt(obj1); | |
17704 | if (PyErr_Occurred()) SWIG_fail; | |
17705 | { | |
17706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17707 | result = (arg1)->GetToolShortHelp(arg2); | |
17708 | ||
17709 | wxPyEndAllowThreads(__tstate); | |
17710 | if (PyErr_Occurred()) SWIG_fail; | |
17711 | } | |
17712 | { | |
17713 | #if wxUSE_UNICODE | |
17714 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17715 | #else | |
17716 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17717 | #endif | |
17718 | } | |
17719 | return resultobj; | |
17720 | fail: | |
17721 | return NULL; | |
17722 | } | |
17723 | ||
17724 | ||
17725 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17726 | PyObject *resultobj; | |
17727 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17728 | int arg2 ; | |
17729 | wxString *arg3 = 0 ; | |
17730 | bool temp3 = False ; | |
17731 | PyObject * obj0 = 0 ; | |
17732 | PyObject * obj1 = 0 ; | |
17733 | PyObject * obj2 = 0 ; | |
17734 | char *kwnames[] = { | |
17735 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17736 | }; | |
17737 | ||
17738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17741 | arg2 = (int) SWIG_AsInt(obj1); | |
17742 | if (PyErr_Occurred()) SWIG_fail; | |
17743 | { | |
17744 | arg3 = wxString_in_helper(obj2); | |
17745 | if (arg3 == NULL) SWIG_fail; | |
17746 | temp3 = True; | |
17747 | } | |
17748 | { | |
17749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17750 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17751 | ||
17752 | wxPyEndAllowThreads(__tstate); | |
17753 | if (PyErr_Occurred()) SWIG_fail; | |
17754 | } | |
17755 | Py_INCREF(Py_None); resultobj = Py_None; | |
17756 | { | |
17757 | if (temp3) | |
17758 | delete arg3; | |
17759 | } | |
17760 | return resultobj; | |
17761 | fail: | |
17762 | { | |
17763 | if (temp3) | |
17764 | delete arg3; | |
17765 | } | |
17766 | return NULL; | |
17767 | } | |
17768 | ||
17769 | ||
17770 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17771 | PyObject *resultobj; | |
17772 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17773 | int arg2 ; | |
17774 | wxString result; | |
17775 | PyObject * obj0 = 0 ; | |
17776 | PyObject * obj1 = 0 ; | |
17777 | char *kwnames[] = { | |
17778 | (char *) "self",(char *) "id", NULL | |
17779 | }; | |
17780 | ||
17781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
17782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17784 | arg2 = (int) SWIG_AsInt(obj1); | |
17785 | if (PyErr_Occurred()) SWIG_fail; | |
17786 | { | |
17787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17788 | result = (arg1)->GetToolLongHelp(arg2); | |
17789 | ||
17790 | wxPyEndAllowThreads(__tstate); | |
17791 | if (PyErr_Occurred()) SWIG_fail; | |
17792 | } | |
17793 | { | |
17794 | #if wxUSE_UNICODE | |
17795 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17796 | #else | |
17797 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17798 | #endif | |
17799 | } | |
17800 | return resultobj; | |
17801 | fail: | |
17802 | return NULL; | |
17803 | } | |
17804 | ||
17805 | ||
17806 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17807 | PyObject *resultobj; | |
17808 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17809 | int arg2 ; | |
17810 | int arg3 ; | |
17811 | PyObject * obj0 = 0 ; | |
17812 | PyObject * obj1 = 0 ; | |
17813 | PyObject * obj2 = 0 ; | |
17814 | char *kwnames[] = { | |
17815 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17816 | }; | |
17817 | ||
17818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17821 | arg2 = (int) SWIG_AsInt(obj1); | |
17822 | if (PyErr_Occurred()) SWIG_fail; | |
17823 | arg3 = (int) SWIG_AsInt(obj2); | |
17824 | if (PyErr_Occurred()) SWIG_fail; | |
17825 | { | |
17826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17827 | (arg1)->SetMargins(arg2,arg3); | |
17828 | ||
17829 | wxPyEndAllowThreads(__tstate); | |
17830 | if (PyErr_Occurred()) SWIG_fail; | |
17831 | } | |
17832 | Py_INCREF(Py_None); resultobj = Py_None; | |
17833 | return resultobj; | |
17834 | fail: | |
17835 | return NULL; | |
17836 | } | |
17837 | ||
17838 | ||
17839 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17840 | PyObject *resultobj; | |
17841 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17842 | wxSize *arg2 = 0 ; | |
17843 | wxSize temp2 ; | |
17844 | PyObject * obj0 = 0 ; | |
17845 | PyObject * obj1 = 0 ; | |
17846 | char *kwnames[] = { | |
17847 | (char *) "self",(char *) "size", NULL | |
17848 | }; | |
17849 | ||
17850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
17851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17853 | { | |
17854 | arg2 = &temp2; | |
17855 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17856 | } | |
17857 | { | |
17858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17859 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17860 | ||
17861 | wxPyEndAllowThreads(__tstate); | |
17862 | if (PyErr_Occurred()) SWIG_fail; | |
17863 | } | |
17864 | Py_INCREF(Py_None); resultobj = Py_None; | |
17865 | return resultobj; | |
17866 | fail: | |
17867 | return NULL; | |
17868 | } | |
17869 | ||
17870 | ||
17871 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17872 | PyObject *resultobj; | |
17873 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17874 | int arg2 ; | |
17875 | PyObject * obj0 = 0 ; | |
17876 | PyObject * obj1 = 0 ; | |
17877 | char *kwnames[] = { | |
17878 | (char *) "self",(char *) "packing", NULL | |
17879 | }; | |
17880 | ||
17881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
17882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17884 | arg2 = (int) SWIG_AsInt(obj1); | |
17885 | if (PyErr_Occurred()) SWIG_fail; | |
17886 | { | |
17887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17888 | (arg1)->SetToolPacking(arg2); | |
17889 | ||
17890 | wxPyEndAllowThreads(__tstate); | |
17891 | if (PyErr_Occurred()) SWIG_fail; | |
17892 | } | |
17893 | Py_INCREF(Py_None); resultobj = Py_None; | |
17894 | return resultobj; | |
17895 | fail: | |
17896 | return NULL; | |
17897 | } | |
17898 | ||
17899 | ||
17900 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17901 | PyObject *resultobj; | |
17902 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17903 | int arg2 ; | |
17904 | PyObject * obj0 = 0 ; | |
17905 | PyObject * obj1 = 0 ; | |
17906 | char *kwnames[] = { | |
17907 | (char *) "self",(char *) "separation", NULL | |
17908 | }; | |
17909 | ||
17910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
17911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17913 | arg2 = (int) SWIG_AsInt(obj1); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | { | |
17916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17917 | (arg1)->SetToolSeparation(arg2); | |
17918 | ||
17919 | wxPyEndAllowThreads(__tstate); | |
17920 | if (PyErr_Occurred()) SWIG_fail; | |
17921 | } | |
17922 | Py_INCREF(Py_None); resultobj = Py_None; | |
17923 | return resultobj; | |
17924 | fail: | |
17925 | return NULL; | |
17926 | } | |
17927 | ||
17928 | ||
17929 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17930 | PyObject *resultobj; | |
17931 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17932 | wxSize result; | |
17933 | PyObject * obj0 = 0 ; | |
17934 | char *kwnames[] = { | |
17935 | (char *) "self", NULL | |
17936 | }; | |
17937 | ||
17938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
17939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17941 | { | |
17942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17943 | result = (arg1)->GetToolMargins(); | |
17944 | ||
17945 | wxPyEndAllowThreads(__tstate); | |
17946 | if (PyErr_Occurred()) SWIG_fail; | |
17947 | } | |
17948 | { | |
17949 | wxSize * resultptr; | |
17950 | resultptr = new wxSize((wxSize &) result); | |
17951 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17952 | } | |
17953 | return resultobj; | |
17954 | fail: | |
17955 | return NULL; | |
17956 | } | |
17957 | ||
17958 | ||
17959 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17960 | PyObject *resultobj; | |
17961 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17962 | wxSize result; | |
17963 | PyObject * obj0 = 0 ; | |
17964 | char *kwnames[] = { | |
17965 | (char *) "self", NULL | |
17966 | }; | |
17967 | ||
17968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
17969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17971 | { | |
17972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17973 | result = (arg1)->GetMargins(); | |
17974 | ||
17975 | wxPyEndAllowThreads(__tstate); | |
17976 | if (PyErr_Occurred()) SWIG_fail; | |
17977 | } | |
17978 | { | |
17979 | wxSize * resultptr; | |
17980 | resultptr = new wxSize((wxSize &) result); | |
17981 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17982 | } | |
17983 | return resultobj; | |
17984 | fail: | |
17985 | return NULL; | |
17986 | } | |
17987 | ||
17988 | ||
17989 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17990 | PyObject *resultobj; | |
17991 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17992 | int result; | |
17993 | PyObject * obj0 = 0 ; | |
17994 | char *kwnames[] = { | |
17995 | (char *) "self", NULL | |
17996 | }; | |
17997 | ||
17998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
17999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18001 | { | |
18002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18003 | result = (int)(arg1)->GetToolPacking(); | |
18004 | ||
18005 | wxPyEndAllowThreads(__tstate); | |
18006 | if (PyErr_Occurred()) SWIG_fail; | |
18007 | } | |
18008 | resultobj = SWIG_FromInt((int)result); | |
18009 | return resultobj; | |
18010 | fail: | |
18011 | return NULL; | |
18012 | } | |
18013 | ||
18014 | ||
18015 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18016 | PyObject *resultobj; | |
18017 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18018 | int result; | |
18019 | PyObject * obj0 = 0 ; | |
18020 | char *kwnames[] = { | |
18021 | (char *) "self", NULL | |
18022 | }; | |
18023 | ||
18024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
18025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18027 | { | |
18028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18029 | result = (int)(arg1)->GetToolSeparation(); | |
18030 | ||
18031 | wxPyEndAllowThreads(__tstate); | |
18032 | if (PyErr_Occurred()) SWIG_fail; | |
18033 | } | |
18034 | resultobj = SWIG_FromInt((int)result); | |
18035 | return resultobj; | |
18036 | fail: | |
18037 | return NULL; | |
18038 | } | |
18039 | ||
18040 | ||
18041 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18042 | PyObject *resultobj; | |
18043 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18044 | int arg2 ; | |
18045 | PyObject * obj0 = 0 ; | |
18046 | PyObject * obj1 = 0 ; | |
18047 | char *kwnames[] = { | |
18048 | (char *) "self",(char *) "nRows", NULL | |
18049 | }; | |
18050 | ||
18051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
18052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18054 | arg2 = (int) SWIG_AsInt(obj1); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | { | |
18057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18058 | (arg1)->SetRows(arg2); | |
18059 | ||
18060 | wxPyEndAllowThreads(__tstate); | |
18061 | if (PyErr_Occurred()) SWIG_fail; | |
18062 | } | |
18063 | Py_INCREF(Py_None); resultobj = Py_None; | |
18064 | return resultobj; | |
18065 | fail: | |
18066 | return NULL; | |
18067 | } | |
18068 | ||
18069 | ||
18070 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18071 | PyObject *resultobj; | |
18072 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18073 | int arg2 ; | |
18074 | int arg3 ; | |
18075 | PyObject * obj0 = 0 ; | |
18076 | PyObject * obj1 = 0 ; | |
18077 | PyObject * obj2 = 0 ; | |
18078 | char *kwnames[] = { | |
18079 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
18080 | }; | |
18081 | ||
18082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18085 | arg2 = (int) SWIG_AsInt(obj1); | |
18086 | if (PyErr_Occurred()) SWIG_fail; | |
18087 | arg3 = (int) SWIG_AsInt(obj2); | |
18088 | if (PyErr_Occurred()) SWIG_fail; | |
18089 | { | |
18090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18091 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
18092 | ||
18093 | wxPyEndAllowThreads(__tstate); | |
18094 | if (PyErr_Occurred()) SWIG_fail; | |
18095 | } | |
18096 | Py_INCREF(Py_None); resultobj = Py_None; | |
18097 | return resultobj; | |
18098 | fail: | |
18099 | return NULL; | |
18100 | } | |
18101 | ||
18102 | ||
18103 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18104 | PyObject *resultobj; | |
18105 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18106 | int result; | |
18107 | PyObject * obj0 = 0 ; | |
18108 | char *kwnames[] = { | |
18109 | (char *) "self", NULL | |
18110 | }; | |
18111 | ||
18112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
18113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18115 | { | |
18116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18117 | result = (int)(arg1)->GetMaxRows(); | |
18118 | ||
18119 | wxPyEndAllowThreads(__tstate); | |
18120 | if (PyErr_Occurred()) SWIG_fail; | |
18121 | } | |
18122 | resultobj = SWIG_FromInt((int)result); | |
18123 | return resultobj; | |
18124 | fail: | |
18125 | return NULL; | |
18126 | } | |
18127 | ||
18128 | ||
18129 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18130 | PyObject *resultobj; | |
18131 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18132 | int result; | |
18133 | PyObject * obj0 = 0 ; | |
18134 | char *kwnames[] = { | |
18135 | (char *) "self", NULL | |
18136 | }; | |
18137 | ||
18138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
18139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18141 | { | |
18142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18143 | result = (int)(arg1)->GetMaxCols(); | |
18144 | ||
18145 | wxPyEndAllowThreads(__tstate); | |
18146 | if (PyErr_Occurred()) SWIG_fail; | |
18147 | } | |
18148 | resultobj = SWIG_FromInt((int)result); | |
18149 | return resultobj; | |
18150 | fail: | |
18151 | return NULL; | |
18152 | } | |
18153 | ||
18154 | ||
18155 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18156 | PyObject *resultobj; | |
18157 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18158 | wxSize *arg2 = 0 ; | |
18159 | wxSize temp2 ; | |
18160 | PyObject * obj0 = 0 ; | |
18161 | PyObject * obj1 = 0 ; | |
18162 | char *kwnames[] = { | |
18163 | (char *) "self",(char *) "size", NULL | |
18164 | }; | |
18165 | ||
18166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
18167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18169 | { | |
18170 | arg2 = &temp2; | |
18171 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18172 | } | |
18173 | { | |
18174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18175 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18176 | ||
18177 | wxPyEndAllowThreads(__tstate); | |
18178 | if (PyErr_Occurred()) SWIG_fail; | |
18179 | } | |
18180 | Py_INCREF(Py_None); resultobj = Py_None; | |
18181 | return resultobj; | |
18182 | fail: | |
18183 | return NULL; | |
18184 | } | |
18185 | ||
18186 | ||
18187 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18188 | PyObject *resultobj; | |
18189 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18190 | wxSize result; | |
18191 | PyObject * obj0 = 0 ; | |
18192 | char *kwnames[] = { | |
18193 | (char *) "self", NULL | |
18194 | }; | |
18195 | ||
18196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
18197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18199 | { | |
18200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18201 | result = (arg1)->GetToolBitmapSize(); | |
18202 | ||
18203 | wxPyEndAllowThreads(__tstate); | |
18204 | if (PyErr_Occurred()) SWIG_fail; | |
18205 | } | |
18206 | { | |
18207 | wxSize * resultptr; | |
18208 | resultptr = new wxSize((wxSize &) result); | |
18209 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18210 | } | |
18211 | return resultobj; | |
18212 | fail: | |
18213 | return NULL; | |
18214 | } | |
18215 | ||
18216 | ||
18217 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18218 | PyObject *resultobj; | |
18219 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18220 | wxSize result; | |
18221 | PyObject * obj0 = 0 ; | |
18222 | char *kwnames[] = { | |
18223 | (char *) "self", NULL | |
18224 | }; | |
18225 | ||
18226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
18227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18229 | { | |
18230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18231 | result = (arg1)->GetToolSize(); | |
18232 | ||
18233 | wxPyEndAllowThreads(__tstate); | |
18234 | if (PyErr_Occurred()) SWIG_fail; | |
18235 | } | |
18236 | { | |
18237 | wxSize * resultptr; | |
18238 | resultptr = new wxSize((wxSize &) result); | |
18239 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18240 | } | |
18241 | return resultobj; | |
18242 | fail: | |
18243 | return NULL; | |
18244 | } | |
18245 | ||
18246 | ||
18247 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18248 | PyObject *resultobj; | |
18249 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18250 | int arg2 ; | |
18251 | int arg3 ; | |
18252 | wxToolBarToolBase *result; | |
18253 | PyObject * obj0 = 0 ; | |
18254 | PyObject * obj1 = 0 ; | |
18255 | PyObject * obj2 = 0 ; | |
18256 | char *kwnames[] = { | |
18257 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18258 | }; | |
18259 | ||
18260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18263 | arg2 = (int) SWIG_AsInt(obj1); | |
18264 | if (PyErr_Occurred()) SWIG_fail; | |
18265 | arg3 = (int) SWIG_AsInt(obj2); | |
18266 | if (PyErr_Occurred()) SWIG_fail; | |
18267 | { | |
18268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18269 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18270 | ||
18271 | wxPyEndAllowThreads(__tstate); | |
18272 | if (PyErr_Occurred()) SWIG_fail; | |
18273 | } | |
18274 | { | |
412d302d | 18275 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18276 | } |
18277 | return resultobj; | |
18278 | fail: | |
18279 | return NULL; | |
18280 | } | |
18281 | ||
18282 | ||
18283 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18284 | PyObject *resultobj; | |
18285 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18286 | int arg2 ; | |
18287 | wxToolBarToolBase *result; | |
18288 | PyObject * obj0 = 0 ; | |
18289 | PyObject * obj1 = 0 ; | |
18290 | char *kwnames[] = { | |
18291 | (char *) "self",(char *) "toolid", NULL | |
18292 | }; | |
18293 | ||
18294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
18295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18297 | arg2 = (int) SWIG_AsInt(obj1); | |
18298 | if (PyErr_Occurred()) SWIG_fail; | |
18299 | { | |
18300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18301 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
18302 | ||
18303 | wxPyEndAllowThreads(__tstate); | |
18304 | if (PyErr_Occurred()) SWIG_fail; | |
18305 | } | |
18306 | { | |
412d302d | 18307 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18308 | } |
18309 | return resultobj; | |
18310 | fail: | |
18311 | return NULL; | |
18312 | } | |
18313 | ||
18314 | ||
18315 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18316 | PyObject *resultobj; | |
18317 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18318 | bool result; | |
18319 | PyObject * obj0 = 0 ; | |
18320 | char *kwnames[] = { | |
18321 | (char *) "self", NULL | |
18322 | }; | |
18323 | ||
18324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
18325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18327 | { | |
18328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18329 | result = (bool)(arg1)->IsVertical(); | |
18330 | ||
18331 | wxPyEndAllowThreads(__tstate); | |
18332 | if (PyErr_Occurred()) SWIG_fail; | |
18333 | } | |
18334 | { | |
18335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18336 | } | |
18337 | return resultobj; | |
18338 | fail: | |
18339 | return NULL; | |
18340 | } | |
18341 | ||
18342 | ||
18343 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
18344 | PyObject *obj; | |
18345 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18346 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
18347 | Py_INCREF(obj); | |
18348 | return Py_BuildValue((char *)""); | |
18349 | } | |
18350 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18351 | PyObject *resultobj; | |
18352 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 18353 | int arg2 = (int) -1 ; |
d55e5bfc RD |
18354 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18355 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18356 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18357 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18358 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18359 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
18360 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18361 | wxToolBar *result; | |
18362 | wxPoint temp3 ; | |
18363 | wxSize temp4 ; | |
18364 | bool temp6 = False ; | |
18365 | PyObject * obj0 = 0 ; | |
18366 | PyObject * obj1 = 0 ; | |
18367 | PyObject * obj2 = 0 ; | |
18368 | PyObject * obj3 = 0 ; | |
18369 | PyObject * obj4 = 0 ; | |
18370 | PyObject * obj5 = 0 ; | |
18371 | char *kwnames[] = { | |
18372 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18373 | }; | |
18374 | ||
bfddbb17 | 18375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
18376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
18378 | if (obj1) { |
18379 | arg2 = (int) SWIG_AsInt(obj1); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
d55e5bfc RD |
18382 | if (obj2) { |
18383 | { | |
18384 | arg3 = &temp3; | |
18385 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18386 | } | |
18387 | } | |
18388 | if (obj3) { | |
18389 | { | |
18390 | arg4 = &temp4; | |
18391 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18392 | } | |
18393 | } | |
18394 | if (obj4) { | |
18395 | arg5 = (long) SWIG_AsLong(obj4); | |
18396 | if (PyErr_Occurred()) SWIG_fail; | |
18397 | } | |
18398 | if (obj5) { | |
18399 | { | |
18400 | arg6 = wxString_in_helper(obj5); | |
18401 | if (arg6 == NULL) SWIG_fail; | |
18402 | temp6 = True; | |
18403 | } | |
18404 | } | |
18405 | { | |
0439c23b | 18406 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18408 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18409 | ||
18410 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18411 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
18412 | } |
18413 | { | |
412d302d | 18414 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
18415 | } |
18416 | { | |
18417 | if (temp6) | |
18418 | delete arg6; | |
18419 | } | |
18420 | return resultobj; | |
18421 | fail: | |
18422 | { | |
18423 | if (temp6) | |
18424 | delete arg6; | |
18425 | } | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
18430 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18431 | PyObject *resultobj; | |
18432 | wxToolBar *result; | |
18433 | char *kwnames[] = { | |
18434 | NULL | |
18435 | }; | |
18436 | ||
18437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
18438 | { | |
0439c23b | 18439 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18441 | result = (wxToolBar *)new wxToolBar(); | |
18442 | ||
18443 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18444 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
18445 | } |
18446 | { | |
412d302d | 18447 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
18448 | } |
18449 | return resultobj; | |
18450 | fail: | |
18451 | return NULL; | |
18452 | } | |
18453 | ||
18454 | ||
18455 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18456 | PyObject *resultobj; | |
18457 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18458 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 18459 | int arg3 = (int) -1 ; |
d55e5bfc RD |
18460 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18461 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18462 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18463 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18464 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18465 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
18466 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18467 | bool result; | |
18468 | wxPoint temp4 ; | |
18469 | wxSize temp5 ; | |
18470 | bool temp7 = False ; | |
18471 | PyObject * obj0 = 0 ; | |
18472 | PyObject * obj1 = 0 ; | |
18473 | PyObject * obj2 = 0 ; | |
18474 | PyObject * obj3 = 0 ; | |
18475 | PyObject * obj4 = 0 ; | |
18476 | PyObject * obj5 = 0 ; | |
18477 | PyObject * obj6 = 0 ; | |
18478 | char *kwnames[] = { | |
18479 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18480 | }; | |
18481 | ||
bfddbb17 | 18482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
18483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
18487 | if (obj2) { |
18488 | arg3 = (int) SWIG_AsInt(obj2); | |
18489 | if (PyErr_Occurred()) SWIG_fail; | |
18490 | } | |
d55e5bfc RD |
18491 | if (obj3) { |
18492 | { | |
18493 | arg4 = &temp4; | |
18494 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18495 | } | |
18496 | } | |
18497 | if (obj4) { | |
18498 | { | |
18499 | arg5 = &temp5; | |
18500 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18501 | } | |
18502 | } | |
18503 | if (obj5) { | |
18504 | arg6 = (long) SWIG_AsLong(obj5); | |
18505 | if (PyErr_Occurred()) SWIG_fail; | |
18506 | } | |
18507 | if (obj6) { | |
18508 | { | |
18509 | arg7 = wxString_in_helper(obj6); | |
18510 | if (arg7 == NULL) SWIG_fail; | |
18511 | temp7 = True; | |
18512 | } | |
18513 | } | |
18514 | { | |
18515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18516 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18517 | ||
18518 | wxPyEndAllowThreads(__tstate); | |
18519 | if (PyErr_Occurred()) SWIG_fail; | |
18520 | } | |
18521 | { | |
18522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18523 | } | |
18524 | { | |
18525 | if (temp7) | |
18526 | delete arg7; | |
18527 | } | |
18528 | return resultobj; | |
18529 | fail: | |
18530 | { | |
18531 | if (temp7) | |
18532 | delete arg7; | |
18533 | } | |
18534 | return NULL; | |
18535 | } | |
18536 | ||
18537 | ||
18538 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18539 | PyObject *resultobj; | |
18540 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18541 | int arg2 ; | |
18542 | int arg3 ; | |
18543 | wxToolBarToolBase *result; | |
18544 | PyObject * obj0 = 0 ; | |
18545 | PyObject * obj1 = 0 ; | |
18546 | PyObject * obj2 = 0 ; | |
18547 | char *kwnames[] = { | |
18548 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18549 | }; | |
18550 | ||
18551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, | |
18553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18554 | arg2 = (int) SWIG_AsInt(obj1); | |
18555 | if (PyErr_Occurred()) SWIG_fail; | |
18556 | arg3 = (int) SWIG_AsInt(obj2); | |
18557 | if (PyErr_Occurred()) SWIG_fail; | |
18558 | { | |
18559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18560 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18561 | ||
18562 | wxPyEndAllowThreads(__tstate); | |
18563 | if (PyErr_Occurred()) SWIG_fail; | |
18564 | } | |
18565 | { | |
412d302d | 18566 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18567 | } |
18568 | return resultobj; | |
18569 | fail: | |
18570 | return NULL; | |
18571 | } | |
18572 | ||
18573 | ||
f20a2e1f RD |
18574 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
18575 | PyObject *resultobj; | |
18576 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
18577 | wxVisualAttributes result; | |
18578 | PyObject * obj0 = 0 ; | |
18579 | char *kwnames[] = { | |
18580 | (char *) "variant", NULL | |
18581 | }; | |
18582 | ||
18583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
18584 | if (obj0) { | |
18585 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
18586 | if (PyErr_Occurred()) SWIG_fail; | |
18587 | } | |
18588 | { | |
0439c23b | 18589 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
18590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18591 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
18592 | ||
18593 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18594 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
18595 | } |
18596 | { | |
18597 | wxVisualAttributes * resultptr; | |
18598 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18599 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18600 | } | |
18601 | return resultobj; | |
18602 | fail: | |
18603 | return NULL; | |
18604 | } | |
18605 | ||
18606 | ||
d55e5bfc RD |
18607 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { |
18608 | PyObject *obj; | |
18609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18610 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
18611 | Py_INCREF(obj); | |
18612 | return Py_BuildValue((char *)""); | |
18613 | } | |
18614 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { | |
18615 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
18616 | return 1; | |
18617 | } | |
18618 | ||
18619 | ||
18620 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
18621 | PyObject *pyobj; | |
18622 | ||
18623 | { | |
18624 | #if wxUSE_UNICODE | |
18625 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18626 | #else | |
18627 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18628 | #endif | |
18629 | } | |
18630 | return pyobj; | |
18631 | } | |
18632 | ||
18633 | ||
18634 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18635 | PyObject *resultobj; | |
18636 | wxColour const &arg1_defvalue = wxNullColour ; | |
18637 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
18638 | wxColour const &arg2_defvalue = wxNullColour ; | |
18639 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
18640 | wxFont const &arg3_defvalue = wxNullFont ; | |
18641 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
18642 | wxListItemAttr *result; | |
18643 | wxColour temp1 ; | |
18644 | wxColour temp2 ; | |
18645 | PyObject * obj0 = 0 ; | |
18646 | PyObject * obj1 = 0 ; | |
18647 | PyObject * obj2 = 0 ; | |
18648 | char *kwnames[] = { | |
18649 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
18650 | }; | |
18651 | ||
18652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18653 | if (obj0) { | |
18654 | { | |
18655 | arg1 = &temp1; | |
18656 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
18657 | } | |
18658 | } | |
18659 | if (obj1) { | |
18660 | { | |
18661 | arg2 = &temp2; | |
18662 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18663 | } | |
18664 | } | |
18665 | if (obj2) { | |
18666 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
18667 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18668 | SWIG_fail; | |
18669 | if (arg3 == NULL) { | |
18670 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18671 | SWIG_fail; | |
18672 | } | |
18673 | } | |
18674 | { | |
18675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18676 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
18677 | ||
18678 | wxPyEndAllowThreads(__tstate); | |
18679 | if (PyErr_Occurred()) SWIG_fail; | |
18680 | } | |
18681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); | |
18682 | return resultobj; | |
18683 | fail: | |
18684 | return NULL; | |
18685 | } | |
18686 | ||
18687 | ||
18688 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18689 | PyObject *resultobj; | |
18690 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18691 | wxColour *arg2 = 0 ; | |
18692 | wxColour temp2 ; | |
18693 | PyObject * obj0 = 0 ; | |
18694 | PyObject * obj1 = 0 ; | |
18695 | char *kwnames[] = { | |
18696 | (char *) "self",(char *) "colText", NULL | |
18697 | }; | |
18698 | ||
18699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18702 | { | |
18703 | arg2 = &temp2; | |
18704 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18705 | } | |
18706 | { | |
18707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18708 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18709 | ||
18710 | wxPyEndAllowThreads(__tstate); | |
18711 | if (PyErr_Occurred()) SWIG_fail; | |
18712 | } | |
18713 | Py_INCREF(Py_None); resultobj = Py_None; | |
18714 | return resultobj; | |
18715 | fail: | |
18716 | return NULL; | |
18717 | } | |
18718 | ||
18719 | ||
18720 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18721 | PyObject *resultobj; | |
18722 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18723 | wxColour *arg2 = 0 ; | |
18724 | wxColour temp2 ; | |
18725 | PyObject * obj0 = 0 ; | |
18726 | PyObject * obj1 = 0 ; | |
18727 | char *kwnames[] = { | |
18728 | (char *) "self",(char *) "colBack", NULL | |
18729 | }; | |
18730 | ||
18731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18734 | { | |
18735 | arg2 = &temp2; | |
18736 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18737 | } | |
18738 | { | |
18739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18740 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18741 | ||
18742 | wxPyEndAllowThreads(__tstate); | |
18743 | if (PyErr_Occurred()) SWIG_fail; | |
18744 | } | |
18745 | Py_INCREF(Py_None); resultobj = Py_None; | |
18746 | return resultobj; | |
18747 | fail: | |
18748 | return NULL; | |
18749 | } | |
18750 | ||
18751 | ||
18752 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18753 | PyObject *resultobj; | |
18754 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18755 | wxFont *arg2 = 0 ; | |
18756 | PyObject * obj0 = 0 ; | |
18757 | PyObject * obj1 = 0 ; | |
18758 | char *kwnames[] = { | |
18759 | (char *) "self",(char *) "font", NULL | |
18760 | }; | |
18761 | ||
18762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18766 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18767 | SWIG_fail; | |
18768 | if (arg2 == NULL) { | |
18769 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18770 | SWIG_fail; | |
18771 | } | |
18772 | { | |
18773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18774 | (arg1)->SetFont((wxFont const &)*arg2); | |
18775 | ||
18776 | wxPyEndAllowThreads(__tstate); | |
18777 | if (PyErr_Occurred()) SWIG_fail; | |
18778 | } | |
18779 | Py_INCREF(Py_None); resultobj = Py_None; | |
18780 | return resultobj; | |
18781 | fail: | |
18782 | return NULL; | |
18783 | } | |
18784 | ||
18785 | ||
18786 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18787 | PyObject *resultobj; | |
18788 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18789 | bool result; | |
18790 | PyObject * obj0 = 0 ; | |
18791 | char *kwnames[] = { | |
18792 | (char *) "self", NULL | |
18793 | }; | |
18794 | ||
18795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
18796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18798 | { | |
18799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18800 | result = (bool)(arg1)->HasTextColour(); | |
18801 | ||
18802 | wxPyEndAllowThreads(__tstate); | |
18803 | if (PyErr_Occurred()) SWIG_fail; | |
18804 | } | |
18805 | { | |
18806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18807 | } | |
18808 | return resultobj; | |
18809 | fail: | |
18810 | return NULL; | |
18811 | } | |
18812 | ||
18813 | ||
18814 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18815 | PyObject *resultobj; | |
18816 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18817 | bool result; | |
18818 | PyObject * obj0 = 0 ; | |
18819 | char *kwnames[] = { | |
18820 | (char *) "self", NULL | |
18821 | }; | |
18822 | ||
18823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
18824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18826 | { | |
18827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18828 | result = (bool)(arg1)->HasBackgroundColour(); | |
18829 | ||
18830 | wxPyEndAllowThreads(__tstate); | |
18831 | if (PyErr_Occurred()) SWIG_fail; | |
18832 | } | |
18833 | { | |
18834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18835 | } | |
18836 | return resultobj; | |
18837 | fail: | |
18838 | return NULL; | |
18839 | } | |
18840 | ||
18841 | ||
18842 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18843 | PyObject *resultobj; | |
18844 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18845 | bool result; | |
18846 | PyObject * obj0 = 0 ; | |
18847 | char *kwnames[] = { | |
18848 | (char *) "self", NULL | |
18849 | }; | |
18850 | ||
18851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
18852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18854 | { | |
18855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18856 | result = (bool)(arg1)->HasFont(); | |
18857 | ||
18858 | wxPyEndAllowThreads(__tstate); | |
18859 | if (PyErr_Occurred()) SWIG_fail; | |
18860 | } | |
18861 | { | |
18862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18863 | } | |
18864 | return resultobj; | |
18865 | fail: | |
18866 | return NULL; | |
18867 | } | |
18868 | ||
18869 | ||
18870 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18871 | PyObject *resultobj; | |
18872 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18873 | wxColour result; | |
18874 | PyObject * obj0 = 0 ; | |
18875 | char *kwnames[] = { | |
18876 | (char *) "self", NULL | |
18877 | }; | |
18878 | ||
18879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
18880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18882 | { | |
18883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18884 | result = (arg1)->GetTextColour(); | |
18885 | ||
18886 | wxPyEndAllowThreads(__tstate); | |
18887 | if (PyErr_Occurred()) SWIG_fail; | |
18888 | } | |
18889 | { | |
18890 | wxColour * resultptr; | |
18891 | resultptr = new wxColour((wxColour &) result); | |
18892 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18893 | } | |
18894 | return resultobj; | |
18895 | fail: | |
18896 | return NULL; | |
18897 | } | |
18898 | ||
18899 | ||
18900 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18901 | PyObject *resultobj; | |
18902 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18903 | wxColour result; | |
18904 | PyObject * obj0 = 0 ; | |
18905 | char *kwnames[] = { | |
18906 | (char *) "self", NULL | |
18907 | }; | |
18908 | ||
18909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18912 | { | |
18913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18914 | result = (arg1)->GetBackgroundColour(); | |
18915 | ||
18916 | wxPyEndAllowThreads(__tstate); | |
18917 | if (PyErr_Occurred()) SWIG_fail; | |
18918 | } | |
18919 | { | |
18920 | wxColour * resultptr; | |
18921 | resultptr = new wxColour((wxColour &) result); | |
18922 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18923 | } | |
18924 | return resultobj; | |
18925 | fail: | |
18926 | return NULL; | |
18927 | } | |
18928 | ||
18929 | ||
18930 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18931 | PyObject *resultobj; | |
18932 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18933 | wxFont result; | |
18934 | PyObject * obj0 = 0 ; | |
18935 | char *kwnames[] = { | |
18936 | (char *) "self", NULL | |
18937 | }; | |
18938 | ||
18939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
18940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18942 | { | |
18943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18944 | result = (arg1)->GetFont(); | |
18945 | ||
18946 | wxPyEndAllowThreads(__tstate); | |
18947 | if (PyErr_Occurred()) SWIG_fail; | |
18948 | } | |
18949 | { | |
18950 | wxFont * resultptr; | |
18951 | resultptr = new wxFont((wxFont &) result); | |
18952 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
18953 | } | |
18954 | return resultobj; | |
18955 | fail: | |
18956 | return NULL; | |
18957 | } | |
18958 | ||
18959 | ||
18960 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18961 | PyObject *resultobj; | |
18962 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18963 | PyObject * obj0 = 0 ; | |
18964 | char *kwnames[] = { | |
18965 | (char *) "self", NULL | |
18966 | }; | |
18967 | ||
18968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
18969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18971 | { | |
18972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18973 | wxListItemAttr_Destroy(arg1); | |
18974 | ||
18975 | wxPyEndAllowThreads(__tstate); | |
18976 | if (PyErr_Occurred()) SWIG_fail; | |
18977 | } | |
18978 | Py_INCREF(Py_None); resultobj = Py_None; | |
18979 | return resultobj; | |
18980 | fail: | |
18981 | return NULL; | |
18982 | } | |
18983 | ||
18984 | ||
18985 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
18986 | PyObject *obj; | |
18987 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18988 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
18989 | Py_INCREF(obj); | |
18990 | return Py_BuildValue((char *)""); | |
18991 | } | |
18992 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18993 | PyObject *resultobj; | |
18994 | wxListItem *result; | |
18995 | char *kwnames[] = { | |
18996 | NULL | |
18997 | }; | |
18998 | ||
18999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
19000 | { | |
19001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19002 | result = (wxListItem *)new wxListItem(); | |
19003 | ||
19004 | wxPyEndAllowThreads(__tstate); | |
19005 | if (PyErr_Occurred()) SWIG_fail; | |
19006 | } | |
19007 | { | |
412d302d | 19008 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
19009 | } |
19010 | return resultobj; | |
19011 | fail: | |
19012 | return NULL; | |
19013 | } | |
19014 | ||
19015 | ||
19016 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19017 | PyObject *resultobj; | |
19018 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19019 | PyObject * obj0 = 0 ; | |
19020 | char *kwnames[] = { | |
19021 | (char *) "self", NULL | |
19022 | }; | |
19023 | ||
19024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
19025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19027 | { | |
19028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19029 | delete arg1; | |
19030 | ||
19031 | wxPyEndAllowThreads(__tstate); | |
19032 | if (PyErr_Occurred()) SWIG_fail; | |
19033 | } | |
19034 | Py_INCREF(Py_None); resultobj = Py_None; | |
19035 | return resultobj; | |
19036 | fail: | |
19037 | return NULL; | |
19038 | } | |
19039 | ||
19040 | ||
19041 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19042 | PyObject *resultobj; | |
19043 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19044 | PyObject * obj0 = 0 ; | |
19045 | char *kwnames[] = { | |
19046 | (char *) "self", NULL | |
19047 | }; | |
19048 | ||
19049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
19050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19052 | { | |
19053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19054 | (arg1)->Clear(); | |
19055 | ||
19056 | wxPyEndAllowThreads(__tstate); | |
19057 | if (PyErr_Occurred()) SWIG_fail; | |
19058 | } | |
19059 | Py_INCREF(Py_None); resultobj = Py_None; | |
19060 | return resultobj; | |
19061 | fail: | |
19062 | return NULL; | |
19063 | } | |
19064 | ||
19065 | ||
19066 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19067 | PyObject *resultobj; | |
19068 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19069 | PyObject * obj0 = 0 ; | |
19070 | char *kwnames[] = { | |
19071 | (char *) "self", NULL | |
19072 | }; | |
19073 | ||
19074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
19075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19077 | { | |
19078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19079 | (arg1)->ClearAttributes(); | |
19080 | ||
19081 | wxPyEndAllowThreads(__tstate); | |
19082 | if (PyErr_Occurred()) SWIG_fail; | |
19083 | } | |
19084 | Py_INCREF(Py_None); resultobj = Py_None; | |
19085 | return resultobj; | |
19086 | fail: | |
19087 | return NULL; | |
19088 | } | |
19089 | ||
19090 | ||
19091 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19092 | PyObject *resultobj; | |
19093 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19094 | long arg2 ; | |
19095 | PyObject * obj0 = 0 ; | |
19096 | PyObject * obj1 = 0 ; | |
19097 | char *kwnames[] = { | |
19098 | (char *) "self",(char *) "mask", NULL | |
19099 | }; | |
19100 | ||
19101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
19102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19104 | arg2 = (long) SWIG_AsLong(obj1); | |
19105 | if (PyErr_Occurred()) SWIG_fail; | |
19106 | { | |
19107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19108 | (arg1)->SetMask(arg2); | |
19109 | ||
19110 | wxPyEndAllowThreads(__tstate); | |
19111 | if (PyErr_Occurred()) SWIG_fail; | |
19112 | } | |
19113 | Py_INCREF(Py_None); resultobj = Py_None; | |
19114 | return resultobj; | |
19115 | fail: | |
19116 | return NULL; | |
19117 | } | |
19118 | ||
19119 | ||
19120 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19121 | PyObject *resultobj; | |
19122 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19123 | long arg2 ; | |
19124 | PyObject * obj0 = 0 ; | |
19125 | PyObject * obj1 = 0 ; | |
19126 | char *kwnames[] = { | |
19127 | (char *) "self",(char *) "id", NULL | |
19128 | }; | |
19129 | ||
19130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
19131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19133 | arg2 = (long) SWIG_AsLong(obj1); | |
19134 | if (PyErr_Occurred()) SWIG_fail; | |
19135 | { | |
19136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19137 | (arg1)->SetId(arg2); | |
19138 | ||
19139 | wxPyEndAllowThreads(__tstate); | |
19140 | if (PyErr_Occurred()) SWIG_fail; | |
19141 | } | |
19142 | Py_INCREF(Py_None); resultobj = Py_None; | |
19143 | return resultobj; | |
19144 | fail: | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
19149 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19150 | PyObject *resultobj; | |
19151 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19152 | int arg2 ; | |
19153 | PyObject * obj0 = 0 ; | |
19154 | PyObject * obj1 = 0 ; | |
19155 | char *kwnames[] = { | |
19156 | (char *) "self",(char *) "col", NULL | |
19157 | }; | |
19158 | ||
19159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
19160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19162 | arg2 = (int) SWIG_AsInt(obj1); | |
19163 | if (PyErr_Occurred()) SWIG_fail; | |
19164 | { | |
19165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19166 | (arg1)->SetColumn(arg2); | |
19167 | ||
19168 | wxPyEndAllowThreads(__tstate); | |
19169 | if (PyErr_Occurred()) SWIG_fail; | |
19170 | } | |
19171 | Py_INCREF(Py_None); resultobj = Py_None; | |
19172 | return resultobj; | |
19173 | fail: | |
19174 | return NULL; | |
19175 | } | |
19176 | ||
19177 | ||
19178 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19179 | PyObject *resultobj; | |
19180 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19181 | long arg2 ; | |
19182 | PyObject * obj0 = 0 ; | |
19183 | PyObject * obj1 = 0 ; | |
19184 | char *kwnames[] = { | |
19185 | (char *) "self",(char *) "state", NULL | |
19186 | }; | |
19187 | ||
19188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
19189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19191 | arg2 = (long) SWIG_AsLong(obj1); | |
19192 | if (PyErr_Occurred()) SWIG_fail; | |
19193 | { | |
19194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19195 | (arg1)->SetState(arg2); | |
19196 | ||
19197 | wxPyEndAllowThreads(__tstate); | |
19198 | if (PyErr_Occurred()) SWIG_fail; | |
19199 | } | |
19200 | Py_INCREF(Py_None); resultobj = Py_None; | |
19201 | return resultobj; | |
19202 | fail: | |
19203 | return NULL; | |
19204 | } | |
19205 | ||
19206 | ||
19207 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19208 | PyObject *resultobj; | |
19209 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19210 | long arg2 ; | |
19211 | PyObject * obj0 = 0 ; | |
19212 | PyObject * obj1 = 0 ; | |
19213 | char *kwnames[] = { | |
19214 | (char *) "self",(char *) "stateMask", NULL | |
19215 | }; | |
19216 | ||
19217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
19218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19220 | arg2 = (long) SWIG_AsLong(obj1); | |
19221 | if (PyErr_Occurred()) SWIG_fail; | |
19222 | { | |
19223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19224 | (arg1)->SetStateMask(arg2); | |
19225 | ||
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
19229 | Py_INCREF(Py_None); resultobj = Py_None; | |
19230 | return resultobj; | |
19231 | fail: | |
19232 | return NULL; | |
19233 | } | |
19234 | ||
19235 | ||
19236 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19237 | PyObject *resultobj; | |
19238 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19239 | wxString *arg2 = 0 ; | |
19240 | bool temp2 = False ; | |
19241 | PyObject * obj0 = 0 ; | |
19242 | PyObject * obj1 = 0 ; | |
19243 | char *kwnames[] = { | |
19244 | (char *) "self",(char *) "text", NULL | |
19245 | }; | |
19246 | ||
19247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
19248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19250 | { | |
19251 | arg2 = wxString_in_helper(obj1); | |
19252 | if (arg2 == NULL) SWIG_fail; | |
19253 | temp2 = True; | |
19254 | } | |
19255 | { | |
19256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19257 | (arg1)->SetText((wxString const &)*arg2); | |
19258 | ||
19259 | wxPyEndAllowThreads(__tstate); | |
19260 | if (PyErr_Occurred()) SWIG_fail; | |
19261 | } | |
19262 | Py_INCREF(Py_None); resultobj = Py_None; | |
19263 | { | |
19264 | if (temp2) | |
19265 | delete arg2; | |
19266 | } | |
19267 | return resultobj; | |
19268 | fail: | |
19269 | { | |
19270 | if (temp2) | |
19271 | delete arg2; | |
19272 | } | |
19273 | return NULL; | |
19274 | } | |
19275 | ||
19276 | ||
19277 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19278 | PyObject *resultobj; | |
19279 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19280 | int arg2 ; | |
19281 | PyObject * obj0 = 0 ; | |
19282 | PyObject * obj1 = 0 ; | |
19283 | char *kwnames[] = { | |
19284 | (char *) "self",(char *) "image", NULL | |
19285 | }; | |
19286 | ||
19287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
19288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19290 | arg2 = (int) SWIG_AsInt(obj1); | |
19291 | if (PyErr_Occurred()) SWIG_fail; | |
19292 | { | |
19293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19294 | (arg1)->SetImage(arg2); | |
19295 | ||
19296 | wxPyEndAllowThreads(__tstate); | |
19297 | if (PyErr_Occurred()) SWIG_fail; | |
19298 | } | |
19299 | Py_INCREF(Py_None); resultobj = Py_None; | |
19300 | return resultobj; | |
19301 | fail: | |
19302 | return NULL; | |
19303 | } | |
19304 | ||
19305 | ||
19306 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19307 | PyObject *resultobj; | |
19308 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19309 | long arg2 ; | |
19310 | PyObject * obj0 = 0 ; | |
19311 | PyObject * obj1 = 0 ; | |
19312 | char *kwnames[] = { | |
19313 | (char *) "self",(char *) "data", NULL | |
19314 | }; | |
19315 | ||
19316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
19317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19319 | arg2 = (long) SWIG_AsLong(obj1); | |
19320 | if (PyErr_Occurred()) SWIG_fail; | |
19321 | { | |
19322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19323 | (arg1)->SetData(arg2); | |
19324 | ||
19325 | wxPyEndAllowThreads(__tstate); | |
19326 | if (PyErr_Occurred()) SWIG_fail; | |
19327 | } | |
19328 | Py_INCREF(Py_None); resultobj = Py_None; | |
19329 | return resultobj; | |
19330 | fail: | |
19331 | return NULL; | |
19332 | } | |
19333 | ||
19334 | ||
19335 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19336 | PyObject *resultobj; | |
19337 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19338 | int arg2 ; | |
19339 | PyObject * obj0 = 0 ; | |
19340 | PyObject * obj1 = 0 ; | |
19341 | char *kwnames[] = { | |
19342 | (char *) "self",(char *) "width", NULL | |
19343 | }; | |
19344 | ||
19345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
19346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19348 | arg2 = (int) SWIG_AsInt(obj1); | |
19349 | if (PyErr_Occurred()) SWIG_fail; | |
19350 | { | |
19351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19352 | (arg1)->SetWidth(arg2); | |
19353 | ||
19354 | wxPyEndAllowThreads(__tstate); | |
19355 | if (PyErr_Occurred()) SWIG_fail; | |
19356 | } | |
19357 | Py_INCREF(Py_None); resultobj = Py_None; | |
19358 | return resultobj; | |
19359 | fail: | |
19360 | return NULL; | |
19361 | } | |
19362 | ||
19363 | ||
19364 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19365 | PyObject *resultobj; | |
19366 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19367 | int arg2 ; | |
19368 | PyObject * obj0 = 0 ; | |
19369 | PyObject * obj1 = 0 ; | |
19370 | char *kwnames[] = { | |
19371 | (char *) "self",(char *) "align", NULL | |
19372 | }; | |
19373 | ||
19374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
19375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19377 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
19378 | if (PyErr_Occurred()) SWIG_fail; | |
19379 | { | |
19380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19381 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
19382 | ||
19383 | wxPyEndAllowThreads(__tstate); | |
19384 | if (PyErr_Occurred()) SWIG_fail; | |
19385 | } | |
19386 | Py_INCREF(Py_None); resultobj = Py_None; | |
19387 | return resultobj; | |
19388 | fail: | |
19389 | return NULL; | |
19390 | } | |
19391 | ||
19392 | ||
19393 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19394 | PyObject *resultobj; | |
19395 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19396 | wxColour *arg2 = 0 ; | |
19397 | wxColour temp2 ; | |
19398 | PyObject * obj0 = 0 ; | |
19399 | PyObject * obj1 = 0 ; | |
19400 | char *kwnames[] = { | |
19401 | (char *) "self",(char *) "colText", NULL | |
19402 | }; | |
19403 | ||
19404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
19405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19407 | { | |
19408 | arg2 = &temp2; | |
19409 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19410 | } | |
19411 | { | |
19412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19413 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19414 | ||
19415 | wxPyEndAllowThreads(__tstate); | |
19416 | if (PyErr_Occurred()) SWIG_fail; | |
19417 | } | |
19418 | Py_INCREF(Py_None); resultobj = Py_None; | |
19419 | return resultobj; | |
19420 | fail: | |
19421 | return NULL; | |
19422 | } | |
19423 | ||
19424 | ||
19425 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19426 | PyObject *resultobj; | |
19427 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19428 | wxColour *arg2 = 0 ; | |
19429 | wxColour temp2 ; | |
19430 | PyObject * obj0 = 0 ; | |
19431 | PyObject * obj1 = 0 ; | |
19432 | char *kwnames[] = { | |
19433 | (char *) "self",(char *) "colBack", NULL | |
19434 | }; | |
19435 | ||
19436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19439 | { | |
19440 | arg2 = &temp2; | |
19441 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19442 | } | |
19443 | { | |
19444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19445 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19446 | ||
19447 | wxPyEndAllowThreads(__tstate); | |
19448 | if (PyErr_Occurred()) SWIG_fail; | |
19449 | } | |
19450 | Py_INCREF(Py_None); resultobj = Py_None; | |
19451 | return resultobj; | |
19452 | fail: | |
19453 | return NULL; | |
19454 | } | |
19455 | ||
19456 | ||
19457 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19458 | PyObject *resultobj; | |
19459 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19460 | wxFont *arg2 = 0 ; | |
19461 | PyObject * obj0 = 0 ; | |
19462 | PyObject * obj1 = 0 ; | |
19463 | char *kwnames[] = { | |
19464 | (char *) "self",(char *) "font", NULL | |
19465 | }; | |
19466 | ||
19467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
19468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19472 | SWIG_fail; | |
19473 | if (arg2 == NULL) { | |
19474 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19475 | SWIG_fail; | |
19476 | } | |
19477 | { | |
19478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19479 | (arg1)->SetFont((wxFont const &)*arg2); | |
19480 | ||
19481 | wxPyEndAllowThreads(__tstate); | |
19482 | if (PyErr_Occurred()) SWIG_fail; | |
19483 | } | |
19484 | Py_INCREF(Py_None); resultobj = Py_None; | |
19485 | return resultobj; | |
19486 | fail: | |
19487 | return NULL; | |
19488 | } | |
19489 | ||
19490 | ||
19491 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19492 | PyObject *resultobj; | |
19493 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19494 | long result; | |
19495 | PyObject * obj0 = 0 ; | |
19496 | char *kwnames[] = { | |
19497 | (char *) "self", NULL | |
19498 | }; | |
19499 | ||
19500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
19501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19503 | { | |
19504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19505 | result = (long)(arg1)->GetMask(); | |
19506 | ||
19507 | wxPyEndAllowThreads(__tstate); | |
19508 | if (PyErr_Occurred()) SWIG_fail; | |
19509 | } | |
19510 | resultobj = SWIG_FromLong((long)result); | |
19511 | return resultobj; | |
19512 | fail: | |
19513 | return NULL; | |
19514 | } | |
19515 | ||
19516 | ||
19517 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19518 | PyObject *resultobj; | |
19519 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19520 | long result; | |
19521 | PyObject * obj0 = 0 ; | |
19522 | char *kwnames[] = { | |
19523 | (char *) "self", NULL | |
19524 | }; | |
19525 | ||
19526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
19527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19529 | { | |
19530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19531 | result = (long)(arg1)->GetId(); | |
19532 | ||
19533 | wxPyEndAllowThreads(__tstate); | |
19534 | if (PyErr_Occurred()) SWIG_fail; | |
19535 | } | |
19536 | resultobj = SWIG_FromLong((long)result); | |
19537 | return resultobj; | |
19538 | fail: | |
19539 | return NULL; | |
19540 | } | |
19541 | ||
19542 | ||
19543 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19544 | PyObject *resultobj; | |
19545 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19546 | int result; | |
19547 | PyObject * obj0 = 0 ; | |
19548 | char *kwnames[] = { | |
19549 | (char *) "self", NULL | |
19550 | }; | |
19551 | ||
19552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
19553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19555 | { | |
19556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19557 | result = (int)(arg1)->GetColumn(); | |
19558 | ||
19559 | wxPyEndAllowThreads(__tstate); | |
19560 | if (PyErr_Occurred()) SWIG_fail; | |
19561 | } | |
19562 | resultobj = SWIG_FromInt((int)result); | |
19563 | return resultobj; | |
19564 | fail: | |
19565 | return NULL; | |
19566 | } | |
19567 | ||
19568 | ||
19569 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19570 | PyObject *resultobj; | |
19571 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19572 | long result; | |
19573 | PyObject * obj0 = 0 ; | |
19574 | char *kwnames[] = { | |
19575 | (char *) "self", NULL | |
19576 | }; | |
19577 | ||
19578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
19579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19581 | { | |
19582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19583 | result = (long)(arg1)->GetState(); | |
19584 | ||
19585 | wxPyEndAllowThreads(__tstate); | |
19586 | if (PyErr_Occurred()) SWIG_fail; | |
19587 | } | |
19588 | resultobj = SWIG_FromLong((long)result); | |
19589 | return resultobj; | |
19590 | fail: | |
19591 | return NULL; | |
19592 | } | |
19593 | ||
19594 | ||
19595 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19596 | PyObject *resultobj; | |
19597 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19598 | wxString *result; | |
19599 | PyObject * obj0 = 0 ; | |
19600 | char *kwnames[] = { | |
19601 | (char *) "self", NULL | |
19602 | }; | |
19603 | ||
19604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
19605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19607 | { | |
19608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19609 | { | |
19610 | wxString const &_result_ref = (arg1)->GetText(); | |
19611 | result = (wxString *) &_result_ref; | |
19612 | } | |
19613 | ||
19614 | wxPyEndAllowThreads(__tstate); | |
19615 | if (PyErr_Occurred()) SWIG_fail; | |
19616 | } | |
19617 | { | |
19618 | #if wxUSE_UNICODE | |
19619 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19620 | #else | |
19621 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19622 | #endif | |
19623 | } | |
19624 | return resultobj; | |
19625 | fail: | |
19626 | return NULL; | |
19627 | } | |
19628 | ||
19629 | ||
19630 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19631 | PyObject *resultobj; | |
19632 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19633 | int result; | |
19634 | PyObject * obj0 = 0 ; | |
19635 | char *kwnames[] = { | |
19636 | (char *) "self", NULL | |
19637 | }; | |
19638 | ||
19639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
19640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19642 | { | |
19643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19644 | result = (int)(arg1)->GetImage(); | |
19645 | ||
19646 | wxPyEndAllowThreads(__tstate); | |
19647 | if (PyErr_Occurred()) SWIG_fail; | |
19648 | } | |
19649 | resultobj = SWIG_FromInt((int)result); | |
19650 | return resultobj; | |
19651 | fail: | |
19652 | return NULL; | |
19653 | } | |
19654 | ||
19655 | ||
19656 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19657 | PyObject *resultobj; | |
19658 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19659 | long result; | |
19660 | PyObject * obj0 = 0 ; | |
19661 | char *kwnames[] = { | |
19662 | (char *) "self", NULL | |
19663 | }; | |
19664 | ||
19665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
19666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19668 | { | |
19669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19670 | result = (long)(arg1)->GetData(); | |
19671 | ||
19672 | wxPyEndAllowThreads(__tstate); | |
19673 | if (PyErr_Occurred()) SWIG_fail; | |
19674 | } | |
19675 | resultobj = SWIG_FromLong((long)result); | |
19676 | return resultobj; | |
19677 | fail: | |
19678 | return NULL; | |
19679 | } | |
19680 | ||
19681 | ||
19682 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19683 | PyObject *resultobj; | |
19684 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19685 | int result; | |
19686 | PyObject * obj0 = 0 ; | |
19687 | char *kwnames[] = { | |
19688 | (char *) "self", NULL | |
19689 | }; | |
19690 | ||
19691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
19692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19694 | { | |
19695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19696 | result = (int)(arg1)->GetWidth(); | |
19697 | ||
19698 | wxPyEndAllowThreads(__tstate); | |
19699 | if (PyErr_Occurred()) SWIG_fail; | |
19700 | } | |
19701 | resultobj = SWIG_FromInt((int)result); | |
19702 | return resultobj; | |
19703 | fail: | |
19704 | return NULL; | |
19705 | } | |
19706 | ||
19707 | ||
19708 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19709 | PyObject *resultobj; | |
19710 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19711 | int result; | |
19712 | PyObject * obj0 = 0 ; | |
19713 | char *kwnames[] = { | |
19714 | (char *) "self", NULL | |
19715 | }; | |
19716 | ||
19717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
19718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19720 | { | |
19721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19722 | result = (int)(arg1)->GetAlign(); | |
19723 | ||
19724 | wxPyEndAllowThreads(__tstate); | |
19725 | if (PyErr_Occurred()) SWIG_fail; | |
19726 | } | |
19727 | resultobj = SWIG_FromInt((int)result); | |
19728 | return resultobj; | |
19729 | fail: | |
19730 | return NULL; | |
19731 | } | |
19732 | ||
19733 | ||
19734 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19735 | PyObject *resultobj; | |
19736 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19737 | wxListItemAttr *result; | |
19738 | PyObject * obj0 = 0 ; | |
19739 | char *kwnames[] = { | |
19740 | (char *) "self", NULL | |
19741 | }; | |
19742 | ||
19743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
19744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19746 | { | |
19747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19748 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
19749 | ||
19750 | wxPyEndAllowThreads(__tstate); | |
19751 | if (PyErr_Occurred()) SWIG_fail; | |
19752 | } | |
19753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); | |
19754 | return resultobj; | |
19755 | fail: | |
19756 | return NULL; | |
19757 | } | |
19758 | ||
19759 | ||
19760 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19761 | PyObject *resultobj; | |
19762 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19763 | bool result; | |
19764 | PyObject * obj0 = 0 ; | |
19765 | char *kwnames[] = { | |
19766 | (char *) "self", NULL | |
19767 | }; | |
19768 | ||
19769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
19770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19772 | { | |
19773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19774 | result = (bool)(arg1)->HasAttributes(); | |
19775 | ||
19776 | wxPyEndAllowThreads(__tstate); | |
19777 | if (PyErr_Occurred()) SWIG_fail; | |
19778 | } | |
19779 | { | |
19780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19781 | } | |
19782 | return resultobj; | |
19783 | fail: | |
19784 | return NULL; | |
19785 | } | |
19786 | ||
19787 | ||
19788 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19789 | PyObject *resultobj; | |
19790 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19791 | wxColour result; | |
19792 | PyObject * obj0 = 0 ; | |
19793 | char *kwnames[] = { | |
19794 | (char *) "self", NULL | |
19795 | }; | |
19796 | ||
19797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
19798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19800 | { | |
19801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19802 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19803 | ||
19804 | wxPyEndAllowThreads(__tstate); | |
19805 | if (PyErr_Occurred()) SWIG_fail; | |
19806 | } | |
19807 | { | |
19808 | wxColour * resultptr; | |
19809 | resultptr = new wxColour((wxColour &) result); | |
19810 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19811 | } | |
19812 | return resultobj; | |
19813 | fail: | |
19814 | return NULL; | |
19815 | } | |
19816 | ||
19817 | ||
19818 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19819 | PyObject *resultobj; | |
19820 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19821 | wxColour result; | |
19822 | PyObject * obj0 = 0 ; | |
19823 | char *kwnames[] = { | |
19824 | (char *) "self", NULL | |
19825 | }; | |
19826 | ||
19827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
19828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19830 | { | |
19831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19832 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
19833 | ||
19834 | wxPyEndAllowThreads(__tstate); | |
19835 | if (PyErr_Occurred()) SWIG_fail; | |
19836 | } | |
19837 | { | |
19838 | wxColour * resultptr; | |
19839 | resultptr = new wxColour((wxColour &) result); | |
19840 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19841 | } | |
19842 | return resultobj; | |
19843 | fail: | |
19844 | return NULL; | |
19845 | } | |
19846 | ||
19847 | ||
19848 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19849 | PyObject *resultobj; | |
19850 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19851 | wxFont result; | |
19852 | PyObject * obj0 = 0 ; | |
19853 | char *kwnames[] = { | |
19854 | (char *) "self", NULL | |
19855 | }; | |
19856 | ||
19857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
19858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19860 | { | |
19861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19862 | result = ((wxListItem const *)arg1)->GetFont(); | |
19863 | ||
19864 | wxPyEndAllowThreads(__tstate); | |
19865 | if (PyErr_Occurred()) SWIG_fail; | |
19866 | } | |
19867 | { | |
19868 | wxFont * resultptr; | |
19869 | resultptr = new wxFont((wxFont &) result); | |
19870 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
19871 | } | |
19872 | return resultobj; | |
19873 | fail: | |
19874 | return NULL; | |
19875 | } | |
19876 | ||
19877 | ||
19878 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19879 | PyObject *resultobj; | |
19880 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19881 | long arg2 ; | |
19882 | PyObject * obj0 = 0 ; | |
19883 | PyObject * obj1 = 0 ; | |
19884 | char *kwnames[] = { | |
19885 | (char *) "self",(char *) "m_mask", NULL | |
19886 | }; | |
19887 | ||
19888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
19889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19891 | arg2 = (long) SWIG_AsLong(obj1); | |
19892 | if (PyErr_Occurred()) SWIG_fail; | |
19893 | if (arg1) (arg1)->m_mask = arg2; | |
19894 | ||
19895 | Py_INCREF(Py_None); resultobj = Py_None; | |
19896 | return resultobj; | |
19897 | fail: | |
19898 | return NULL; | |
19899 | } | |
19900 | ||
19901 | ||
19902 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19903 | PyObject *resultobj; | |
19904 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19905 | long result; | |
19906 | PyObject * obj0 = 0 ; | |
19907 | char *kwnames[] = { | |
19908 | (char *) "self", NULL | |
19909 | }; | |
19910 | ||
19911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
19912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19914 | result = (long) ((arg1)->m_mask); | |
19915 | ||
19916 | resultobj = SWIG_FromLong((long)result); | |
19917 | return resultobj; | |
19918 | fail: | |
19919 | return NULL; | |
19920 | } | |
19921 | ||
19922 | ||
19923 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19924 | PyObject *resultobj; | |
19925 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19926 | long arg2 ; | |
19927 | PyObject * obj0 = 0 ; | |
19928 | PyObject * obj1 = 0 ; | |
19929 | char *kwnames[] = { | |
19930 | (char *) "self",(char *) "m_itemId", NULL | |
19931 | }; | |
19932 | ||
19933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
19934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19936 | arg2 = (long) SWIG_AsLong(obj1); | |
19937 | if (PyErr_Occurred()) SWIG_fail; | |
19938 | if (arg1) (arg1)->m_itemId = arg2; | |
19939 | ||
19940 | Py_INCREF(Py_None); resultobj = Py_None; | |
19941 | return resultobj; | |
19942 | fail: | |
19943 | return NULL; | |
19944 | } | |
19945 | ||
19946 | ||
19947 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19948 | PyObject *resultobj; | |
19949 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19950 | long result; | |
19951 | PyObject * obj0 = 0 ; | |
19952 | char *kwnames[] = { | |
19953 | (char *) "self", NULL | |
19954 | }; | |
19955 | ||
19956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
19957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19959 | result = (long) ((arg1)->m_itemId); | |
19960 | ||
19961 | resultobj = SWIG_FromLong((long)result); | |
19962 | return resultobj; | |
19963 | fail: | |
19964 | return NULL; | |
19965 | } | |
19966 | ||
19967 | ||
19968 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19969 | PyObject *resultobj; | |
19970 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19971 | int arg2 ; | |
19972 | PyObject * obj0 = 0 ; | |
19973 | PyObject * obj1 = 0 ; | |
19974 | char *kwnames[] = { | |
19975 | (char *) "self",(char *) "m_col", NULL | |
19976 | }; | |
19977 | ||
19978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
19979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19981 | arg2 = (int) SWIG_AsInt(obj1); | |
19982 | if (PyErr_Occurred()) SWIG_fail; | |
19983 | if (arg1) (arg1)->m_col = arg2; | |
19984 | ||
19985 | Py_INCREF(Py_None); resultobj = Py_None; | |
19986 | return resultobj; | |
19987 | fail: | |
19988 | return NULL; | |
19989 | } | |
19990 | ||
19991 | ||
19992 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19993 | PyObject *resultobj; | |
19994 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19995 | int result; | |
19996 | PyObject * obj0 = 0 ; | |
19997 | char *kwnames[] = { | |
19998 | (char *) "self", NULL | |
19999 | }; | |
20000 | ||
20001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
20002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20004 | result = (int) ((arg1)->m_col); | |
20005 | ||
20006 | resultobj = SWIG_FromInt((int)result); | |
20007 | return resultobj; | |
20008 | fail: | |
20009 | return NULL; | |
20010 | } | |
20011 | ||
20012 | ||
20013 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20014 | PyObject *resultobj; | |
20015 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20016 | long arg2 ; | |
20017 | PyObject * obj0 = 0 ; | |
20018 | PyObject * obj1 = 0 ; | |
20019 | char *kwnames[] = { | |
20020 | (char *) "self",(char *) "m_state", NULL | |
20021 | }; | |
20022 | ||
20023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
20024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20026 | arg2 = (long) SWIG_AsLong(obj1); | |
20027 | if (PyErr_Occurred()) SWIG_fail; | |
20028 | if (arg1) (arg1)->m_state = arg2; | |
20029 | ||
20030 | Py_INCREF(Py_None); resultobj = Py_None; | |
20031 | return resultobj; | |
20032 | fail: | |
20033 | return NULL; | |
20034 | } | |
20035 | ||
20036 | ||
20037 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20038 | PyObject *resultobj; | |
20039 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20040 | long result; | |
20041 | PyObject * obj0 = 0 ; | |
20042 | char *kwnames[] = { | |
20043 | (char *) "self", NULL | |
20044 | }; | |
20045 | ||
20046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
20047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20049 | result = (long) ((arg1)->m_state); | |
20050 | ||
20051 | resultobj = SWIG_FromLong((long)result); | |
20052 | return resultobj; | |
20053 | fail: | |
20054 | return NULL; | |
20055 | } | |
20056 | ||
20057 | ||
20058 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20059 | PyObject *resultobj; | |
20060 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20061 | long arg2 ; | |
20062 | PyObject * obj0 = 0 ; | |
20063 | PyObject * obj1 = 0 ; | |
20064 | char *kwnames[] = { | |
20065 | (char *) "self",(char *) "m_stateMask", NULL | |
20066 | }; | |
20067 | ||
20068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
20069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20071 | arg2 = (long) SWIG_AsLong(obj1); | |
20072 | if (PyErr_Occurred()) SWIG_fail; | |
20073 | if (arg1) (arg1)->m_stateMask = arg2; | |
20074 | ||
20075 | Py_INCREF(Py_None); resultobj = Py_None; | |
20076 | return resultobj; | |
20077 | fail: | |
20078 | return NULL; | |
20079 | } | |
20080 | ||
20081 | ||
20082 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20083 | PyObject *resultobj; | |
20084 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20085 | long result; | |
20086 | PyObject * obj0 = 0 ; | |
20087 | char *kwnames[] = { | |
20088 | (char *) "self", NULL | |
20089 | }; | |
20090 | ||
20091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
20092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20094 | result = (long) ((arg1)->m_stateMask); | |
20095 | ||
20096 | resultobj = SWIG_FromLong((long)result); | |
20097 | return resultobj; | |
20098 | fail: | |
20099 | return NULL; | |
20100 | } | |
20101 | ||
20102 | ||
20103 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20104 | PyObject *resultobj; | |
20105 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20106 | wxString *arg2 = (wxString *) 0 ; | |
20107 | bool temp2 = False ; | |
20108 | PyObject * obj0 = 0 ; | |
20109 | PyObject * obj1 = 0 ; | |
20110 | char *kwnames[] = { | |
20111 | (char *) "self",(char *) "m_text", NULL | |
20112 | }; | |
20113 | ||
20114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
20115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20117 | { | |
20118 | arg2 = wxString_in_helper(obj1); | |
20119 | if (arg2 == NULL) SWIG_fail; | |
20120 | temp2 = True; | |
20121 | } | |
20122 | if (arg1) (arg1)->m_text = *arg2; | |
20123 | ||
20124 | Py_INCREF(Py_None); resultobj = Py_None; | |
20125 | { | |
20126 | if (temp2) | |
20127 | delete arg2; | |
20128 | } | |
20129 | return resultobj; | |
20130 | fail: | |
20131 | { | |
20132 | if (temp2) | |
20133 | delete arg2; | |
20134 | } | |
20135 | return NULL; | |
20136 | } | |
20137 | ||
20138 | ||
20139 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20140 | PyObject *resultobj; | |
20141 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20142 | wxString *result; | |
20143 | PyObject * obj0 = 0 ; | |
20144 | char *kwnames[] = { | |
20145 | (char *) "self", NULL | |
20146 | }; | |
20147 | ||
20148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
20149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20151 | result = (wxString *)& ((arg1)->m_text); | |
20152 | ||
20153 | { | |
20154 | #if wxUSE_UNICODE | |
20155 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20156 | #else | |
20157 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20158 | #endif | |
20159 | } | |
20160 | return resultobj; | |
20161 | fail: | |
20162 | return NULL; | |
20163 | } | |
20164 | ||
20165 | ||
20166 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20167 | PyObject *resultobj; | |
20168 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20169 | int arg2 ; | |
20170 | PyObject * obj0 = 0 ; | |
20171 | PyObject * obj1 = 0 ; | |
20172 | char *kwnames[] = { | |
20173 | (char *) "self",(char *) "m_image", NULL | |
20174 | }; | |
20175 | ||
20176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
20177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20179 | arg2 = (int) SWIG_AsInt(obj1); | |
20180 | if (PyErr_Occurred()) SWIG_fail; | |
20181 | if (arg1) (arg1)->m_image = arg2; | |
20182 | ||
20183 | Py_INCREF(Py_None); resultobj = Py_None; | |
20184 | return resultobj; | |
20185 | fail: | |
20186 | return NULL; | |
20187 | } | |
20188 | ||
20189 | ||
20190 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20191 | PyObject *resultobj; | |
20192 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20193 | int result; | |
20194 | PyObject * obj0 = 0 ; | |
20195 | char *kwnames[] = { | |
20196 | (char *) "self", NULL | |
20197 | }; | |
20198 | ||
20199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
20200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20202 | result = (int) ((arg1)->m_image); | |
20203 | ||
20204 | resultobj = SWIG_FromInt((int)result); | |
20205 | return resultobj; | |
20206 | fail: | |
20207 | return NULL; | |
20208 | } | |
20209 | ||
20210 | ||
20211 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20212 | PyObject *resultobj; | |
20213 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20214 | long arg2 ; | |
20215 | PyObject * obj0 = 0 ; | |
20216 | PyObject * obj1 = 0 ; | |
20217 | char *kwnames[] = { | |
20218 | (char *) "self",(char *) "m_data", NULL | |
20219 | }; | |
20220 | ||
20221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
20222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20224 | arg2 = (long) SWIG_AsLong(obj1); | |
20225 | if (PyErr_Occurred()) SWIG_fail; | |
20226 | if (arg1) (arg1)->m_data = arg2; | |
20227 | ||
20228 | Py_INCREF(Py_None); resultobj = Py_None; | |
20229 | return resultobj; | |
20230 | fail: | |
20231 | return NULL; | |
20232 | } | |
20233 | ||
20234 | ||
20235 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20236 | PyObject *resultobj; | |
20237 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20238 | long result; | |
20239 | PyObject * obj0 = 0 ; | |
20240 | char *kwnames[] = { | |
20241 | (char *) "self", NULL | |
20242 | }; | |
20243 | ||
20244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
20245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20247 | result = (long) ((arg1)->m_data); | |
20248 | ||
20249 | resultobj = SWIG_FromLong((long)result); | |
20250 | return resultobj; | |
20251 | fail: | |
20252 | return NULL; | |
20253 | } | |
20254 | ||
20255 | ||
20256 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20257 | PyObject *resultobj; | |
20258 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20259 | int arg2 ; | |
20260 | PyObject * obj0 = 0 ; | |
20261 | PyObject * obj1 = 0 ; | |
20262 | char *kwnames[] = { | |
20263 | (char *) "self",(char *) "m_format", NULL | |
20264 | }; | |
20265 | ||
20266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
20267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20269 | arg2 = (int) SWIG_AsInt(obj1); | |
20270 | if (PyErr_Occurred()) SWIG_fail; | |
20271 | if (arg1) (arg1)->m_format = arg2; | |
20272 | ||
20273 | Py_INCREF(Py_None); resultobj = Py_None; | |
20274 | return resultobj; | |
20275 | fail: | |
20276 | return NULL; | |
20277 | } | |
20278 | ||
20279 | ||
20280 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20281 | PyObject *resultobj; | |
20282 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20283 | int result; | |
20284 | PyObject * obj0 = 0 ; | |
20285 | char *kwnames[] = { | |
20286 | (char *) "self", NULL | |
20287 | }; | |
20288 | ||
20289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
20290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20292 | result = (int) ((arg1)->m_format); | |
20293 | ||
20294 | resultobj = SWIG_FromInt((int)result); | |
20295 | return resultobj; | |
20296 | fail: | |
20297 | return NULL; | |
20298 | } | |
20299 | ||
20300 | ||
20301 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20302 | PyObject *resultobj; | |
20303 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20304 | int arg2 ; | |
20305 | PyObject * obj0 = 0 ; | |
20306 | PyObject * obj1 = 0 ; | |
20307 | char *kwnames[] = { | |
20308 | (char *) "self",(char *) "m_width", NULL | |
20309 | }; | |
20310 | ||
20311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
20312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20314 | arg2 = (int) SWIG_AsInt(obj1); | |
20315 | if (PyErr_Occurred()) SWIG_fail; | |
20316 | if (arg1) (arg1)->m_width = arg2; | |
20317 | ||
20318 | Py_INCREF(Py_None); resultobj = Py_None; | |
20319 | return resultobj; | |
20320 | fail: | |
20321 | return NULL; | |
20322 | } | |
20323 | ||
20324 | ||
20325 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20326 | PyObject *resultobj; | |
20327 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20328 | int result; | |
20329 | PyObject * obj0 = 0 ; | |
20330 | char *kwnames[] = { | |
20331 | (char *) "self", NULL | |
20332 | }; | |
20333 | ||
20334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
20335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20337 | result = (int) ((arg1)->m_width); | |
20338 | ||
20339 | resultobj = SWIG_FromInt((int)result); | |
20340 | return resultobj; | |
20341 | fail: | |
20342 | return NULL; | |
20343 | } | |
20344 | ||
20345 | ||
20346 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
20347 | PyObject *obj; | |
20348 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20349 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
20350 | Py_INCREF(obj); | |
20351 | return Py_BuildValue((char *)""); | |
20352 | } | |
20353 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20354 | PyObject *resultobj; | |
20355 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20356 | int arg2 = (int) 0 ; | |
20357 | wxListEvent *result; | |
20358 | PyObject * obj0 = 0 ; | |
20359 | PyObject * obj1 = 0 ; | |
20360 | char *kwnames[] = { | |
20361 | (char *) "commandType",(char *) "id", NULL | |
20362 | }; | |
20363 | ||
20364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
20365 | if (obj0) { | |
20366 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
20367 | if (PyErr_Occurred()) SWIG_fail; | |
20368 | } | |
20369 | if (obj1) { | |
20370 | arg2 = (int) SWIG_AsInt(obj1); | |
20371 | if (PyErr_Occurred()) SWIG_fail; | |
20372 | } | |
20373 | { | |
20374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20375 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
20376 | ||
20377 | wxPyEndAllowThreads(__tstate); | |
20378 | if (PyErr_Occurred()) SWIG_fail; | |
20379 | } | |
20380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); | |
20381 | return resultobj; | |
20382 | fail: | |
20383 | return NULL; | |
20384 | } | |
20385 | ||
20386 | ||
20387 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20388 | PyObject *resultobj; | |
20389 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20390 | int arg2 ; | |
20391 | PyObject * obj0 = 0 ; | |
20392 | PyObject * obj1 = 0 ; | |
20393 | char *kwnames[] = { | |
20394 | (char *) "self",(char *) "m_code", NULL | |
20395 | }; | |
20396 | ||
20397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
20398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20400 | arg2 = (int) SWIG_AsInt(obj1); | |
20401 | if (PyErr_Occurred()) SWIG_fail; | |
20402 | if (arg1) (arg1)->m_code = arg2; | |
20403 | ||
20404 | Py_INCREF(Py_None); resultobj = Py_None; | |
20405 | return resultobj; | |
20406 | fail: | |
20407 | return NULL; | |
20408 | } | |
20409 | ||
20410 | ||
20411 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20412 | PyObject *resultobj; | |
20413 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20414 | int result; | |
20415 | PyObject * obj0 = 0 ; | |
20416 | char *kwnames[] = { | |
20417 | (char *) "self", NULL | |
20418 | }; | |
20419 | ||
20420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
20421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20423 | result = (int) ((arg1)->m_code); | |
20424 | ||
20425 | resultobj = SWIG_FromInt((int)result); | |
20426 | return resultobj; | |
20427 | fail: | |
20428 | return NULL; | |
20429 | } | |
20430 | ||
20431 | ||
20432 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20433 | PyObject *resultobj; | |
20434 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20435 | long arg2 ; | |
20436 | PyObject * obj0 = 0 ; | |
20437 | PyObject * obj1 = 0 ; | |
20438 | char *kwnames[] = { | |
20439 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
20440 | }; | |
20441 | ||
20442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
20443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20445 | arg2 = (long) SWIG_AsLong(obj1); | |
20446 | if (PyErr_Occurred()) SWIG_fail; | |
20447 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
20448 | ||
20449 | Py_INCREF(Py_None); resultobj = Py_None; | |
20450 | return resultobj; | |
20451 | fail: | |
20452 | return NULL; | |
20453 | } | |
20454 | ||
20455 | ||
20456 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20457 | PyObject *resultobj; | |
20458 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20459 | long result; | |
20460 | PyObject * obj0 = 0 ; | |
20461 | char *kwnames[] = { | |
20462 | (char *) "self", NULL | |
20463 | }; | |
20464 | ||
20465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
20466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20468 | result = (long) ((arg1)->m_oldItemIndex); | |
20469 | ||
20470 | resultobj = SWIG_FromLong((long)result); | |
20471 | return resultobj; | |
20472 | fail: | |
20473 | return NULL; | |
20474 | } | |
20475 | ||
20476 | ||
20477 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20478 | PyObject *resultobj; | |
20479 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20480 | long arg2 ; | |
20481 | PyObject * obj0 = 0 ; | |
20482 | PyObject * obj1 = 0 ; | |
20483 | char *kwnames[] = { | |
20484 | (char *) "self",(char *) "m_itemIndex", NULL | |
20485 | }; | |
20486 | ||
20487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
20488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20490 | arg2 = (long) SWIG_AsLong(obj1); | |
20491 | if (PyErr_Occurred()) SWIG_fail; | |
20492 | if (arg1) (arg1)->m_itemIndex = arg2; | |
20493 | ||
20494 | Py_INCREF(Py_None); resultobj = Py_None; | |
20495 | return resultobj; | |
20496 | fail: | |
20497 | return NULL; | |
20498 | } | |
20499 | ||
20500 | ||
20501 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20502 | PyObject *resultobj; | |
20503 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20504 | long result; | |
20505 | PyObject * obj0 = 0 ; | |
20506 | char *kwnames[] = { | |
20507 | (char *) "self", NULL | |
20508 | }; | |
20509 | ||
20510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
20511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20513 | result = (long) ((arg1)->m_itemIndex); | |
20514 | ||
20515 | resultobj = SWIG_FromLong((long)result); | |
20516 | return resultobj; | |
20517 | fail: | |
20518 | return NULL; | |
20519 | } | |
20520 | ||
20521 | ||
20522 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20523 | PyObject *resultobj; | |
20524 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20525 | int arg2 ; | |
20526 | PyObject * obj0 = 0 ; | |
20527 | PyObject * obj1 = 0 ; | |
20528 | char *kwnames[] = { | |
20529 | (char *) "self",(char *) "m_col", NULL | |
20530 | }; | |
20531 | ||
20532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
20533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20535 | arg2 = (int) SWIG_AsInt(obj1); | |
20536 | if (PyErr_Occurred()) SWIG_fail; | |
20537 | if (arg1) (arg1)->m_col = arg2; | |
20538 | ||
20539 | Py_INCREF(Py_None); resultobj = Py_None; | |
20540 | return resultobj; | |
20541 | fail: | |
20542 | return NULL; | |
20543 | } | |
20544 | ||
20545 | ||
20546 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20547 | PyObject *resultobj; | |
20548 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20549 | int result; | |
20550 | PyObject * obj0 = 0 ; | |
20551 | char *kwnames[] = { | |
20552 | (char *) "self", NULL | |
20553 | }; | |
20554 | ||
20555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
20556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20558 | result = (int) ((arg1)->m_col); | |
20559 | ||
20560 | resultobj = SWIG_FromInt((int)result); | |
20561 | return resultobj; | |
20562 | fail: | |
20563 | return NULL; | |
20564 | } | |
20565 | ||
20566 | ||
20567 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20568 | PyObject *resultobj; | |
20569 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20570 | wxPoint *arg2 = (wxPoint *) 0 ; | |
20571 | PyObject * obj0 = 0 ; | |
20572 | PyObject * obj1 = 0 ; | |
20573 | char *kwnames[] = { | |
20574 | (char *) "self",(char *) "m_pointDrag", NULL | |
20575 | }; | |
20576 | ||
20577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
20578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20580 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
20581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20582 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
20583 | ||
20584 | Py_INCREF(Py_None); resultobj = Py_None; | |
20585 | return resultobj; | |
20586 | fail: | |
20587 | return NULL; | |
20588 | } | |
20589 | ||
20590 | ||
20591 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20592 | PyObject *resultobj; | |
20593 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20594 | wxPoint *result; | |
20595 | PyObject * obj0 = 0 ; | |
20596 | char *kwnames[] = { | |
20597 | (char *) "self", NULL | |
20598 | }; | |
20599 | ||
20600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
20601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20603 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
20604 | ||
20605 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
20606 | return resultobj; | |
20607 | fail: | |
20608 | return NULL; | |
20609 | } | |
20610 | ||
20611 | ||
20612 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20613 | PyObject *resultobj; | |
20614 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20615 | wxListItem *result; | |
20616 | PyObject * obj0 = 0 ; | |
20617 | char *kwnames[] = { | |
20618 | (char *) "self", NULL | |
20619 | }; | |
20620 | ||
20621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
20622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20624 | result = (wxListItem *)& ((arg1)->m_item); | |
20625 | ||
20626 | { | |
412d302d | 20627 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20628 | } |
20629 | return resultobj; | |
20630 | fail: | |
20631 | return NULL; | |
20632 | } | |
20633 | ||
20634 | ||
20635 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20636 | PyObject *resultobj; | |
20637 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20638 | int result; | |
20639 | PyObject * obj0 = 0 ; | |
20640 | char *kwnames[] = { | |
20641 | (char *) "self", NULL | |
20642 | }; | |
20643 | ||
20644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
20645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20647 | { | |
20648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20649 | result = (int)(arg1)->GetKeyCode(); | |
20650 | ||
20651 | wxPyEndAllowThreads(__tstate); | |
20652 | if (PyErr_Occurred()) SWIG_fail; | |
20653 | } | |
20654 | resultobj = SWIG_FromInt((int)result); | |
20655 | return resultobj; | |
20656 | fail: | |
20657 | return NULL; | |
20658 | } | |
20659 | ||
20660 | ||
20661 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20662 | PyObject *resultobj; | |
20663 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20664 | long result; | |
20665 | PyObject * obj0 = 0 ; | |
20666 | char *kwnames[] = { | |
20667 | (char *) "self", NULL | |
20668 | }; | |
20669 | ||
20670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
20671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20673 | { | |
20674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20675 | result = (long)(arg1)->GetIndex(); | |
20676 | ||
20677 | wxPyEndAllowThreads(__tstate); | |
20678 | if (PyErr_Occurred()) SWIG_fail; | |
20679 | } | |
20680 | resultobj = SWIG_FromLong((long)result); | |
20681 | return resultobj; | |
20682 | fail: | |
20683 | return NULL; | |
20684 | } | |
20685 | ||
20686 | ||
20687 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20688 | PyObject *resultobj; | |
20689 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20690 | int result; | |
20691 | PyObject * obj0 = 0 ; | |
20692 | char *kwnames[] = { | |
20693 | (char *) "self", NULL | |
20694 | }; | |
20695 | ||
20696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
20697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20699 | { | |
20700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20701 | result = (int)(arg1)->GetColumn(); | |
20702 | ||
20703 | wxPyEndAllowThreads(__tstate); | |
20704 | if (PyErr_Occurred()) SWIG_fail; | |
20705 | } | |
20706 | resultobj = SWIG_FromInt((int)result); | |
20707 | return resultobj; | |
20708 | fail: | |
20709 | return NULL; | |
20710 | } | |
20711 | ||
20712 | ||
20713 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20714 | PyObject *resultobj; | |
20715 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20716 | wxPoint result; | |
20717 | PyObject * obj0 = 0 ; | |
20718 | char *kwnames[] = { | |
20719 | (char *) "self", NULL | |
20720 | }; | |
20721 | ||
20722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
20723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20725 | { | |
20726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20727 | result = (arg1)->GetPoint(); | |
20728 | ||
20729 | wxPyEndAllowThreads(__tstate); | |
20730 | if (PyErr_Occurred()) SWIG_fail; | |
20731 | } | |
20732 | { | |
20733 | wxPoint * resultptr; | |
20734 | resultptr = new wxPoint((wxPoint &) result); | |
20735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20736 | } | |
20737 | return resultobj; | |
20738 | fail: | |
20739 | return NULL; | |
20740 | } | |
20741 | ||
20742 | ||
20743 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20744 | PyObject *resultobj; | |
20745 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20746 | wxString *result; | |
20747 | PyObject * obj0 = 0 ; | |
20748 | char *kwnames[] = { | |
20749 | (char *) "self", NULL | |
20750 | }; | |
20751 | ||
20752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
20753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20755 | { | |
20756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20757 | { | |
20758 | wxString const &_result_ref = (arg1)->GetLabel(); | |
20759 | result = (wxString *) &_result_ref; | |
20760 | } | |
20761 | ||
20762 | wxPyEndAllowThreads(__tstate); | |
20763 | if (PyErr_Occurred()) SWIG_fail; | |
20764 | } | |
20765 | { | |
20766 | #if wxUSE_UNICODE | |
20767 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20768 | #else | |
20769 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20770 | #endif | |
20771 | } | |
20772 | return resultobj; | |
20773 | fail: | |
20774 | return NULL; | |
20775 | } | |
20776 | ||
20777 | ||
20778 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20779 | PyObject *resultobj; | |
20780 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20781 | wxString *result; | |
20782 | PyObject * obj0 = 0 ; | |
20783 | char *kwnames[] = { | |
20784 | (char *) "self", NULL | |
20785 | }; | |
20786 | ||
20787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
20788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20790 | { | |
20791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20792 | { | |
20793 | wxString const &_result_ref = (arg1)->GetText(); | |
20794 | result = (wxString *) &_result_ref; | |
20795 | } | |
20796 | ||
20797 | wxPyEndAllowThreads(__tstate); | |
20798 | if (PyErr_Occurred()) SWIG_fail; | |
20799 | } | |
20800 | { | |
20801 | #if wxUSE_UNICODE | |
20802 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20803 | #else | |
20804 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20805 | #endif | |
20806 | } | |
20807 | return resultobj; | |
20808 | fail: | |
20809 | return NULL; | |
20810 | } | |
20811 | ||
20812 | ||
20813 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20814 | PyObject *resultobj; | |
20815 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20816 | int result; | |
20817 | PyObject * obj0 = 0 ; | |
20818 | char *kwnames[] = { | |
20819 | (char *) "self", NULL | |
20820 | }; | |
20821 | ||
20822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
20823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20825 | { | |
20826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20827 | result = (int)(arg1)->GetImage(); | |
20828 | ||
20829 | wxPyEndAllowThreads(__tstate); | |
20830 | if (PyErr_Occurred()) SWIG_fail; | |
20831 | } | |
20832 | resultobj = SWIG_FromInt((int)result); | |
20833 | return resultobj; | |
20834 | fail: | |
20835 | return NULL; | |
20836 | } | |
20837 | ||
20838 | ||
20839 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20840 | PyObject *resultobj; | |
20841 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20842 | long result; | |
20843 | PyObject * obj0 = 0 ; | |
20844 | char *kwnames[] = { | |
20845 | (char *) "self", NULL | |
20846 | }; | |
20847 | ||
20848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
20849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20851 | { | |
20852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20853 | result = (long)(arg1)->GetData(); | |
20854 | ||
20855 | wxPyEndAllowThreads(__tstate); | |
20856 | if (PyErr_Occurred()) SWIG_fail; | |
20857 | } | |
20858 | resultobj = SWIG_FromLong((long)result); | |
20859 | return resultobj; | |
20860 | fail: | |
20861 | return NULL; | |
20862 | } | |
20863 | ||
20864 | ||
20865 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20866 | PyObject *resultobj; | |
20867 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20868 | long result; | |
20869 | PyObject * obj0 = 0 ; | |
20870 | char *kwnames[] = { | |
20871 | (char *) "self", NULL | |
20872 | }; | |
20873 | ||
20874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
20875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20877 | { | |
20878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20879 | result = (long)(arg1)->GetMask(); | |
20880 | ||
20881 | wxPyEndAllowThreads(__tstate); | |
20882 | if (PyErr_Occurred()) SWIG_fail; | |
20883 | } | |
20884 | resultobj = SWIG_FromLong((long)result); | |
20885 | return resultobj; | |
20886 | fail: | |
20887 | return NULL; | |
20888 | } | |
20889 | ||
20890 | ||
20891 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20892 | PyObject *resultobj; | |
20893 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20894 | wxListItem *result; | |
20895 | PyObject * obj0 = 0 ; | |
20896 | char *kwnames[] = { | |
20897 | (char *) "self", NULL | |
20898 | }; | |
20899 | ||
20900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
20901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20903 | { | |
20904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20905 | { | |
20906 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
20907 | result = (wxListItem *) &_result_ref; | |
20908 | } | |
20909 | ||
20910 | wxPyEndAllowThreads(__tstate); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
20912 | } | |
20913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); | |
20914 | return resultobj; | |
20915 | fail: | |
20916 | return NULL; | |
20917 | } | |
20918 | ||
20919 | ||
20920 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20921 | PyObject *resultobj; | |
20922 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20923 | long result; | |
20924 | PyObject * obj0 = 0 ; | |
20925 | char *kwnames[] = { | |
20926 | (char *) "self", NULL | |
20927 | }; | |
20928 | ||
20929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
20930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20932 | { | |
20933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20934 | result = (long)(arg1)->GetCacheFrom(); | |
20935 | ||
20936 | wxPyEndAllowThreads(__tstate); | |
20937 | if (PyErr_Occurred()) SWIG_fail; | |
20938 | } | |
20939 | resultobj = SWIG_FromLong((long)result); | |
20940 | return resultobj; | |
20941 | fail: | |
20942 | return NULL; | |
20943 | } | |
20944 | ||
20945 | ||
20946 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20947 | PyObject *resultobj; | |
20948 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20949 | long result; | |
20950 | PyObject * obj0 = 0 ; | |
20951 | char *kwnames[] = { | |
20952 | (char *) "self", NULL | |
20953 | }; | |
20954 | ||
20955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
20956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20958 | { | |
20959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20960 | result = (long)(arg1)->GetCacheTo(); | |
20961 | ||
20962 | wxPyEndAllowThreads(__tstate); | |
20963 | if (PyErr_Occurred()) SWIG_fail; | |
20964 | } | |
20965 | resultobj = SWIG_FromLong((long)result); | |
20966 | return resultobj; | |
20967 | fail: | |
20968 | return NULL; | |
20969 | } | |
20970 | ||
20971 | ||
20972 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20973 | PyObject *resultobj; | |
20974 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20975 | bool result; | |
20976 | PyObject * obj0 = 0 ; | |
20977 | char *kwnames[] = { | |
20978 | (char *) "self", NULL | |
20979 | }; | |
20980 | ||
20981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
20982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20984 | { | |
20985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20986 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
20987 | ||
20988 | wxPyEndAllowThreads(__tstate); | |
20989 | if (PyErr_Occurred()) SWIG_fail; | |
20990 | } | |
20991 | { | |
20992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20993 | } | |
20994 | return resultobj; | |
20995 | fail: | |
20996 | return NULL; | |
20997 | } | |
20998 | ||
20999 | ||
21000 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21001 | PyObject *resultobj; | |
21002 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21003 | bool arg2 ; | |
21004 | PyObject * obj0 = 0 ; | |
21005 | PyObject * obj1 = 0 ; | |
21006 | char *kwnames[] = { | |
21007 | (char *) "self",(char *) "editCancelled", NULL | |
21008 | }; | |
21009 | ||
21010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
21011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21013 | arg2 = (bool) SWIG_AsBool(obj1); | |
21014 | if (PyErr_Occurred()) SWIG_fail; | |
21015 | { | |
21016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21017 | (arg1)->SetEditCanceled(arg2); | |
21018 | ||
21019 | wxPyEndAllowThreads(__tstate); | |
21020 | if (PyErr_Occurred()) SWIG_fail; | |
21021 | } | |
21022 | Py_INCREF(Py_None); resultobj = Py_None; | |
21023 | return resultobj; | |
21024 | fail: | |
21025 | return NULL; | |
21026 | } | |
21027 | ||
21028 | ||
21029 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
21030 | PyObject *obj; | |
21031 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21032 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
21033 | Py_INCREF(obj); | |
21034 | return Py_BuildValue((char *)""); | |
21035 | } | |
21036 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21037 | PyObject *resultobj; | |
21038 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21039 | int arg2 = (int) -1 ; | |
21040 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21041 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21042 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21043 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21044 | long arg5 = (long) wxLC_ICON ; | |
21045 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21046 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21047 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21048 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21049 | wxPyListCtrl *result; | |
21050 | wxPoint temp3 ; | |
21051 | wxSize temp4 ; | |
21052 | bool temp7 = False ; | |
21053 | PyObject * obj0 = 0 ; | |
21054 | PyObject * obj1 = 0 ; | |
21055 | PyObject * obj2 = 0 ; | |
21056 | PyObject * obj3 = 0 ; | |
21057 | PyObject * obj4 = 0 ; | |
21058 | PyObject * obj5 = 0 ; | |
21059 | PyObject * obj6 = 0 ; | |
21060 | char *kwnames[] = { | |
21061 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21062 | }; | |
21063 | ||
21064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21067 | if (obj1) { | |
21068 | arg2 = (int) SWIG_AsInt(obj1); | |
21069 | if (PyErr_Occurred()) SWIG_fail; | |
21070 | } | |
21071 | if (obj2) { | |
21072 | { | |
21073 | arg3 = &temp3; | |
21074 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21075 | } | |
21076 | } | |
21077 | if (obj3) { | |
21078 | { | |
21079 | arg4 = &temp4; | |
21080 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21081 | } | |
21082 | } | |
21083 | if (obj4) { | |
21084 | arg5 = (long) SWIG_AsLong(obj4); | |
21085 | if (PyErr_Occurred()) SWIG_fail; | |
21086 | } | |
21087 | if (obj5) { | |
21088 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
21089 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21090 | SWIG_fail; | |
21091 | if (arg6 == NULL) { | |
21092 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21093 | SWIG_fail; | |
21094 | } | |
21095 | } | |
21096 | if (obj6) { | |
21097 | { | |
21098 | arg7 = wxString_in_helper(obj6); | |
21099 | if (arg7 == NULL) SWIG_fail; | |
21100 | temp7 = True; | |
21101 | } | |
21102 | } | |
21103 | { | |
0439c23b | 21104 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21106 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21107 | ||
21108 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21109 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21110 | } |
21111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
21112 | { | |
21113 | if (temp7) | |
21114 | delete arg7; | |
21115 | } | |
21116 | return resultobj; | |
21117 | fail: | |
21118 | { | |
21119 | if (temp7) | |
21120 | delete arg7; | |
21121 | } | |
21122 | return NULL; | |
21123 | } | |
21124 | ||
21125 | ||
21126 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21127 | PyObject *resultobj; | |
21128 | wxPyListCtrl *result; | |
21129 | char *kwnames[] = { | |
21130 | NULL | |
21131 | }; | |
21132 | ||
21133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
21134 | { | |
0439c23b | 21135 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21137 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
21138 | ||
21139 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21140 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21141 | } |
21142 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
21143 | return resultobj; | |
21144 | fail: | |
21145 | return NULL; | |
21146 | } | |
21147 | ||
21148 | ||
21149 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21150 | PyObject *resultobj; | |
21151 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21152 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21153 | int arg3 = (int) -1 ; | |
21154 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21155 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21156 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21157 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21158 | long arg6 = (long) wxLC_ICON ; | |
21159 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21160 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21161 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21162 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21163 | bool result; | |
21164 | wxPoint temp4 ; | |
21165 | wxSize temp5 ; | |
21166 | bool temp8 = False ; | |
21167 | PyObject * obj0 = 0 ; | |
21168 | PyObject * obj1 = 0 ; | |
21169 | PyObject * obj2 = 0 ; | |
21170 | PyObject * obj3 = 0 ; | |
21171 | PyObject * obj4 = 0 ; | |
21172 | PyObject * obj5 = 0 ; | |
21173 | PyObject * obj6 = 0 ; | |
21174 | PyObject * obj7 = 0 ; | |
21175 | char *kwnames[] = { | |
21176 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21177 | }; | |
21178 | ||
21179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
21180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21182 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21184 | if (obj2) { | |
21185 | arg3 = (int) SWIG_AsInt(obj2); | |
21186 | if (PyErr_Occurred()) SWIG_fail; | |
21187 | } | |
21188 | if (obj3) { | |
21189 | { | |
21190 | arg4 = &temp4; | |
21191 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21192 | } | |
21193 | } | |
21194 | if (obj4) { | |
21195 | { | |
21196 | arg5 = &temp5; | |
21197 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21198 | } | |
21199 | } | |
21200 | if (obj5) { | |
21201 | arg6 = (long) SWIG_AsLong(obj5); | |
21202 | if (PyErr_Occurred()) SWIG_fail; | |
21203 | } | |
21204 | if (obj6) { | |
21205 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
21206 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21207 | SWIG_fail; | |
21208 | if (arg7 == NULL) { | |
21209 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21210 | SWIG_fail; | |
21211 | } | |
21212 | } | |
21213 | if (obj7) { | |
21214 | { | |
21215 | arg8 = wxString_in_helper(obj7); | |
21216 | if (arg8 == NULL) SWIG_fail; | |
21217 | temp8 = True; | |
21218 | } | |
21219 | } | |
21220 | { | |
21221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21222 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21223 | ||
21224 | wxPyEndAllowThreads(__tstate); | |
21225 | if (PyErr_Occurred()) SWIG_fail; | |
21226 | } | |
21227 | { | |
21228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21229 | } | |
21230 | { | |
21231 | if (temp8) | |
21232 | delete arg8; | |
21233 | } | |
21234 | return resultobj; | |
21235 | fail: | |
21236 | { | |
21237 | if (temp8) | |
21238 | delete arg8; | |
21239 | } | |
21240 | return NULL; | |
21241 | } | |
21242 | ||
21243 | ||
21244 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21245 | PyObject *resultobj; | |
21246 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21247 | PyObject *arg2 = (PyObject *) 0 ; | |
21248 | PyObject *arg3 = (PyObject *) 0 ; | |
21249 | PyObject * obj0 = 0 ; | |
21250 | PyObject * obj1 = 0 ; | |
21251 | PyObject * obj2 = 0 ; | |
21252 | char *kwnames[] = { | |
21253 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21254 | }; | |
21255 | ||
21256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21259 | arg2 = obj1; | |
21260 | arg3 = obj2; | |
21261 | { | |
21262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21263 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21264 | ||
21265 | wxPyEndAllowThreads(__tstate); | |
21266 | if (PyErr_Occurred()) SWIG_fail; | |
21267 | } | |
21268 | Py_INCREF(Py_None); resultobj = Py_None; | |
21269 | return resultobj; | |
21270 | fail: | |
21271 | return NULL; | |
21272 | } | |
21273 | ||
21274 | ||
21275 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21276 | PyObject *resultobj; | |
21277 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21278 | wxColour *arg2 = 0 ; | |
21279 | bool result; | |
21280 | wxColour temp2 ; | |
21281 | PyObject * obj0 = 0 ; | |
21282 | PyObject * obj1 = 0 ; | |
21283 | char *kwnames[] = { | |
21284 | (char *) "self",(char *) "col", NULL | |
21285 | }; | |
21286 | ||
21287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21290 | { | |
21291 | arg2 = &temp2; | |
21292 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21293 | } | |
21294 | { | |
21295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21296 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
21297 | ||
21298 | wxPyEndAllowThreads(__tstate); | |
21299 | if (PyErr_Occurred()) SWIG_fail; | |
21300 | } | |
21301 | { | |
21302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21303 | } | |
21304 | return resultobj; | |
21305 | fail: | |
21306 | return NULL; | |
21307 | } | |
21308 | ||
21309 | ||
21310 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21311 | PyObject *resultobj; | |
21312 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21313 | wxColour *arg2 = 0 ; | |
21314 | bool result; | |
21315 | wxColour temp2 ; | |
21316 | PyObject * obj0 = 0 ; | |
21317 | PyObject * obj1 = 0 ; | |
21318 | char *kwnames[] = { | |
21319 | (char *) "self",(char *) "col", NULL | |
21320 | }; | |
21321 | ||
21322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21325 | { | |
21326 | arg2 = &temp2; | |
21327 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21328 | } | |
21329 | { | |
21330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21331 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21332 | ||
21333 | wxPyEndAllowThreads(__tstate); | |
21334 | if (PyErr_Occurred()) SWIG_fail; | |
21335 | } | |
21336 | { | |
21337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21338 | } | |
21339 | return resultobj; | |
21340 | fail: | |
21341 | return NULL; | |
21342 | } | |
21343 | ||
21344 | ||
21345 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21346 | PyObject *resultobj; | |
21347 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21348 | int arg2 ; | |
21349 | wxListItem *result; | |
21350 | PyObject * obj0 = 0 ; | |
21351 | PyObject * obj1 = 0 ; | |
21352 | char *kwnames[] = { | |
21353 | (char *) "self",(char *) "col", NULL | |
21354 | }; | |
21355 | ||
21356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
21357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21359 | arg2 = (int) SWIG_AsInt(obj1); | |
21360 | if (PyErr_Occurred()) SWIG_fail; | |
21361 | { | |
21362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21363 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
21364 | ||
21365 | wxPyEndAllowThreads(__tstate); | |
21366 | if (PyErr_Occurred()) SWIG_fail; | |
21367 | } | |
21368 | { | |
412d302d | 21369 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21370 | } |
21371 | return resultobj; | |
21372 | fail: | |
21373 | return NULL; | |
21374 | } | |
21375 | ||
21376 | ||
21377 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21378 | PyObject *resultobj; | |
21379 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21380 | int arg2 ; | |
21381 | wxListItem *arg3 = 0 ; | |
21382 | bool result; | |
21383 | PyObject * obj0 = 0 ; | |
21384 | PyObject * obj1 = 0 ; | |
21385 | PyObject * obj2 = 0 ; | |
21386 | char *kwnames[] = { | |
21387 | (char *) "self",(char *) "col",(char *) "item", NULL | |
21388 | }; | |
21389 | ||
21390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21393 | arg2 = (int) SWIG_AsInt(obj1); | |
21394 | if (PyErr_Occurred()) SWIG_fail; | |
21395 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
21396 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21397 | SWIG_fail; | |
21398 | if (arg3 == NULL) { | |
21399 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21400 | SWIG_fail; | |
21401 | } | |
21402 | { | |
21403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21404 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
21405 | ||
21406 | wxPyEndAllowThreads(__tstate); | |
21407 | if (PyErr_Occurred()) SWIG_fail; | |
21408 | } | |
21409 | { | |
21410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21411 | } | |
21412 | return resultobj; | |
21413 | fail: | |
21414 | return NULL; | |
21415 | } | |
21416 | ||
21417 | ||
21418 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21419 | PyObject *resultobj; | |
21420 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21421 | int arg2 ; | |
21422 | int result; | |
21423 | PyObject * obj0 = 0 ; | |
21424 | PyObject * obj1 = 0 ; | |
21425 | char *kwnames[] = { | |
21426 | (char *) "self",(char *) "col", NULL | |
21427 | }; | |
21428 | ||
21429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
21430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21432 | arg2 = (int) SWIG_AsInt(obj1); | |
21433 | if (PyErr_Occurred()) SWIG_fail; | |
21434 | { | |
21435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21436 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
21437 | ||
21438 | wxPyEndAllowThreads(__tstate); | |
21439 | if (PyErr_Occurred()) SWIG_fail; | |
21440 | } | |
21441 | resultobj = SWIG_FromInt((int)result); | |
21442 | return resultobj; | |
21443 | fail: | |
21444 | return NULL; | |
21445 | } | |
21446 | ||
21447 | ||
21448 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21449 | PyObject *resultobj; | |
21450 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21451 | int arg2 ; | |
21452 | int arg3 ; | |
21453 | bool result; | |
21454 | PyObject * obj0 = 0 ; | |
21455 | PyObject * obj1 = 0 ; | |
21456 | PyObject * obj2 = 0 ; | |
21457 | char *kwnames[] = { | |
21458 | (char *) "self",(char *) "col",(char *) "width", NULL | |
21459 | }; | |
21460 | ||
21461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21464 | arg2 = (int) SWIG_AsInt(obj1); | |
21465 | if (PyErr_Occurred()) SWIG_fail; | |
21466 | arg3 = (int) SWIG_AsInt(obj2); | |
21467 | if (PyErr_Occurred()) SWIG_fail; | |
21468 | { | |
21469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21470 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
21471 | ||
21472 | wxPyEndAllowThreads(__tstate); | |
21473 | if (PyErr_Occurred()) SWIG_fail; | |
21474 | } | |
21475 | { | |
21476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21477 | } | |
21478 | return resultobj; | |
21479 | fail: | |
21480 | return NULL; | |
21481 | } | |
21482 | ||
21483 | ||
21484 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21485 | PyObject *resultobj; | |
21486 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21487 | int result; | |
21488 | PyObject * obj0 = 0 ; | |
21489 | char *kwnames[] = { | |
21490 | (char *) "self", NULL | |
21491 | }; | |
21492 | ||
21493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
21494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21496 | { | |
21497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21498 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
21499 | ||
21500 | wxPyEndAllowThreads(__tstate); | |
21501 | if (PyErr_Occurred()) SWIG_fail; | |
21502 | } | |
21503 | resultobj = SWIG_FromInt((int)result); | |
21504 | return resultobj; | |
21505 | fail: | |
21506 | return NULL; | |
21507 | } | |
21508 | ||
21509 | ||
21510 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21511 | PyObject *resultobj; | |
21512 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21513 | wxRect result; | |
21514 | PyObject * obj0 = 0 ; | |
21515 | char *kwnames[] = { | |
21516 | (char *) "self", NULL | |
21517 | }; | |
21518 | ||
21519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
21520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21522 | { | |
21523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21524 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
21525 | ||
21526 | wxPyEndAllowThreads(__tstate); | |
21527 | if (PyErr_Occurred()) SWIG_fail; | |
21528 | } | |
21529 | { | |
21530 | wxRect * resultptr; | |
21531 | resultptr = new wxRect((wxRect &) result); | |
21532 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
21533 | } | |
21534 | return resultobj; | |
21535 | fail: | |
21536 | return NULL; | |
21537 | } | |
21538 | ||
21539 | ||
21540 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21541 | PyObject *resultobj; | |
21542 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21543 | long arg2 ; | |
21544 | int arg3 = (int) 0 ; | |
21545 | wxListItem *result; | |
21546 | PyObject * obj0 = 0 ; | |
21547 | PyObject * obj1 = 0 ; | |
21548 | PyObject * obj2 = 0 ; | |
21549 | char *kwnames[] = { | |
21550 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
21551 | }; | |
21552 | ||
21553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21556 | arg2 = (long) SWIG_AsLong(obj1); | |
21557 | if (PyErr_Occurred()) SWIG_fail; | |
21558 | if (obj2) { | |
21559 | arg3 = (int) SWIG_AsInt(obj2); | |
21560 | if (PyErr_Occurred()) SWIG_fail; | |
21561 | } | |
21562 | { | |
21563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21564 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
21565 | ||
21566 | wxPyEndAllowThreads(__tstate); | |
21567 | if (PyErr_Occurred()) SWIG_fail; | |
21568 | } | |
21569 | { | |
412d302d | 21570 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21571 | } |
21572 | return resultobj; | |
21573 | fail: | |
21574 | return NULL; | |
21575 | } | |
21576 | ||
21577 | ||
21578 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21579 | PyObject *resultobj; | |
21580 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21581 | wxListItem *arg2 = 0 ; | |
21582 | bool result; | |
21583 | PyObject * obj0 = 0 ; | |
21584 | PyObject * obj1 = 0 ; | |
21585 | char *kwnames[] = { | |
21586 | (char *) "self",(char *) "info", NULL | |
21587 | }; | |
21588 | ||
21589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
21590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21592 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
21593 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21594 | SWIG_fail; | |
21595 | if (arg2 == NULL) { | |
21596 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21597 | SWIG_fail; | |
21598 | } | |
21599 | { | |
21600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21601 | result = (bool)(arg1)->SetItem(*arg2); | |
21602 | ||
21603 | wxPyEndAllowThreads(__tstate); | |
21604 | if (PyErr_Occurred()) SWIG_fail; | |
21605 | } | |
21606 | { | |
21607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21608 | } | |
21609 | return resultobj; | |
21610 | fail: | |
21611 | return NULL; | |
21612 | } | |
21613 | ||
21614 | ||
21615 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21616 | PyObject *resultobj; | |
21617 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21618 | long arg2 ; | |
21619 | int arg3 ; | |
21620 | wxString *arg4 = 0 ; | |
21621 | int arg5 = (int) -1 ; | |
21622 | long result; | |
21623 | bool temp4 = False ; | |
21624 | PyObject * obj0 = 0 ; | |
21625 | PyObject * obj1 = 0 ; | |
21626 | PyObject * obj2 = 0 ; | |
21627 | PyObject * obj3 = 0 ; | |
21628 | PyObject * obj4 = 0 ; | |
21629 | char *kwnames[] = { | |
21630 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
21631 | }; | |
21632 | ||
21633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21636 | arg2 = (long) SWIG_AsLong(obj1); | |
21637 | if (PyErr_Occurred()) SWIG_fail; | |
21638 | arg3 = (int) SWIG_AsInt(obj2); | |
21639 | if (PyErr_Occurred()) SWIG_fail; | |
21640 | { | |
21641 | arg4 = wxString_in_helper(obj3); | |
21642 | if (arg4 == NULL) SWIG_fail; | |
21643 | temp4 = True; | |
21644 | } | |
21645 | if (obj4) { | |
21646 | arg5 = (int) SWIG_AsInt(obj4); | |
21647 | if (PyErr_Occurred()) SWIG_fail; | |
21648 | } | |
21649 | { | |
21650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21651 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
21652 | ||
21653 | wxPyEndAllowThreads(__tstate); | |
21654 | if (PyErr_Occurred()) SWIG_fail; | |
21655 | } | |
21656 | resultobj = SWIG_FromLong((long)result); | |
21657 | { | |
21658 | if (temp4) | |
21659 | delete arg4; | |
21660 | } | |
21661 | return resultobj; | |
21662 | fail: | |
21663 | { | |
21664 | if (temp4) | |
21665 | delete arg4; | |
21666 | } | |
21667 | return NULL; | |
21668 | } | |
21669 | ||
21670 | ||
21671 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21672 | PyObject *resultobj; | |
21673 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21674 | long arg2 ; | |
21675 | long arg3 ; | |
21676 | int result; | |
21677 | PyObject * obj0 = 0 ; | |
21678 | PyObject * obj1 = 0 ; | |
21679 | PyObject * obj2 = 0 ; | |
21680 | char *kwnames[] = { | |
21681 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
21682 | }; | |
21683 | ||
21684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21687 | arg2 = (long) SWIG_AsLong(obj1); | |
21688 | if (PyErr_Occurred()) SWIG_fail; | |
21689 | arg3 = (long) SWIG_AsLong(obj2); | |
21690 | if (PyErr_Occurred()) SWIG_fail; | |
21691 | { | |
21692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21693 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
21694 | ||
21695 | wxPyEndAllowThreads(__tstate); | |
21696 | if (PyErr_Occurred()) SWIG_fail; | |
21697 | } | |
21698 | resultobj = SWIG_FromInt((int)result); | |
21699 | return resultobj; | |
21700 | fail: | |
21701 | return NULL; | |
21702 | } | |
21703 | ||
21704 | ||
21705 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21706 | PyObject *resultobj; | |
21707 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21708 | long arg2 ; | |
21709 | long arg3 ; | |
21710 | long arg4 ; | |
21711 | bool result; | |
21712 | PyObject * obj0 = 0 ; | |
21713 | PyObject * obj1 = 0 ; | |
21714 | PyObject * obj2 = 0 ; | |
21715 | PyObject * obj3 = 0 ; | |
21716 | char *kwnames[] = { | |
21717 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
21718 | }; | |
21719 | ||
21720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21723 | arg2 = (long) SWIG_AsLong(obj1); | |
21724 | if (PyErr_Occurred()) SWIG_fail; | |
21725 | arg3 = (long) SWIG_AsLong(obj2); | |
21726 | if (PyErr_Occurred()) SWIG_fail; | |
21727 | arg4 = (long) SWIG_AsLong(obj3); | |
21728 | if (PyErr_Occurred()) SWIG_fail; | |
21729 | { | |
21730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21731 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
21732 | ||
21733 | wxPyEndAllowThreads(__tstate); | |
21734 | if (PyErr_Occurred()) SWIG_fail; | |
21735 | } | |
21736 | { | |
21737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21738 | } | |
21739 | return resultobj; | |
21740 | fail: | |
21741 | return NULL; | |
21742 | } | |
21743 | ||
21744 | ||
21745 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21746 | PyObject *resultobj; | |
21747 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21748 | long arg2 ; | |
21749 | int arg3 ; | |
21750 | int arg4 ; | |
21751 | bool result; | |
21752 | PyObject * obj0 = 0 ; | |
21753 | PyObject * obj1 = 0 ; | |
21754 | PyObject * obj2 = 0 ; | |
21755 | PyObject * obj3 = 0 ; | |
21756 | char *kwnames[] = { | |
21757 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
21758 | }; | |
21759 | ||
21760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21763 | arg2 = (long) SWIG_AsLong(obj1); | |
21764 | if (PyErr_Occurred()) SWIG_fail; | |
21765 | arg3 = (int) SWIG_AsInt(obj2); | |
21766 | if (PyErr_Occurred()) SWIG_fail; | |
21767 | arg4 = (int) SWIG_AsInt(obj3); | |
21768 | if (PyErr_Occurred()) SWIG_fail; | |
21769 | { | |
21770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21771 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21772 | ||
21773 | wxPyEndAllowThreads(__tstate); | |
21774 | if (PyErr_Occurred()) SWIG_fail; | |
21775 | } | |
21776 | { | |
21777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21778 | } | |
21779 | return resultobj; | |
21780 | fail: | |
21781 | return NULL; | |
21782 | } | |
21783 | ||
21784 | ||
21785 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21786 | PyObject *resultobj; | |
21787 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21788 | long arg2 ; | |
21789 | wxString result; | |
21790 | PyObject * obj0 = 0 ; | |
21791 | PyObject * obj1 = 0 ; | |
21792 | char *kwnames[] = { | |
21793 | (char *) "self",(char *) "item", NULL | |
21794 | }; | |
21795 | ||
21796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
21797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21799 | arg2 = (long) SWIG_AsLong(obj1); | |
21800 | if (PyErr_Occurred()) SWIG_fail; | |
21801 | { | |
21802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21803 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21804 | ||
21805 | wxPyEndAllowThreads(__tstate); | |
21806 | if (PyErr_Occurred()) SWIG_fail; | |
21807 | } | |
21808 | { | |
21809 | #if wxUSE_UNICODE | |
21810 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21811 | #else | |
21812 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21813 | #endif | |
21814 | } | |
21815 | return resultobj; | |
21816 | fail: | |
21817 | return NULL; | |
21818 | } | |
21819 | ||
21820 | ||
21821 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21822 | PyObject *resultobj; | |
21823 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21824 | long arg2 ; | |
21825 | wxString *arg3 = 0 ; | |
21826 | bool temp3 = False ; | |
21827 | PyObject * obj0 = 0 ; | |
21828 | PyObject * obj1 = 0 ; | |
21829 | PyObject * obj2 = 0 ; | |
21830 | char *kwnames[] = { | |
21831 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21832 | }; | |
21833 | ||
21834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21837 | arg2 = (long) SWIG_AsLong(obj1); | |
21838 | if (PyErr_Occurred()) SWIG_fail; | |
21839 | { | |
21840 | arg3 = wxString_in_helper(obj2); | |
21841 | if (arg3 == NULL) SWIG_fail; | |
21842 | temp3 = True; | |
21843 | } | |
21844 | { | |
21845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21846 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21847 | ||
21848 | wxPyEndAllowThreads(__tstate); | |
21849 | if (PyErr_Occurred()) SWIG_fail; | |
21850 | } | |
21851 | Py_INCREF(Py_None); resultobj = Py_None; | |
21852 | { | |
21853 | if (temp3) | |
21854 | delete arg3; | |
21855 | } | |
21856 | return resultobj; | |
21857 | fail: | |
21858 | { | |
21859 | if (temp3) | |
21860 | delete arg3; | |
21861 | } | |
21862 | return NULL; | |
21863 | } | |
21864 | ||
21865 | ||
21866 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21867 | PyObject *resultobj; | |
21868 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21869 | long arg2 ; | |
21870 | long result; | |
21871 | PyObject * obj0 = 0 ; | |
21872 | PyObject * obj1 = 0 ; | |
21873 | char *kwnames[] = { | |
21874 | (char *) "self",(char *) "item", NULL | |
21875 | }; | |
21876 | ||
21877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
21878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21880 | arg2 = (long) SWIG_AsLong(obj1); | |
21881 | if (PyErr_Occurred()) SWIG_fail; | |
21882 | { | |
21883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21884 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
21885 | ||
21886 | wxPyEndAllowThreads(__tstate); | |
21887 | if (PyErr_Occurred()) SWIG_fail; | |
21888 | } | |
21889 | resultobj = SWIG_FromLong((long)result); | |
21890 | return resultobj; | |
21891 | fail: | |
21892 | return NULL; | |
21893 | } | |
21894 | ||
21895 | ||
21896 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21897 | PyObject *resultobj; | |
21898 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21899 | long arg2 ; | |
21900 | long arg3 ; | |
21901 | bool result; | |
21902 | PyObject * obj0 = 0 ; | |
21903 | PyObject * obj1 = 0 ; | |
21904 | PyObject * obj2 = 0 ; | |
21905 | char *kwnames[] = { | |
21906 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21907 | }; | |
21908 | ||
21909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21912 | arg2 = (long) SWIG_AsLong(obj1); | |
21913 | if (PyErr_Occurred()) SWIG_fail; | |
21914 | arg3 = (long) SWIG_AsLong(obj2); | |
21915 | if (PyErr_Occurred()) SWIG_fail; | |
21916 | { | |
21917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21918 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
21919 | ||
21920 | wxPyEndAllowThreads(__tstate); | |
21921 | if (PyErr_Occurred()) SWIG_fail; | |
21922 | } | |
21923 | { | |
21924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21925 | } | |
21926 | return resultobj; | |
21927 | fail: | |
21928 | return NULL; | |
21929 | } | |
21930 | ||
21931 | ||
21932 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21933 | PyObject *resultobj; | |
21934 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21935 | long arg2 ; | |
21936 | wxPoint result; | |
21937 | PyObject * obj0 = 0 ; | |
21938 | PyObject * obj1 = 0 ; | |
21939 | char *kwnames[] = { | |
21940 | (char *) "self",(char *) "item", NULL | |
21941 | }; | |
21942 | ||
21943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
21944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21946 | arg2 = (long) SWIG_AsLong(obj1); | |
21947 | if (PyErr_Occurred()) SWIG_fail; | |
21948 | { | |
21949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21950 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
21951 | ||
21952 | wxPyEndAllowThreads(__tstate); | |
21953 | if (PyErr_Occurred()) SWIG_fail; | |
21954 | } | |
21955 | { | |
21956 | wxPoint * resultptr; | |
21957 | resultptr = new wxPoint((wxPoint &) result); | |
21958 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
21959 | } | |
21960 | return resultobj; | |
21961 | fail: | |
21962 | return NULL; | |
21963 | } | |
21964 | ||
21965 | ||
21966 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21967 | PyObject *resultobj; | |
21968 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21969 | long arg2 ; | |
21970 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
21971 | wxRect result; | |
21972 | PyObject * obj0 = 0 ; | |
21973 | PyObject * obj1 = 0 ; | |
21974 | PyObject * obj2 = 0 ; | |
21975 | char *kwnames[] = { | |
21976 | (char *) "self",(char *) "item",(char *) "code", NULL | |
21977 | }; | |
21978 | ||
21979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21982 | arg2 = (long) SWIG_AsLong(obj1); | |
21983 | if (PyErr_Occurred()) SWIG_fail; | |
21984 | if (obj2) { | |
21985 | arg3 = (int) SWIG_AsInt(obj2); | |
21986 | if (PyErr_Occurred()) SWIG_fail; | |
21987 | } | |
21988 | { | |
21989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21990 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
21991 | ||
21992 | wxPyEndAllowThreads(__tstate); | |
21993 | if (PyErr_Occurred()) SWIG_fail; | |
21994 | } | |
21995 | { | |
21996 | wxRect * resultptr; | |
21997 | resultptr = new wxRect((wxRect &) result); | |
21998 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
21999 | } | |
22000 | return resultobj; | |
22001 | fail: | |
22002 | return NULL; | |
22003 | } | |
22004 | ||
22005 | ||
22006 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22007 | PyObject *resultobj; | |
22008 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22009 | long arg2 ; | |
22010 | wxPoint *arg3 = 0 ; | |
22011 | bool result; | |
22012 | wxPoint temp3 ; | |
22013 | PyObject * obj0 = 0 ; | |
22014 | PyObject * obj1 = 0 ; | |
22015 | PyObject * obj2 = 0 ; | |
22016 | char *kwnames[] = { | |
22017 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
22018 | }; | |
22019 | ||
22020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22023 | arg2 = (long) SWIG_AsLong(obj1); | |
22024 | if (PyErr_Occurred()) SWIG_fail; | |
22025 | { | |
22026 | arg3 = &temp3; | |
22027 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22028 | } | |
22029 | { | |
22030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22031 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
22032 | ||
22033 | wxPyEndAllowThreads(__tstate); | |
22034 | if (PyErr_Occurred()) SWIG_fail; | |
22035 | } | |
22036 | { | |
22037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22038 | } | |
22039 | return resultobj; | |
22040 | fail: | |
22041 | return NULL; | |
22042 | } | |
22043 | ||
22044 | ||
22045 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22046 | PyObject *resultobj; | |
22047 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22048 | int result; | |
22049 | PyObject * obj0 = 0 ; | |
22050 | char *kwnames[] = { | |
22051 | (char *) "self", NULL | |
22052 | }; | |
22053 | ||
22054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
22055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22057 | { | |
22058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22059 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
22060 | ||
22061 | wxPyEndAllowThreads(__tstate); | |
22062 | if (PyErr_Occurred()) SWIG_fail; | |
22063 | } | |
22064 | resultobj = SWIG_FromInt((int)result); | |
22065 | return resultobj; | |
22066 | fail: | |
22067 | return NULL; | |
22068 | } | |
22069 | ||
22070 | ||
22071 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22072 | PyObject *resultobj; | |
22073 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22074 | int result; | |
22075 | PyObject * obj0 = 0 ; | |
22076 | char *kwnames[] = { | |
22077 | (char *) "self", NULL | |
22078 | }; | |
22079 | ||
22080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
22081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22083 | { | |
22084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22085 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
22086 | ||
22087 | wxPyEndAllowThreads(__tstate); | |
22088 | if (PyErr_Occurred()) SWIG_fail; | |
22089 | } | |
22090 | resultobj = SWIG_FromInt((int)result); | |
22091 | return resultobj; | |
22092 | fail: | |
22093 | return NULL; | |
22094 | } | |
22095 | ||
22096 | ||
22097 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22098 | PyObject *resultobj; | |
22099 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22100 | wxSize result; | |
22101 | PyObject * obj0 = 0 ; | |
22102 | char *kwnames[] = { | |
22103 | (char *) "self", NULL | |
22104 | }; | |
22105 | ||
22106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
22107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22109 | { | |
22110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22111 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
22112 | ||
22113 | wxPyEndAllowThreads(__tstate); | |
22114 | if (PyErr_Occurred()) SWIG_fail; | |
22115 | } | |
22116 | { | |
22117 | wxSize * resultptr; | |
22118 | resultptr = new wxSize((wxSize &) result); | |
22119 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22120 | } | |
22121 | return resultobj; | |
22122 | fail: | |
22123 | return NULL; | |
22124 | } | |
22125 | ||
22126 | ||
22127 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22128 | PyObject *resultobj; | |
22129 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22130 | int arg2 ; | |
22131 | bool arg3 = (bool) False ; | |
22132 | PyObject * obj0 = 0 ; | |
22133 | PyObject * obj1 = 0 ; | |
22134 | PyObject * obj2 = 0 ; | |
22135 | char *kwnames[] = { | |
22136 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
22137 | }; | |
22138 | ||
22139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22142 | arg2 = (int) SWIG_AsInt(obj1); | |
22143 | if (PyErr_Occurred()) SWIG_fail; | |
22144 | if (obj2) { | |
22145 | arg3 = (bool) SWIG_AsBool(obj2); | |
22146 | if (PyErr_Occurred()) SWIG_fail; | |
22147 | } | |
22148 | { | |
22149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22150 | (arg1)->SetItemSpacing(arg2,arg3); | |
22151 | ||
22152 | wxPyEndAllowThreads(__tstate); | |
22153 | if (PyErr_Occurred()) SWIG_fail; | |
22154 | } | |
22155 | Py_INCREF(Py_None); resultobj = Py_None; | |
22156 | return resultobj; | |
22157 | fail: | |
22158 | return NULL; | |
22159 | } | |
22160 | ||
22161 | ||
22162 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22163 | PyObject *resultobj; | |
22164 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22165 | int result; | |
22166 | PyObject * obj0 = 0 ; | |
22167 | char *kwnames[] = { | |
22168 | (char *) "self", NULL | |
22169 | }; | |
22170 | ||
22171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
22172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22174 | { | |
22175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22176 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22177 | ||
22178 | wxPyEndAllowThreads(__tstate); | |
22179 | if (PyErr_Occurred()) SWIG_fail; | |
22180 | } | |
22181 | resultobj = SWIG_FromInt((int)result); | |
22182 | return resultobj; | |
22183 | fail: | |
22184 | return NULL; | |
22185 | } | |
22186 | ||
22187 | ||
22188 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22189 | PyObject *resultobj; | |
22190 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22191 | wxColour result; | |
22192 | PyObject * obj0 = 0 ; | |
22193 | char *kwnames[] = { | |
22194 | (char *) "self", NULL | |
22195 | }; | |
22196 | ||
22197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
22198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22200 | { | |
22201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22202 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22203 | ||
22204 | wxPyEndAllowThreads(__tstate); | |
22205 | if (PyErr_Occurred()) SWIG_fail; | |
22206 | } | |
22207 | { | |
22208 | wxColour * resultptr; | |
22209 | resultptr = new wxColour((wxColour &) result); | |
22210 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
22211 | } | |
22212 | return resultobj; | |
22213 | fail: | |
22214 | return NULL; | |
22215 | } | |
22216 | ||
22217 | ||
22218 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22219 | PyObject *resultobj; | |
22220 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22221 | wxColour *arg2 = 0 ; | |
22222 | wxColour temp2 ; | |
22223 | PyObject * obj0 = 0 ; | |
22224 | PyObject * obj1 = 0 ; | |
22225 | char *kwnames[] = { | |
22226 | (char *) "self",(char *) "col", NULL | |
22227 | }; | |
22228 | ||
22229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
22230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22232 | { | |
22233 | arg2 = &temp2; | |
22234 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22235 | } | |
22236 | { | |
22237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22238 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22239 | ||
22240 | wxPyEndAllowThreads(__tstate); | |
22241 | if (PyErr_Occurred()) SWIG_fail; | |
22242 | } | |
22243 | Py_INCREF(Py_None); resultobj = Py_None; | |
22244 | return resultobj; | |
22245 | fail: | |
22246 | return NULL; | |
22247 | } | |
22248 | ||
22249 | ||
22250 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22251 | PyObject *resultobj; | |
22252 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22253 | long result; | |
22254 | PyObject * obj0 = 0 ; | |
22255 | char *kwnames[] = { | |
22256 | (char *) "self", NULL | |
22257 | }; | |
22258 | ||
22259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
22260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22262 | { | |
22263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22264 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
22265 | ||
22266 | wxPyEndAllowThreads(__tstate); | |
22267 | if (PyErr_Occurred()) SWIG_fail; | |
22268 | } | |
22269 | resultobj = SWIG_FromLong((long)result); | |
22270 | return resultobj; | |
22271 | fail: | |
22272 | return NULL; | |
22273 | } | |
22274 | ||
22275 | ||
22276 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22277 | PyObject *resultobj; | |
22278 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22279 | long arg2 ; | |
22280 | bool arg3 = (bool) True ; | |
22281 | PyObject * obj0 = 0 ; | |
22282 | PyObject * obj1 = 0 ; | |
22283 | PyObject * obj2 = 0 ; | |
22284 | char *kwnames[] = { | |
22285 | (char *) "self",(char *) "style",(char *) "add", NULL | |
22286 | }; | |
22287 | ||
22288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22291 | arg2 = (long) SWIG_AsLong(obj1); | |
22292 | if (PyErr_Occurred()) SWIG_fail; | |
22293 | if (obj2) { | |
22294 | arg3 = (bool) SWIG_AsBool(obj2); | |
22295 | if (PyErr_Occurred()) SWIG_fail; | |
22296 | } | |
22297 | { | |
22298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22299 | (arg1)->SetSingleStyle(arg2,arg3); | |
22300 | ||
22301 | wxPyEndAllowThreads(__tstate); | |
22302 | if (PyErr_Occurred()) SWIG_fail; | |
22303 | } | |
22304 | Py_INCREF(Py_None); resultobj = Py_None; | |
22305 | return resultobj; | |
22306 | fail: | |
22307 | return NULL; | |
22308 | } | |
22309 | ||
22310 | ||
22311 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22312 | PyObject *resultobj; | |
22313 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22314 | long arg2 ; | |
22315 | PyObject * obj0 = 0 ; | |
22316 | PyObject * obj1 = 0 ; | |
22317 | char *kwnames[] = { | |
22318 | (char *) "self",(char *) "style", NULL | |
22319 | }; | |
22320 | ||
22321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
22322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22324 | arg2 = (long) SWIG_AsLong(obj1); | |
22325 | if (PyErr_Occurred()) SWIG_fail; | |
22326 | { | |
22327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22328 | (arg1)->SetWindowStyleFlag(arg2); | |
22329 | ||
22330 | wxPyEndAllowThreads(__tstate); | |
22331 | if (PyErr_Occurred()) SWIG_fail; | |
22332 | } | |
22333 | Py_INCREF(Py_None); resultobj = Py_None; | |
22334 | return resultobj; | |
22335 | fail: | |
22336 | return NULL; | |
22337 | } | |
22338 | ||
22339 | ||
22340 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22341 | PyObject *resultobj; | |
22342 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22343 | long arg2 ; | |
22344 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
22345 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
22346 | long result; | |
22347 | PyObject * obj0 = 0 ; | |
22348 | PyObject * obj1 = 0 ; | |
22349 | PyObject * obj2 = 0 ; | |
22350 | PyObject * obj3 = 0 ; | |
22351 | char *kwnames[] = { | |
22352 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
22353 | }; | |
22354 | ||
22355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22358 | arg2 = (long) SWIG_AsLong(obj1); | |
22359 | if (PyErr_Occurred()) SWIG_fail; | |
22360 | if (obj2) { | |
22361 | arg3 = (int) SWIG_AsInt(obj2); | |
22362 | if (PyErr_Occurred()) SWIG_fail; | |
22363 | } | |
22364 | if (obj3) { | |
22365 | arg4 = (int) SWIG_AsInt(obj3); | |
22366 | if (PyErr_Occurred()) SWIG_fail; | |
22367 | } | |
22368 | { | |
22369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22370 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
22371 | ||
22372 | wxPyEndAllowThreads(__tstate); | |
22373 | if (PyErr_Occurred()) SWIG_fail; | |
22374 | } | |
22375 | resultobj = SWIG_FromLong((long)result); | |
22376 | return resultobj; | |
22377 | fail: | |
22378 | return NULL; | |
22379 | } | |
22380 | ||
22381 | ||
22382 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22383 | PyObject *resultobj; | |
22384 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22385 | int arg2 ; | |
22386 | wxImageList *result; | |
22387 | PyObject * obj0 = 0 ; | |
22388 | PyObject * obj1 = 0 ; | |
22389 | char *kwnames[] = { | |
22390 | (char *) "self",(char *) "which", NULL | |
22391 | }; | |
22392 | ||
22393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
22394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22396 | arg2 = (int) SWIG_AsInt(obj1); | |
22397 | if (PyErr_Occurred()) SWIG_fail; | |
22398 | { | |
22399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22400 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
22401 | ||
22402 | wxPyEndAllowThreads(__tstate); | |
22403 | if (PyErr_Occurred()) SWIG_fail; | |
22404 | } | |
22405 | { | |
412d302d | 22406 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22407 | } |
22408 | return resultobj; | |
22409 | fail: | |
22410 | return NULL; | |
22411 | } | |
22412 | ||
22413 | ||
22414 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22415 | PyObject *resultobj; | |
22416 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22417 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22418 | int arg3 ; | |
22419 | PyObject * obj0 = 0 ; | |
22420 | PyObject * obj1 = 0 ; | |
22421 | PyObject * obj2 = 0 ; | |
22422 | char *kwnames[] = { | |
22423 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22424 | }; | |
22425 | ||
22426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22431 | arg3 = (int) SWIG_AsInt(obj2); | |
22432 | if (PyErr_Occurred()) SWIG_fail; | |
22433 | { | |
22434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22435 | (arg1)->SetImageList(arg2,arg3); | |
22436 | ||
22437 | wxPyEndAllowThreads(__tstate); | |
22438 | if (PyErr_Occurred()) SWIG_fail; | |
22439 | } | |
22440 | Py_INCREF(Py_None); resultobj = Py_None; | |
22441 | return resultobj; | |
22442 | fail: | |
22443 | return NULL; | |
22444 | } | |
22445 | ||
22446 | ||
22447 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22448 | PyObject *resultobj; | |
22449 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22450 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22451 | int arg3 ; | |
22452 | PyObject * obj0 = 0 ; | |
22453 | PyObject * obj1 = 0 ; | |
22454 | PyObject * obj2 = 0 ; | |
22455 | char *kwnames[] = { | |
22456 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22457 | }; | |
22458 | ||
22459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22463 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
22464 | arg3 = (int) SWIG_AsInt(obj2); | |
22465 | if (PyErr_Occurred()) SWIG_fail; | |
22466 | { | |
22467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22468 | (arg1)->AssignImageList(arg2,arg3); | |
22469 | ||
22470 | wxPyEndAllowThreads(__tstate); | |
22471 | if (PyErr_Occurred()) SWIG_fail; | |
22472 | } | |
22473 | Py_INCREF(Py_None); resultobj = Py_None; | |
22474 | return resultobj; | |
22475 | fail: | |
22476 | return NULL; | |
22477 | } | |
22478 | ||
22479 | ||
22480 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22481 | PyObject *resultobj; | |
22482 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22483 | bool result; | |
22484 | PyObject * obj0 = 0 ; | |
22485 | char *kwnames[] = { | |
22486 | (char *) "self", NULL | |
22487 | }; | |
22488 | ||
22489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
22490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22492 | { | |
22493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22494 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
22495 | ||
22496 | wxPyEndAllowThreads(__tstate); | |
22497 | if (PyErr_Occurred()) SWIG_fail; | |
22498 | } | |
22499 | { | |
22500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22501 | } | |
22502 | return resultobj; | |
22503 | fail: | |
22504 | return NULL; | |
22505 | } | |
22506 | ||
22507 | ||
22508 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22509 | PyObject *resultobj; | |
22510 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22511 | bool result; | |
22512 | PyObject * obj0 = 0 ; | |
22513 | char *kwnames[] = { | |
22514 | (char *) "self", NULL | |
22515 | }; | |
22516 | ||
22517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
22518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22520 | { | |
22521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22522 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
22523 | ||
22524 | wxPyEndAllowThreads(__tstate); | |
22525 | if (PyErr_Occurred()) SWIG_fail; | |
22526 | } | |
22527 | { | |
22528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22529 | } | |
22530 | return resultobj; | |
22531 | fail: | |
22532 | return NULL; | |
22533 | } | |
22534 | ||
22535 | ||
22536 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22537 | PyObject *resultobj; | |
22538 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22539 | long arg2 ; | |
22540 | PyObject * obj0 = 0 ; | |
22541 | PyObject * obj1 = 0 ; | |
22542 | char *kwnames[] = { | |
22543 | (char *) "self",(char *) "item", NULL | |
22544 | }; | |
22545 | ||
22546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
22547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22549 | arg2 = (long) SWIG_AsLong(obj1); | |
22550 | if (PyErr_Occurred()) SWIG_fail; | |
22551 | { | |
22552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22553 | (arg1)->RefreshItem(arg2); | |
22554 | ||
22555 | wxPyEndAllowThreads(__tstate); | |
22556 | if (PyErr_Occurred()) SWIG_fail; | |
22557 | } | |
22558 | Py_INCREF(Py_None); resultobj = Py_None; | |
22559 | return resultobj; | |
22560 | fail: | |
22561 | return NULL; | |
22562 | } | |
22563 | ||
22564 | ||
22565 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22566 | PyObject *resultobj; | |
22567 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22568 | long arg2 ; | |
22569 | long arg3 ; | |
22570 | PyObject * obj0 = 0 ; | |
22571 | PyObject * obj1 = 0 ; | |
22572 | PyObject * obj2 = 0 ; | |
22573 | char *kwnames[] = { | |
22574 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
22575 | }; | |
22576 | ||
22577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22580 | arg2 = (long) SWIG_AsLong(obj1); | |
22581 | if (PyErr_Occurred()) SWIG_fail; | |
22582 | arg3 = (long) SWIG_AsLong(obj2); | |
22583 | if (PyErr_Occurred()) SWIG_fail; | |
22584 | { | |
22585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22586 | (arg1)->RefreshItems(arg2,arg3); | |
22587 | ||
22588 | wxPyEndAllowThreads(__tstate); | |
22589 | if (PyErr_Occurred()) SWIG_fail; | |
22590 | } | |
22591 | Py_INCREF(Py_None); resultobj = Py_None; | |
22592 | return resultobj; | |
22593 | fail: | |
22594 | return NULL; | |
22595 | } | |
22596 | ||
22597 | ||
22598 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22599 | PyObject *resultobj; | |
22600 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22601 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
22602 | bool result; | |
22603 | PyObject * obj0 = 0 ; | |
22604 | PyObject * obj1 = 0 ; | |
22605 | char *kwnames[] = { | |
22606 | (char *) "self",(char *) "flag", NULL | |
22607 | }; | |
22608 | ||
22609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
22610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22612 | if (obj1) { | |
22613 | arg2 = (int) SWIG_AsInt(obj1); | |
22614 | if (PyErr_Occurred()) SWIG_fail; | |
22615 | } | |
22616 | { | |
22617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22618 | result = (bool)(arg1)->Arrange(arg2); | |
22619 | ||
22620 | wxPyEndAllowThreads(__tstate); | |
22621 | if (PyErr_Occurred()) SWIG_fail; | |
22622 | } | |
22623 | { | |
22624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22625 | } | |
22626 | return resultobj; | |
22627 | fail: | |
22628 | return NULL; | |
22629 | } | |
22630 | ||
22631 | ||
22632 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22633 | PyObject *resultobj; | |
22634 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22635 | long arg2 ; | |
22636 | bool result; | |
22637 | PyObject * obj0 = 0 ; | |
22638 | PyObject * obj1 = 0 ; | |
22639 | char *kwnames[] = { | |
22640 | (char *) "self",(char *) "item", NULL | |
22641 | }; | |
22642 | ||
22643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
22644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22646 | arg2 = (long) SWIG_AsLong(obj1); | |
22647 | if (PyErr_Occurred()) SWIG_fail; | |
22648 | { | |
22649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22650 | result = (bool)(arg1)->DeleteItem(arg2); | |
22651 | ||
22652 | wxPyEndAllowThreads(__tstate); | |
22653 | if (PyErr_Occurred()) SWIG_fail; | |
22654 | } | |
22655 | { | |
22656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22657 | } | |
22658 | return resultobj; | |
22659 | fail: | |
22660 | return NULL; | |
22661 | } | |
22662 | ||
22663 | ||
22664 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22665 | PyObject *resultobj; | |
22666 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22667 | bool result; | |
22668 | PyObject * obj0 = 0 ; | |
22669 | char *kwnames[] = { | |
22670 | (char *) "self", NULL | |
22671 | }; | |
22672 | ||
22673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
22674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22676 | { | |
22677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22678 | result = (bool)(arg1)->DeleteAllItems(); | |
22679 | ||
22680 | wxPyEndAllowThreads(__tstate); | |
22681 | if (PyErr_Occurred()) SWIG_fail; | |
22682 | } | |
22683 | { | |
22684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22685 | } | |
22686 | return resultobj; | |
22687 | fail: | |
22688 | return NULL; | |
22689 | } | |
22690 | ||
22691 | ||
22692 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22693 | PyObject *resultobj; | |
22694 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22695 | int arg2 ; | |
22696 | bool result; | |
22697 | PyObject * obj0 = 0 ; | |
22698 | PyObject * obj1 = 0 ; | |
22699 | char *kwnames[] = { | |
22700 | (char *) "self",(char *) "col", NULL | |
22701 | }; | |
22702 | ||
22703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
22704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22706 | arg2 = (int) SWIG_AsInt(obj1); | |
22707 | if (PyErr_Occurred()) SWIG_fail; | |
22708 | { | |
22709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22710 | result = (bool)(arg1)->DeleteColumn(arg2); | |
22711 | ||
22712 | wxPyEndAllowThreads(__tstate); | |
22713 | if (PyErr_Occurred()) SWIG_fail; | |
22714 | } | |
22715 | { | |
22716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22717 | } | |
22718 | return resultobj; | |
22719 | fail: | |
22720 | return NULL; | |
22721 | } | |
22722 | ||
22723 | ||
22724 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22725 | PyObject *resultobj; | |
22726 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22727 | bool result; | |
22728 | PyObject * obj0 = 0 ; | |
22729 | char *kwnames[] = { | |
22730 | (char *) "self", NULL | |
22731 | }; | |
22732 | ||
22733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
22734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22736 | { | |
22737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22738 | result = (bool)(arg1)->DeleteAllColumns(); | |
22739 | ||
22740 | wxPyEndAllowThreads(__tstate); | |
22741 | if (PyErr_Occurred()) SWIG_fail; | |
22742 | } | |
22743 | { | |
22744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22745 | } | |
22746 | return resultobj; | |
22747 | fail: | |
22748 | return NULL; | |
22749 | } | |
22750 | ||
22751 | ||
22752 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22753 | PyObject *resultobj; | |
22754 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22755 | PyObject * obj0 = 0 ; | |
22756 | char *kwnames[] = { | |
22757 | (char *) "self", NULL | |
22758 | }; | |
22759 | ||
22760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
22761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22763 | { | |
22764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22765 | (arg1)->ClearAll(); | |
22766 | ||
22767 | wxPyEndAllowThreads(__tstate); | |
22768 | if (PyErr_Occurred()) SWIG_fail; | |
22769 | } | |
22770 | Py_INCREF(Py_None); resultobj = Py_None; | |
22771 | return resultobj; | |
22772 | fail: | |
22773 | return NULL; | |
22774 | } | |
22775 | ||
22776 | ||
22777 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22778 | PyObject *resultobj; | |
22779 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22780 | long arg2 ; | |
22781 | PyObject * obj0 = 0 ; | |
22782 | PyObject * obj1 = 0 ; | |
22783 | char *kwnames[] = { | |
22784 | (char *) "self",(char *) "item", NULL | |
22785 | }; | |
22786 | ||
22787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
22788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22790 | arg2 = (long) SWIG_AsLong(obj1); | |
22791 | if (PyErr_Occurred()) SWIG_fail; | |
22792 | { | |
22793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22794 | (arg1)->EditLabel(arg2); | |
22795 | ||
22796 | wxPyEndAllowThreads(__tstate); | |
22797 | if (PyErr_Occurred()) SWIG_fail; | |
22798 | } | |
22799 | Py_INCREF(Py_None); resultobj = Py_None; | |
22800 | return resultobj; | |
22801 | fail: | |
22802 | return NULL; | |
22803 | } | |
22804 | ||
22805 | ||
22806 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22807 | PyObject *resultobj; | |
22808 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22809 | long arg2 ; | |
22810 | bool result; | |
22811 | PyObject * obj0 = 0 ; | |
22812 | PyObject * obj1 = 0 ; | |
22813 | char *kwnames[] = { | |
22814 | (char *) "self",(char *) "item", NULL | |
22815 | }; | |
22816 | ||
22817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
22818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22820 | arg2 = (long) SWIG_AsLong(obj1); | |
22821 | if (PyErr_Occurred()) SWIG_fail; | |
22822 | { | |
22823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22824 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22825 | ||
22826 | wxPyEndAllowThreads(__tstate); | |
22827 | if (PyErr_Occurred()) SWIG_fail; | |
22828 | } | |
22829 | { | |
22830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22831 | } | |
22832 | return resultobj; | |
22833 | fail: | |
22834 | return NULL; | |
22835 | } | |
22836 | ||
22837 | ||
22838 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22839 | PyObject *resultobj; | |
22840 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22841 | long arg2 ; | |
22842 | wxString *arg3 = 0 ; | |
22843 | bool arg4 = (bool) False ; | |
22844 | long result; | |
22845 | bool temp3 = False ; | |
22846 | PyObject * obj0 = 0 ; | |
22847 | PyObject * obj1 = 0 ; | |
22848 | PyObject * obj2 = 0 ; | |
22849 | PyObject * obj3 = 0 ; | |
22850 | char *kwnames[] = { | |
22851 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22852 | }; | |
22853 | ||
22854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22857 | arg2 = (long) SWIG_AsLong(obj1); | |
22858 | if (PyErr_Occurred()) SWIG_fail; | |
22859 | { | |
22860 | arg3 = wxString_in_helper(obj2); | |
22861 | if (arg3 == NULL) SWIG_fail; | |
22862 | temp3 = True; | |
22863 | } | |
22864 | if (obj3) { | |
22865 | arg4 = (bool) SWIG_AsBool(obj3); | |
22866 | if (PyErr_Occurred()) SWIG_fail; | |
22867 | } | |
22868 | { | |
22869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22870 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
22871 | ||
22872 | wxPyEndAllowThreads(__tstate); | |
22873 | if (PyErr_Occurred()) SWIG_fail; | |
22874 | } | |
22875 | resultobj = SWIG_FromLong((long)result); | |
22876 | { | |
22877 | if (temp3) | |
22878 | delete arg3; | |
22879 | } | |
22880 | return resultobj; | |
22881 | fail: | |
22882 | { | |
22883 | if (temp3) | |
22884 | delete arg3; | |
22885 | } | |
22886 | return NULL; | |
22887 | } | |
22888 | ||
22889 | ||
22890 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22891 | PyObject *resultobj; | |
22892 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22893 | long arg2 ; | |
22894 | long arg3 ; | |
22895 | long result; | |
22896 | PyObject * obj0 = 0 ; | |
22897 | PyObject * obj1 = 0 ; | |
22898 | PyObject * obj2 = 0 ; | |
22899 | char *kwnames[] = { | |
22900 | (char *) "self",(char *) "start",(char *) "data", NULL | |
22901 | }; | |
22902 | ||
22903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22906 | arg2 = (long) SWIG_AsLong(obj1); | |
22907 | if (PyErr_Occurred()) SWIG_fail; | |
22908 | arg3 = (long) SWIG_AsLong(obj2); | |
22909 | if (PyErr_Occurred()) SWIG_fail; | |
22910 | { | |
22911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22912 | result = (long)(arg1)->FindItem(arg2,arg3); | |
22913 | ||
22914 | wxPyEndAllowThreads(__tstate); | |
22915 | if (PyErr_Occurred()) SWIG_fail; | |
22916 | } | |
22917 | resultobj = SWIG_FromLong((long)result); | |
22918 | return resultobj; | |
22919 | fail: | |
22920 | return NULL; | |
22921 | } | |
22922 | ||
22923 | ||
22924 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22925 | PyObject *resultobj; | |
22926 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22927 | long arg2 ; | |
22928 | wxPoint *arg3 = 0 ; | |
22929 | int arg4 ; | |
22930 | long result; | |
22931 | wxPoint temp3 ; | |
22932 | PyObject * obj0 = 0 ; | |
22933 | PyObject * obj1 = 0 ; | |
22934 | PyObject * obj2 = 0 ; | |
22935 | PyObject * obj3 = 0 ; | |
22936 | char *kwnames[] = { | |
22937 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
22938 | }; | |
22939 | ||
22940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22943 | arg2 = (long) SWIG_AsLong(obj1); | |
22944 | if (PyErr_Occurred()) SWIG_fail; | |
22945 | { | |
22946 | arg3 = &temp3; | |
22947 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22948 | } | |
22949 | arg4 = (int) SWIG_AsInt(obj3); | |
22950 | if (PyErr_Occurred()) SWIG_fail; | |
22951 | { | |
22952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22953 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
22954 | ||
22955 | wxPyEndAllowThreads(__tstate); | |
22956 | if (PyErr_Occurred()) SWIG_fail; | |
22957 | } | |
22958 | resultobj = SWIG_FromLong((long)result); | |
22959 | return resultobj; | |
22960 | fail: | |
22961 | return NULL; | |
22962 | } | |
22963 | ||
22964 | ||
22965 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22966 | PyObject *resultobj; | |
22967 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22968 | wxPoint *arg2 = 0 ; | |
22969 | int *arg3 = 0 ; | |
22970 | long result; | |
22971 | wxPoint temp2 ; | |
22972 | int temp3 ; | |
22973 | PyObject * obj0 = 0 ; | |
22974 | PyObject * obj1 = 0 ; | |
22975 | char *kwnames[] = { | |
22976 | (char *) "self",(char *) "point", NULL | |
22977 | }; | |
22978 | ||
22979 | arg3 = &temp3; | |
22980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
22981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22983 | { | |
22984 | arg2 = &temp2; | |
22985 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22986 | } | |
22987 | { | |
22988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22989 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
22990 | ||
22991 | wxPyEndAllowThreads(__tstate); | |
22992 | if (PyErr_Occurred()) SWIG_fail; | |
22993 | } | |
22994 | resultobj = SWIG_FromLong((long)result); | |
22995 | { | |
22996 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22997 | resultobj = t_output_helper(resultobj,o); | |
22998 | } | |
22999 | return resultobj; | |
23000 | fail: | |
23001 | return NULL; | |
23002 | } | |
23003 | ||
23004 | ||
23005 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23006 | PyObject *resultobj; | |
23007 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23008 | wxListItem *arg2 = 0 ; | |
23009 | long result; | |
23010 | PyObject * obj0 = 0 ; | |
23011 | PyObject * obj1 = 0 ; | |
23012 | char *kwnames[] = { | |
23013 | (char *) "self",(char *) "info", NULL | |
23014 | }; | |
23015 | ||
23016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
23017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23019 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
23020 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23021 | SWIG_fail; | |
23022 | if (arg2 == NULL) { | |
23023 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23024 | SWIG_fail; | |
23025 | } | |
23026 | { | |
23027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23028 | result = (long)(arg1)->InsertItem(*arg2); | |
23029 | ||
23030 | wxPyEndAllowThreads(__tstate); | |
23031 | if (PyErr_Occurred()) SWIG_fail; | |
23032 | } | |
23033 | resultobj = SWIG_FromLong((long)result); | |
23034 | return resultobj; | |
23035 | fail: | |
23036 | return NULL; | |
23037 | } | |
23038 | ||
23039 | ||
23040 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23041 | PyObject *resultobj; | |
23042 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23043 | long arg2 ; | |
23044 | wxString *arg3 = 0 ; | |
23045 | long result; | |
23046 | bool temp3 = False ; | |
23047 | PyObject * obj0 = 0 ; | |
23048 | PyObject * obj1 = 0 ; | |
23049 | PyObject * obj2 = 0 ; | |
23050 | char *kwnames[] = { | |
23051 | (char *) "self",(char *) "index",(char *) "label", NULL | |
23052 | }; | |
23053 | ||
23054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23057 | arg2 = (long) SWIG_AsLong(obj1); | |
23058 | if (PyErr_Occurred()) SWIG_fail; | |
23059 | { | |
23060 | arg3 = wxString_in_helper(obj2); | |
23061 | if (arg3 == NULL) SWIG_fail; | |
23062 | temp3 = True; | |
23063 | } | |
23064 | { | |
23065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23066 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
23067 | ||
23068 | wxPyEndAllowThreads(__tstate); | |
23069 | if (PyErr_Occurred()) SWIG_fail; | |
23070 | } | |
23071 | resultobj = SWIG_FromLong((long)result); | |
23072 | { | |
23073 | if (temp3) | |
23074 | delete arg3; | |
23075 | } | |
23076 | return resultobj; | |
23077 | fail: | |
23078 | { | |
23079 | if (temp3) | |
23080 | delete arg3; | |
23081 | } | |
23082 | return NULL; | |
23083 | } | |
23084 | ||
23085 | ||
23086 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23087 | PyObject *resultobj; | |
23088 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23089 | long arg2 ; | |
23090 | int arg3 ; | |
23091 | long result; | |
23092 | PyObject * obj0 = 0 ; | |
23093 | PyObject * obj1 = 0 ; | |
23094 | PyObject * obj2 = 0 ; | |
23095 | char *kwnames[] = { | |
23096 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
23097 | }; | |
23098 | ||
23099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23102 | arg2 = (long) SWIG_AsLong(obj1); | |
23103 | if (PyErr_Occurred()) SWIG_fail; | |
23104 | arg3 = (int) SWIG_AsInt(obj2); | |
23105 | if (PyErr_Occurred()) SWIG_fail; | |
23106 | { | |
23107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23108 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
23109 | ||
23110 | wxPyEndAllowThreads(__tstate); | |
23111 | if (PyErr_Occurred()) SWIG_fail; | |
23112 | } | |
23113 | resultobj = SWIG_FromLong((long)result); | |
23114 | return resultobj; | |
23115 | fail: | |
23116 | return NULL; | |
23117 | } | |
23118 | ||
23119 | ||
23120 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23121 | PyObject *resultobj; | |
23122 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23123 | long arg2 ; | |
23124 | wxString *arg3 = 0 ; | |
23125 | int arg4 ; | |
23126 | long result; | |
23127 | bool temp3 = False ; | |
23128 | PyObject * obj0 = 0 ; | |
23129 | PyObject * obj1 = 0 ; | |
23130 | PyObject * obj2 = 0 ; | |
23131 | PyObject * obj3 = 0 ; | |
23132 | char *kwnames[] = { | |
23133 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
23134 | }; | |
23135 | ||
23136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23139 | arg2 = (long) SWIG_AsLong(obj1); | |
23140 | if (PyErr_Occurred()) SWIG_fail; | |
23141 | { | |
23142 | arg3 = wxString_in_helper(obj2); | |
23143 | if (arg3 == NULL) SWIG_fail; | |
23144 | temp3 = True; | |
23145 | } | |
23146 | arg4 = (int) SWIG_AsInt(obj3); | |
23147 | if (PyErr_Occurred()) SWIG_fail; | |
23148 | { | |
23149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23150 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23151 | ||
23152 | wxPyEndAllowThreads(__tstate); | |
23153 | if (PyErr_Occurred()) SWIG_fail; | |
23154 | } | |
23155 | resultobj = SWIG_FromLong((long)result); | |
23156 | { | |
23157 | if (temp3) | |
23158 | delete arg3; | |
23159 | } | |
23160 | return resultobj; | |
23161 | fail: | |
23162 | { | |
23163 | if (temp3) | |
23164 | delete arg3; | |
23165 | } | |
23166 | return NULL; | |
23167 | } | |
23168 | ||
23169 | ||
23170 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23171 | PyObject *resultobj; | |
23172 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23173 | long arg2 ; | |
23174 | wxListItem *arg3 = 0 ; | |
23175 | long result; | |
23176 | PyObject * obj0 = 0 ; | |
23177 | PyObject * obj1 = 0 ; | |
23178 | PyObject * obj2 = 0 ; | |
23179 | char *kwnames[] = { | |
23180 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23181 | }; | |
23182 | ||
23183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23186 | arg2 = (long) SWIG_AsLong(obj1); | |
23187 | if (PyErr_Occurred()) SWIG_fail; | |
23188 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23189 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23190 | SWIG_fail; | |
23191 | if (arg3 == NULL) { | |
23192 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23193 | SWIG_fail; | |
23194 | } | |
23195 | { | |
23196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23197 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23198 | ||
23199 | wxPyEndAllowThreads(__tstate); | |
23200 | if (PyErr_Occurred()) SWIG_fail; | |
23201 | } | |
23202 | resultobj = SWIG_FromLong((long)result); | |
23203 | return resultobj; | |
23204 | fail: | |
23205 | return NULL; | |
23206 | } | |
23207 | ||
23208 | ||
23209 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23210 | PyObject *resultobj; | |
23211 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23212 | long arg2 ; | |
23213 | wxString *arg3 = 0 ; | |
23214 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23215 | int arg5 = (int) -1 ; | |
23216 | long result; | |
23217 | bool temp3 = False ; | |
23218 | PyObject * obj0 = 0 ; | |
23219 | PyObject * obj1 = 0 ; | |
23220 | PyObject * obj2 = 0 ; | |
23221 | PyObject * obj3 = 0 ; | |
23222 | PyObject * obj4 = 0 ; | |
23223 | char *kwnames[] = { | |
23224 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23225 | }; | |
23226 | ||
23227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23230 | arg2 = (long) SWIG_AsLong(obj1); | |
23231 | if (PyErr_Occurred()) SWIG_fail; | |
23232 | { | |
23233 | arg3 = wxString_in_helper(obj2); | |
23234 | if (arg3 == NULL) SWIG_fail; | |
23235 | temp3 = True; | |
23236 | } | |
23237 | if (obj3) { | |
23238 | arg4 = (int) SWIG_AsInt(obj3); | |
23239 | if (PyErr_Occurred()) SWIG_fail; | |
23240 | } | |
23241 | if (obj4) { | |
23242 | arg5 = (int) SWIG_AsInt(obj4); | |
23243 | if (PyErr_Occurred()) SWIG_fail; | |
23244 | } | |
23245 | { | |
23246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23247 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
23248 | ||
23249 | wxPyEndAllowThreads(__tstate); | |
23250 | if (PyErr_Occurred()) SWIG_fail; | |
23251 | } | |
23252 | resultobj = SWIG_FromLong((long)result); | |
23253 | { | |
23254 | if (temp3) | |
23255 | delete arg3; | |
23256 | } | |
23257 | return resultobj; | |
23258 | fail: | |
23259 | { | |
23260 | if (temp3) | |
23261 | delete arg3; | |
23262 | } | |
23263 | return NULL; | |
23264 | } | |
23265 | ||
23266 | ||
23267 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23268 | PyObject *resultobj; | |
23269 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23270 | long arg2 ; | |
23271 | PyObject * obj0 = 0 ; | |
23272 | PyObject * obj1 = 0 ; | |
23273 | char *kwnames[] = { | |
23274 | (char *) "self",(char *) "count", NULL | |
23275 | }; | |
23276 | ||
23277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
23278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23280 | arg2 = (long) SWIG_AsLong(obj1); | |
23281 | if (PyErr_Occurred()) SWIG_fail; | |
23282 | { | |
23283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23284 | (arg1)->SetItemCount(arg2); | |
23285 | ||
23286 | wxPyEndAllowThreads(__tstate); | |
23287 | if (PyErr_Occurred()) SWIG_fail; | |
23288 | } | |
23289 | Py_INCREF(Py_None); resultobj = Py_None; | |
23290 | return resultobj; | |
23291 | fail: | |
23292 | return NULL; | |
23293 | } | |
23294 | ||
23295 | ||
23296 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23297 | PyObject *resultobj; | |
23298 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23299 | int arg2 ; | |
23300 | int arg3 ; | |
23301 | bool result; | |
23302 | PyObject * obj0 = 0 ; | |
23303 | PyObject * obj1 = 0 ; | |
23304 | PyObject * obj2 = 0 ; | |
23305 | char *kwnames[] = { | |
23306 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
23307 | }; | |
23308 | ||
23309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23312 | arg2 = (int) SWIG_AsInt(obj1); | |
23313 | if (PyErr_Occurred()) SWIG_fail; | |
23314 | arg3 = (int) SWIG_AsInt(obj2); | |
23315 | if (PyErr_Occurred()) SWIG_fail; | |
23316 | { | |
23317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23318 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
23319 | ||
23320 | wxPyEndAllowThreads(__tstate); | |
23321 | if (PyErr_Occurred()) SWIG_fail; | |
23322 | } | |
23323 | { | |
23324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23325 | } | |
23326 | return resultobj; | |
23327 | fail: | |
23328 | return NULL; | |
23329 | } | |
23330 | ||
23331 | ||
23332 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23333 | PyObject *resultobj; | |
23334 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23335 | long arg2 ; | |
23336 | wxColour *arg3 = 0 ; | |
23337 | wxColour temp3 ; | |
23338 | PyObject * obj0 = 0 ; | |
23339 | PyObject * obj1 = 0 ; | |
23340 | PyObject * obj2 = 0 ; | |
23341 | char *kwnames[] = { | |
23342 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23343 | }; | |
23344 | ||
23345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23348 | arg2 = (long) SWIG_AsLong(obj1); | |
23349 | if (PyErr_Occurred()) SWIG_fail; | |
23350 | { | |
23351 | arg3 = &temp3; | |
23352 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23353 | } | |
23354 | { | |
23355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23356 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
23357 | ||
23358 | wxPyEndAllowThreads(__tstate); | |
23359 | if (PyErr_Occurred()) SWIG_fail; | |
23360 | } | |
23361 | Py_INCREF(Py_None); resultobj = Py_None; | |
23362 | return resultobj; | |
23363 | fail: | |
23364 | return NULL; | |
23365 | } | |
23366 | ||
23367 | ||
23368 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23369 | PyObject *resultobj; | |
23370 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23371 | long arg2 ; | |
23372 | wxColour result; | |
23373 | PyObject * obj0 = 0 ; | |
23374 | PyObject * obj1 = 0 ; | |
23375 | char *kwnames[] = { | |
23376 | (char *) "self",(char *) "item", NULL | |
23377 | }; | |
23378 | ||
23379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
23380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23382 | arg2 = (long) SWIG_AsLong(obj1); | |
23383 | if (PyErr_Occurred()) SWIG_fail; | |
23384 | { | |
23385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23386 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
23387 | ||
23388 | wxPyEndAllowThreads(__tstate); | |
23389 | if (PyErr_Occurred()) SWIG_fail; | |
23390 | } | |
23391 | { | |
23392 | wxColour * resultptr; | |
23393 | resultptr = new wxColour((wxColour &) result); | |
23394 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
23395 | } | |
23396 | return resultobj; | |
23397 | fail: | |
23398 | return NULL; | |
23399 | } | |
23400 | ||
23401 | ||
23402 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23403 | PyObject *resultobj; | |
23404 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23405 | long arg2 ; | |
23406 | wxColour *arg3 = 0 ; | |
23407 | wxColour temp3 ; | |
23408 | PyObject * obj0 = 0 ; | |
23409 | PyObject * obj1 = 0 ; | |
23410 | PyObject * obj2 = 0 ; | |
23411 | char *kwnames[] = { | |
23412 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23413 | }; | |
23414 | ||
23415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23418 | arg2 = (long) SWIG_AsLong(obj1); | |
23419 | if (PyErr_Occurred()) SWIG_fail; | |
23420 | { | |
23421 | arg3 = &temp3; | |
23422 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23423 | } | |
23424 | { | |
23425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23426 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
23427 | ||
23428 | wxPyEndAllowThreads(__tstate); | |
23429 | if (PyErr_Occurred()) SWIG_fail; | |
23430 | } | |
23431 | Py_INCREF(Py_None); resultobj = Py_None; | |
23432 | return resultobj; | |
23433 | fail: | |
23434 | return NULL; | |
23435 | } | |
23436 | ||
23437 | ||
23438 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23439 | PyObject *resultobj; | |
23440 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23441 | long arg2 ; | |
23442 | wxColour result; | |
23443 | PyObject * obj0 = 0 ; | |
23444 | PyObject * obj1 = 0 ; | |
23445 | char *kwnames[] = { | |
23446 | (char *) "self",(char *) "item", NULL | |
23447 | }; | |
23448 | ||
23449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
23450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23452 | arg2 = (long) SWIG_AsLong(obj1); | |
23453 | if (PyErr_Occurred()) SWIG_fail; | |
23454 | { | |
23455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23456 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
23457 | ||
23458 | wxPyEndAllowThreads(__tstate); | |
23459 | if (PyErr_Occurred()) SWIG_fail; | |
23460 | } | |
23461 | { | |
23462 | wxColour * resultptr; | |
23463 | resultptr = new wxColour((wxColour &) result); | |
23464 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
23465 | } | |
23466 | return resultobj; | |
23467 | fail: | |
23468 | return NULL; | |
23469 | } | |
23470 | ||
23471 | ||
23472 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23473 | PyObject *resultobj; | |
23474 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23475 | PyObject *arg2 = (PyObject *) 0 ; | |
23476 | bool result; | |
23477 | PyObject * obj0 = 0 ; | |
23478 | PyObject * obj1 = 0 ; | |
23479 | char *kwnames[] = { | |
23480 | (char *) "self",(char *) "func", NULL | |
23481 | }; | |
23482 | ||
23483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
23484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23486 | arg2 = obj1; | |
23487 | { | |
23488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23489 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
23490 | ||
23491 | wxPyEndAllowThreads(__tstate); | |
23492 | if (PyErr_Occurred()) SWIG_fail; | |
23493 | } | |
23494 | { | |
23495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23496 | } | |
23497 | return resultobj; | |
23498 | fail: | |
23499 | return NULL; | |
23500 | } | |
23501 | ||
23502 | ||
23503 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23504 | PyObject *resultobj; | |
23505 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23506 | wxWindow *result; | |
23507 | PyObject * obj0 = 0 ; | |
23508 | char *kwnames[] = { | |
23509 | (char *) "self", NULL | |
23510 | }; | |
23511 | ||
23512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
23513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23515 | { | |
23516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23517 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
23518 | ||
23519 | wxPyEndAllowThreads(__tstate); | |
23520 | if (PyErr_Occurred()) SWIG_fail; | |
23521 | } | |
23522 | { | |
412d302d | 23523 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23524 | } |
23525 | return resultobj; | |
23526 | fail: | |
23527 | return NULL; | |
23528 | } | |
23529 | ||
23530 | ||
23531 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23532 | PyObject *resultobj; | |
23533 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
23534 | wxVisualAttributes result; | |
23535 | PyObject * obj0 = 0 ; | |
23536 | char *kwnames[] = { | |
23537 | (char *) "variant", NULL | |
23538 | }; | |
23539 | ||
23540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
23541 | if (obj0) { | |
23542 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
23543 | if (PyErr_Occurred()) SWIG_fail; | |
23544 | } | |
23545 | { | |
0439c23b | 23546 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23548 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
23549 | ||
23550 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23551 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23552 | } |
23553 | { | |
23554 | wxVisualAttributes * resultptr; | |
23555 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
23556 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
23557 | } | |
23558 | return resultobj; | |
23559 | fail: | |
23560 | return NULL; | |
23561 | } | |
23562 | ||
23563 | ||
23564 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
23565 | PyObject *obj; | |
23566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23567 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
23568 | Py_INCREF(obj); | |
23569 | return Py_BuildValue((char *)""); | |
23570 | } | |
23571 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23572 | PyObject *resultobj; | |
23573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23574 | int arg2 = (int) -1 ; | |
23575 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
23576 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23577 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23578 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23579 | long arg5 = (long) wxLC_REPORT ; | |
23580 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23581 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23582 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23583 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23584 | wxListView *result; | |
23585 | wxPoint temp3 ; | |
23586 | wxSize temp4 ; | |
23587 | bool temp7 = False ; | |
23588 | PyObject * obj0 = 0 ; | |
23589 | PyObject * obj1 = 0 ; | |
23590 | PyObject * obj2 = 0 ; | |
23591 | PyObject * obj3 = 0 ; | |
23592 | PyObject * obj4 = 0 ; | |
23593 | PyObject * obj5 = 0 ; | |
23594 | PyObject * obj6 = 0 ; | |
23595 | char *kwnames[] = { | |
23596 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23597 | }; | |
23598 | ||
23599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23602 | if (obj1) { | |
23603 | arg2 = (int) SWIG_AsInt(obj1); | |
23604 | if (PyErr_Occurred()) SWIG_fail; | |
23605 | } | |
23606 | if (obj2) { | |
23607 | { | |
23608 | arg3 = &temp3; | |
23609 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23610 | } | |
23611 | } | |
23612 | if (obj3) { | |
23613 | { | |
23614 | arg4 = &temp4; | |
23615 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23616 | } | |
23617 | } | |
23618 | if (obj4) { | |
23619 | arg5 = (long) SWIG_AsLong(obj4); | |
23620 | if (PyErr_Occurred()) SWIG_fail; | |
23621 | } | |
23622 | if (obj5) { | |
23623 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
23624 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23625 | SWIG_fail; | |
23626 | if (arg6 == NULL) { | |
23627 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23628 | SWIG_fail; | |
23629 | } | |
23630 | } | |
23631 | if (obj6) { | |
23632 | { | |
23633 | arg7 = wxString_in_helper(obj6); | |
23634 | if (arg7 == NULL) SWIG_fail; | |
23635 | temp7 = True; | |
23636 | } | |
23637 | } | |
23638 | { | |
0439c23b | 23639 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23641 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23642 | ||
23643 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23644 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23645 | } |
23646 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
23647 | { | |
23648 | if (temp7) | |
23649 | delete arg7; | |
23650 | } | |
23651 | return resultobj; | |
23652 | fail: | |
23653 | { | |
23654 | if (temp7) | |
23655 | delete arg7; | |
23656 | } | |
23657 | return NULL; | |
23658 | } | |
23659 | ||
23660 | ||
23661 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23662 | PyObject *resultobj; | |
23663 | wxListView *result; | |
23664 | char *kwnames[] = { | |
23665 | NULL | |
23666 | }; | |
23667 | ||
23668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
23669 | { | |
0439c23b | 23670 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23672 | result = (wxListView *)new wxListView(); | |
23673 | ||
23674 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23675 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23676 | } |
23677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
23678 | return resultobj; | |
23679 | fail: | |
23680 | return NULL; | |
23681 | } | |
23682 | ||
23683 | ||
23684 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23685 | PyObject *resultobj; | |
23686 | wxListView *arg1 = (wxListView *) 0 ; | |
23687 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23688 | int arg3 = (int) -1 ; | |
23689 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23690 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23691 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23692 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23693 | long arg6 = (long) wxLC_REPORT ; | |
23694 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23695 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23696 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23697 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23698 | bool result; | |
23699 | wxPoint temp4 ; | |
23700 | wxSize temp5 ; | |
23701 | bool temp8 = False ; | |
23702 | PyObject * obj0 = 0 ; | |
23703 | PyObject * obj1 = 0 ; | |
23704 | PyObject * obj2 = 0 ; | |
23705 | PyObject * obj3 = 0 ; | |
23706 | PyObject * obj4 = 0 ; | |
23707 | PyObject * obj5 = 0 ; | |
23708 | PyObject * obj6 = 0 ; | |
23709 | PyObject * obj7 = 0 ; | |
23710 | char *kwnames[] = { | |
23711 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23712 | }; | |
23713 | ||
23714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
23715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23717 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23719 | if (obj2) { | |
23720 | arg3 = (int) SWIG_AsInt(obj2); | |
23721 | if (PyErr_Occurred()) SWIG_fail; | |
23722 | } | |
23723 | if (obj3) { | |
23724 | { | |
23725 | arg4 = &temp4; | |
23726 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23727 | } | |
23728 | } | |
23729 | if (obj4) { | |
23730 | { | |
23731 | arg5 = &temp5; | |
23732 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23733 | } | |
23734 | } | |
23735 | if (obj5) { | |
23736 | arg6 = (long) SWIG_AsLong(obj5); | |
23737 | if (PyErr_Occurred()) SWIG_fail; | |
23738 | } | |
23739 | if (obj6) { | |
23740 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
23741 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23742 | SWIG_fail; | |
23743 | if (arg7 == NULL) { | |
23744 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23745 | SWIG_fail; | |
23746 | } | |
23747 | } | |
23748 | if (obj7) { | |
23749 | { | |
23750 | arg8 = wxString_in_helper(obj7); | |
23751 | if (arg8 == NULL) SWIG_fail; | |
23752 | temp8 = True; | |
23753 | } | |
23754 | } | |
23755 | { | |
23756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23757 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23758 | ||
23759 | wxPyEndAllowThreads(__tstate); | |
23760 | if (PyErr_Occurred()) SWIG_fail; | |
23761 | } | |
23762 | { | |
23763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23764 | } | |
23765 | { | |
23766 | if (temp8) | |
23767 | delete arg8; | |
23768 | } | |
23769 | return resultobj; | |
23770 | fail: | |
23771 | { | |
23772 | if (temp8) | |
23773 | delete arg8; | |
23774 | } | |
23775 | return NULL; | |
23776 | } | |
23777 | ||
23778 | ||
23779 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23780 | PyObject *resultobj; | |
23781 | wxListView *arg1 = (wxListView *) 0 ; | |
23782 | long arg2 ; | |
23783 | bool arg3 = (bool) True ; | |
23784 | PyObject * obj0 = 0 ; | |
23785 | PyObject * obj1 = 0 ; | |
23786 | PyObject * obj2 = 0 ; | |
23787 | char *kwnames[] = { | |
23788 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23789 | }; | |
23790 | ||
23791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23794 | arg2 = (long) SWIG_AsLong(obj1); | |
23795 | if (PyErr_Occurred()) SWIG_fail; | |
23796 | if (obj2) { | |
23797 | arg3 = (bool) SWIG_AsBool(obj2); | |
23798 | if (PyErr_Occurred()) SWIG_fail; | |
23799 | } | |
23800 | { | |
23801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23802 | (arg1)->Select(arg2,arg3); | |
23803 | ||
23804 | wxPyEndAllowThreads(__tstate); | |
23805 | if (PyErr_Occurred()) SWIG_fail; | |
23806 | } | |
23807 | Py_INCREF(Py_None); resultobj = Py_None; | |
23808 | return resultobj; | |
23809 | fail: | |
23810 | return NULL; | |
23811 | } | |
23812 | ||
23813 | ||
23814 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23815 | PyObject *resultobj; | |
23816 | wxListView *arg1 = (wxListView *) 0 ; | |
23817 | long arg2 ; | |
23818 | PyObject * obj0 = 0 ; | |
23819 | PyObject * obj1 = 0 ; | |
23820 | char *kwnames[] = { | |
23821 | (char *) "self",(char *) "index", NULL | |
23822 | }; | |
23823 | ||
23824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
23825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23827 | arg2 = (long) SWIG_AsLong(obj1); | |
23828 | if (PyErr_Occurred()) SWIG_fail; | |
23829 | { | |
23830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23831 | (arg1)->Focus(arg2); | |
23832 | ||
23833 | wxPyEndAllowThreads(__tstate); | |
23834 | if (PyErr_Occurred()) SWIG_fail; | |
23835 | } | |
23836 | Py_INCREF(Py_None); resultobj = Py_None; | |
23837 | return resultobj; | |
23838 | fail: | |
23839 | return NULL; | |
23840 | } | |
23841 | ||
23842 | ||
23843 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23844 | PyObject *resultobj; | |
23845 | wxListView *arg1 = (wxListView *) 0 ; | |
23846 | long result; | |
23847 | PyObject * obj0 = 0 ; | |
23848 | char *kwnames[] = { | |
23849 | (char *) "self", NULL | |
23850 | }; | |
23851 | ||
23852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
23853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23855 | { | |
23856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23857 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23858 | ||
23859 | wxPyEndAllowThreads(__tstate); | |
23860 | if (PyErr_Occurred()) SWIG_fail; | |
23861 | } | |
23862 | resultobj = SWIG_FromLong((long)result); | |
23863 | return resultobj; | |
23864 | fail: | |
23865 | return NULL; | |
23866 | } | |
23867 | ||
23868 | ||
23869 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23870 | PyObject *resultobj; | |
23871 | wxListView *arg1 = (wxListView *) 0 ; | |
23872 | long arg2 ; | |
23873 | long result; | |
23874 | PyObject * obj0 = 0 ; | |
23875 | PyObject * obj1 = 0 ; | |
23876 | char *kwnames[] = { | |
23877 | (char *) "self",(char *) "item", NULL | |
23878 | }; | |
23879 | ||
23880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
23881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23883 | arg2 = (long) SWIG_AsLong(obj1); | |
23884 | if (PyErr_Occurred()) SWIG_fail; | |
23885 | { | |
23886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23887 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
23888 | ||
23889 | wxPyEndAllowThreads(__tstate); | |
23890 | if (PyErr_Occurred()) SWIG_fail; | |
23891 | } | |
23892 | resultobj = SWIG_FromLong((long)result); | |
23893 | return resultobj; | |
23894 | fail: | |
23895 | return NULL; | |
23896 | } | |
23897 | ||
23898 | ||
23899 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23900 | PyObject *resultobj; | |
23901 | wxListView *arg1 = (wxListView *) 0 ; | |
23902 | long result; | |
23903 | PyObject * obj0 = 0 ; | |
23904 | char *kwnames[] = { | |
23905 | (char *) "self", NULL | |
23906 | }; | |
23907 | ||
23908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
23909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23911 | { | |
23912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23913 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
23914 | ||
23915 | wxPyEndAllowThreads(__tstate); | |
23916 | if (PyErr_Occurred()) SWIG_fail; | |
23917 | } | |
23918 | resultobj = SWIG_FromLong((long)result); | |
23919 | return resultobj; | |
23920 | fail: | |
23921 | return NULL; | |
23922 | } | |
23923 | ||
23924 | ||
23925 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23926 | PyObject *resultobj; | |
23927 | wxListView *arg1 = (wxListView *) 0 ; | |
23928 | long arg2 ; | |
23929 | bool result; | |
23930 | PyObject * obj0 = 0 ; | |
23931 | PyObject * obj1 = 0 ; | |
23932 | char *kwnames[] = { | |
23933 | (char *) "self",(char *) "index", NULL | |
23934 | }; | |
23935 | ||
23936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
23937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23939 | arg2 = (long) SWIG_AsLong(obj1); | |
23940 | if (PyErr_Occurred()) SWIG_fail; | |
23941 | { | |
23942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23943 | result = (bool)(arg1)->IsSelected(arg2); | |
23944 | ||
23945 | wxPyEndAllowThreads(__tstate); | |
23946 | if (PyErr_Occurred()) SWIG_fail; | |
23947 | } | |
23948 | { | |
23949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23950 | } | |
23951 | return resultobj; | |
23952 | fail: | |
23953 | return NULL; | |
23954 | } | |
23955 | ||
23956 | ||
23957 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23958 | PyObject *resultobj; | |
23959 | wxListView *arg1 = (wxListView *) 0 ; | |
23960 | int arg2 ; | |
23961 | int arg3 ; | |
23962 | PyObject * obj0 = 0 ; | |
23963 | PyObject * obj1 = 0 ; | |
23964 | PyObject * obj2 = 0 ; | |
23965 | char *kwnames[] = { | |
23966 | (char *) "self",(char *) "col",(char *) "image", NULL | |
23967 | }; | |
23968 | ||
23969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23972 | arg2 = (int) SWIG_AsInt(obj1); | |
23973 | if (PyErr_Occurred()) SWIG_fail; | |
23974 | arg3 = (int) SWIG_AsInt(obj2); | |
23975 | if (PyErr_Occurred()) SWIG_fail; | |
23976 | { | |
23977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23978 | (arg1)->SetColumnImage(arg2,arg3); | |
23979 | ||
23980 | wxPyEndAllowThreads(__tstate); | |
23981 | if (PyErr_Occurred()) SWIG_fail; | |
23982 | } | |
23983 | Py_INCREF(Py_None); resultobj = Py_None; | |
23984 | return resultobj; | |
23985 | fail: | |
23986 | return NULL; | |
23987 | } | |
23988 | ||
23989 | ||
23990 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23991 | PyObject *resultobj; | |
23992 | wxListView *arg1 = (wxListView *) 0 ; | |
23993 | int arg2 ; | |
23994 | PyObject * obj0 = 0 ; | |
23995 | PyObject * obj1 = 0 ; | |
23996 | char *kwnames[] = { | |
23997 | (char *) "self",(char *) "col", NULL | |
23998 | }; | |
23999 | ||
24000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
24001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24003 | arg2 = (int) SWIG_AsInt(obj1); | |
24004 | if (PyErr_Occurred()) SWIG_fail; | |
24005 | { | |
24006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24007 | (arg1)->ClearColumnImage(arg2); | |
24008 | ||
24009 | wxPyEndAllowThreads(__tstate); | |
24010 | if (PyErr_Occurred()) SWIG_fail; | |
24011 | } | |
24012 | Py_INCREF(Py_None); resultobj = Py_None; | |
24013 | return resultobj; | |
24014 | fail: | |
24015 | return NULL; | |
24016 | } | |
24017 | ||
24018 | ||
24019 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
24020 | PyObject *obj; | |
24021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24022 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
24023 | Py_INCREF(obj); | |
24024 | return Py_BuildValue((char *)""); | |
24025 | } | |
24026 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { | |
24027 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
24028 | return 1; | |
24029 | } | |
24030 | ||
24031 | ||
24032 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
24033 | PyObject *pyobj; | |
24034 | ||
24035 | { | |
24036 | #if wxUSE_UNICODE | |
24037 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24038 | #else | |
24039 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24040 | #endif | |
24041 | } | |
24042 | return pyobj; | |
24043 | } | |
24044 | ||
24045 | ||
24046 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24047 | PyObject *resultobj; | |
24048 | wxTreeItemId *result; | |
24049 | char *kwnames[] = { | |
24050 | NULL | |
24051 | }; | |
24052 | ||
24053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
24054 | { | |
24055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24056 | result = (wxTreeItemId *)new wxTreeItemId(); | |
24057 | ||
24058 | wxPyEndAllowThreads(__tstate); | |
24059 | if (PyErr_Occurred()) SWIG_fail; | |
24060 | } | |
24061 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); | |
24062 | return resultobj; | |
24063 | fail: | |
24064 | return NULL; | |
24065 | } | |
24066 | ||
24067 | ||
24068 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24069 | PyObject *resultobj; | |
24070 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24071 | PyObject * obj0 = 0 ; | |
24072 | char *kwnames[] = { | |
24073 | (char *) "self", NULL | |
24074 | }; | |
24075 | ||
24076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
24077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24079 | { | |
24080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24081 | delete arg1; | |
24082 | ||
24083 | wxPyEndAllowThreads(__tstate); | |
24084 | if (PyErr_Occurred()) SWIG_fail; | |
24085 | } | |
24086 | Py_INCREF(Py_None); resultobj = Py_None; | |
24087 | return resultobj; | |
24088 | fail: | |
24089 | return NULL; | |
24090 | } | |
24091 | ||
24092 | ||
24093 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24094 | PyObject *resultobj; | |
24095 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24096 | bool result; | |
24097 | PyObject * obj0 = 0 ; | |
24098 | char *kwnames[] = { | |
24099 | (char *) "self", NULL | |
24100 | }; | |
24101 | ||
24102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
24103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24105 | { | |
24106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24107 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
24108 | ||
24109 | wxPyEndAllowThreads(__tstate); | |
24110 | if (PyErr_Occurred()) SWIG_fail; | |
24111 | } | |
24112 | { | |
24113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24114 | } | |
24115 | return resultobj; | |
24116 | fail: | |
24117 | return NULL; | |
24118 | } | |
24119 | ||
24120 | ||
24121 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24122 | PyObject *resultobj; | |
24123 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24124 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24125 | bool result; | |
24126 | PyObject * obj0 = 0 ; | |
24127 | PyObject * obj1 = 0 ; | |
24128 | char *kwnames[] = { | |
24129 | (char *) "self",(char *) "other", NULL | |
24130 | }; | |
24131 | ||
24132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
24133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24135 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24137 | { | |
24138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24139 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
24140 | ||
24141 | wxPyEndAllowThreads(__tstate); | |
24142 | if (PyErr_Occurred()) SWIG_fail; | |
24143 | } | |
24144 | { | |
24145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24146 | } | |
24147 | return resultobj; | |
24148 | fail: | |
24149 | return NULL; | |
24150 | } | |
24151 | ||
24152 | ||
24153 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24154 | PyObject *resultobj; | |
24155 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24156 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24157 | bool result; | |
24158 | PyObject * obj0 = 0 ; | |
24159 | PyObject * obj1 = 0 ; | |
24160 | char *kwnames[] = { | |
24161 | (char *) "self",(char *) "other", NULL | |
24162 | }; | |
24163 | ||
24164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
24165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24169 | { | |
24170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24171 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
24172 | ||
24173 | wxPyEndAllowThreads(__tstate); | |
24174 | if (PyErr_Occurred()) SWIG_fail; | |
24175 | } | |
24176 | { | |
24177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24178 | } | |
24179 | return resultobj; | |
24180 | fail: | |
24181 | return NULL; | |
24182 | } | |
24183 | ||
24184 | ||
24185 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24186 | PyObject *resultobj; | |
24187 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24188 | void *arg2 = (void *) 0 ; | |
24189 | PyObject * obj0 = 0 ; | |
24190 | PyObject * obj1 = 0 ; | |
24191 | char *kwnames[] = { | |
24192 | (char *) "self",(char *) "m_pItem", NULL | |
24193 | }; | |
24194 | ||
24195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
24196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24198 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24199 | if (arg1) (arg1)->m_pItem = arg2; | |
24200 | ||
24201 | Py_INCREF(Py_None); resultobj = Py_None; | |
24202 | return resultobj; | |
24203 | fail: | |
24204 | return NULL; | |
24205 | } | |
24206 | ||
24207 | ||
24208 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24209 | PyObject *resultobj; | |
24210 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24211 | void *result; | |
24212 | PyObject * obj0 = 0 ; | |
24213 | char *kwnames[] = { | |
24214 | (char *) "self", NULL | |
24215 | }; | |
24216 | ||
24217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
24218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24220 | result = (void *) ((arg1)->m_pItem); | |
24221 | ||
24222 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
24223 | return resultobj; | |
24224 | fail: | |
24225 | return NULL; | |
24226 | } | |
24227 | ||
24228 | ||
24229 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
24230 | PyObject *obj; | |
24231 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24232 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
24233 | Py_INCREF(obj); | |
24234 | return Py_BuildValue((char *)""); | |
24235 | } | |
24236 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24237 | PyObject *resultobj; | |
24238 | PyObject *arg1 = (PyObject *) NULL ; | |
24239 | wxPyTreeItemData *result; | |
24240 | PyObject * obj0 = 0 ; | |
24241 | char *kwnames[] = { | |
24242 | (char *) "obj", NULL | |
24243 | }; | |
24244 | ||
24245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
24246 | if (obj0) { | |
24247 | arg1 = obj0; | |
24248 | } | |
24249 | { | |
24250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24251 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
24252 | ||
24253 | wxPyEndAllowThreads(__tstate); | |
24254 | if (PyErr_Occurred()) SWIG_fail; | |
24255 | } | |
24256 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); | |
24257 | return resultobj; | |
24258 | fail: | |
24259 | return NULL; | |
24260 | } | |
24261 | ||
24262 | ||
24263 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24264 | PyObject *resultobj; | |
24265 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24266 | PyObject *result; | |
24267 | PyObject * obj0 = 0 ; | |
24268 | char *kwnames[] = { | |
24269 | (char *) "self", NULL | |
24270 | }; | |
24271 | ||
24272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
24273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24275 | { | |
24276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24277 | result = (PyObject *)(arg1)->GetData(); | |
24278 | ||
24279 | wxPyEndAllowThreads(__tstate); | |
24280 | if (PyErr_Occurred()) SWIG_fail; | |
24281 | } | |
24282 | resultobj = result; | |
24283 | return resultobj; | |
24284 | fail: | |
24285 | return NULL; | |
24286 | } | |
24287 | ||
24288 | ||
24289 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24290 | PyObject *resultobj; | |
24291 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24292 | PyObject *arg2 = (PyObject *) 0 ; | |
24293 | PyObject * obj0 = 0 ; | |
24294 | PyObject * obj1 = 0 ; | |
24295 | char *kwnames[] = { | |
24296 | (char *) "self",(char *) "obj", NULL | |
24297 | }; | |
24298 | ||
24299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24302 | arg2 = obj1; | |
24303 | { | |
24304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24305 | (arg1)->SetData(arg2); | |
24306 | ||
24307 | wxPyEndAllowThreads(__tstate); | |
24308 | if (PyErr_Occurred()) SWIG_fail; | |
24309 | } | |
24310 | Py_INCREF(Py_None); resultobj = Py_None; | |
24311 | return resultobj; | |
24312 | fail: | |
24313 | return NULL; | |
24314 | } | |
24315 | ||
24316 | ||
24317 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24318 | PyObject *resultobj; | |
24319 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24320 | wxTreeItemId *result; | |
24321 | PyObject * obj0 = 0 ; | |
24322 | char *kwnames[] = { | |
24323 | (char *) "self", NULL | |
24324 | }; | |
24325 | ||
24326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
24327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24329 | { | |
24330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24331 | { | |
24332 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
24333 | result = (wxTreeItemId *) &_result_ref; | |
24334 | } | |
24335 | ||
24336 | wxPyEndAllowThreads(__tstate); | |
24337 | if (PyErr_Occurred()) SWIG_fail; | |
24338 | } | |
24339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); | |
24340 | return resultobj; | |
24341 | fail: | |
24342 | return NULL; | |
24343 | } | |
24344 | ||
24345 | ||
24346 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24347 | PyObject *resultobj; | |
24348 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24349 | wxTreeItemId *arg2 = 0 ; | |
24350 | PyObject * obj0 = 0 ; | |
24351 | PyObject * obj1 = 0 ; | |
24352 | char *kwnames[] = { | |
24353 | (char *) "self",(char *) "id", NULL | |
24354 | }; | |
24355 | ||
24356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24359 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24360 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24361 | SWIG_fail; | |
24362 | if (arg2 == NULL) { | |
24363 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24364 | SWIG_fail; | |
24365 | } | |
24366 | { | |
24367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24368 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
24369 | ||
24370 | wxPyEndAllowThreads(__tstate); | |
24371 | if (PyErr_Occurred()) SWIG_fail; | |
24372 | } | |
24373 | Py_INCREF(Py_None); resultobj = Py_None; | |
24374 | return resultobj; | |
24375 | fail: | |
24376 | return NULL; | |
24377 | } | |
24378 | ||
24379 | ||
24380 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24381 | PyObject *resultobj; | |
24382 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24383 | PyObject * obj0 = 0 ; | |
24384 | char *kwnames[] = { | |
24385 | (char *) "self", NULL | |
24386 | }; | |
24387 | ||
24388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
24389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24391 | { | |
24392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24393 | wxPyTreeItemData_Destroy(arg1); | |
24394 | ||
24395 | wxPyEndAllowThreads(__tstate); | |
24396 | if (PyErr_Occurred()) SWIG_fail; | |
24397 | } | |
24398 | Py_INCREF(Py_None); resultobj = Py_None; | |
24399 | return resultobj; | |
24400 | fail: | |
24401 | return NULL; | |
24402 | } | |
24403 | ||
24404 | ||
24405 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
24406 | PyObject *obj; | |
24407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24408 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
24409 | Py_INCREF(obj); | |
24410 | return Py_BuildValue((char *)""); | |
24411 | } | |
24412 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24413 | PyObject *resultobj; | |
24414 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
24415 | int arg2 = (int) 0 ; | |
24416 | wxTreeEvent *result; | |
24417 | PyObject * obj0 = 0 ; | |
24418 | PyObject * obj1 = 0 ; | |
24419 | char *kwnames[] = { | |
24420 | (char *) "commandType",(char *) "id", NULL | |
24421 | }; | |
24422 | ||
24423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
24424 | if (obj0) { | |
24425 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
24426 | if (PyErr_Occurred()) SWIG_fail; | |
24427 | } | |
24428 | if (obj1) { | |
24429 | arg2 = (int) SWIG_AsInt(obj1); | |
24430 | if (PyErr_Occurred()) SWIG_fail; | |
24431 | } | |
24432 | { | |
24433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24434 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
24435 | ||
24436 | wxPyEndAllowThreads(__tstate); | |
24437 | if (PyErr_Occurred()) SWIG_fail; | |
24438 | } | |
24439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); | |
24440 | return resultobj; | |
24441 | fail: | |
24442 | return NULL; | |
24443 | } | |
24444 | ||
24445 | ||
24446 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24447 | PyObject *resultobj; | |
24448 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24449 | wxTreeItemId result; | |
24450 | PyObject * obj0 = 0 ; | |
24451 | char *kwnames[] = { | |
24452 | (char *) "self", NULL | |
24453 | }; | |
24454 | ||
24455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
24456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24458 | { | |
24459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24460 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
24461 | ||
24462 | wxPyEndAllowThreads(__tstate); | |
24463 | if (PyErr_Occurred()) SWIG_fail; | |
24464 | } | |
24465 | { | |
24466 | wxTreeItemId * resultptr; | |
24467 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24468 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
24469 | } | |
24470 | return resultobj; | |
24471 | fail: | |
24472 | return NULL; | |
24473 | } | |
24474 | ||
24475 | ||
24476 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24477 | PyObject *resultobj; | |
24478 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24479 | wxTreeItemId *arg2 = 0 ; | |
24480 | PyObject * obj0 = 0 ; | |
24481 | PyObject * obj1 = 0 ; | |
24482 | char *kwnames[] = { | |
24483 | (char *) "self",(char *) "item", NULL | |
24484 | }; | |
24485 | ||
24486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
24487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24489 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24490 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24491 | SWIG_fail; | |
24492 | if (arg2 == NULL) { | |
24493 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24494 | SWIG_fail; | |
24495 | } | |
24496 | { | |
24497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24498 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
24499 | ||
24500 | wxPyEndAllowThreads(__tstate); | |
24501 | if (PyErr_Occurred()) SWIG_fail; | |
24502 | } | |
24503 | Py_INCREF(Py_None); resultobj = Py_None; | |
24504 | return resultobj; | |
24505 | fail: | |
24506 | return NULL; | |
24507 | } | |
24508 | ||
24509 | ||
24510 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24511 | PyObject *resultobj; | |
24512 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24513 | wxTreeItemId result; | |
24514 | PyObject * obj0 = 0 ; | |
24515 | char *kwnames[] = { | |
24516 | (char *) "self", NULL | |
24517 | }; | |
24518 | ||
24519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
24520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24522 | { | |
24523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24524 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
24525 | ||
24526 | wxPyEndAllowThreads(__tstate); | |
24527 | if (PyErr_Occurred()) SWIG_fail; | |
24528 | } | |
24529 | { | |
24530 | wxTreeItemId * resultptr; | |
24531 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24532 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
24533 | } | |
24534 | return resultobj; | |
24535 | fail: | |
24536 | return NULL; | |
24537 | } | |
24538 | ||
24539 | ||
24540 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24541 | PyObject *resultobj; | |
24542 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24543 | wxTreeItemId *arg2 = 0 ; | |
24544 | PyObject * obj0 = 0 ; | |
24545 | PyObject * obj1 = 0 ; | |
24546 | char *kwnames[] = { | |
24547 | (char *) "self",(char *) "item", NULL | |
24548 | }; | |
24549 | ||
24550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
24551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24554 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24555 | SWIG_fail; | |
24556 | if (arg2 == NULL) { | |
24557 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24558 | SWIG_fail; | |
24559 | } | |
24560 | { | |
24561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24562 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
24563 | ||
24564 | wxPyEndAllowThreads(__tstate); | |
24565 | if (PyErr_Occurred()) SWIG_fail; | |
24566 | } | |
24567 | Py_INCREF(Py_None); resultobj = Py_None; | |
24568 | return resultobj; | |
24569 | fail: | |
24570 | return NULL; | |
24571 | } | |
24572 | ||
24573 | ||
24574 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24575 | PyObject *resultobj; | |
24576 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24577 | wxPoint result; | |
24578 | PyObject * obj0 = 0 ; | |
24579 | char *kwnames[] = { | |
24580 | (char *) "self", NULL | |
24581 | }; | |
24582 | ||
24583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
24584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24586 | { | |
24587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24588 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
24589 | ||
24590 | wxPyEndAllowThreads(__tstate); | |
24591 | if (PyErr_Occurred()) SWIG_fail; | |
24592 | } | |
24593 | { | |
24594 | wxPoint * resultptr; | |
24595 | resultptr = new wxPoint((wxPoint &) result); | |
24596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
24597 | } | |
24598 | return resultobj; | |
24599 | fail: | |
24600 | return NULL; | |
24601 | } | |
24602 | ||
24603 | ||
24604 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24605 | PyObject *resultobj; | |
24606 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24607 | wxPoint *arg2 = 0 ; | |
24608 | wxPoint temp2 ; | |
24609 | PyObject * obj0 = 0 ; | |
24610 | PyObject * obj1 = 0 ; | |
24611 | char *kwnames[] = { | |
24612 | (char *) "self",(char *) "pt", NULL | |
24613 | }; | |
24614 | ||
24615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
24616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24618 | { | |
24619 | arg2 = &temp2; | |
24620 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24621 | } | |
24622 | { | |
24623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24624 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
24625 | ||
24626 | wxPyEndAllowThreads(__tstate); | |
24627 | if (PyErr_Occurred()) SWIG_fail; | |
24628 | } | |
24629 | Py_INCREF(Py_None); resultobj = Py_None; | |
24630 | return resultobj; | |
24631 | fail: | |
24632 | return NULL; | |
24633 | } | |
24634 | ||
24635 | ||
24636 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24637 | PyObject *resultobj; | |
24638 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24639 | wxKeyEvent *result; | |
24640 | PyObject * obj0 = 0 ; | |
24641 | char *kwnames[] = { | |
24642 | (char *) "self", NULL | |
24643 | }; | |
24644 | ||
24645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
24646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24648 | { | |
24649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24650 | { | |
24651 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
24652 | result = (wxKeyEvent *) &_result_ref; | |
24653 | } | |
24654 | ||
24655 | wxPyEndAllowThreads(__tstate); | |
24656 | if (PyErr_Occurred()) SWIG_fail; | |
24657 | } | |
24658 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); | |
24659 | return resultobj; | |
24660 | fail: | |
24661 | return NULL; | |
24662 | } | |
24663 | ||
24664 | ||
24665 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24666 | PyObject *resultobj; | |
24667 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24668 | int result; | |
24669 | PyObject * obj0 = 0 ; | |
24670 | char *kwnames[] = { | |
24671 | (char *) "self", NULL | |
24672 | }; | |
24673 | ||
24674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
24675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24677 | { | |
24678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24679 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
24680 | ||
24681 | wxPyEndAllowThreads(__tstate); | |
24682 | if (PyErr_Occurred()) SWIG_fail; | |
24683 | } | |
24684 | resultobj = SWIG_FromInt((int)result); | |
24685 | return resultobj; | |
24686 | fail: | |
24687 | return NULL; | |
24688 | } | |
24689 | ||
24690 | ||
24691 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24692 | PyObject *resultobj; | |
24693 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24694 | wxKeyEvent *arg2 = 0 ; | |
24695 | PyObject * obj0 = 0 ; | |
24696 | PyObject * obj1 = 0 ; | |
24697 | char *kwnames[] = { | |
24698 | (char *) "self",(char *) "evt", NULL | |
24699 | }; | |
24700 | ||
24701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
24702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24704 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
24705 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24706 | SWIG_fail; | |
24707 | if (arg2 == NULL) { | |
24708 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24709 | SWIG_fail; | |
24710 | } | |
24711 | { | |
24712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24713 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
24714 | ||
24715 | wxPyEndAllowThreads(__tstate); | |
24716 | if (PyErr_Occurred()) SWIG_fail; | |
24717 | } | |
24718 | Py_INCREF(Py_None); resultobj = Py_None; | |
24719 | return resultobj; | |
24720 | fail: | |
24721 | return NULL; | |
24722 | } | |
24723 | ||
24724 | ||
24725 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24726 | PyObject *resultobj; | |
24727 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24728 | wxString *result; | |
24729 | PyObject * obj0 = 0 ; | |
24730 | char *kwnames[] = { | |
24731 | (char *) "self", NULL | |
24732 | }; | |
24733 | ||
24734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
24735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24737 | { | |
24738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24739 | { | |
24740 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
24741 | result = (wxString *) &_result_ref; | |
24742 | } | |
24743 | ||
24744 | wxPyEndAllowThreads(__tstate); | |
24745 | if (PyErr_Occurred()) SWIG_fail; | |
24746 | } | |
24747 | { | |
24748 | #if wxUSE_UNICODE | |
24749 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24750 | #else | |
24751 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24752 | #endif | |
24753 | } | |
24754 | return resultobj; | |
24755 | fail: | |
24756 | return NULL; | |
24757 | } | |
24758 | ||
24759 | ||
24760 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24761 | PyObject *resultobj; | |
24762 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24763 | wxString *arg2 = 0 ; | |
24764 | bool temp2 = False ; | |
24765 | PyObject * obj0 = 0 ; | |
24766 | PyObject * obj1 = 0 ; | |
24767 | char *kwnames[] = { | |
24768 | (char *) "self",(char *) "label", NULL | |
24769 | }; | |
24770 | ||
24771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
24772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24774 | { | |
24775 | arg2 = wxString_in_helper(obj1); | |
24776 | if (arg2 == NULL) SWIG_fail; | |
24777 | temp2 = True; | |
24778 | } | |
24779 | { | |
24780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24781 | (arg1)->SetLabel((wxString const &)*arg2); | |
24782 | ||
24783 | wxPyEndAllowThreads(__tstate); | |
24784 | if (PyErr_Occurred()) SWIG_fail; | |
24785 | } | |
24786 | Py_INCREF(Py_None); resultobj = Py_None; | |
24787 | { | |
24788 | if (temp2) | |
24789 | delete arg2; | |
24790 | } | |
24791 | return resultobj; | |
24792 | fail: | |
24793 | { | |
24794 | if (temp2) | |
24795 | delete arg2; | |
24796 | } | |
24797 | return NULL; | |
24798 | } | |
24799 | ||
24800 | ||
24801 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24802 | PyObject *resultobj; | |
24803 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24804 | bool result; | |
24805 | PyObject * obj0 = 0 ; | |
24806 | char *kwnames[] = { | |
24807 | (char *) "self", NULL | |
24808 | }; | |
24809 | ||
24810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
24811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24813 | { | |
24814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24815 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24816 | ||
24817 | wxPyEndAllowThreads(__tstate); | |
24818 | if (PyErr_Occurred()) SWIG_fail; | |
24819 | } | |
24820 | { | |
24821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24822 | } | |
24823 | return resultobj; | |
24824 | fail: | |
24825 | return NULL; | |
24826 | } | |
24827 | ||
24828 | ||
24829 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24830 | PyObject *resultobj; | |
24831 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24832 | bool arg2 ; | |
24833 | PyObject * obj0 = 0 ; | |
24834 | PyObject * obj1 = 0 ; | |
24835 | char *kwnames[] = { | |
24836 | (char *) "self",(char *) "editCancelled", NULL | |
24837 | }; | |
24838 | ||
24839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
24840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24842 | arg2 = (bool) SWIG_AsBool(obj1); | |
24843 | if (PyErr_Occurred()) SWIG_fail; | |
24844 | { | |
24845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24846 | (arg1)->SetEditCanceled(arg2); | |
24847 | ||
24848 | wxPyEndAllowThreads(__tstate); | |
24849 | if (PyErr_Occurred()) SWIG_fail; | |
24850 | } | |
24851 | Py_INCREF(Py_None); resultobj = Py_None; | |
24852 | return resultobj; | |
24853 | fail: | |
24854 | return NULL; | |
24855 | } | |
24856 | ||
24857 | ||
24858 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24859 | PyObject *resultobj; | |
24860 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24861 | wxString *arg2 = 0 ; | |
24862 | bool temp2 = False ; | |
24863 | PyObject * obj0 = 0 ; | |
24864 | PyObject * obj1 = 0 ; | |
24865 | char *kwnames[] = { | |
24866 | (char *) "self",(char *) "toolTip", NULL | |
24867 | }; | |
24868 | ||
24869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
24870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24872 | { | |
24873 | arg2 = wxString_in_helper(obj1); | |
24874 | if (arg2 == NULL) SWIG_fail; | |
24875 | temp2 = True; | |
24876 | } | |
24877 | { | |
24878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24879 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24880 | ||
24881 | wxPyEndAllowThreads(__tstate); | |
24882 | if (PyErr_Occurred()) SWIG_fail; | |
24883 | } | |
24884 | Py_INCREF(Py_None); resultobj = Py_None; | |
24885 | { | |
24886 | if (temp2) | |
24887 | delete arg2; | |
24888 | } | |
24889 | return resultobj; | |
24890 | fail: | |
24891 | { | |
24892 | if (temp2) | |
24893 | delete arg2; | |
24894 | } | |
24895 | return NULL; | |
24896 | } | |
24897 | ||
24898 | ||
24899 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { | |
24900 | PyObject *obj; | |
24901 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24902 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
24903 | Py_INCREF(obj); | |
24904 | return Py_BuildValue((char *)""); | |
24905 | } | |
24906 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24907 | PyObject *resultobj; | |
24908 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24909 | int arg2 = (int) -1 ; | |
24910 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
24911 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24912 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24913 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24914 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
24915 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24916 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
24917 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
24918 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24919 | wxPyTreeCtrl *result; | |
24920 | wxPoint temp3 ; | |
24921 | wxSize temp4 ; | |
24922 | bool temp7 = False ; | |
24923 | PyObject * obj0 = 0 ; | |
24924 | PyObject * obj1 = 0 ; | |
24925 | PyObject * obj2 = 0 ; | |
24926 | PyObject * obj3 = 0 ; | |
24927 | PyObject * obj4 = 0 ; | |
24928 | PyObject * obj5 = 0 ; | |
24929 | PyObject * obj6 = 0 ; | |
24930 | char *kwnames[] = { | |
24931 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24932 | }; | |
24933 | ||
24934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24937 | if (obj1) { | |
24938 | arg2 = (int) SWIG_AsInt(obj1); | |
24939 | if (PyErr_Occurred()) SWIG_fail; | |
24940 | } | |
24941 | if (obj2) { | |
24942 | { | |
24943 | arg3 = &temp3; | |
24944 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24945 | } | |
24946 | } | |
24947 | if (obj3) { | |
24948 | { | |
24949 | arg4 = &temp4; | |
24950 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24951 | } | |
24952 | } | |
24953 | if (obj4) { | |
24954 | arg5 = (long) SWIG_AsLong(obj4); | |
24955 | if (PyErr_Occurred()) SWIG_fail; | |
24956 | } | |
24957 | if (obj5) { | |
24958 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
24959 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24960 | SWIG_fail; | |
24961 | if (arg6 == NULL) { | |
24962 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24963 | SWIG_fail; | |
24964 | } | |
24965 | } | |
24966 | if (obj6) { | |
24967 | { | |
24968 | arg7 = wxString_in_helper(obj6); | |
24969 | if (arg7 == NULL) SWIG_fail; | |
24970 | temp7 = True; | |
24971 | } | |
24972 | } | |
24973 | { | |
0439c23b | 24974 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24976 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24977 | ||
24978 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24979 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24980 | } |
24981 | { | |
412d302d | 24982 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
24983 | } |
24984 | { | |
24985 | if (temp7) | |
24986 | delete arg7; | |
24987 | } | |
24988 | return resultobj; | |
24989 | fail: | |
24990 | { | |
24991 | if (temp7) | |
24992 | delete arg7; | |
24993 | } | |
24994 | return NULL; | |
24995 | } | |
24996 | ||
24997 | ||
24998 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24999 | PyObject *resultobj; | |
25000 | wxPyTreeCtrl *result; | |
25001 | char *kwnames[] = { | |
25002 | NULL | |
25003 | }; | |
25004 | ||
25005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
25006 | { | |
0439c23b | 25007 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25009 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
25010 | ||
25011 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25012 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
25013 | } |
25014 | { | |
412d302d | 25015 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
25016 | } |
25017 | return resultobj; | |
25018 | fail: | |
25019 | return NULL; | |
25020 | } | |
25021 | ||
25022 | ||
25023 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25024 | PyObject *resultobj; | |
25025 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25026 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25027 | int arg3 = (int) -1 ; | |
25028 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25029 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25030 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25031 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25032 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
25033 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25034 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
25035 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
25036 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
25037 | bool result; | |
25038 | wxPoint temp4 ; | |
25039 | wxSize temp5 ; | |
25040 | bool temp8 = False ; | |
25041 | PyObject * obj0 = 0 ; | |
25042 | PyObject * obj1 = 0 ; | |
25043 | PyObject * obj2 = 0 ; | |
25044 | PyObject * obj3 = 0 ; | |
25045 | PyObject * obj4 = 0 ; | |
25046 | PyObject * obj5 = 0 ; | |
25047 | PyObject * obj6 = 0 ; | |
25048 | PyObject * obj7 = 0 ; | |
25049 | char *kwnames[] = { | |
25050 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25051 | }; | |
25052 | ||
25053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
25054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25056 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25058 | if (obj2) { | |
25059 | arg3 = (int) SWIG_AsInt(obj2); | |
25060 | if (PyErr_Occurred()) SWIG_fail; | |
25061 | } | |
25062 | if (obj3) { | |
25063 | { | |
25064 | arg4 = &temp4; | |
25065 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25066 | } | |
25067 | } | |
25068 | if (obj4) { | |
25069 | { | |
25070 | arg5 = &temp5; | |
25071 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25072 | } | |
25073 | } | |
25074 | if (obj5) { | |
25075 | arg6 = (long) SWIG_AsLong(obj5); | |
25076 | if (PyErr_Occurred()) SWIG_fail; | |
25077 | } | |
25078 | if (obj6) { | |
25079 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
25080 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25081 | SWIG_fail; | |
25082 | if (arg7 == NULL) { | |
25083 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25084 | SWIG_fail; | |
25085 | } | |
25086 | } | |
25087 | if (obj7) { | |
25088 | { | |
25089 | arg8 = wxString_in_helper(obj7); | |
25090 | if (arg8 == NULL) SWIG_fail; | |
25091 | temp8 = True; | |
25092 | } | |
25093 | } | |
25094 | { | |
25095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25096 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25097 | ||
25098 | wxPyEndAllowThreads(__tstate); | |
25099 | if (PyErr_Occurred()) SWIG_fail; | |
25100 | } | |
25101 | { | |
25102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25103 | } | |
25104 | { | |
25105 | if (temp8) | |
25106 | delete arg8; | |
25107 | } | |
25108 | return resultobj; | |
25109 | fail: | |
25110 | { | |
25111 | if (temp8) | |
25112 | delete arg8; | |
25113 | } | |
25114 | return NULL; | |
25115 | } | |
25116 | ||
25117 | ||
25118 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25119 | PyObject *resultobj; | |
25120 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25121 | PyObject *arg2 = (PyObject *) 0 ; | |
25122 | PyObject *arg3 = (PyObject *) 0 ; | |
25123 | PyObject * obj0 = 0 ; | |
25124 | PyObject * obj1 = 0 ; | |
25125 | PyObject * obj2 = 0 ; | |
25126 | char *kwnames[] = { | |
25127 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25128 | }; | |
25129 | ||
25130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25133 | arg2 = obj1; | |
25134 | arg3 = obj2; | |
25135 | { | |
25136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25137 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25138 | ||
25139 | wxPyEndAllowThreads(__tstate); | |
25140 | if (PyErr_Occurred()) SWIG_fail; | |
25141 | } | |
25142 | Py_INCREF(Py_None); resultobj = Py_None; | |
25143 | return resultobj; | |
25144 | fail: | |
25145 | return NULL; | |
25146 | } | |
25147 | ||
25148 | ||
25149 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25150 | PyObject *resultobj; | |
25151 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25152 | size_t result; | |
25153 | PyObject * obj0 = 0 ; | |
25154 | char *kwnames[] = { | |
25155 | (char *) "self", NULL | |
25156 | }; | |
25157 | ||
25158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
25159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25161 | { | |
25162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25163 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25164 | ||
25165 | wxPyEndAllowThreads(__tstate); | |
25166 | if (PyErr_Occurred()) SWIG_fail; | |
25167 | } | |
25168 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25169 | return resultobj; | |
25170 | fail: | |
25171 | return NULL; | |
25172 | } | |
25173 | ||
25174 | ||
25175 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25176 | PyObject *resultobj; | |
25177 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25178 | unsigned int result; | |
25179 | PyObject * obj0 = 0 ; | |
25180 | char *kwnames[] = { | |
25181 | (char *) "self", NULL | |
25182 | }; | |
25183 | ||
25184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
25185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25187 | { | |
25188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25189 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25190 | ||
25191 | wxPyEndAllowThreads(__tstate); | |
25192 | if (PyErr_Occurred()) SWIG_fail; | |
25193 | } | |
25194 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
25195 | return resultobj; | |
25196 | fail: | |
25197 | return NULL; | |
25198 | } | |
25199 | ||
25200 | ||
25201 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25202 | PyObject *resultobj; | |
25203 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25204 | unsigned int arg2 ; | |
25205 | PyObject * obj0 = 0 ; | |
25206 | PyObject * obj1 = 0 ; | |
25207 | char *kwnames[] = { | |
25208 | (char *) "self",(char *) "indent", NULL | |
25209 | }; | |
25210 | ||
25211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
25212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25214 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25215 | if (PyErr_Occurred()) SWIG_fail; | |
25216 | { | |
25217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25218 | (arg1)->SetIndent(arg2); | |
25219 | ||
25220 | wxPyEndAllowThreads(__tstate); | |
25221 | if (PyErr_Occurred()) SWIG_fail; | |
25222 | } | |
25223 | Py_INCREF(Py_None); resultobj = Py_None; | |
25224 | return resultobj; | |
25225 | fail: | |
25226 | return NULL; | |
25227 | } | |
25228 | ||
25229 | ||
25230 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25231 | PyObject *resultobj; | |
25232 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25233 | unsigned int result; | |
25234 | PyObject * obj0 = 0 ; | |
25235 | char *kwnames[] = { | |
25236 | (char *) "self", NULL | |
25237 | }; | |
25238 | ||
25239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
25240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25242 | { | |
25243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25244 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
25245 | ||
25246 | wxPyEndAllowThreads(__tstate); | |
25247 | if (PyErr_Occurred()) SWIG_fail; | |
25248 | } | |
25249 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
25250 | return resultobj; | |
25251 | fail: | |
25252 | return NULL; | |
25253 | } | |
25254 | ||
25255 | ||
25256 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25257 | PyObject *resultobj; | |
25258 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25259 | unsigned int arg2 ; | |
25260 | PyObject * obj0 = 0 ; | |
25261 | PyObject * obj1 = 0 ; | |
25262 | char *kwnames[] = { | |
25263 | (char *) "self",(char *) "spacing", NULL | |
25264 | }; | |
25265 | ||
25266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
25267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25269 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25270 | if (PyErr_Occurred()) SWIG_fail; | |
25271 | { | |
25272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25273 | (arg1)->SetSpacing(arg2); | |
25274 | ||
25275 | wxPyEndAllowThreads(__tstate); | |
25276 | if (PyErr_Occurred()) SWIG_fail; | |
25277 | } | |
25278 | Py_INCREF(Py_None); resultobj = Py_None; | |
25279 | return resultobj; | |
25280 | fail: | |
25281 | return NULL; | |
25282 | } | |
25283 | ||
25284 | ||
25285 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25286 | PyObject *resultobj; | |
25287 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25288 | wxImageList *result; | |
25289 | PyObject * obj0 = 0 ; | |
25290 | char *kwnames[] = { | |
25291 | (char *) "self", NULL | |
25292 | }; | |
25293 | ||
25294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
25295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25297 | { | |
25298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25299 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
25300 | ||
25301 | wxPyEndAllowThreads(__tstate); | |
25302 | if (PyErr_Occurred()) SWIG_fail; | |
25303 | } | |
25304 | { | |
412d302d | 25305 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25306 | } |
25307 | return resultobj; | |
25308 | fail: | |
25309 | return NULL; | |
25310 | } | |
25311 | ||
25312 | ||
25313 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25314 | PyObject *resultobj; | |
25315 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25316 | wxImageList *result; | |
25317 | PyObject * obj0 = 0 ; | |
25318 | char *kwnames[] = { | |
25319 | (char *) "self", NULL | |
25320 | }; | |
25321 | ||
25322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
25323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25325 | { | |
25326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25327 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
25328 | ||
25329 | wxPyEndAllowThreads(__tstate); | |
25330 | if (PyErr_Occurred()) SWIG_fail; | |
25331 | } | |
25332 | { | |
412d302d | 25333 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25334 | } |
25335 | return resultobj; | |
25336 | fail: | |
25337 | return NULL; | |
25338 | } | |
25339 | ||
25340 | ||
25341 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25342 | PyObject *resultobj; | |
25343 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25344 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25345 | PyObject * obj0 = 0 ; | |
25346 | PyObject * obj1 = 0 ; | |
25347 | char *kwnames[] = { | |
25348 | (char *) "self",(char *) "imageList", NULL | |
25349 | }; | |
25350 | ||
25351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
25352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25356 | { | |
25357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25358 | (arg1)->SetImageList(arg2); | |
25359 | ||
25360 | wxPyEndAllowThreads(__tstate); | |
25361 | if (PyErr_Occurred()) SWIG_fail; | |
25362 | } | |
25363 | Py_INCREF(Py_None); resultobj = Py_None; | |
25364 | return resultobj; | |
25365 | fail: | |
25366 | return NULL; | |
25367 | } | |
25368 | ||
25369 | ||
25370 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25371 | PyObject *resultobj; | |
25372 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25373 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25374 | PyObject * obj0 = 0 ; | |
25375 | PyObject * obj1 = 0 ; | |
25376 | char *kwnames[] = { | |
25377 | (char *) "self",(char *) "imageList", NULL | |
25378 | }; | |
25379 | ||
25380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
25381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25385 | { | |
25386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25387 | (arg1)->SetStateImageList(arg2); | |
25388 | ||
25389 | wxPyEndAllowThreads(__tstate); | |
25390 | if (PyErr_Occurred()) SWIG_fail; | |
25391 | } | |
25392 | Py_INCREF(Py_None); resultobj = Py_None; | |
25393 | return resultobj; | |
25394 | fail: | |
25395 | return NULL; | |
25396 | } | |
25397 | ||
25398 | ||
25399 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25400 | PyObject *resultobj; | |
25401 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25402 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25403 | PyObject * obj0 = 0 ; | |
25404 | PyObject * obj1 = 0 ; | |
25405 | char *kwnames[] = { | |
25406 | (char *) "self",(char *) "imageList", NULL | |
25407 | }; | |
25408 | ||
25409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
25410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25412 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25413 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25414 | { | |
25415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25416 | (arg1)->AssignImageList(arg2); | |
25417 | ||
25418 | wxPyEndAllowThreads(__tstate); | |
25419 | if (PyErr_Occurred()) SWIG_fail; | |
25420 | } | |
25421 | Py_INCREF(Py_None); resultobj = Py_None; | |
25422 | return resultobj; | |
25423 | fail: | |
25424 | return NULL; | |
25425 | } | |
25426 | ||
25427 | ||
25428 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25429 | PyObject *resultobj; | |
25430 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25431 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25432 | PyObject * obj0 = 0 ; | |
25433 | PyObject * obj1 = 0 ; | |
25434 | char *kwnames[] = { | |
25435 | (char *) "self",(char *) "imageList", NULL | |
25436 | }; | |
25437 | ||
25438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
25439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25442 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25443 | { | |
25444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25445 | (arg1)->AssignStateImageList(arg2); | |
25446 | ||
25447 | wxPyEndAllowThreads(__tstate); | |
25448 | if (PyErr_Occurred()) SWIG_fail; | |
25449 | } | |
25450 | Py_INCREF(Py_None); resultobj = Py_None; | |
25451 | return resultobj; | |
25452 | fail: | |
25453 | return NULL; | |
25454 | } | |
25455 | ||
25456 | ||
25457 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25458 | PyObject *resultobj; | |
25459 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25460 | wxTreeItemId *arg2 = 0 ; | |
25461 | wxString result; | |
25462 | PyObject * obj0 = 0 ; | |
25463 | PyObject * obj1 = 0 ; | |
25464 | char *kwnames[] = { | |
25465 | (char *) "self",(char *) "item", NULL | |
25466 | }; | |
25467 | ||
25468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
25469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25471 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25472 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25473 | SWIG_fail; | |
25474 | if (arg2 == NULL) { | |
25475 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25476 | SWIG_fail; | |
25477 | } | |
25478 | { | |
25479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25480 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
25481 | ||
25482 | wxPyEndAllowThreads(__tstate); | |
25483 | if (PyErr_Occurred()) SWIG_fail; | |
25484 | } | |
25485 | { | |
25486 | #if wxUSE_UNICODE | |
25487 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25488 | #else | |
25489 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25490 | #endif | |
25491 | } | |
25492 | return resultobj; | |
25493 | fail: | |
25494 | return NULL; | |
25495 | } | |
25496 | ||
25497 | ||
25498 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25499 | PyObject *resultobj; | |
25500 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25501 | wxTreeItemId *arg2 = 0 ; | |
25502 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
25503 | int result; | |
25504 | PyObject * obj0 = 0 ; | |
25505 | PyObject * obj1 = 0 ; | |
25506 | PyObject * obj2 = 0 ; | |
25507 | char *kwnames[] = { | |
25508 | (char *) "self",(char *) "item",(char *) "which", NULL | |
25509 | }; | |
25510 | ||
25511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25514 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25515 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25516 | SWIG_fail; | |
25517 | if (arg2 == NULL) { | |
25518 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25519 | SWIG_fail; | |
25520 | } | |
25521 | if (obj2) { | |
25522 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); | |
25523 | if (PyErr_Occurred()) SWIG_fail; | |
25524 | } | |
25525 | { | |
25526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25527 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
25528 | ||
25529 | wxPyEndAllowThreads(__tstate); | |
25530 | if (PyErr_Occurred()) SWIG_fail; | |
25531 | } | |
25532 | resultobj = SWIG_FromInt((int)result); | |
25533 | return resultobj; | |
25534 | fail: | |
25535 | return NULL; | |
25536 | } | |
25537 | ||
25538 | ||
25539 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25540 | PyObject *resultobj; | |
25541 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25542 | wxTreeItemId *arg2 = 0 ; | |
25543 | wxPyTreeItemData *result; | |
25544 | PyObject * obj0 = 0 ; | |
25545 | PyObject * obj1 = 0 ; | |
25546 | char *kwnames[] = { | |
25547 | (char *) "self",(char *) "item", NULL | |
25548 | }; | |
25549 | ||
25550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
25551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25554 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25555 | SWIG_fail; | |
25556 | if (arg2 == NULL) { | |
25557 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25558 | SWIG_fail; | |
25559 | } | |
25560 | { | |
25561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25562 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
25563 | ||
25564 | wxPyEndAllowThreads(__tstate); | |
25565 | if (PyErr_Occurred()) SWIG_fail; | |
25566 | } | |
25567 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); | |
25568 | return resultobj; | |
25569 | fail: | |
25570 | return NULL; | |
25571 | } | |
25572 | ||
25573 | ||
25574 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25575 | PyObject *resultobj; | |
25576 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25577 | wxTreeItemId *arg2 = 0 ; | |
25578 | PyObject *result; | |
25579 | PyObject * obj0 = 0 ; | |
25580 | PyObject * obj1 = 0 ; | |
25581 | char *kwnames[] = { | |
25582 | (char *) "self",(char *) "item", NULL | |
25583 | }; | |
25584 | ||
25585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
25586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25588 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25589 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25590 | SWIG_fail; | |
25591 | if (arg2 == NULL) { | |
25592 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25593 | SWIG_fail; | |
25594 | } | |
25595 | { | |
25596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25597 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
25598 | ||
25599 | wxPyEndAllowThreads(__tstate); | |
25600 | if (PyErr_Occurred()) SWIG_fail; | |
25601 | } | |
25602 | resultobj = result; | |
25603 | return resultobj; | |
25604 | fail: | |
25605 | return NULL; | |
25606 | } | |
25607 | ||
25608 | ||
25609 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25610 | PyObject *resultobj; | |
25611 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25612 | wxTreeItemId *arg2 = 0 ; | |
25613 | wxColour result; | |
25614 | PyObject * obj0 = 0 ; | |
25615 | PyObject * obj1 = 0 ; | |
25616 | char *kwnames[] = { | |
25617 | (char *) "self",(char *) "item", NULL | |
25618 | }; | |
25619 | ||
25620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
25621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25623 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25624 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25625 | SWIG_fail; | |
25626 | if (arg2 == NULL) { | |
25627 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25628 | SWIG_fail; | |
25629 | } | |
25630 | { | |
25631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25632 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
25633 | ||
25634 | wxPyEndAllowThreads(__tstate); | |
25635 | if (PyErr_Occurred()) SWIG_fail; | |
25636 | } | |
25637 | { | |
25638 | wxColour * resultptr; | |
25639 | resultptr = new wxColour((wxColour &) result); | |
25640 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25641 | } | |
25642 | return resultobj; | |
25643 | fail: | |
25644 | return NULL; | |
25645 | } | |
25646 | ||
25647 | ||
25648 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25649 | PyObject *resultobj; | |
25650 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25651 | wxTreeItemId *arg2 = 0 ; | |
25652 | wxColour result; | |
25653 | PyObject * obj0 = 0 ; | |
25654 | PyObject * obj1 = 0 ; | |
25655 | char *kwnames[] = { | |
25656 | (char *) "self",(char *) "item", NULL | |
25657 | }; | |
25658 | ||
25659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25662 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25663 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25664 | SWIG_fail; | |
25665 | if (arg2 == NULL) { | |
25666 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25667 | SWIG_fail; | |
25668 | } | |
25669 | { | |
25670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25671 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
25672 | ||
25673 | wxPyEndAllowThreads(__tstate); | |
25674 | if (PyErr_Occurred()) SWIG_fail; | |
25675 | } | |
25676 | { | |
25677 | wxColour * resultptr; | |
25678 | resultptr = new wxColour((wxColour &) result); | |
25679 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25680 | } | |
25681 | return resultobj; | |
25682 | fail: | |
25683 | return NULL; | |
25684 | } | |
25685 | ||
25686 | ||
25687 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25688 | PyObject *resultobj; | |
25689 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25690 | wxTreeItemId *arg2 = 0 ; | |
25691 | wxFont result; | |
25692 | PyObject * obj0 = 0 ; | |
25693 | PyObject * obj1 = 0 ; | |
25694 | char *kwnames[] = { | |
25695 | (char *) "self",(char *) "item", NULL | |
25696 | }; | |
25697 | ||
25698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
25699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25701 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25702 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25703 | SWIG_fail; | |
25704 | if (arg2 == NULL) { | |
25705 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25706 | SWIG_fail; | |
25707 | } | |
25708 | { | |
25709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25710 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
25711 | ||
25712 | wxPyEndAllowThreads(__tstate); | |
25713 | if (PyErr_Occurred()) SWIG_fail; | |
25714 | } | |
25715 | { | |
25716 | wxFont * resultptr; | |
25717 | resultptr = new wxFont((wxFont &) result); | |
25718 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
25719 | } | |
25720 | return resultobj; | |
25721 | fail: | |
25722 | return NULL; | |
25723 | } | |
25724 | ||
25725 | ||
25726 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25727 | PyObject *resultobj; | |
25728 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25729 | wxTreeItemId *arg2 = 0 ; | |
25730 | wxString *arg3 = 0 ; | |
25731 | bool temp3 = False ; | |
25732 | PyObject * obj0 = 0 ; | |
25733 | PyObject * obj1 = 0 ; | |
25734 | PyObject * obj2 = 0 ; | |
25735 | char *kwnames[] = { | |
25736 | (char *) "self",(char *) "item",(char *) "text", NULL | |
25737 | }; | |
25738 | ||
25739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25742 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25743 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25744 | SWIG_fail; | |
25745 | if (arg2 == NULL) { | |
25746 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25747 | SWIG_fail; | |
25748 | } | |
25749 | { | |
25750 | arg3 = wxString_in_helper(obj2); | |
25751 | if (arg3 == NULL) SWIG_fail; | |
25752 | temp3 = True; | |
25753 | } | |
25754 | { | |
25755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25756 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
25757 | ||
25758 | wxPyEndAllowThreads(__tstate); | |
25759 | if (PyErr_Occurred()) SWIG_fail; | |
25760 | } | |
25761 | Py_INCREF(Py_None); resultobj = Py_None; | |
25762 | { | |
25763 | if (temp3) | |
25764 | delete arg3; | |
25765 | } | |
25766 | return resultobj; | |
25767 | fail: | |
25768 | { | |
25769 | if (temp3) | |
25770 | delete arg3; | |
25771 | } | |
25772 | return NULL; | |
25773 | } | |
25774 | ||
25775 | ||
25776 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25777 | PyObject *resultobj; | |
25778 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25779 | wxTreeItemId *arg2 = 0 ; | |
25780 | int arg3 ; | |
25781 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25782 | PyObject * obj0 = 0 ; | |
25783 | PyObject * obj1 = 0 ; | |
25784 | PyObject * obj2 = 0 ; | |
25785 | PyObject * obj3 = 0 ; | |
25786 | char *kwnames[] = { | |
25787 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25788 | }; | |
25789 | ||
25790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25794 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25795 | SWIG_fail; | |
25796 | if (arg2 == NULL) { | |
25797 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25798 | SWIG_fail; | |
25799 | } | |
25800 | arg3 = (int) SWIG_AsInt(obj2); | |
25801 | if (PyErr_Occurred()) SWIG_fail; | |
25802 | if (obj3) { | |
25803 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); | |
25804 | if (PyErr_Occurred()) SWIG_fail; | |
25805 | } | |
25806 | { | |
25807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25808 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25809 | ||
25810 | wxPyEndAllowThreads(__tstate); | |
25811 | if (PyErr_Occurred()) SWIG_fail; | |
25812 | } | |
25813 | Py_INCREF(Py_None); resultobj = Py_None; | |
25814 | return resultobj; | |
25815 | fail: | |
25816 | return NULL; | |
25817 | } | |
25818 | ||
25819 | ||
25820 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25821 | PyObject *resultobj; | |
25822 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25823 | wxTreeItemId *arg2 = 0 ; | |
25824 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25825 | PyObject * obj0 = 0 ; | |
25826 | PyObject * obj1 = 0 ; | |
25827 | PyObject * obj2 = 0 ; | |
25828 | char *kwnames[] = { | |
25829 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25830 | }; | |
25831 | ||
25832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25835 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25836 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25837 | SWIG_fail; | |
25838 | if (arg2 == NULL) { | |
25839 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25840 | SWIG_fail; | |
25841 | } | |
25842 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, | |
25843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25844 | { | |
25845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25846 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25847 | ||
25848 | wxPyEndAllowThreads(__tstate); | |
25849 | if (PyErr_Occurred()) SWIG_fail; | |
25850 | } | |
25851 | Py_INCREF(Py_None); resultobj = Py_None; | |
25852 | return resultobj; | |
25853 | fail: | |
25854 | return NULL; | |
25855 | } | |
25856 | ||
25857 | ||
25858 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25859 | PyObject *resultobj; | |
25860 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25861 | wxTreeItemId *arg2 = 0 ; | |
25862 | PyObject *arg3 = (PyObject *) 0 ; | |
25863 | PyObject * obj0 = 0 ; | |
25864 | PyObject * obj1 = 0 ; | |
25865 | PyObject * obj2 = 0 ; | |
25866 | char *kwnames[] = { | |
25867 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25868 | }; | |
25869 | ||
25870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25874 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25875 | SWIG_fail; | |
25876 | if (arg2 == NULL) { | |
25877 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25878 | SWIG_fail; | |
25879 | } | |
25880 | arg3 = obj2; | |
25881 | { | |
25882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25883 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25884 | ||
25885 | wxPyEndAllowThreads(__tstate); | |
25886 | if (PyErr_Occurred()) SWIG_fail; | |
25887 | } | |
25888 | Py_INCREF(Py_None); resultobj = Py_None; | |
25889 | return resultobj; | |
25890 | fail: | |
25891 | return NULL; | |
25892 | } | |
25893 | ||
25894 | ||
25895 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25896 | PyObject *resultobj; | |
25897 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25898 | wxTreeItemId *arg2 = 0 ; | |
25899 | bool arg3 = (bool) True ; | |
25900 | PyObject * obj0 = 0 ; | |
25901 | PyObject * obj1 = 0 ; | |
25902 | PyObject * obj2 = 0 ; | |
25903 | char *kwnames[] = { | |
25904 | (char *) "self",(char *) "item",(char *) "has", NULL | |
25905 | }; | |
25906 | ||
25907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25910 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25911 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25912 | SWIG_fail; | |
25913 | if (arg2 == NULL) { | |
25914 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25915 | SWIG_fail; | |
25916 | } | |
25917 | if (obj2) { | |
25918 | arg3 = (bool) SWIG_AsBool(obj2); | |
25919 | if (PyErr_Occurred()) SWIG_fail; | |
25920 | } | |
25921 | { | |
25922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25923 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
25924 | ||
25925 | wxPyEndAllowThreads(__tstate); | |
25926 | if (PyErr_Occurred()) SWIG_fail; | |
25927 | } | |
25928 | Py_INCREF(Py_None); resultobj = Py_None; | |
25929 | return resultobj; | |
25930 | fail: | |
25931 | return NULL; | |
25932 | } | |
25933 | ||
25934 | ||
25935 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25936 | PyObject *resultobj; | |
25937 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25938 | wxTreeItemId *arg2 = 0 ; | |
25939 | bool arg3 = (bool) True ; | |
25940 | PyObject * obj0 = 0 ; | |
25941 | PyObject * obj1 = 0 ; | |
25942 | PyObject * obj2 = 0 ; | |
25943 | char *kwnames[] = { | |
25944 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
25945 | }; | |
25946 | ||
25947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25951 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25952 | SWIG_fail; | |
25953 | if (arg2 == NULL) { | |
25954 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25955 | SWIG_fail; | |
25956 | } | |
25957 | if (obj2) { | |
25958 | arg3 = (bool) SWIG_AsBool(obj2); | |
25959 | if (PyErr_Occurred()) SWIG_fail; | |
25960 | } | |
25961 | { | |
25962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25963 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
25964 | ||
25965 | wxPyEndAllowThreads(__tstate); | |
25966 | if (PyErr_Occurred()) SWIG_fail; | |
25967 | } | |
25968 | Py_INCREF(Py_None); resultobj = Py_None; | |
25969 | return resultobj; | |
25970 | fail: | |
25971 | return NULL; | |
25972 | } | |
25973 | ||
25974 | ||
25975 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25976 | PyObject *resultobj; | |
25977 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25978 | wxTreeItemId *arg2 = 0 ; | |
25979 | wxColour *arg3 = 0 ; | |
25980 | wxColour temp3 ; | |
25981 | PyObject * obj0 = 0 ; | |
25982 | PyObject * obj1 = 0 ; | |
25983 | PyObject * obj2 = 0 ; | |
25984 | char *kwnames[] = { | |
25985 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25986 | }; | |
25987 | ||
25988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25991 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25992 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25993 | SWIG_fail; | |
25994 | if (arg2 == NULL) { | |
25995 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25996 | SWIG_fail; | |
25997 | } | |
25998 | { | |
25999 | arg3 = &temp3; | |
26000 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26001 | } | |
26002 | { | |
26003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26004 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26005 | ||
26006 | wxPyEndAllowThreads(__tstate); | |
26007 | if (PyErr_Occurred()) SWIG_fail; | |
26008 | } | |
26009 | Py_INCREF(Py_None); resultobj = Py_None; | |
26010 | return resultobj; | |
26011 | fail: | |
26012 | return NULL; | |
26013 | } | |
26014 | ||
26015 | ||
26016 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26017 | PyObject *resultobj; | |
26018 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26019 | wxTreeItemId *arg2 = 0 ; | |
26020 | wxColour *arg3 = 0 ; | |
26021 | wxColour temp3 ; | |
26022 | PyObject * obj0 = 0 ; | |
26023 | PyObject * obj1 = 0 ; | |
26024 | PyObject * obj2 = 0 ; | |
26025 | char *kwnames[] = { | |
26026 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26027 | }; | |
26028 | ||
26029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26032 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26033 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26034 | SWIG_fail; | |
26035 | if (arg2 == NULL) { | |
26036 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26037 | SWIG_fail; | |
26038 | } | |
26039 | { | |
26040 | arg3 = &temp3; | |
26041 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26042 | } | |
26043 | { | |
26044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26045 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26046 | ||
26047 | wxPyEndAllowThreads(__tstate); | |
26048 | if (PyErr_Occurred()) SWIG_fail; | |
26049 | } | |
26050 | Py_INCREF(Py_None); resultobj = Py_None; | |
26051 | return resultobj; | |
26052 | fail: | |
26053 | return NULL; | |
26054 | } | |
26055 | ||
26056 | ||
26057 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26058 | PyObject *resultobj; | |
26059 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26060 | wxTreeItemId *arg2 = 0 ; | |
26061 | wxFont *arg3 = 0 ; | |
26062 | PyObject * obj0 = 0 ; | |
26063 | PyObject * obj1 = 0 ; | |
26064 | PyObject * obj2 = 0 ; | |
26065 | char *kwnames[] = { | |
26066 | (char *) "self",(char *) "item",(char *) "font", NULL | |
26067 | }; | |
26068 | ||
26069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26072 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26073 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26074 | SWIG_fail; | |
26075 | if (arg2 == NULL) { | |
26076 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26077 | SWIG_fail; | |
26078 | } | |
26079 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
26080 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26081 | SWIG_fail; | |
26082 | if (arg3 == NULL) { | |
26083 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26084 | SWIG_fail; | |
26085 | } | |
26086 | { | |
26087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26088 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
26089 | ||
26090 | wxPyEndAllowThreads(__tstate); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
26092 | } | |
26093 | Py_INCREF(Py_None); resultobj = Py_None; | |
26094 | return resultobj; | |
26095 | fail: | |
26096 | return NULL; | |
26097 | } | |
26098 | ||
26099 | ||
26100 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26101 | PyObject *resultobj; | |
26102 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26103 | wxTreeItemId *arg2 = 0 ; | |
26104 | bool result; | |
26105 | PyObject * obj0 = 0 ; | |
26106 | PyObject * obj1 = 0 ; | |
26107 | char *kwnames[] = { | |
26108 | (char *) "self",(char *) "item", NULL | |
26109 | }; | |
26110 | ||
26111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
26112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26114 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26115 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26116 | SWIG_fail; | |
26117 | if (arg2 == NULL) { | |
26118 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26119 | SWIG_fail; | |
26120 | } | |
26121 | { | |
26122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26123 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
26124 | ||
26125 | wxPyEndAllowThreads(__tstate); | |
26126 | if (PyErr_Occurred()) SWIG_fail; | |
26127 | } | |
26128 | { | |
26129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26130 | } | |
26131 | return resultobj; | |
26132 | fail: | |
26133 | return NULL; | |
26134 | } | |
26135 | ||
26136 | ||
26137 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26138 | PyObject *resultobj; | |
26139 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26140 | wxTreeItemId *arg2 = 0 ; | |
26141 | bool result; | |
26142 | PyObject * obj0 = 0 ; | |
26143 | PyObject * obj1 = 0 ; | |
26144 | char *kwnames[] = { | |
26145 | (char *) "self",(char *) "item", NULL | |
26146 | }; | |
26147 | ||
26148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
26149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26152 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26153 | SWIG_fail; | |
26154 | if (arg2 == NULL) { | |
26155 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26156 | SWIG_fail; | |
26157 | } | |
26158 | { | |
26159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26160 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26161 | ||
26162 | wxPyEndAllowThreads(__tstate); | |
26163 | if (PyErr_Occurred()) SWIG_fail; | |
26164 | } | |
26165 | { | |
26166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26167 | } | |
26168 | return resultobj; | |
26169 | fail: | |
26170 | return NULL; | |
26171 | } | |
26172 | ||
26173 | ||
26174 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26175 | PyObject *resultobj; | |
26176 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26177 | wxTreeItemId *arg2 = 0 ; | |
26178 | bool result; | |
26179 | PyObject * obj0 = 0 ; | |
26180 | PyObject * obj1 = 0 ; | |
26181 | char *kwnames[] = { | |
26182 | (char *) "self",(char *) "item", NULL | |
26183 | }; | |
26184 | ||
26185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
26186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26188 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26189 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26190 | SWIG_fail; | |
26191 | if (arg2 == NULL) { | |
26192 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26193 | SWIG_fail; | |
26194 | } | |
26195 | { | |
26196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26197 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26198 | ||
26199 | wxPyEndAllowThreads(__tstate); | |
26200 | if (PyErr_Occurred()) SWIG_fail; | |
26201 | } | |
26202 | { | |
26203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26204 | } | |
26205 | return resultobj; | |
26206 | fail: | |
26207 | return NULL; | |
26208 | } | |
26209 | ||
26210 | ||
26211 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26212 | PyObject *resultobj; | |
26213 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26214 | wxTreeItemId *arg2 = 0 ; | |
26215 | bool result; | |
26216 | PyObject * obj0 = 0 ; | |
26217 | PyObject * obj1 = 0 ; | |
26218 | char *kwnames[] = { | |
26219 | (char *) "self",(char *) "item", NULL | |
26220 | }; | |
26221 | ||
26222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
26223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26225 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26226 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26227 | SWIG_fail; | |
26228 | if (arg2 == NULL) { | |
26229 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26230 | SWIG_fail; | |
26231 | } | |
26232 | { | |
26233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26234 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
26235 | ||
26236 | wxPyEndAllowThreads(__tstate); | |
26237 | if (PyErr_Occurred()) SWIG_fail; | |
26238 | } | |
26239 | { | |
26240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26241 | } | |
26242 | return resultobj; | |
26243 | fail: | |
26244 | return NULL; | |
26245 | } | |
26246 | ||
26247 | ||
26248 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26249 | PyObject *resultobj; | |
26250 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26251 | wxTreeItemId *arg2 = 0 ; | |
26252 | bool result; | |
26253 | PyObject * obj0 = 0 ; | |
26254 | PyObject * obj1 = 0 ; | |
26255 | char *kwnames[] = { | |
26256 | (char *) "self",(char *) "item", NULL | |
26257 | }; | |
26258 | ||
26259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
26260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26262 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26263 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26264 | SWIG_fail; | |
26265 | if (arg2 == NULL) { | |
26266 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26267 | SWIG_fail; | |
26268 | } | |
26269 | { | |
26270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26271 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
26272 | ||
26273 | wxPyEndAllowThreads(__tstate); | |
26274 | if (PyErr_Occurred()) SWIG_fail; | |
26275 | } | |
26276 | { | |
26277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26278 | } | |
26279 | return resultobj; | |
26280 | fail: | |
26281 | return NULL; | |
26282 | } | |
26283 | ||
26284 | ||
26285 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26286 | PyObject *resultobj; | |
26287 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26288 | wxTreeItemId *arg2 = 0 ; | |
26289 | bool arg3 = (bool) True ; | |
26290 | size_t result; | |
26291 | PyObject * obj0 = 0 ; | |
26292 | PyObject * obj1 = 0 ; | |
26293 | PyObject * obj2 = 0 ; | |
26294 | char *kwnames[] = { | |
26295 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
26296 | }; | |
26297 | ||
26298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26301 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26302 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26303 | SWIG_fail; | |
26304 | if (arg2 == NULL) { | |
26305 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26306 | SWIG_fail; | |
26307 | } | |
26308 | if (obj2) { | |
26309 | arg3 = (bool) SWIG_AsBool(obj2); | |
26310 | if (PyErr_Occurred()) SWIG_fail; | |
26311 | } | |
26312 | { | |
26313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26314 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
26315 | ||
26316 | wxPyEndAllowThreads(__tstate); | |
26317 | if (PyErr_Occurred()) SWIG_fail; | |
26318 | } | |
26319 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
26320 | return resultobj; | |
26321 | fail: | |
26322 | return NULL; | |
26323 | } | |
26324 | ||
26325 | ||
26326 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26327 | PyObject *resultobj; | |
26328 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26329 | wxTreeItemId result; | |
26330 | PyObject * obj0 = 0 ; | |
26331 | char *kwnames[] = { | |
26332 | (char *) "self", NULL | |
26333 | }; | |
26334 | ||
26335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
26336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26338 | { | |
26339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26340 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
26341 | ||
26342 | wxPyEndAllowThreads(__tstate); | |
26343 | if (PyErr_Occurred()) SWIG_fail; | |
26344 | } | |
26345 | { | |
26346 | wxTreeItemId * resultptr; | |
26347 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26349 | } | |
26350 | return resultobj; | |
26351 | fail: | |
26352 | return NULL; | |
26353 | } | |
26354 | ||
26355 | ||
26356 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26357 | PyObject *resultobj; | |
26358 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26359 | wxTreeItemId result; | |
26360 | PyObject * obj0 = 0 ; | |
26361 | char *kwnames[] = { | |
26362 | (char *) "self", NULL | |
26363 | }; | |
26364 | ||
26365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
26366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26368 | { | |
26369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26370 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
26371 | ||
26372 | wxPyEndAllowThreads(__tstate); | |
26373 | if (PyErr_Occurred()) SWIG_fail; | |
26374 | } | |
26375 | { | |
26376 | wxTreeItemId * resultptr; | |
26377 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26378 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26379 | } | |
26380 | return resultobj; | |
26381 | fail: | |
26382 | return NULL; | |
26383 | } | |
26384 | ||
26385 | ||
26386 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26387 | PyObject *resultobj; | |
26388 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26389 | PyObject *result; | |
26390 | PyObject * obj0 = 0 ; | |
26391 | char *kwnames[] = { | |
26392 | (char *) "self", NULL | |
26393 | }; | |
26394 | ||
26395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
26396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26398 | { | |
26399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26400 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
26401 | ||
26402 | wxPyEndAllowThreads(__tstate); | |
26403 | if (PyErr_Occurred()) SWIG_fail; | |
26404 | } | |
26405 | resultobj = result; | |
26406 | return resultobj; | |
26407 | fail: | |
26408 | return NULL; | |
26409 | } | |
26410 | ||
26411 | ||
26412 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26413 | PyObject *resultobj; | |
26414 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26415 | wxTreeItemId *arg2 = 0 ; | |
26416 | wxTreeItemId result; | |
26417 | PyObject * obj0 = 0 ; | |
26418 | PyObject * obj1 = 0 ; | |
26419 | char *kwnames[] = { | |
26420 | (char *) "self",(char *) "item", NULL | |
26421 | }; | |
26422 | ||
26423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
26424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26426 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26427 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26428 | SWIG_fail; | |
26429 | if (arg2 == NULL) { | |
26430 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26431 | SWIG_fail; | |
26432 | } | |
26433 | { | |
26434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26435 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
26436 | ||
26437 | wxPyEndAllowThreads(__tstate); | |
26438 | if (PyErr_Occurred()) SWIG_fail; | |
26439 | } | |
26440 | { | |
26441 | wxTreeItemId * resultptr; | |
26442 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26443 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26444 | } | |
26445 | return resultobj; | |
26446 | fail: | |
26447 | return NULL; | |
26448 | } | |
26449 | ||
26450 | ||
26451 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26452 | PyObject *resultobj; | |
26453 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26454 | wxTreeItemId *arg2 = 0 ; | |
26455 | PyObject *result; | |
26456 | PyObject * obj0 = 0 ; | |
26457 | PyObject * obj1 = 0 ; | |
26458 | char *kwnames[] = { | |
26459 | (char *) "self",(char *) "item", NULL | |
26460 | }; | |
26461 | ||
26462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
26463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26466 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26467 | SWIG_fail; | |
26468 | if (arg2 == NULL) { | |
26469 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26470 | SWIG_fail; | |
26471 | } | |
26472 | { | |
26473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26474 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
26475 | ||
26476 | wxPyEndAllowThreads(__tstate); | |
26477 | if (PyErr_Occurred()) SWIG_fail; | |
26478 | } | |
26479 | resultobj = result; | |
26480 | return resultobj; | |
26481 | fail: | |
26482 | return NULL; | |
26483 | } | |
26484 | ||
26485 | ||
26486 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26487 | PyObject *resultobj; | |
26488 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26489 | wxTreeItemId *arg2 = 0 ; | |
26490 | void *arg3 = (void *) 0 ; | |
26491 | PyObject *result; | |
26492 | PyObject * obj0 = 0 ; | |
26493 | PyObject * obj1 = 0 ; | |
26494 | PyObject * obj2 = 0 ; | |
26495 | char *kwnames[] = { | |
26496 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
26497 | }; | |
26498 | ||
26499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26502 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26503 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26504 | SWIG_fail; | |
26505 | if (arg2 == NULL) { | |
26506 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26507 | SWIG_fail; | |
26508 | } | |
26509 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26510 | { | |
26511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26512 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26513 | ||
26514 | wxPyEndAllowThreads(__tstate); | |
26515 | if (PyErr_Occurred()) SWIG_fail; | |
26516 | } | |
26517 | resultobj = result; | |
26518 | return resultobj; | |
26519 | fail: | |
26520 | return NULL; | |
26521 | } | |
26522 | ||
26523 | ||
26524 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26525 | PyObject *resultobj; | |
26526 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26527 | wxTreeItemId *arg2 = 0 ; | |
26528 | wxTreeItemId result; | |
26529 | PyObject * obj0 = 0 ; | |
26530 | PyObject * obj1 = 0 ; | |
26531 | char *kwnames[] = { | |
26532 | (char *) "self",(char *) "item", NULL | |
26533 | }; | |
26534 | ||
26535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
26536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26539 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26540 | SWIG_fail; | |
26541 | if (arg2 == NULL) { | |
26542 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26543 | SWIG_fail; | |
26544 | } | |
26545 | { | |
26546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26547 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
26548 | ||
26549 | wxPyEndAllowThreads(__tstate); | |
26550 | if (PyErr_Occurred()) SWIG_fail; | |
26551 | } | |
26552 | { | |
26553 | wxTreeItemId * resultptr; | |
26554 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26556 | } | |
26557 | return resultobj; | |
26558 | fail: | |
26559 | return NULL; | |
26560 | } | |
26561 | ||
26562 | ||
26563 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26564 | PyObject *resultobj; | |
26565 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26566 | wxTreeItemId *arg2 = 0 ; | |
26567 | wxTreeItemId result; | |
26568 | PyObject * obj0 = 0 ; | |
26569 | PyObject * obj1 = 0 ; | |
26570 | char *kwnames[] = { | |
26571 | (char *) "self",(char *) "item", NULL | |
26572 | }; | |
26573 | ||
26574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
26575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26577 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26578 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26579 | SWIG_fail; | |
26580 | if (arg2 == NULL) { | |
26581 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26582 | SWIG_fail; | |
26583 | } | |
26584 | { | |
26585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26586 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
26587 | ||
26588 | wxPyEndAllowThreads(__tstate); | |
26589 | if (PyErr_Occurred()) SWIG_fail; | |
26590 | } | |
26591 | { | |
26592 | wxTreeItemId * resultptr; | |
26593 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26594 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26595 | } | |
26596 | return resultobj; | |
26597 | fail: | |
26598 | return NULL; | |
26599 | } | |
26600 | ||
26601 | ||
26602 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26603 | PyObject *resultobj; | |
26604 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26605 | wxTreeItemId *arg2 = 0 ; | |
26606 | wxTreeItemId result; | |
26607 | PyObject * obj0 = 0 ; | |
26608 | PyObject * obj1 = 0 ; | |
26609 | char *kwnames[] = { | |
26610 | (char *) "self",(char *) "item", NULL | |
26611 | }; | |
26612 | ||
26613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
26614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26616 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26617 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26618 | SWIG_fail; | |
26619 | if (arg2 == NULL) { | |
26620 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26621 | SWIG_fail; | |
26622 | } | |
26623 | { | |
26624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26625 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
26626 | ||
26627 | wxPyEndAllowThreads(__tstate); | |
26628 | if (PyErr_Occurred()) SWIG_fail; | |
26629 | } | |
26630 | { | |
26631 | wxTreeItemId * resultptr; | |
26632 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26633 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26634 | } | |
26635 | return resultobj; | |
26636 | fail: | |
26637 | return NULL; | |
26638 | } | |
26639 | ||
26640 | ||
26641 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26642 | PyObject *resultobj; | |
26643 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26644 | wxTreeItemId result; | |
26645 | PyObject * obj0 = 0 ; | |
26646 | char *kwnames[] = { | |
26647 | (char *) "self", NULL | |
26648 | }; | |
26649 | ||
26650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
26651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26653 | { | |
26654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26655 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
26656 | ||
26657 | wxPyEndAllowThreads(__tstate); | |
26658 | if (PyErr_Occurred()) SWIG_fail; | |
26659 | } | |
26660 | { | |
26661 | wxTreeItemId * resultptr; | |
26662 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26663 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26664 | } | |
26665 | return resultobj; | |
26666 | fail: | |
26667 | return NULL; | |
26668 | } | |
26669 | ||
26670 | ||
26671 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26672 | PyObject *resultobj; | |
26673 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26674 | wxTreeItemId *arg2 = 0 ; | |
26675 | wxTreeItemId result; | |
26676 | PyObject * obj0 = 0 ; | |
26677 | PyObject * obj1 = 0 ; | |
26678 | char *kwnames[] = { | |
26679 | (char *) "self",(char *) "item", NULL | |
26680 | }; | |
26681 | ||
26682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
26683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26685 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26686 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26687 | SWIG_fail; | |
26688 | if (arg2 == NULL) { | |
26689 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26690 | SWIG_fail; | |
26691 | } | |
26692 | { | |
26693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26694 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
26695 | ||
26696 | wxPyEndAllowThreads(__tstate); | |
26697 | if (PyErr_Occurred()) SWIG_fail; | |
26698 | } | |
26699 | { | |
26700 | wxTreeItemId * resultptr; | |
26701 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26702 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26703 | } | |
26704 | return resultobj; | |
26705 | fail: | |
26706 | return NULL; | |
26707 | } | |
26708 | ||
26709 | ||
26710 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26711 | PyObject *resultobj; | |
26712 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26713 | wxTreeItemId *arg2 = 0 ; | |
26714 | wxTreeItemId result; | |
26715 | PyObject * obj0 = 0 ; | |
26716 | PyObject * obj1 = 0 ; | |
26717 | char *kwnames[] = { | |
26718 | (char *) "self",(char *) "item", NULL | |
26719 | }; | |
26720 | ||
26721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
26722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26726 | SWIG_fail; | |
26727 | if (arg2 == NULL) { | |
26728 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26729 | SWIG_fail; | |
26730 | } | |
26731 | { | |
26732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26733 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26734 | ||
26735 | wxPyEndAllowThreads(__tstate); | |
26736 | if (PyErr_Occurred()) SWIG_fail; | |
26737 | } | |
26738 | { | |
26739 | wxTreeItemId * resultptr; | |
26740 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26741 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26742 | } | |
26743 | return resultobj; | |
26744 | fail: | |
26745 | return NULL; | |
26746 | } | |
26747 | ||
26748 | ||
26749 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26750 | PyObject *resultobj; | |
26751 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26752 | wxString *arg2 = 0 ; | |
26753 | int arg3 = (int) -1 ; | |
26754 | int arg4 = (int) -1 ; | |
26755 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26756 | wxTreeItemId result; | |
26757 | bool temp2 = False ; | |
26758 | PyObject * obj0 = 0 ; | |
26759 | PyObject * obj1 = 0 ; | |
26760 | PyObject * obj2 = 0 ; | |
26761 | PyObject * obj3 = 0 ; | |
26762 | PyObject * obj4 = 0 ; | |
26763 | char *kwnames[] = { | |
26764 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26765 | }; | |
26766 | ||
26767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26770 | { | |
26771 | arg2 = wxString_in_helper(obj1); | |
26772 | if (arg2 == NULL) SWIG_fail; | |
26773 | temp2 = True; | |
26774 | } | |
26775 | if (obj2) { | |
26776 | arg3 = (int) SWIG_AsInt(obj2); | |
26777 | if (PyErr_Occurred()) SWIG_fail; | |
26778 | } | |
26779 | if (obj3) { | |
26780 | arg4 = (int) SWIG_AsInt(obj3); | |
26781 | if (PyErr_Occurred()) SWIG_fail; | |
26782 | } | |
26783 | if (obj4) { | |
26784 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, | |
26785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26786 | } | |
26787 | { | |
26788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26789 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26790 | ||
26791 | wxPyEndAllowThreads(__tstate); | |
26792 | if (PyErr_Occurred()) SWIG_fail; | |
26793 | } | |
26794 | { | |
26795 | wxTreeItemId * resultptr; | |
26796 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26797 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26798 | } | |
26799 | { | |
26800 | if (temp2) | |
26801 | delete arg2; | |
26802 | } | |
26803 | return resultobj; | |
26804 | fail: | |
26805 | { | |
26806 | if (temp2) | |
26807 | delete arg2; | |
26808 | } | |
26809 | return NULL; | |
26810 | } | |
26811 | ||
26812 | ||
26813 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26814 | PyObject *resultobj; | |
26815 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26816 | wxTreeItemId *arg2 = 0 ; | |
26817 | wxString *arg3 = 0 ; | |
26818 | int arg4 = (int) -1 ; | |
26819 | int arg5 = (int) -1 ; | |
26820 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26821 | wxTreeItemId result; | |
26822 | bool temp3 = False ; | |
26823 | PyObject * obj0 = 0 ; | |
26824 | PyObject * obj1 = 0 ; | |
26825 | PyObject * obj2 = 0 ; | |
26826 | PyObject * obj3 = 0 ; | |
26827 | PyObject * obj4 = 0 ; | |
26828 | PyObject * obj5 = 0 ; | |
26829 | char *kwnames[] = { | |
26830 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26831 | }; | |
26832 | ||
26833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26837 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26838 | SWIG_fail; | |
26839 | if (arg2 == NULL) { | |
26840 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26841 | SWIG_fail; | |
26842 | } | |
26843 | { | |
26844 | arg3 = wxString_in_helper(obj2); | |
26845 | if (arg3 == NULL) SWIG_fail; | |
26846 | temp3 = True; | |
26847 | } | |
26848 | if (obj3) { | |
26849 | arg4 = (int) SWIG_AsInt(obj3); | |
26850 | if (PyErr_Occurred()) SWIG_fail; | |
26851 | } | |
26852 | if (obj4) { | |
26853 | arg5 = (int) SWIG_AsInt(obj4); | |
26854 | if (PyErr_Occurred()) SWIG_fail; | |
26855 | } | |
26856 | if (obj5) { | |
26857 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
26858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26859 | } | |
26860 | { | |
26861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26862 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26863 | ||
26864 | wxPyEndAllowThreads(__tstate); | |
26865 | if (PyErr_Occurred()) SWIG_fail; | |
26866 | } | |
26867 | { | |
26868 | wxTreeItemId * resultptr; | |
26869 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26870 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26871 | } | |
26872 | { | |
26873 | if (temp3) | |
26874 | delete arg3; | |
26875 | } | |
26876 | return resultobj; | |
26877 | fail: | |
26878 | { | |
26879 | if (temp3) | |
26880 | delete arg3; | |
26881 | } | |
26882 | return NULL; | |
26883 | } | |
26884 | ||
26885 | ||
26886 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26887 | PyObject *resultobj; | |
26888 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26889 | wxTreeItemId *arg2 = 0 ; | |
26890 | wxTreeItemId *arg3 = 0 ; | |
26891 | wxString *arg4 = 0 ; | |
26892 | int arg5 = (int) -1 ; | |
26893 | int arg6 = (int) -1 ; | |
26894 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26895 | wxTreeItemId result; | |
26896 | bool temp4 = False ; | |
26897 | PyObject * obj0 = 0 ; | |
26898 | PyObject * obj1 = 0 ; | |
26899 | PyObject * obj2 = 0 ; | |
26900 | PyObject * obj3 = 0 ; | |
26901 | PyObject * obj4 = 0 ; | |
26902 | PyObject * obj5 = 0 ; | |
26903 | PyObject * obj6 = 0 ; | |
26904 | char *kwnames[] = { | |
26905 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26906 | }; | |
26907 | ||
26908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
26909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26911 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26912 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26913 | SWIG_fail; | |
26914 | if (arg2 == NULL) { | |
26915 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26916 | SWIG_fail; | |
26917 | } | |
26918 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, | |
26919 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26920 | SWIG_fail; | |
26921 | if (arg3 == NULL) { | |
26922 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26923 | SWIG_fail; | |
26924 | } | |
26925 | { | |
26926 | arg4 = wxString_in_helper(obj3); | |
26927 | if (arg4 == NULL) SWIG_fail; | |
26928 | temp4 = True; | |
26929 | } | |
26930 | if (obj4) { | |
26931 | arg5 = (int) SWIG_AsInt(obj4); | |
26932 | if (PyErr_Occurred()) SWIG_fail; | |
26933 | } | |
26934 | if (obj5) { | |
26935 | arg6 = (int) SWIG_AsInt(obj5); | |
26936 | if (PyErr_Occurred()) SWIG_fail; | |
26937 | } | |
26938 | if (obj6) { | |
26939 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
26940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26941 | } | |
26942 | { | |
26943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26944 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26945 | ||
26946 | wxPyEndAllowThreads(__tstate); | |
26947 | if (PyErr_Occurred()) SWIG_fail; | |
26948 | } | |
26949 | { | |
26950 | wxTreeItemId * resultptr; | |
26951 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26952 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26953 | } | |
26954 | { | |
26955 | if (temp4) | |
26956 | delete arg4; | |
26957 | } | |
26958 | return resultobj; | |
26959 | fail: | |
26960 | { | |
26961 | if (temp4) | |
26962 | delete arg4; | |
26963 | } | |
26964 | return NULL; | |
26965 | } | |
26966 | ||
26967 | ||
26968 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26969 | PyObject *resultobj; | |
26970 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26971 | wxTreeItemId *arg2 = 0 ; | |
26972 | size_t arg3 ; | |
26973 | wxString *arg4 = 0 ; | |
26974 | int arg5 = (int) -1 ; | |
26975 | int arg6 = (int) -1 ; | |
26976 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26977 | wxTreeItemId result; | |
26978 | bool temp4 = False ; | |
26979 | PyObject * obj0 = 0 ; | |
26980 | PyObject * obj1 = 0 ; | |
26981 | PyObject * obj2 = 0 ; | |
26982 | PyObject * obj3 = 0 ; | |
26983 | PyObject * obj4 = 0 ; | |
26984 | PyObject * obj5 = 0 ; | |
26985 | PyObject * obj6 = 0 ; | |
26986 | char *kwnames[] = { | |
26987 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26988 | }; | |
26989 | ||
26990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
26991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26993 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26994 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26995 | SWIG_fail; | |
26996 | if (arg2 == NULL) { | |
26997 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26998 | SWIG_fail; | |
26999 | } | |
27000 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
27001 | if (PyErr_Occurred()) SWIG_fail; | |
27002 | { | |
27003 | arg4 = wxString_in_helper(obj3); | |
27004 | if (arg4 == NULL) SWIG_fail; | |
27005 | temp4 = True; | |
27006 | } | |
27007 | if (obj4) { | |
27008 | arg5 = (int) SWIG_AsInt(obj4); | |
27009 | if (PyErr_Occurred()) SWIG_fail; | |
27010 | } | |
27011 | if (obj5) { | |
27012 | arg6 = (int) SWIG_AsInt(obj5); | |
27013 | if (PyErr_Occurred()) SWIG_fail; | |
27014 | } | |
27015 | if (obj6) { | |
27016 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
27017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27018 | } | |
27019 | { | |
27020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27021 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27022 | ||
27023 | wxPyEndAllowThreads(__tstate); | |
27024 | if (PyErr_Occurred()) SWIG_fail; | |
27025 | } | |
27026 | { | |
27027 | wxTreeItemId * resultptr; | |
27028 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27029 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27030 | } | |
27031 | { | |
27032 | if (temp4) | |
27033 | delete arg4; | |
27034 | } | |
27035 | return resultobj; | |
27036 | fail: | |
27037 | { | |
27038 | if (temp4) | |
27039 | delete arg4; | |
27040 | } | |
27041 | return NULL; | |
27042 | } | |
27043 | ||
27044 | ||
27045 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27046 | PyObject *resultobj; | |
27047 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27048 | wxTreeItemId *arg2 = 0 ; | |
27049 | wxString *arg3 = 0 ; | |
27050 | int arg4 = (int) -1 ; | |
27051 | int arg5 = (int) -1 ; | |
27052 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27053 | wxTreeItemId result; | |
27054 | bool temp3 = False ; | |
27055 | PyObject * obj0 = 0 ; | |
27056 | PyObject * obj1 = 0 ; | |
27057 | PyObject * obj2 = 0 ; | |
27058 | PyObject * obj3 = 0 ; | |
27059 | PyObject * obj4 = 0 ; | |
27060 | PyObject * obj5 = 0 ; | |
27061 | char *kwnames[] = { | |
27062 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27063 | }; | |
27064 | ||
27065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27068 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27069 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27070 | SWIG_fail; | |
27071 | if (arg2 == NULL) { | |
27072 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27073 | SWIG_fail; | |
27074 | } | |
27075 | { | |
27076 | arg3 = wxString_in_helper(obj2); | |
27077 | if (arg3 == NULL) SWIG_fail; | |
27078 | temp3 = True; | |
27079 | } | |
27080 | if (obj3) { | |
27081 | arg4 = (int) SWIG_AsInt(obj3); | |
27082 | if (PyErr_Occurred()) SWIG_fail; | |
27083 | } | |
27084 | if (obj4) { | |
27085 | arg5 = (int) SWIG_AsInt(obj4); | |
27086 | if (PyErr_Occurred()) SWIG_fail; | |
27087 | } | |
27088 | if (obj5) { | |
27089 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
27090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27091 | } | |
27092 | { | |
27093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27094 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27095 | ||
27096 | wxPyEndAllowThreads(__tstate); | |
27097 | if (PyErr_Occurred()) SWIG_fail; | |
27098 | } | |
27099 | { | |
27100 | wxTreeItemId * resultptr; | |
27101 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27102 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27103 | } | |
27104 | { | |
27105 | if (temp3) | |
27106 | delete arg3; | |
27107 | } | |
27108 | return resultobj; | |
27109 | fail: | |
27110 | { | |
27111 | if (temp3) | |
27112 | delete arg3; | |
27113 | } | |
27114 | return NULL; | |
27115 | } | |
27116 | ||
27117 | ||
27118 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27119 | PyObject *resultobj; | |
27120 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27121 | wxTreeItemId *arg2 = 0 ; | |
27122 | PyObject * obj0 = 0 ; | |
27123 | PyObject * obj1 = 0 ; | |
27124 | char *kwnames[] = { | |
27125 | (char *) "self",(char *) "item", NULL | |
27126 | }; | |
27127 | ||
27128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
27129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27131 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27132 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27133 | SWIG_fail; | |
27134 | if (arg2 == NULL) { | |
27135 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27136 | SWIG_fail; | |
27137 | } | |
27138 | { | |
27139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27140 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
27141 | ||
27142 | wxPyEndAllowThreads(__tstate); | |
27143 | if (PyErr_Occurred()) SWIG_fail; | |
27144 | } | |
27145 | Py_INCREF(Py_None); resultobj = Py_None; | |
27146 | return resultobj; | |
27147 | fail: | |
27148 | return NULL; | |
27149 | } | |
27150 | ||
27151 | ||
27152 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27153 | PyObject *resultobj; | |
27154 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27155 | wxTreeItemId *arg2 = 0 ; | |
27156 | PyObject * obj0 = 0 ; | |
27157 | PyObject * obj1 = 0 ; | |
27158 | char *kwnames[] = { | |
27159 | (char *) "self",(char *) "item", NULL | |
27160 | }; | |
27161 | ||
27162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
27163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27165 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27166 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27167 | SWIG_fail; | |
27168 | if (arg2 == NULL) { | |
27169 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27170 | SWIG_fail; | |
27171 | } | |
27172 | { | |
27173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27174 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27175 | ||
27176 | wxPyEndAllowThreads(__tstate); | |
27177 | if (PyErr_Occurred()) SWIG_fail; | |
27178 | } | |
27179 | Py_INCREF(Py_None); resultobj = Py_None; | |
27180 | return resultobj; | |
27181 | fail: | |
27182 | return NULL; | |
27183 | } | |
27184 | ||
27185 | ||
27186 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27187 | PyObject *resultobj; | |
27188 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27189 | PyObject * obj0 = 0 ; | |
27190 | char *kwnames[] = { | |
27191 | (char *) "self", NULL | |
27192 | }; | |
27193 | ||
27194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
27195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27197 | { | |
27198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27199 | (arg1)->DeleteAllItems(); | |
27200 | ||
27201 | wxPyEndAllowThreads(__tstate); | |
27202 | if (PyErr_Occurred()) SWIG_fail; | |
27203 | } | |
27204 | Py_INCREF(Py_None); resultobj = Py_None; | |
27205 | return resultobj; | |
27206 | fail: | |
27207 | return NULL; | |
27208 | } | |
27209 | ||
27210 | ||
27211 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27212 | PyObject *resultobj; | |
27213 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27214 | wxTreeItemId *arg2 = 0 ; | |
27215 | PyObject * obj0 = 0 ; | |
27216 | PyObject * obj1 = 0 ; | |
27217 | char *kwnames[] = { | |
27218 | (char *) "self",(char *) "item", NULL | |
27219 | }; | |
27220 | ||
27221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
27222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27225 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27226 | SWIG_fail; | |
27227 | if (arg2 == NULL) { | |
27228 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27229 | SWIG_fail; | |
27230 | } | |
27231 | { | |
27232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27233 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
27234 | ||
27235 | wxPyEndAllowThreads(__tstate); | |
27236 | if (PyErr_Occurred()) SWIG_fail; | |
27237 | } | |
27238 | Py_INCREF(Py_None); resultobj = Py_None; | |
27239 | return resultobj; | |
27240 | fail: | |
27241 | return NULL; | |
27242 | } | |
27243 | ||
27244 | ||
27245 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27246 | PyObject *resultobj; | |
27247 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27248 | wxTreeItemId *arg2 = 0 ; | |
27249 | PyObject * obj0 = 0 ; | |
27250 | PyObject * obj1 = 0 ; | |
27251 | char *kwnames[] = { | |
27252 | (char *) "self",(char *) "item", NULL | |
27253 | }; | |
27254 | ||
27255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
27256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27258 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27259 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27260 | SWIG_fail; | |
27261 | if (arg2 == NULL) { | |
27262 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27263 | SWIG_fail; | |
27264 | } | |
27265 | { | |
27266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27267 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
27268 | ||
27269 | wxPyEndAllowThreads(__tstate); | |
27270 | if (PyErr_Occurred()) SWIG_fail; | |
27271 | } | |
27272 | Py_INCREF(Py_None); resultobj = Py_None; | |
27273 | return resultobj; | |
27274 | fail: | |
27275 | return NULL; | |
27276 | } | |
27277 | ||
27278 | ||
27279 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27280 | PyObject *resultobj; | |
27281 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27282 | wxTreeItemId *arg2 = 0 ; | |
27283 | PyObject * obj0 = 0 ; | |
27284 | PyObject * obj1 = 0 ; | |
27285 | char *kwnames[] = { | |
27286 | (char *) "self",(char *) "item", NULL | |
27287 | }; | |
27288 | ||
27289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
27290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27292 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27293 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27294 | SWIG_fail; | |
27295 | if (arg2 == NULL) { | |
27296 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27297 | SWIG_fail; | |
27298 | } | |
27299 | { | |
27300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27301 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
27302 | ||
27303 | wxPyEndAllowThreads(__tstate); | |
27304 | if (PyErr_Occurred()) SWIG_fail; | |
27305 | } | |
27306 | Py_INCREF(Py_None); resultobj = Py_None; | |
27307 | return resultobj; | |
27308 | fail: | |
27309 | return NULL; | |
27310 | } | |
27311 | ||
27312 | ||
27313 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27314 | PyObject *resultobj; | |
27315 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27316 | wxTreeItemId *arg2 = 0 ; | |
27317 | PyObject * obj0 = 0 ; | |
27318 | PyObject * obj1 = 0 ; | |
27319 | char *kwnames[] = { | |
27320 | (char *) "self",(char *) "item", NULL | |
27321 | }; | |
27322 | ||
27323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
27324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27326 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27327 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27328 | SWIG_fail; | |
27329 | if (arg2 == NULL) { | |
27330 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27331 | SWIG_fail; | |
27332 | } | |
27333 | { | |
27334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27335 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
27336 | ||
27337 | wxPyEndAllowThreads(__tstate); | |
27338 | if (PyErr_Occurred()) SWIG_fail; | |
27339 | } | |
27340 | Py_INCREF(Py_None); resultobj = Py_None; | |
27341 | return resultobj; | |
27342 | fail: | |
27343 | return NULL; | |
27344 | } | |
27345 | ||
27346 | ||
27347 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27348 | PyObject *resultobj; | |
27349 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27350 | PyObject * obj0 = 0 ; | |
27351 | char *kwnames[] = { | |
27352 | (char *) "self", NULL | |
27353 | }; | |
27354 | ||
27355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
27356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27358 | { | |
27359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27360 | (arg1)->Unselect(); | |
27361 | ||
27362 | wxPyEndAllowThreads(__tstate); | |
27363 | if (PyErr_Occurred()) SWIG_fail; | |
27364 | } | |
27365 | Py_INCREF(Py_None); resultobj = Py_None; | |
27366 | return resultobj; | |
27367 | fail: | |
27368 | return NULL; | |
27369 | } | |
27370 | ||
27371 | ||
27372 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27373 | PyObject *resultobj; | |
27374 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27375 | wxTreeItemId *arg2 = 0 ; | |
27376 | PyObject * obj0 = 0 ; | |
27377 | PyObject * obj1 = 0 ; | |
27378 | char *kwnames[] = { | |
27379 | (char *) "self",(char *) "item", NULL | |
27380 | }; | |
27381 | ||
27382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
27383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27385 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27386 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27387 | SWIG_fail; | |
27388 | if (arg2 == NULL) { | |
27389 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27390 | SWIG_fail; | |
27391 | } | |
27392 | { | |
27393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27394 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
27395 | ||
27396 | wxPyEndAllowThreads(__tstate); | |
27397 | if (PyErr_Occurred()) SWIG_fail; | |
27398 | } | |
27399 | Py_INCREF(Py_None); resultobj = Py_None; | |
27400 | return resultobj; | |
27401 | fail: | |
27402 | return NULL; | |
27403 | } | |
27404 | ||
27405 | ||
27406 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27407 | PyObject *resultobj; | |
27408 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27409 | PyObject * obj0 = 0 ; | |
27410 | char *kwnames[] = { | |
27411 | (char *) "self", NULL | |
27412 | }; | |
27413 | ||
27414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
27415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27417 | { | |
27418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27419 | (arg1)->UnselectAll(); | |
27420 | ||
27421 | wxPyEndAllowThreads(__tstate); | |
27422 | if (PyErr_Occurred()) SWIG_fail; | |
27423 | } | |
27424 | Py_INCREF(Py_None); resultobj = Py_None; | |
27425 | return resultobj; | |
27426 | fail: | |
27427 | return NULL; | |
27428 | } | |
27429 | ||
27430 | ||
27431 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27432 | PyObject *resultobj; | |
27433 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27434 | wxTreeItemId *arg2 = 0 ; | |
27435 | bool arg3 = (bool) True ; | |
27436 | PyObject * obj0 = 0 ; | |
27437 | PyObject * obj1 = 0 ; | |
27438 | PyObject * obj2 = 0 ; | |
27439 | char *kwnames[] = { | |
27440 | (char *) "self",(char *) "item",(char *) "select", NULL | |
27441 | }; | |
27442 | ||
27443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27446 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27447 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27448 | SWIG_fail; | |
27449 | if (arg2 == NULL) { | |
27450 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27451 | SWIG_fail; | |
27452 | } | |
27453 | if (obj2) { | |
27454 | arg3 = (bool) SWIG_AsBool(obj2); | |
27455 | if (PyErr_Occurred()) SWIG_fail; | |
27456 | } | |
27457 | { | |
27458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27459 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
27460 | ||
27461 | wxPyEndAllowThreads(__tstate); | |
27462 | if (PyErr_Occurred()) SWIG_fail; | |
27463 | } | |
27464 | Py_INCREF(Py_None); resultobj = Py_None; | |
27465 | return resultobj; | |
27466 | fail: | |
27467 | return NULL; | |
27468 | } | |
27469 | ||
27470 | ||
27471 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27472 | PyObject *resultobj; | |
27473 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27474 | wxTreeItemId *arg2 = 0 ; | |
27475 | PyObject * obj0 = 0 ; | |
27476 | PyObject * obj1 = 0 ; | |
27477 | char *kwnames[] = { | |
27478 | (char *) "self",(char *) "item", NULL | |
27479 | }; | |
27480 | ||
27481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; | |
27482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27485 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27486 | SWIG_fail; | |
27487 | if (arg2 == NULL) { | |
27488 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27489 | SWIG_fail; | |
27490 | } | |
27491 | { | |
27492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27493 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
27494 | ||
27495 | wxPyEndAllowThreads(__tstate); | |
27496 | if (PyErr_Occurred()) SWIG_fail; | |
27497 | } | |
27498 | Py_INCREF(Py_None); resultobj = Py_None; | |
27499 | return resultobj; | |
27500 | fail: | |
27501 | return NULL; | |
27502 | } | |
27503 | ||
27504 | ||
27505 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27506 | PyObject *resultobj; | |
27507 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27508 | wxTreeItemId *arg2 = 0 ; | |
27509 | PyObject * obj0 = 0 ; | |
27510 | PyObject * obj1 = 0 ; | |
27511 | char *kwnames[] = { | |
27512 | (char *) "self",(char *) "item", NULL | |
27513 | }; | |
27514 | ||
27515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
27516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27518 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27519 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27520 | SWIG_fail; | |
27521 | if (arg2 == NULL) { | |
27522 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27523 | SWIG_fail; | |
27524 | } | |
27525 | { | |
27526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27527 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
27528 | ||
27529 | wxPyEndAllowThreads(__tstate); | |
27530 | if (PyErr_Occurred()) SWIG_fail; | |
27531 | } | |
27532 | Py_INCREF(Py_None); resultobj = Py_None; | |
27533 | return resultobj; | |
27534 | fail: | |
27535 | return NULL; | |
27536 | } | |
27537 | ||
27538 | ||
27539 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27540 | PyObject *resultobj; | |
27541 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27542 | wxTreeItemId *arg2 = 0 ; | |
27543 | PyObject * obj0 = 0 ; | |
27544 | PyObject * obj1 = 0 ; | |
27545 | char *kwnames[] = { | |
27546 | (char *) "self",(char *) "item", NULL | |
27547 | }; | |
27548 | ||
27549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
27550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27552 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27553 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27554 | SWIG_fail; | |
27555 | if (arg2 == NULL) { | |
27556 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27557 | SWIG_fail; | |
27558 | } | |
27559 | { | |
27560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27561 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
27562 | ||
27563 | wxPyEndAllowThreads(__tstate); | |
27564 | if (PyErr_Occurred()) SWIG_fail; | |
27565 | } | |
27566 | Py_INCREF(Py_None); resultobj = Py_None; | |
27567 | return resultobj; | |
27568 | fail: | |
27569 | return NULL; | |
27570 | } | |
27571 | ||
27572 | ||
27573 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27574 | PyObject *resultobj; | |
27575 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27576 | wxTreeItemId *arg2 = 0 ; | |
27577 | PyObject * obj0 = 0 ; | |
27578 | PyObject * obj1 = 0 ; | |
27579 | char *kwnames[] = { | |
27580 | (char *) "self",(char *) "item", NULL | |
27581 | }; | |
27582 | ||
27583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
27584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27586 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27587 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27588 | SWIG_fail; | |
27589 | if (arg2 == NULL) { | |
27590 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27591 | SWIG_fail; | |
27592 | } | |
27593 | { | |
27594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27595 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
27596 | ||
27597 | wxPyEndAllowThreads(__tstate); | |
27598 | if (PyErr_Occurred()) SWIG_fail; | |
27599 | } | |
27600 | Py_INCREF(Py_None); resultobj = Py_None; | |
27601 | return resultobj; | |
27602 | fail: | |
27603 | return NULL; | |
27604 | } | |
27605 | ||
27606 | ||
27607 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27608 | PyObject *resultobj; | |
27609 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27610 | wxTextCtrl *result; | |
27611 | PyObject * obj0 = 0 ; | |
27612 | char *kwnames[] = { | |
27613 | (char *) "self", NULL | |
27614 | }; | |
27615 | ||
27616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
27617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27619 | { | |
27620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27621 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
27622 | ||
27623 | wxPyEndAllowThreads(__tstate); | |
27624 | if (PyErr_Occurred()) SWIG_fail; | |
27625 | } | |
27626 | { | |
412d302d | 27627 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27628 | } |
27629 | return resultobj; | |
27630 | fail: | |
27631 | return NULL; | |
27632 | } | |
27633 | ||
27634 | ||
27635 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27636 | PyObject *resultobj; | |
27637 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27638 | wxTreeItemId *arg2 = 0 ; | |
27639 | PyObject * obj0 = 0 ; | |
27640 | PyObject * obj1 = 0 ; | |
27641 | char *kwnames[] = { | |
27642 | (char *) "self",(char *) "item", NULL | |
27643 | }; | |
27644 | ||
27645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
27646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27649 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27650 | SWIG_fail; | |
27651 | if (arg2 == NULL) { | |
27652 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27653 | SWIG_fail; | |
27654 | } | |
27655 | { | |
27656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27657 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
27658 | ||
27659 | wxPyEndAllowThreads(__tstate); | |
27660 | if (PyErr_Occurred()) SWIG_fail; | |
27661 | } | |
27662 | Py_INCREF(Py_None); resultobj = Py_None; | |
27663 | return resultobj; | |
27664 | fail: | |
27665 | return NULL; | |
27666 | } | |
27667 | ||
27668 | ||
27669 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27670 | PyObject *resultobj; | |
27671 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27672 | wxPoint *arg2 = 0 ; | |
27673 | int *arg3 = 0 ; | |
27674 | wxTreeItemId result; | |
27675 | wxPoint temp2 ; | |
27676 | int temp3 ; | |
27677 | PyObject * obj0 = 0 ; | |
27678 | PyObject * obj1 = 0 ; | |
27679 | char *kwnames[] = { | |
27680 | (char *) "self",(char *) "point", NULL | |
27681 | }; | |
27682 | ||
27683 | arg3 = &temp3; | |
27684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27687 | { | |
27688 | arg2 = &temp2; | |
27689 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27690 | } | |
27691 | { | |
27692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27693 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27694 | ||
27695 | wxPyEndAllowThreads(__tstate); | |
27696 | if (PyErr_Occurred()) SWIG_fail; | |
27697 | } | |
27698 | { | |
27699 | wxTreeItemId * resultptr; | |
27700 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27701 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27702 | } | |
27703 | { | |
27704 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27705 | resultobj = t_output_helper(resultobj,o); | |
27706 | } | |
27707 | return resultobj; | |
27708 | fail: | |
27709 | return NULL; | |
27710 | } | |
27711 | ||
27712 | ||
27713 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27714 | PyObject *resultobj; | |
27715 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27716 | wxTreeItemId *arg2 = 0 ; | |
27717 | bool arg3 = (bool) False ; | |
27718 | PyObject *result; | |
27719 | PyObject * obj0 = 0 ; | |
27720 | PyObject * obj1 = 0 ; | |
27721 | PyObject * obj2 = 0 ; | |
27722 | char *kwnames[] = { | |
27723 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27724 | }; | |
27725 | ||
27726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27729 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27730 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27731 | SWIG_fail; | |
27732 | if (arg2 == NULL) { | |
27733 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27734 | SWIG_fail; | |
27735 | } | |
27736 | if (obj2) { | |
27737 | arg3 = (bool) SWIG_AsBool(obj2); | |
27738 | if (PyErr_Occurred()) SWIG_fail; | |
27739 | } | |
27740 | { | |
27741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27742 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27743 | ||
27744 | wxPyEndAllowThreads(__tstate); | |
27745 | if (PyErr_Occurred()) SWIG_fail; | |
27746 | } | |
27747 | resultobj = result; | |
27748 | return resultobj; | |
27749 | fail: | |
27750 | return NULL; | |
27751 | } | |
27752 | ||
27753 | ||
27754 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27755 | PyObject *resultobj; | |
27756 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
27757 | wxVisualAttributes result; | |
27758 | PyObject * obj0 = 0 ; | |
27759 | char *kwnames[] = { | |
27760 | (char *) "variant", NULL | |
27761 | }; | |
27762 | ||
27763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27764 | if (obj0) { | |
27765 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
27766 | if (PyErr_Occurred()) SWIG_fail; | |
27767 | } | |
27768 | { | |
0439c23b | 27769 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
27770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27771 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
27772 | ||
27773 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27774 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
27775 | } |
27776 | { | |
27777 | wxVisualAttributes * resultptr; | |
27778 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
27779 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
27780 | } | |
27781 | return resultobj; | |
27782 | fail: | |
27783 | return NULL; | |
27784 | } | |
27785 | ||
27786 | ||
27787 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
27788 | PyObject *obj; | |
27789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27790 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
27791 | Py_INCREF(obj); | |
27792 | return Py_BuildValue((char *)""); | |
27793 | } | |
27794 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { | |
27795 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
27796 | return 1; | |
27797 | } | |
27798 | ||
27799 | ||
27800 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
27801 | PyObject *pyobj; | |
27802 | ||
27803 | { | |
27804 | #if wxUSE_UNICODE | |
27805 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27806 | #else | |
27807 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27808 | #endif | |
27809 | } | |
27810 | return pyobj; | |
27811 | } | |
27812 | ||
27813 | ||
27814 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27815 | PyObject *resultobj; | |
27816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27817 | int arg2 = (int) (int)-1 ; | |
27818 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
27819 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27820 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27821 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27822 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27823 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27824 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27825 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27826 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27827 | int arg8 = (int) 0 ; | |
27828 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
27829 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
27830 | wxGenericDirCtrl *result; | |
27831 | bool temp3 = False ; | |
27832 | wxPoint temp4 ; | |
27833 | wxSize temp5 ; | |
27834 | bool temp7 = False ; | |
27835 | bool temp9 = False ; | |
27836 | PyObject * obj0 = 0 ; | |
27837 | PyObject * obj1 = 0 ; | |
27838 | PyObject * obj2 = 0 ; | |
27839 | PyObject * obj3 = 0 ; | |
27840 | PyObject * obj4 = 0 ; | |
27841 | PyObject * obj5 = 0 ; | |
27842 | PyObject * obj6 = 0 ; | |
27843 | PyObject * obj7 = 0 ; | |
27844 | PyObject * obj8 = 0 ; | |
27845 | char *kwnames[] = { | |
27846 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27847 | }; | |
27848 | ||
27849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
27850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27852 | if (obj1) { | |
27853 | arg2 = (int const) SWIG_AsInt(obj1); | |
27854 | if (PyErr_Occurred()) SWIG_fail; | |
27855 | } | |
27856 | if (obj2) { | |
27857 | { | |
27858 | arg3 = wxString_in_helper(obj2); | |
27859 | if (arg3 == NULL) SWIG_fail; | |
27860 | temp3 = True; | |
27861 | } | |
27862 | } | |
27863 | if (obj3) { | |
27864 | { | |
27865 | arg4 = &temp4; | |
27866 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27867 | } | |
27868 | } | |
27869 | if (obj4) { | |
27870 | { | |
27871 | arg5 = &temp5; | |
27872 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27873 | } | |
27874 | } | |
27875 | if (obj5) { | |
27876 | arg6 = (long) SWIG_AsLong(obj5); | |
27877 | if (PyErr_Occurred()) SWIG_fail; | |
27878 | } | |
27879 | if (obj6) { | |
27880 | { | |
27881 | arg7 = wxString_in_helper(obj6); | |
27882 | if (arg7 == NULL) SWIG_fail; | |
27883 | temp7 = True; | |
27884 | } | |
27885 | } | |
27886 | if (obj7) { | |
27887 | arg8 = (int) SWIG_AsInt(obj7); | |
27888 | if (PyErr_Occurred()) SWIG_fail; | |
27889 | } | |
27890 | if (obj8) { | |
27891 | { | |
27892 | arg9 = wxString_in_helper(obj8); | |
27893 | if (arg9 == NULL) SWIG_fail; | |
27894 | temp9 = True; | |
27895 | } | |
27896 | } | |
27897 | { | |
0439c23b | 27898 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
27899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27900 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
27901 | ||
27902 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27903 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
27904 | } |
27905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
27906 | { | |
27907 | if (temp3) | |
27908 | delete arg3; | |
27909 | } | |
27910 | { | |
27911 | if (temp7) | |
27912 | delete arg7; | |
27913 | } | |
27914 | { | |
27915 | if (temp9) | |
27916 | delete arg9; | |
27917 | } | |
27918 | return resultobj; | |
27919 | fail: | |
27920 | { | |
27921 | if (temp3) | |
27922 | delete arg3; | |
27923 | } | |
27924 | { | |
27925 | if (temp7) | |
27926 | delete arg7; | |
27927 | } | |
27928 | { | |
27929 | if (temp9) | |
27930 | delete arg9; | |
27931 | } | |
27932 | return NULL; | |
27933 | } | |
27934 | ||
27935 | ||
27936 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27937 | PyObject *resultobj; | |
27938 | wxGenericDirCtrl *result; | |
27939 | char *kwnames[] = { | |
27940 | NULL | |
27941 | }; | |
27942 | ||
27943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
27944 | { | |
0439c23b | 27945 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
27946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27947 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
27948 | ||
27949 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27950 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
27951 | } |
27952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
27953 | return resultobj; | |
27954 | fail: | |
27955 | return NULL; | |
27956 | } | |
27957 | ||
27958 | ||
27959 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27960 | PyObject *resultobj; | |
27961 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27962 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27963 | int arg3 = (int) (int)-1 ; | |
27964 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
27965 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27966 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
27967 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
27968 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
27969 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
27970 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27971 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
27972 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
27973 | int arg9 = (int) 0 ; | |
27974 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
27975 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
27976 | bool result; | |
27977 | bool temp4 = False ; | |
27978 | wxPoint temp5 ; | |
27979 | wxSize temp6 ; | |
27980 | bool temp8 = False ; | |
27981 | bool temp10 = False ; | |
27982 | PyObject * obj0 = 0 ; | |
27983 | PyObject * obj1 = 0 ; | |
27984 | PyObject * obj2 = 0 ; | |
27985 | PyObject * obj3 = 0 ; | |
27986 | PyObject * obj4 = 0 ; | |
27987 | PyObject * obj5 = 0 ; | |
27988 | PyObject * obj6 = 0 ; | |
27989 | PyObject * obj7 = 0 ; | |
27990 | PyObject * obj8 = 0 ; | |
27991 | PyObject * obj9 = 0 ; | |
27992 | char *kwnames[] = { | |
27993 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27994 | }; | |
27995 | ||
27996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
27997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27999 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28001 | if (obj2) { | |
28002 | arg3 = (int const) SWIG_AsInt(obj2); | |
28003 | if (PyErr_Occurred()) SWIG_fail; | |
28004 | } | |
28005 | if (obj3) { | |
28006 | { | |
28007 | arg4 = wxString_in_helper(obj3); | |
28008 | if (arg4 == NULL) SWIG_fail; | |
28009 | temp4 = True; | |
28010 | } | |
28011 | } | |
28012 | if (obj4) { | |
28013 | { | |
28014 | arg5 = &temp5; | |
28015 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
28016 | } | |
28017 | } | |
28018 | if (obj5) { | |
28019 | { | |
28020 | arg6 = &temp6; | |
28021 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
28022 | } | |
28023 | } | |
28024 | if (obj6) { | |
28025 | arg7 = (long) SWIG_AsLong(obj6); | |
28026 | if (PyErr_Occurred()) SWIG_fail; | |
28027 | } | |
28028 | if (obj7) { | |
28029 | { | |
28030 | arg8 = wxString_in_helper(obj7); | |
28031 | if (arg8 == NULL) SWIG_fail; | |
28032 | temp8 = True; | |
28033 | } | |
28034 | } | |
28035 | if (obj8) { | |
28036 | arg9 = (int) SWIG_AsInt(obj8); | |
28037 | if (PyErr_Occurred()) SWIG_fail; | |
28038 | } | |
28039 | if (obj9) { | |
28040 | { | |
28041 | arg10 = wxString_in_helper(obj9); | |
28042 | if (arg10 == NULL) SWIG_fail; | |
28043 | temp10 = True; | |
28044 | } | |
28045 | } | |
28046 | { | |
28047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28048 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
28049 | ||
28050 | wxPyEndAllowThreads(__tstate); | |
28051 | if (PyErr_Occurred()) SWIG_fail; | |
28052 | } | |
28053 | { | |
28054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28055 | } | |
28056 | { | |
28057 | if (temp4) | |
28058 | delete arg4; | |
28059 | } | |
28060 | { | |
28061 | if (temp8) | |
28062 | delete arg8; | |
28063 | } | |
28064 | { | |
28065 | if (temp10) | |
28066 | delete arg10; | |
28067 | } | |
28068 | return resultobj; | |
28069 | fail: | |
28070 | { | |
28071 | if (temp4) | |
28072 | delete arg4; | |
28073 | } | |
28074 | { | |
28075 | if (temp8) | |
28076 | delete arg8; | |
28077 | } | |
28078 | { | |
28079 | if (temp10) | |
28080 | delete arg10; | |
28081 | } | |
28082 | return NULL; | |
28083 | } | |
28084 | ||
28085 | ||
28086 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28087 | PyObject *resultobj; | |
28088 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28089 | wxString *arg2 = 0 ; | |
28090 | bool result; | |
28091 | bool temp2 = False ; | |
28092 | PyObject * obj0 = 0 ; | |
28093 | PyObject * obj1 = 0 ; | |
28094 | char *kwnames[] = { | |
28095 | (char *) "self",(char *) "path", NULL | |
28096 | }; | |
28097 | ||
28098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
28099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28101 | { | |
28102 | arg2 = wxString_in_helper(obj1); | |
28103 | if (arg2 == NULL) SWIG_fail; | |
28104 | temp2 = True; | |
28105 | } | |
28106 | { | |
28107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28108 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
28109 | ||
28110 | wxPyEndAllowThreads(__tstate); | |
28111 | if (PyErr_Occurred()) SWIG_fail; | |
28112 | } | |
28113 | { | |
28114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28115 | } | |
28116 | { | |
28117 | if (temp2) | |
28118 | delete arg2; | |
28119 | } | |
28120 | return resultobj; | |
28121 | fail: | |
28122 | { | |
28123 | if (temp2) | |
28124 | delete arg2; | |
28125 | } | |
28126 | return NULL; | |
28127 | } | |
28128 | ||
28129 | ||
28130 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28131 | PyObject *resultobj; | |
28132 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28133 | wxString result; | |
28134 | PyObject * obj0 = 0 ; | |
28135 | char *kwnames[] = { | |
28136 | (char *) "self", NULL | |
28137 | }; | |
28138 | ||
28139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
28140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28142 | { | |
28143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28144 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
28145 | ||
28146 | wxPyEndAllowThreads(__tstate); | |
28147 | if (PyErr_Occurred()) SWIG_fail; | |
28148 | } | |
28149 | { | |
28150 | #if wxUSE_UNICODE | |
28151 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28152 | #else | |
28153 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28154 | #endif | |
28155 | } | |
28156 | return resultobj; | |
28157 | fail: | |
28158 | return NULL; | |
28159 | } | |
28160 | ||
28161 | ||
28162 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28163 | PyObject *resultobj; | |
28164 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28165 | wxString *arg2 = 0 ; | |
28166 | bool temp2 = False ; | |
28167 | PyObject * obj0 = 0 ; | |
28168 | PyObject * obj1 = 0 ; | |
28169 | char *kwnames[] = { | |
28170 | (char *) "self",(char *) "path", NULL | |
28171 | }; | |
28172 | ||
28173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
28174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28176 | { | |
28177 | arg2 = wxString_in_helper(obj1); | |
28178 | if (arg2 == NULL) SWIG_fail; | |
28179 | temp2 = True; | |
28180 | } | |
28181 | { | |
28182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28183 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28184 | ||
28185 | wxPyEndAllowThreads(__tstate); | |
28186 | if (PyErr_Occurred()) SWIG_fail; | |
28187 | } | |
28188 | Py_INCREF(Py_None); resultobj = Py_None; | |
28189 | { | |
28190 | if (temp2) | |
28191 | delete arg2; | |
28192 | } | |
28193 | return resultobj; | |
28194 | fail: | |
28195 | { | |
28196 | if (temp2) | |
28197 | delete arg2; | |
28198 | } | |
28199 | return NULL; | |
28200 | } | |
28201 | ||
28202 | ||
28203 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28204 | PyObject *resultobj; | |
28205 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28206 | wxString result; | |
28207 | PyObject * obj0 = 0 ; | |
28208 | char *kwnames[] = { | |
28209 | (char *) "self", NULL | |
28210 | }; | |
28211 | ||
28212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
28213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28215 | { | |
28216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28217 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28218 | ||
28219 | wxPyEndAllowThreads(__tstate); | |
28220 | if (PyErr_Occurred()) SWIG_fail; | |
28221 | } | |
28222 | { | |
28223 | #if wxUSE_UNICODE | |
28224 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28225 | #else | |
28226 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28227 | #endif | |
28228 | } | |
28229 | return resultobj; | |
28230 | fail: | |
28231 | return NULL; | |
28232 | } | |
28233 | ||
28234 | ||
28235 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28236 | PyObject *resultobj; | |
28237 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28238 | wxString result; | |
28239 | PyObject * obj0 = 0 ; | |
28240 | char *kwnames[] = { | |
28241 | (char *) "self", NULL | |
28242 | }; | |
28243 | ||
28244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
28245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28247 | { | |
28248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28249 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
28250 | ||
28251 | wxPyEndAllowThreads(__tstate); | |
28252 | if (PyErr_Occurred()) SWIG_fail; | |
28253 | } | |
28254 | { | |
28255 | #if wxUSE_UNICODE | |
28256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28257 | #else | |
28258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28259 | #endif | |
28260 | } | |
28261 | return resultobj; | |
28262 | fail: | |
28263 | return NULL; | |
28264 | } | |
28265 | ||
28266 | ||
28267 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28268 | PyObject *resultobj; | |
28269 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28270 | wxString *arg2 = 0 ; | |
28271 | bool temp2 = False ; | |
28272 | PyObject * obj0 = 0 ; | |
28273 | PyObject * obj1 = 0 ; | |
28274 | char *kwnames[] = { | |
28275 | (char *) "self",(char *) "path", NULL | |
28276 | }; | |
28277 | ||
28278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
28279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28281 | { | |
28282 | arg2 = wxString_in_helper(obj1); | |
28283 | if (arg2 == NULL) SWIG_fail; | |
28284 | temp2 = True; | |
28285 | } | |
28286 | { | |
28287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28288 | (arg1)->SetPath((wxString const &)*arg2); | |
28289 | ||
28290 | wxPyEndAllowThreads(__tstate); | |
28291 | if (PyErr_Occurred()) SWIG_fail; | |
28292 | } | |
28293 | Py_INCREF(Py_None); resultobj = Py_None; | |
28294 | { | |
28295 | if (temp2) | |
28296 | delete arg2; | |
28297 | } | |
28298 | return resultobj; | |
28299 | fail: | |
28300 | { | |
28301 | if (temp2) | |
28302 | delete arg2; | |
28303 | } | |
28304 | return NULL; | |
28305 | } | |
28306 | ||
28307 | ||
28308 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28309 | PyObject *resultobj; | |
28310 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28311 | bool arg2 ; | |
28312 | PyObject * obj0 = 0 ; | |
28313 | PyObject * obj1 = 0 ; | |
28314 | char *kwnames[] = { | |
28315 | (char *) "self",(char *) "show", NULL | |
28316 | }; | |
28317 | ||
28318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
28319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28321 | arg2 = (bool) SWIG_AsBool(obj1); | |
28322 | if (PyErr_Occurred()) SWIG_fail; | |
28323 | { | |
28324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28325 | (arg1)->ShowHidden(arg2); | |
28326 | ||
28327 | wxPyEndAllowThreads(__tstate); | |
28328 | if (PyErr_Occurred()) SWIG_fail; | |
28329 | } | |
28330 | Py_INCREF(Py_None); resultobj = Py_None; | |
28331 | return resultobj; | |
28332 | fail: | |
28333 | return NULL; | |
28334 | } | |
28335 | ||
28336 | ||
28337 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28338 | PyObject *resultobj; | |
28339 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28340 | bool result; | |
28341 | PyObject * obj0 = 0 ; | |
28342 | char *kwnames[] = { | |
28343 | (char *) "self", NULL | |
28344 | }; | |
28345 | ||
28346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
28347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28349 | { | |
28350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28351 | result = (bool)(arg1)->GetShowHidden(); | |
28352 | ||
28353 | wxPyEndAllowThreads(__tstate); | |
28354 | if (PyErr_Occurred()) SWIG_fail; | |
28355 | } | |
28356 | { | |
28357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28358 | } | |
28359 | return resultobj; | |
28360 | fail: | |
28361 | return NULL; | |
28362 | } | |
28363 | ||
28364 | ||
28365 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28366 | PyObject *resultobj; | |
28367 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28368 | wxString result; | |
28369 | PyObject * obj0 = 0 ; | |
28370 | char *kwnames[] = { | |
28371 | (char *) "self", NULL | |
28372 | }; | |
28373 | ||
28374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
28375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28377 | { | |
28378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28379 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
28380 | ||
28381 | wxPyEndAllowThreads(__tstate); | |
28382 | if (PyErr_Occurred()) SWIG_fail; | |
28383 | } | |
28384 | { | |
28385 | #if wxUSE_UNICODE | |
28386 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28387 | #else | |
28388 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28389 | #endif | |
28390 | } | |
28391 | return resultobj; | |
28392 | fail: | |
28393 | return NULL; | |
28394 | } | |
28395 | ||
28396 | ||
28397 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28398 | PyObject *resultobj; | |
28399 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28400 | wxString *arg2 = 0 ; | |
28401 | bool temp2 = False ; | |
28402 | PyObject * obj0 = 0 ; | |
28403 | PyObject * obj1 = 0 ; | |
28404 | char *kwnames[] = { | |
28405 | (char *) "self",(char *) "filter", NULL | |
28406 | }; | |
28407 | ||
28408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
28409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28411 | { | |
28412 | arg2 = wxString_in_helper(obj1); | |
28413 | if (arg2 == NULL) SWIG_fail; | |
28414 | temp2 = True; | |
28415 | } | |
28416 | { | |
28417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28418 | (arg1)->SetFilter((wxString const &)*arg2); | |
28419 | ||
28420 | wxPyEndAllowThreads(__tstate); | |
28421 | if (PyErr_Occurred()) SWIG_fail; | |
28422 | } | |
28423 | Py_INCREF(Py_None); resultobj = Py_None; | |
28424 | { | |
28425 | if (temp2) | |
28426 | delete arg2; | |
28427 | } | |
28428 | return resultobj; | |
28429 | fail: | |
28430 | { | |
28431 | if (temp2) | |
28432 | delete arg2; | |
28433 | } | |
28434 | return NULL; | |
28435 | } | |
28436 | ||
28437 | ||
28438 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28439 | PyObject *resultobj; | |
28440 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28441 | int result; | |
28442 | PyObject * obj0 = 0 ; | |
28443 | char *kwnames[] = { | |
28444 | (char *) "self", NULL | |
28445 | }; | |
28446 | ||
28447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
28448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28450 | { | |
28451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28452 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
28453 | ||
28454 | wxPyEndAllowThreads(__tstate); | |
28455 | if (PyErr_Occurred()) SWIG_fail; | |
28456 | } | |
28457 | resultobj = SWIG_FromInt((int)result); | |
28458 | return resultobj; | |
28459 | fail: | |
28460 | return NULL; | |
28461 | } | |
28462 | ||
28463 | ||
28464 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28465 | PyObject *resultobj; | |
28466 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28467 | int arg2 ; | |
28468 | PyObject * obj0 = 0 ; | |
28469 | PyObject * obj1 = 0 ; | |
28470 | char *kwnames[] = { | |
28471 | (char *) "self",(char *) "n", NULL | |
28472 | }; | |
28473 | ||
28474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
28475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28477 | arg2 = (int) SWIG_AsInt(obj1); | |
28478 | if (PyErr_Occurred()) SWIG_fail; | |
28479 | { | |
28480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28481 | (arg1)->SetFilterIndex(arg2); | |
28482 | ||
28483 | wxPyEndAllowThreads(__tstate); | |
28484 | if (PyErr_Occurred()) SWIG_fail; | |
28485 | } | |
28486 | Py_INCREF(Py_None); resultobj = Py_None; | |
28487 | return resultobj; | |
28488 | fail: | |
28489 | return NULL; | |
28490 | } | |
28491 | ||
28492 | ||
28493 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28494 | PyObject *resultobj; | |
28495 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28496 | wxTreeItemId result; | |
28497 | PyObject * obj0 = 0 ; | |
28498 | char *kwnames[] = { | |
28499 | (char *) "self", NULL | |
28500 | }; | |
28501 | ||
28502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
28503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28505 | { | |
28506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28507 | result = (arg1)->GetRootId(); | |
28508 | ||
28509 | wxPyEndAllowThreads(__tstate); | |
28510 | if (PyErr_Occurred()) SWIG_fail; | |
28511 | } | |
28512 | { | |
28513 | wxTreeItemId * resultptr; | |
28514 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28515 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28516 | } | |
28517 | return resultobj; | |
28518 | fail: | |
28519 | return NULL; | |
28520 | } | |
28521 | ||
28522 | ||
28523 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28524 | PyObject *resultobj; | |
28525 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28526 | wxPyTreeCtrl *result; | |
28527 | PyObject * obj0 = 0 ; | |
28528 | char *kwnames[] = { | |
28529 | (char *) "self", NULL | |
28530 | }; | |
28531 | ||
28532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
28533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28535 | { | |
28536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28537 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
28538 | ||
28539 | wxPyEndAllowThreads(__tstate); | |
28540 | if (PyErr_Occurred()) SWIG_fail; | |
28541 | } | |
28542 | { | |
412d302d | 28543 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28544 | } |
28545 | return resultobj; | |
28546 | fail: | |
28547 | return NULL; | |
28548 | } | |
28549 | ||
28550 | ||
28551 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28552 | PyObject *resultobj; | |
28553 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28554 | wxDirFilterListCtrl *result; | |
28555 | PyObject * obj0 = 0 ; | |
28556 | char *kwnames[] = { | |
28557 | (char *) "self", NULL | |
28558 | }; | |
28559 | ||
28560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
28561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28563 | { | |
28564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28565 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
28566 | ||
28567 | wxPyEndAllowThreads(__tstate); | |
28568 | if (PyErr_Occurred()) SWIG_fail; | |
28569 | } | |
28570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
28571 | return resultobj; | |
28572 | fail: | |
28573 | return NULL; | |
28574 | } | |
28575 | ||
28576 | ||
28577 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28578 | PyObject *resultobj; | |
28579 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28580 | wxTreeItemId arg2 ; | |
28581 | wxString *arg3 = 0 ; | |
28582 | bool *arg4 = 0 ; | |
28583 | wxTreeItemId result; | |
28584 | wxTreeItemId *argp2 ; | |
28585 | bool temp3 = False ; | |
28586 | bool temp4 ; | |
28587 | PyObject * obj0 = 0 ; | |
28588 | PyObject * obj1 = 0 ; | |
28589 | PyObject * obj2 = 0 ; | |
28590 | char *kwnames[] = { | |
28591 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
28592 | }; | |
28593 | ||
28594 | arg4 = &temp4; | |
28595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28598 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
28599 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
28600 | arg2 = *argp2; | |
28601 | { | |
28602 | arg3 = wxString_in_helper(obj2); | |
28603 | if (arg3 == NULL) SWIG_fail; | |
28604 | temp3 = True; | |
28605 | } | |
28606 | { | |
28607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28608 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
28609 | ||
28610 | wxPyEndAllowThreads(__tstate); | |
28611 | if (PyErr_Occurred()) SWIG_fail; | |
28612 | } | |
28613 | { | |
28614 | wxTreeItemId * resultptr; | |
28615 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28617 | } | |
28618 | { | |
28619 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
28620 | resultobj = t_output_helper(resultobj,o); | |
28621 | } | |
28622 | { | |
28623 | if (temp3) | |
28624 | delete arg3; | |
28625 | } | |
28626 | return resultobj; | |
28627 | fail: | |
28628 | { | |
28629 | if (temp3) | |
28630 | delete arg3; | |
28631 | } | |
28632 | return NULL; | |
28633 | } | |
28634 | ||
28635 | ||
28636 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28637 | PyObject *resultobj; | |
28638 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28639 | PyObject * obj0 = 0 ; | |
28640 | char *kwnames[] = { | |
28641 | (char *) "self", NULL | |
28642 | }; | |
28643 | ||
28644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
28645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28647 | { | |
28648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28649 | (arg1)->DoResize(); | |
28650 | ||
28651 | wxPyEndAllowThreads(__tstate); | |
28652 | if (PyErr_Occurred()) SWIG_fail; | |
28653 | } | |
28654 | Py_INCREF(Py_None); resultobj = Py_None; | |
28655 | return resultobj; | |
28656 | fail: | |
28657 | return NULL; | |
28658 | } | |
28659 | ||
28660 | ||
28661 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28662 | PyObject *resultobj; | |
28663 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28664 | PyObject * obj0 = 0 ; | |
28665 | char *kwnames[] = { | |
28666 | (char *) "self", NULL | |
28667 | }; | |
28668 | ||
28669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
28670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28672 | { | |
28673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28674 | (arg1)->ReCreateTree(); | |
28675 | ||
28676 | wxPyEndAllowThreads(__tstate); | |
28677 | if (PyErr_Occurred()) SWIG_fail; | |
28678 | } | |
28679 | Py_INCREF(Py_None); resultobj = Py_None; | |
28680 | return resultobj; | |
28681 | fail: | |
28682 | return NULL; | |
28683 | } | |
28684 | ||
28685 | ||
28686 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
28687 | PyObject *obj; | |
28688 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28689 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28690 | Py_INCREF(obj); | |
28691 | return Py_BuildValue((char *)""); | |
28692 | } | |
28693 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28694 | PyObject *resultobj; | |
28695 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28696 | int arg2 = (int) (int)-1 ; | |
28697 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28698 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28699 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28700 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28701 | long arg5 = (long) 0 ; | |
28702 | wxDirFilterListCtrl *result; | |
28703 | wxPoint temp3 ; | |
28704 | wxSize temp4 ; | |
28705 | PyObject * obj0 = 0 ; | |
28706 | PyObject * obj1 = 0 ; | |
28707 | PyObject * obj2 = 0 ; | |
28708 | PyObject * obj3 = 0 ; | |
28709 | PyObject * obj4 = 0 ; | |
28710 | char *kwnames[] = { | |
28711 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28712 | }; | |
28713 | ||
28714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28717 | if (obj1) { | |
28718 | arg2 = (int const) SWIG_AsInt(obj1); | |
28719 | if (PyErr_Occurred()) SWIG_fail; | |
28720 | } | |
28721 | if (obj2) { | |
28722 | { | |
28723 | arg3 = &temp3; | |
28724 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28725 | } | |
28726 | } | |
28727 | if (obj3) { | |
28728 | { | |
28729 | arg4 = &temp4; | |
28730 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28731 | } | |
28732 | } | |
28733 | if (obj4) { | |
28734 | arg5 = (long) SWIG_AsLong(obj4); | |
28735 | if (PyErr_Occurred()) SWIG_fail; | |
28736 | } | |
28737 | { | |
0439c23b | 28738 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28740 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28741 | ||
28742 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28743 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28744 | } |
28745 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
28746 | return resultobj; | |
28747 | fail: | |
28748 | return NULL; | |
28749 | } | |
28750 | ||
28751 | ||
28752 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28753 | PyObject *resultobj; | |
28754 | wxDirFilterListCtrl *result; | |
28755 | char *kwnames[] = { | |
28756 | NULL | |
28757 | }; | |
28758 | ||
28759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
28760 | { | |
0439c23b | 28761 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28763 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
28764 | ||
28765 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28766 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28767 | } |
28768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
28769 | return resultobj; | |
28770 | fail: | |
28771 | return NULL; | |
28772 | } | |
28773 | ||
28774 | ||
28775 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28776 | PyObject *resultobj; | |
28777 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28778 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
28779 | int arg3 = (int) (int)-1 ; | |
28780 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28781 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28782 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28783 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28784 | long arg6 = (long) 0 ; | |
28785 | bool result; | |
28786 | wxPoint temp4 ; | |
28787 | wxSize temp5 ; | |
28788 | PyObject * obj0 = 0 ; | |
28789 | PyObject * obj1 = 0 ; | |
28790 | PyObject * obj2 = 0 ; | |
28791 | PyObject * obj3 = 0 ; | |
28792 | PyObject * obj4 = 0 ; | |
28793 | PyObject * obj5 = 0 ; | |
28794 | char *kwnames[] = { | |
28795 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28796 | }; | |
28797 | ||
28798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
28800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28801 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
28802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28803 | if (obj2) { | |
28804 | arg3 = (int const) SWIG_AsInt(obj2); | |
28805 | if (PyErr_Occurred()) SWIG_fail; | |
28806 | } | |
28807 | if (obj3) { | |
28808 | { | |
28809 | arg4 = &temp4; | |
28810 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28811 | } | |
28812 | } | |
28813 | if (obj4) { | |
28814 | { | |
28815 | arg5 = &temp5; | |
28816 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28817 | } | |
28818 | } | |
28819 | if (obj5) { | |
28820 | arg6 = (long) SWIG_AsLong(obj5); | |
28821 | if (PyErr_Occurred()) SWIG_fail; | |
28822 | } | |
28823 | { | |
28824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28825 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28826 | ||
28827 | wxPyEndAllowThreads(__tstate); | |
28828 | if (PyErr_Occurred()) SWIG_fail; | |
28829 | } | |
28830 | { | |
28831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28832 | } | |
28833 | return resultobj; | |
28834 | fail: | |
28835 | return NULL; | |
28836 | } | |
28837 | ||
28838 | ||
28839 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28840 | PyObject *resultobj; | |
28841 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28842 | wxString *arg2 = 0 ; | |
28843 | int arg3 ; | |
28844 | bool temp2 = False ; | |
28845 | PyObject * obj0 = 0 ; | |
28846 | PyObject * obj1 = 0 ; | |
28847 | PyObject * obj2 = 0 ; | |
28848 | char *kwnames[] = { | |
28849 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
28850 | }; | |
28851 | ||
28852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
28854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28855 | { | |
28856 | arg2 = wxString_in_helper(obj1); | |
28857 | if (arg2 == NULL) SWIG_fail; | |
28858 | temp2 = True; | |
28859 | } | |
28860 | arg3 = (int) SWIG_AsInt(obj2); | |
28861 | if (PyErr_Occurred()) SWIG_fail; | |
28862 | { | |
28863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28864 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
28865 | ||
28866 | wxPyEndAllowThreads(__tstate); | |
28867 | if (PyErr_Occurred()) SWIG_fail; | |
28868 | } | |
28869 | Py_INCREF(Py_None); resultobj = Py_None; | |
28870 | { | |
28871 | if (temp2) | |
28872 | delete arg2; | |
28873 | } | |
28874 | return resultobj; | |
28875 | fail: | |
28876 | { | |
28877 | if (temp2) | |
28878 | delete arg2; | |
28879 | } | |
28880 | return NULL; | |
28881 | } | |
28882 | ||
28883 | ||
28884 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
28885 | PyObject *obj; | |
28886 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28887 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
28888 | Py_INCREF(obj); | |
28889 | return Py_BuildValue((char *)""); | |
28890 | } | |
28891 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28892 | PyObject *resultobj; | |
28893 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 28894 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
28895 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28896 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28897 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28898 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28899 | long arg5 = (long) 0 ; | |
28900 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28901 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28902 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28903 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28904 | wxPyControl *result; | |
28905 | wxPoint temp3 ; | |
28906 | wxSize temp4 ; | |
28907 | bool temp7 = False ; | |
28908 | PyObject * obj0 = 0 ; | |
28909 | PyObject * obj1 = 0 ; | |
28910 | PyObject * obj2 = 0 ; | |
28911 | PyObject * obj3 = 0 ; | |
28912 | PyObject * obj4 = 0 ; | |
28913 | PyObject * obj5 = 0 ; | |
28914 | PyObject * obj6 = 0 ; | |
28915 | char *kwnames[] = { | |
28916 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28917 | }; | |
28918 | ||
bfddbb17 | 28919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
28920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 RD |
28922 | if (obj1) { |
28923 | arg2 = (int const) SWIG_AsInt(obj1); | |
28924 | if (PyErr_Occurred()) SWIG_fail; | |
28925 | } | |
d55e5bfc RD |
28926 | if (obj2) { |
28927 | { | |
28928 | arg3 = &temp3; | |
28929 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28930 | } | |
28931 | } | |
28932 | if (obj3) { | |
28933 | { | |
28934 | arg4 = &temp4; | |
28935 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28936 | } | |
28937 | } | |
28938 | if (obj4) { | |
28939 | arg5 = (long) SWIG_AsLong(obj4); | |
28940 | if (PyErr_Occurred()) SWIG_fail; | |
28941 | } | |
28942 | if (obj5) { | |
28943 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
28944 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28945 | SWIG_fail; | |
28946 | if (arg6 == NULL) { | |
28947 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28948 | SWIG_fail; | |
28949 | } | |
28950 | } | |
28951 | if (obj6) { | |
28952 | { | |
28953 | arg7 = wxString_in_helper(obj6); | |
28954 | if (arg7 == NULL) SWIG_fail; | |
28955 | temp7 = True; | |
28956 | } | |
28957 | } | |
28958 | { | |
0439c23b | 28959 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28961 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28962 | ||
28963 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28964 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28965 | } |
28966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
28967 | { | |
28968 | if (temp7) | |
28969 | delete arg7; | |
28970 | } | |
28971 | return resultobj; | |
28972 | fail: | |
28973 | { | |
28974 | if (temp7) | |
28975 | delete arg7; | |
28976 | } | |
28977 | return NULL; | |
28978 | } | |
28979 | ||
28980 | ||
28981 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28982 | PyObject *resultobj; | |
28983 | wxPyControl *result; | |
28984 | char *kwnames[] = { | |
28985 | NULL | |
28986 | }; | |
28987 | ||
28988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
28989 | { | |
0439c23b | 28990 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28992 | result = (wxPyControl *)new wxPyControl(); | |
28993 | ||
28994 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28995 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28996 | } |
28997 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
28998 | return resultobj; | |
28999 | fail: | |
29000 | return NULL; | |
29001 | } | |
29002 | ||
29003 | ||
29004 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29005 | PyObject *resultobj; | |
29006 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29007 | PyObject *arg2 = (PyObject *) 0 ; | |
29008 | PyObject *arg3 = (PyObject *) 0 ; | |
29009 | PyObject * obj0 = 0 ; | |
29010 | PyObject * obj1 = 0 ; | |
29011 | PyObject * obj2 = 0 ; | |
29012 | char *kwnames[] = { | |
29013 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29014 | }; | |
29015 | ||
29016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29019 | arg2 = obj1; | |
29020 | arg3 = obj2; | |
29021 | { | |
29022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29023 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29024 | ||
29025 | wxPyEndAllowThreads(__tstate); | |
29026 | if (PyErr_Occurred()) SWIG_fail; | |
29027 | } | |
29028 | Py_INCREF(Py_None); resultobj = Py_None; | |
29029 | return resultobj; | |
29030 | fail: | |
29031 | return NULL; | |
29032 | } | |
29033 | ||
29034 | ||
a5ee0656 RD |
29035 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
29036 | PyObject *resultobj; | |
29037 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29038 | wxSize *arg2 = 0 ; | |
29039 | wxSize temp2 ; | |
29040 | PyObject * obj0 = 0 ; | |
29041 | PyObject * obj1 = 0 ; | |
29042 | char *kwnames[] = { | |
29043 | (char *) "self",(char *) "size", NULL | |
29044 | }; | |
29045 | ||
29046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
29047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29049 | { | |
29050 | arg2 = &temp2; | |
29051 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29052 | } | |
29053 | { | |
29054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29055 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
29056 | ||
29057 | wxPyEndAllowThreads(__tstate); | |
29058 | if (PyErr_Occurred()) SWIG_fail; | |
29059 | } | |
29060 | Py_INCREF(Py_None); resultobj = Py_None; | |
29061 | return resultobj; | |
29062 | fail: | |
29063 | return NULL; | |
29064 | } | |
29065 | ||
29066 | ||
d55e5bfc RD |
29067 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
29068 | PyObject *resultobj; | |
29069 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29070 | int arg2 ; | |
29071 | int arg3 ; | |
29072 | int arg4 ; | |
29073 | int arg5 ; | |
29074 | PyObject * obj0 = 0 ; | |
29075 | PyObject * obj1 = 0 ; | |
29076 | PyObject * obj2 = 0 ; | |
29077 | PyObject * obj3 = 0 ; | |
29078 | PyObject * obj4 = 0 ; | |
29079 | char *kwnames[] = { | |
29080 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29081 | }; | |
29082 | ||
29083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29086 | arg2 = (int) SWIG_AsInt(obj1); | |
29087 | if (PyErr_Occurred()) SWIG_fail; | |
29088 | arg3 = (int) SWIG_AsInt(obj2); | |
29089 | if (PyErr_Occurred()) SWIG_fail; | |
29090 | arg4 = (int) SWIG_AsInt(obj3); | |
29091 | if (PyErr_Occurred()) SWIG_fail; | |
29092 | arg5 = (int) SWIG_AsInt(obj4); | |
29093 | if (PyErr_Occurred()) SWIG_fail; | |
29094 | { | |
29095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29096 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
29097 | ||
29098 | wxPyEndAllowThreads(__tstate); | |
29099 | if (PyErr_Occurred()) SWIG_fail; | |
29100 | } | |
29101 | Py_INCREF(Py_None); resultobj = Py_None; | |
29102 | return resultobj; | |
29103 | fail: | |
29104 | return NULL; | |
29105 | } | |
29106 | ||
29107 | ||
29108 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29109 | PyObject *resultobj; | |
29110 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29111 | int arg2 ; | |
29112 | int arg3 ; | |
29113 | int arg4 ; | |
29114 | int arg5 ; | |
29115 | int arg6 = (int) wxSIZE_AUTO ; | |
29116 | PyObject * obj0 = 0 ; | |
29117 | PyObject * obj1 = 0 ; | |
29118 | PyObject * obj2 = 0 ; | |
29119 | PyObject * obj3 = 0 ; | |
29120 | PyObject * obj4 = 0 ; | |
29121 | PyObject * obj5 = 0 ; | |
29122 | char *kwnames[] = { | |
29123 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
29124 | }; | |
29125 | ||
29126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29129 | arg2 = (int) SWIG_AsInt(obj1); | |
29130 | if (PyErr_Occurred()) SWIG_fail; | |
29131 | arg3 = (int) SWIG_AsInt(obj2); | |
29132 | if (PyErr_Occurred()) SWIG_fail; | |
29133 | arg4 = (int) SWIG_AsInt(obj3); | |
29134 | if (PyErr_Occurred()) SWIG_fail; | |
29135 | arg5 = (int) SWIG_AsInt(obj4); | |
29136 | if (PyErr_Occurred()) SWIG_fail; | |
29137 | if (obj5) { | |
29138 | arg6 = (int) SWIG_AsInt(obj5); | |
29139 | if (PyErr_Occurred()) SWIG_fail; | |
29140 | } | |
29141 | { | |
29142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29143 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
29144 | ||
29145 | wxPyEndAllowThreads(__tstate); | |
29146 | if (PyErr_Occurred()) SWIG_fail; | |
29147 | } | |
29148 | Py_INCREF(Py_None); resultobj = Py_None; | |
29149 | return resultobj; | |
29150 | fail: | |
29151 | return NULL; | |
29152 | } | |
29153 | ||
29154 | ||
29155 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29156 | PyObject *resultobj; | |
29157 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29158 | int arg2 ; | |
29159 | int arg3 ; | |
29160 | PyObject * obj0 = 0 ; | |
29161 | PyObject * obj1 = 0 ; | |
29162 | PyObject * obj2 = 0 ; | |
29163 | char *kwnames[] = { | |
29164 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29165 | }; | |
29166 | ||
29167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29170 | arg2 = (int) SWIG_AsInt(obj1); | |
29171 | if (PyErr_Occurred()) SWIG_fail; | |
29172 | arg3 = (int) SWIG_AsInt(obj2); | |
29173 | if (PyErr_Occurred()) SWIG_fail; | |
29174 | { | |
29175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29176 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29177 | ||
29178 | wxPyEndAllowThreads(__tstate); | |
29179 | if (PyErr_Occurred()) SWIG_fail; | |
29180 | } | |
29181 | Py_INCREF(Py_None); resultobj = Py_None; | |
29182 | return resultobj; | |
29183 | fail: | |
29184 | return NULL; | |
29185 | } | |
29186 | ||
29187 | ||
29188 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29189 | PyObject *resultobj; | |
29190 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29191 | int arg2 ; | |
29192 | int arg3 ; | |
29193 | PyObject * obj0 = 0 ; | |
29194 | PyObject * obj1 = 0 ; | |
29195 | PyObject * obj2 = 0 ; | |
29196 | char *kwnames[] = { | |
29197 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29198 | }; | |
29199 | ||
29200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29203 | arg2 = (int) SWIG_AsInt(obj1); | |
29204 | if (PyErr_Occurred()) SWIG_fail; | |
29205 | arg3 = (int) SWIG_AsInt(obj2); | |
29206 | if (PyErr_Occurred()) SWIG_fail; | |
29207 | { | |
29208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29209 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29210 | ||
29211 | wxPyEndAllowThreads(__tstate); | |
29212 | if (PyErr_Occurred()) SWIG_fail; | |
29213 | } | |
29214 | Py_INCREF(Py_None); resultobj = Py_None; | |
29215 | return resultobj; | |
29216 | fail: | |
29217 | return NULL; | |
29218 | } | |
29219 | ||
29220 | ||
29221 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29222 | PyObject *resultobj; | |
29223 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29224 | int *arg2 = (int *) 0 ; | |
29225 | int *arg3 = (int *) 0 ; | |
29226 | int temp2 ; | |
29227 | int temp3 ; | |
29228 | PyObject * obj0 = 0 ; | |
29229 | char *kwnames[] = { | |
29230 | (char *) "self", NULL | |
29231 | }; | |
29232 | ||
29233 | arg2 = &temp2; | |
29234 | arg3 = &temp3; | |
29235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
29236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29238 | { | |
29239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29240 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
29241 | ||
29242 | wxPyEndAllowThreads(__tstate); | |
29243 | if (PyErr_Occurred()) SWIG_fail; | |
29244 | } | |
29245 | Py_INCREF(Py_None); resultobj = Py_None; | |
29246 | { | |
29247 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29248 | resultobj = t_output_helper(resultobj,o); | |
29249 | } | |
29250 | { | |
29251 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29252 | resultobj = t_output_helper(resultobj,o); | |
29253 | } | |
29254 | return resultobj; | |
29255 | fail: | |
29256 | return NULL; | |
29257 | } | |
29258 | ||
29259 | ||
29260 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29261 | PyObject *resultobj; | |
29262 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29263 | int *arg2 = (int *) 0 ; | |
29264 | int *arg3 = (int *) 0 ; | |
29265 | int temp2 ; | |
29266 | int temp3 ; | |
29267 | PyObject * obj0 = 0 ; | |
29268 | char *kwnames[] = { | |
29269 | (char *) "self", NULL | |
29270 | }; | |
29271 | ||
29272 | arg2 = &temp2; | |
29273 | arg3 = &temp3; | |
29274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
29275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29277 | { | |
29278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29279 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
29280 | ||
29281 | wxPyEndAllowThreads(__tstate); | |
29282 | if (PyErr_Occurred()) SWIG_fail; | |
29283 | } | |
29284 | Py_INCREF(Py_None); resultobj = Py_None; | |
29285 | { | |
29286 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29287 | resultobj = t_output_helper(resultobj,o); | |
29288 | } | |
29289 | { | |
29290 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29291 | resultobj = t_output_helper(resultobj,o); | |
29292 | } | |
29293 | return resultobj; | |
29294 | fail: | |
29295 | return NULL; | |
29296 | } | |
29297 | ||
29298 | ||
29299 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29300 | PyObject *resultobj; | |
29301 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29302 | int *arg2 = (int *) 0 ; | |
29303 | int *arg3 = (int *) 0 ; | |
29304 | int temp2 ; | |
29305 | int temp3 ; | |
29306 | PyObject * obj0 = 0 ; | |
29307 | char *kwnames[] = { | |
29308 | (char *) "self", NULL | |
29309 | }; | |
29310 | ||
29311 | arg2 = &temp2; | |
29312 | arg3 = &temp3; | |
29313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
29314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29316 | { | |
29317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29318 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
29319 | ||
29320 | wxPyEndAllowThreads(__tstate); | |
29321 | if (PyErr_Occurred()) SWIG_fail; | |
29322 | } | |
29323 | Py_INCREF(Py_None); resultobj = Py_None; | |
29324 | { | |
29325 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29326 | resultobj = t_output_helper(resultobj,o); | |
29327 | } | |
29328 | { | |
29329 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29330 | resultobj = t_output_helper(resultobj,o); | |
29331 | } | |
29332 | return resultobj; | |
29333 | fail: | |
29334 | return NULL; | |
29335 | } | |
29336 | ||
29337 | ||
29338 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29339 | PyObject *resultobj; | |
29340 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29341 | wxSize result; | |
29342 | PyObject * obj0 = 0 ; | |
29343 | char *kwnames[] = { | |
29344 | (char *) "self", NULL | |
29345 | }; | |
29346 | ||
29347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
29348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29350 | { | |
29351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29352 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
29353 | ||
29354 | wxPyEndAllowThreads(__tstate); | |
29355 | if (PyErr_Occurred()) SWIG_fail; | |
29356 | } | |
29357 | { | |
29358 | wxSize * resultptr; | |
29359 | resultptr = new wxSize((wxSize &) result); | |
29360 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29361 | } | |
29362 | return resultobj; | |
29363 | fail: | |
29364 | return NULL; | |
29365 | } | |
29366 | ||
29367 | ||
29368 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29369 | PyObject *resultobj; | |
29370 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29371 | wxSize result; | |
29372 | PyObject * obj0 = 0 ; | |
29373 | char *kwnames[] = { | |
29374 | (char *) "self", NULL | |
29375 | }; | |
29376 | ||
29377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
29378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29380 | { | |
29381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29382 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
29383 | ||
29384 | wxPyEndAllowThreads(__tstate); | |
29385 | if (PyErr_Occurred()) SWIG_fail; | |
29386 | } | |
29387 | { | |
29388 | wxSize * resultptr; | |
29389 | resultptr = new wxSize((wxSize &) result); | |
29390 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29391 | } | |
29392 | return resultobj; | |
29393 | fail: | |
29394 | return NULL; | |
29395 | } | |
29396 | ||
29397 | ||
29398 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29399 | PyObject *resultobj; | |
29400 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29401 | PyObject * obj0 = 0 ; | |
29402 | char *kwnames[] = { | |
29403 | (char *) "self", NULL | |
29404 | }; | |
29405 | ||
29406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
29407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29409 | { | |
29410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29411 | (arg1)->base_InitDialog(); | |
29412 | ||
29413 | wxPyEndAllowThreads(__tstate); | |
29414 | if (PyErr_Occurred()) SWIG_fail; | |
29415 | } | |
29416 | Py_INCREF(Py_None); resultobj = Py_None; | |
29417 | return resultobj; | |
29418 | fail: | |
29419 | return NULL; | |
29420 | } | |
29421 | ||
29422 | ||
29423 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29424 | PyObject *resultobj; | |
29425 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29426 | bool result; | |
29427 | PyObject * obj0 = 0 ; | |
29428 | char *kwnames[] = { | |
29429 | (char *) "self", NULL | |
29430 | }; | |
29431 | ||
29432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
29433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29435 | { | |
29436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29437 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
29438 | ||
29439 | wxPyEndAllowThreads(__tstate); | |
29440 | if (PyErr_Occurred()) SWIG_fail; | |
29441 | } | |
29442 | { | |
29443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29444 | } | |
29445 | return resultobj; | |
29446 | fail: | |
29447 | return NULL; | |
29448 | } | |
29449 | ||
29450 | ||
29451 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29452 | PyObject *resultobj; | |
29453 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29454 | bool result; | |
29455 | PyObject * obj0 = 0 ; | |
29456 | char *kwnames[] = { | |
29457 | (char *) "self", NULL | |
29458 | }; | |
29459 | ||
29460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
29461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29463 | { | |
29464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29465 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
29466 | ||
29467 | wxPyEndAllowThreads(__tstate); | |
29468 | if (PyErr_Occurred()) SWIG_fail; | |
29469 | } | |
29470 | { | |
29471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29472 | } | |
29473 | return resultobj; | |
29474 | fail: | |
29475 | return NULL; | |
29476 | } | |
29477 | ||
29478 | ||
29479 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29480 | PyObject *resultobj; | |
29481 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29482 | bool result; | |
29483 | PyObject * obj0 = 0 ; | |
29484 | char *kwnames[] = { | |
29485 | (char *) "self", NULL | |
29486 | }; | |
29487 | ||
29488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
29489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29491 | { | |
29492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29493 | result = (bool)(arg1)->base_Validate(); | |
29494 | ||
29495 | wxPyEndAllowThreads(__tstate); | |
29496 | if (PyErr_Occurred()) SWIG_fail; | |
29497 | } | |
29498 | { | |
29499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29500 | } | |
29501 | return resultobj; | |
29502 | fail: | |
29503 | return NULL; | |
29504 | } | |
29505 | ||
29506 | ||
29507 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29508 | PyObject *resultobj; | |
29509 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29510 | bool result; | |
29511 | PyObject * obj0 = 0 ; | |
29512 | char *kwnames[] = { | |
29513 | (char *) "self", NULL | |
29514 | }; | |
29515 | ||
29516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
29517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29519 | { | |
29520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29521 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
29522 | ||
29523 | wxPyEndAllowThreads(__tstate); | |
29524 | if (PyErr_Occurred()) SWIG_fail; | |
29525 | } | |
29526 | { | |
29527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29528 | } | |
29529 | return resultobj; | |
29530 | fail: | |
29531 | return NULL; | |
29532 | } | |
29533 | ||
29534 | ||
29535 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29536 | PyObject *resultobj; | |
29537 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29538 | bool result; | |
29539 | PyObject * obj0 = 0 ; | |
29540 | char *kwnames[] = { | |
29541 | (char *) "self", NULL | |
29542 | }; | |
29543 | ||
29544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
29545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29547 | { | |
29548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29549 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
29550 | ||
29551 | wxPyEndAllowThreads(__tstate); | |
29552 | if (PyErr_Occurred()) SWIG_fail; | |
29553 | } | |
29554 | { | |
29555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29556 | } | |
29557 | return resultobj; | |
29558 | fail: | |
29559 | return NULL; | |
29560 | } | |
29561 | ||
29562 | ||
29563 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29564 | PyObject *resultobj; | |
29565 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29566 | wxSize result; | |
29567 | PyObject * obj0 = 0 ; | |
29568 | char *kwnames[] = { | |
29569 | (char *) "self", NULL | |
29570 | }; | |
29571 | ||
29572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
29573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29575 | { | |
29576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29577 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
29578 | ||
29579 | wxPyEndAllowThreads(__tstate); | |
29580 | if (PyErr_Occurred()) SWIG_fail; | |
29581 | } | |
29582 | { | |
29583 | wxSize * resultptr; | |
29584 | resultptr = new wxSize((wxSize &) result); | |
29585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29586 | } | |
29587 | return resultobj; | |
29588 | fail: | |
29589 | return NULL; | |
29590 | } | |
29591 | ||
29592 | ||
29593 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29594 | PyObject *resultobj; | |
29595 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29596 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29597 | PyObject * obj0 = 0 ; | |
29598 | PyObject * obj1 = 0 ; | |
29599 | char *kwnames[] = { | |
29600 | (char *) "self",(char *) "child", NULL | |
29601 | }; | |
29602 | ||
29603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
29604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29608 | { | |
29609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29610 | (arg1)->base_AddChild(arg2); | |
29611 | ||
29612 | wxPyEndAllowThreads(__tstate); | |
29613 | if (PyErr_Occurred()) SWIG_fail; | |
29614 | } | |
29615 | Py_INCREF(Py_None); resultobj = Py_None; | |
29616 | return resultobj; | |
29617 | fail: | |
29618 | return NULL; | |
29619 | } | |
29620 | ||
29621 | ||
29622 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29623 | PyObject *resultobj; | |
29624 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29625 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29626 | PyObject * obj0 = 0 ; | |
29627 | PyObject * obj1 = 0 ; | |
29628 | char *kwnames[] = { | |
29629 | (char *) "self",(char *) "child", NULL | |
29630 | }; | |
29631 | ||
29632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
29633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29635 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29637 | { | |
29638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29639 | (arg1)->base_RemoveChild(arg2); | |
29640 | ||
29641 | wxPyEndAllowThreads(__tstate); | |
29642 | if (PyErr_Occurred()) SWIG_fail; | |
29643 | } | |
29644 | Py_INCREF(Py_None); resultobj = Py_None; | |
29645 | return resultobj; | |
29646 | fail: | |
29647 | return NULL; | |
29648 | } | |
29649 | ||
29650 | ||
29651 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29652 | PyObject *resultobj; | |
29653 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29654 | bool result; | |
29655 | PyObject * obj0 = 0 ; | |
29656 | char *kwnames[] = { | |
29657 | (char *) "self", NULL | |
29658 | }; | |
29659 | ||
29660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29663 | { | |
29664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 29665 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
29666 | |
29667 | wxPyEndAllowThreads(__tstate); | |
29668 | if (PyErr_Occurred()) SWIG_fail; | |
29669 | } | |
29670 | { | |
29671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29672 | } | |
29673 | return resultobj; | |
29674 | fail: | |
29675 | return NULL; | |
29676 | } | |
29677 | ||
29678 | ||
29679 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29680 | PyObject *resultobj; | |
29681 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29682 | wxColour *arg2 = 0 ; | |
29683 | wxColour temp2 ; | |
29684 | PyObject * obj0 = 0 ; | |
29685 | PyObject * obj1 = 0 ; | |
29686 | char *kwnames[] = { | |
29687 | (char *) "self",(char *) "c", NULL | |
29688 | }; | |
29689 | ||
29690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
29691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29693 | { | |
29694 | arg2 = &temp2; | |
29695 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29696 | } | |
29697 | { | |
29698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29699 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
29700 | ||
29701 | wxPyEndAllowThreads(__tstate); | |
29702 | if (PyErr_Occurred()) SWIG_fail; | |
29703 | } | |
29704 | Py_INCREF(Py_None); resultobj = Py_None; | |
29705 | return resultobj; | |
29706 | fail: | |
29707 | return NULL; | |
29708 | } | |
29709 | ||
29710 | ||
a5ee0656 RD |
29711 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
29712 | PyObject *resultobj; | |
29713 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29714 | wxVisualAttributes result; | |
29715 | PyObject * obj0 = 0 ; | |
29716 | char *kwnames[] = { | |
29717 | (char *) "self", NULL | |
29718 | }; | |
29719 | ||
29720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
29721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29723 | { | |
29724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29725 | result = (arg1)->base_GetDefaultAttributes(); | |
29726 | ||
29727 | wxPyEndAllowThreads(__tstate); | |
29728 | if (PyErr_Occurred()) SWIG_fail; | |
29729 | } | |
29730 | { | |
29731 | wxVisualAttributes * resultptr; | |
29732 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
29733 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
29734 | } | |
29735 | return resultobj; | |
29736 | fail: | |
29737 | return NULL; | |
29738 | } | |
29739 | ||
29740 | ||
d55e5bfc RD |
29741 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { |
29742 | PyObject *obj; | |
29743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29744 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
29745 | Py_INCREF(obj); | |
29746 | return Py_BuildValue((char *)""); | |
29747 | } | |
29748 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29749 | PyObject *resultobj; | |
29750 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
29751 | int arg2 = (int) 0 ; | |
29752 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
29753 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29754 | wxHelpEvent *result; | |
29755 | wxPoint temp3 ; | |
29756 | PyObject * obj0 = 0 ; | |
29757 | PyObject * obj1 = 0 ; | |
29758 | PyObject * obj2 = 0 ; | |
29759 | char *kwnames[] = { | |
29760 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
29761 | }; | |
29762 | ||
29763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29764 | if (obj0) { | |
29765 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
29766 | if (PyErr_Occurred()) SWIG_fail; | |
29767 | } | |
29768 | if (obj1) { | |
29769 | arg2 = (int) SWIG_AsInt(obj1); | |
29770 | if (PyErr_Occurred()) SWIG_fail; | |
29771 | } | |
29772 | if (obj2) { | |
29773 | { | |
29774 | arg3 = &temp3; | |
29775 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29776 | } | |
29777 | } | |
29778 | { | |
29779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29780 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
29781 | ||
29782 | wxPyEndAllowThreads(__tstate); | |
29783 | if (PyErr_Occurred()) SWIG_fail; | |
29784 | } | |
29785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); | |
29786 | return resultobj; | |
29787 | fail: | |
29788 | return NULL; | |
29789 | } | |
29790 | ||
29791 | ||
29792 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29793 | PyObject *resultobj; | |
29794 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29795 | wxPoint result; | |
29796 | PyObject * obj0 = 0 ; | |
29797 | char *kwnames[] = { | |
29798 | (char *) "self", NULL | |
29799 | }; | |
29800 | ||
29801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
29802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29804 | { | |
29805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29806 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
29807 | ||
29808 | wxPyEndAllowThreads(__tstate); | |
29809 | if (PyErr_Occurred()) SWIG_fail; | |
29810 | } | |
29811 | { | |
29812 | wxPoint * resultptr; | |
29813 | resultptr = new wxPoint((wxPoint &) result); | |
29814 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
29815 | } | |
29816 | return resultobj; | |
29817 | fail: | |
29818 | return NULL; | |
29819 | } | |
29820 | ||
29821 | ||
29822 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29823 | PyObject *resultobj; | |
29824 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29825 | wxPoint *arg2 = 0 ; | |
29826 | wxPoint temp2 ; | |
29827 | PyObject * obj0 = 0 ; | |
29828 | PyObject * obj1 = 0 ; | |
29829 | char *kwnames[] = { | |
29830 | (char *) "self",(char *) "pos", NULL | |
29831 | }; | |
29832 | ||
29833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
29834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29836 | { | |
29837 | arg2 = &temp2; | |
29838 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29839 | } | |
29840 | { | |
29841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29842 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
29843 | ||
29844 | wxPyEndAllowThreads(__tstate); | |
29845 | if (PyErr_Occurred()) SWIG_fail; | |
29846 | } | |
29847 | Py_INCREF(Py_None); resultobj = Py_None; | |
29848 | return resultobj; | |
29849 | fail: | |
29850 | return NULL; | |
29851 | } | |
29852 | ||
29853 | ||
29854 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29855 | PyObject *resultobj; | |
29856 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29857 | wxString *result; | |
29858 | PyObject * obj0 = 0 ; | |
29859 | char *kwnames[] = { | |
29860 | (char *) "self", NULL | |
29861 | }; | |
29862 | ||
29863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
29864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29866 | { | |
29867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29868 | { | |
29869 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
29870 | result = (wxString *) &_result_ref; | |
29871 | } | |
29872 | ||
29873 | wxPyEndAllowThreads(__tstate); | |
29874 | if (PyErr_Occurred()) SWIG_fail; | |
29875 | } | |
29876 | { | |
29877 | #if wxUSE_UNICODE | |
29878 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29879 | #else | |
29880 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29881 | #endif | |
29882 | } | |
29883 | return resultobj; | |
29884 | fail: | |
29885 | return NULL; | |
29886 | } | |
29887 | ||
29888 | ||
29889 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29890 | PyObject *resultobj; | |
29891 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29892 | wxString *arg2 = 0 ; | |
29893 | bool temp2 = False ; | |
29894 | PyObject * obj0 = 0 ; | |
29895 | PyObject * obj1 = 0 ; | |
29896 | char *kwnames[] = { | |
29897 | (char *) "self",(char *) "link", NULL | |
29898 | }; | |
29899 | ||
29900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
29901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29903 | { | |
29904 | arg2 = wxString_in_helper(obj1); | |
29905 | if (arg2 == NULL) SWIG_fail; | |
29906 | temp2 = True; | |
29907 | } | |
29908 | { | |
29909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29910 | (arg1)->SetLink((wxString const &)*arg2); | |
29911 | ||
29912 | wxPyEndAllowThreads(__tstate); | |
29913 | if (PyErr_Occurred()) SWIG_fail; | |
29914 | } | |
29915 | Py_INCREF(Py_None); resultobj = Py_None; | |
29916 | { | |
29917 | if (temp2) | |
29918 | delete arg2; | |
29919 | } | |
29920 | return resultobj; | |
29921 | fail: | |
29922 | { | |
29923 | if (temp2) | |
29924 | delete arg2; | |
29925 | } | |
29926 | return NULL; | |
29927 | } | |
29928 | ||
29929 | ||
29930 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29931 | PyObject *resultobj; | |
29932 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29933 | wxString *result; | |
29934 | PyObject * obj0 = 0 ; | |
29935 | char *kwnames[] = { | |
29936 | (char *) "self", NULL | |
29937 | }; | |
29938 | ||
29939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
29940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29942 | { | |
29943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29944 | { | |
29945 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
29946 | result = (wxString *) &_result_ref; | |
29947 | } | |
29948 | ||
29949 | wxPyEndAllowThreads(__tstate); | |
29950 | if (PyErr_Occurred()) SWIG_fail; | |
29951 | } | |
29952 | { | |
29953 | #if wxUSE_UNICODE | |
29954 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29955 | #else | |
29956 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29957 | #endif | |
29958 | } | |
29959 | return resultobj; | |
29960 | fail: | |
29961 | return NULL; | |
29962 | } | |
29963 | ||
29964 | ||
29965 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29966 | PyObject *resultobj; | |
29967 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29968 | wxString *arg2 = 0 ; | |
29969 | bool temp2 = False ; | |
29970 | PyObject * obj0 = 0 ; | |
29971 | PyObject * obj1 = 0 ; | |
29972 | char *kwnames[] = { | |
29973 | (char *) "self",(char *) "target", NULL | |
29974 | }; | |
29975 | ||
29976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
29977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29979 | { | |
29980 | arg2 = wxString_in_helper(obj1); | |
29981 | if (arg2 == NULL) SWIG_fail; | |
29982 | temp2 = True; | |
29983 | } | |
29984 | { | |
29985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29986 | (arg1)->SetTarget((wxString const &)*arg2); | |
29987 | ||
29988 | wxPyEndAllowThreads(__tstate); | |
29989 | if (PyErr_Occurred()) SWIG_fail; | |
29990 | } | |
29991 | Py_INCREF(Py_None); resultobj = Py_None; | |
29992 | { | |
29993 | if (temp2) | |
29994 | delete arg2; | |
29995 | } | |
29996 | return resultobj; | |
29997 | fail: | |
29998 | { | |
29999 | if (temp2) | |
30000 | delete arg2; | |
30001 | } | |
30002 | return NULL; | |
30003 | } | |
30004 | ||
30005 | ||
30006 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
30007 | PyObject *obj; | |
30008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30009 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
30010 | Py_INCREF(obj); | |
30011 | return Py_BuildValue((char *)""); | |
30012 | } | |
30013 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30014 | PyObject *resultobj; | |
30015 | wxWindow *arg1 = (wxWindow *) NULL ; | |
30016 | bool arg2 = (bool) True ; | |
30017 | wxContextHelp *result; | |
30018 | PyObject * obj0 = 0 ; | |
30019 | PyObject * obj1 = 0 ; | |
30020 | char *kwnames[] = { | |
30021 | (char *) "window",(char *) "doNow", NULL | |
30022 | }; | |
30023 | ||
30024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30025 | if (obj0) { | |
30026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
30027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30028 | } | |
30029 | if (obj1) { | |
30030 | arg2 = (bool) SWIG_AsBool(obj1); | |
30031 | if (PyErr_Occurred()) SWIG_fail; | |
30032 | } | |
30033 | { | |
0439c23b | 30034 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30036 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
30037 | ||
30038 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30039 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30040 | } |
30041 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); | |
30042 | return resultobj; | |
30043 | fail: | |
30044 | return NULL; | |
30045 | } | |
30046 | ||
30047 | ||
30048 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30049 | PyObject *resultobj; | |
30050 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30051 | PyObject * obj0 = 0 ; | |
30052 | char *kwnames[] = { | |
30053 | (char *) "self", NULL | |
30054 | }; | |
30055 | ||
30056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
30057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30059 | { | |
30060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30061 | delete arg1; | |
30062 | ||
30063 | wxPyEndAllowThreads(__tstate); | |
30064 | if (PyErr_Occurred()) SWIG_fail; | |
30065 | } | |
30066 | Py_INCREF(Py_None); resultobj = Py_None; | |
30067 | return resultobj; | |
30068 | fail: | |
30069 | return NULL; | |
30070 | } | |
30071 | ||
30072 | ||
30073 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30074 | PyObject *resultobj; | |
30075 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30076 | wxWindow *arg2 = (wxWindow *) NULL ; | |
30077 | bool result; | |
30078 | PyObject * obj0 = 0 ; | |
30079 | PyObject * obj1 = 0 ; | |
30080 | char *kwnames[] = { | |
30081 | (char *) "self",(char *) "window", NULL | |
30082 | }; | |
30083 | ||
30084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30087 | if (obj1) { | |
30088 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30090 | } | |
30091 | { | |
30092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30093 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
30094 | ||
30095 | wxPyEndAllowThreads(__tstate); | |
30096 | if (PyErr_Occurred()) SWIG_fail; | |
30097 | } | |
30098 | { | |
30099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30100 | } | |
30101 | return resultobj; | |
30102 | fail: | |
30103 | return NULL; | |
30104 | } | |
30105 | ||
30106 | ||
30107 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30108 | PyObject *resultobj; | |
30109 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30110 | bool result; | |
30111 | PyObject * obj0 = 0 ; | |
30112 | char *kwnames[] = { | |
30113 | (char *) "self", NULL | |
30114 | }; | |
30115 | ||
30116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
30117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30119 | { | |
30120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30121 | result = (bool)(arg1)->EndContextHelp(); | |
30122 | ||
30123 | wxPyEndAllowThreads(__tstate); | |
30124 | if (PyErr_Occurred()) SWIG_fail; | |
30125 | } | |
30126 | { | |
30127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30128 | } | |
30129 | return resultobj; | |
30130 | fail: | |
30131 | return NULL; | |
30132 | } | |
30133 | ||
30134 | ||
30135 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
30136 | PyObject *obj; | |
30137 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30138 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
30139 | Py_INCREF(obj); | |
30140 | return Py_BuildValue((char *)""); | |
30141 | } | |
30142 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30143 | PyObject *resultobj; | |
30144 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30145 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
30146 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
30147 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30148 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30149 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30150 | long arg5 = (long) wxBU_AUTODRAW ; | |
30151 | wxContextHelpButton *result; | |
30152 | wxPoint temp3 ; | |
30153 | wxSize temp4 ; | |
30154 | PyObject * obj0 = 0 ; | |
30155 | PyObject * obj1 = 0 ; | |
30156 | PyObject * obj2 = 0 ; | |
30157 | PyObject * obj3 = 0 ; | |
30158 | PyObject * obj4 = 0 ; | |
30159 | char *kwnames[] = { | |
30160 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30161 | }; | |
30162 | ||
30163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
30165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30166 | if (obj1) { | |
30167 | arg2 = (int) SWIG_AsInt(obj1); | |
30168 | if (PyErr_Occurred()) SWIG_fail; | |
30169 | } | |
30170 | if (obj2) { | |
30171 | { | |
30172 | arg3 = &temp3; | |
30173 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30174 | } | |
30175 | } | |
30176 | if (obj3) { | |
30177 | { | |
30178 | arg4 = &temp4; | |
30179 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30180 | } | |
30181 | } | |
30182 | if (obj4) { | |
30183 | arg5 = (long) SWIG_AsLong(obj4); | |
30184 | if (PyErr_Occurred()) SWIG_fail; | |
30185 | } | |
30186 | { | |
0439c23b | 30187 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30189 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30190 | ||
30191 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30192 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30193 | } |
30194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); | |
30195 | return resultobj; | |
30196 | fail: | |
30197 | return NULL; | |
30198 | } | |
30199 | ||
30200 | ||
30201 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
30202 | PyObject *obj; | |
30203 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30204 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30205 | Py_INCREF(obj); | |
30206 | return Py_BuildValue((char *)""); | |
30207 | } | |
30208 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30209 | PyObject *resultobj; | |
30210 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30211 | wxHelpProvider *result; | |
30212 | PyObject * obj0 = 0 ; | |
30213 | char *kwnames[] = { | |
30214 | (char *) "helpProvider", NULL | |
30215 | }; | |
30216 | ||
30217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
30218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30220 | { | |
30221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30222 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30223 | ||
30224 | wxPyEndAllowThreads(__tstate); | |
30225 | if (PyErr_Occurred()) SWIG_fail; | |
30226 | } | |
30227 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
30228 | return resultobj; | |
30229 | fail: | |
30230 | return NULL; | |
30231 | } | |
30232 | ||
30233 | ||
30234 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30235 | PyObject *resultobj; | |
30236 | wxHelpProvider *result; | |
30237 | char *kwnames[] = { | |
30238 | NULL | |
30239 | }; | |
30240 | ||
30241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
30242 | { | |
30243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30244 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
30245 | ||
30246 | wxPyEndAllowThreads(__tstate); | |
30247 | if (PyErr_Occurred()) SWIG_fail; | |
30248 | } | |
30249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
30250 | return resultobj; | |
30251 | fail: | |
30252 | return NULL; | |
30253 | } | |
30254 | ||
30255 | ||
30256 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30257 | PyObject *resultobj; | |
30258 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30259 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30260 | wxString result; | |
30261 | PyObject * obj0 = 0 ; | |
30262 | PyObject * obj1 = 0 ; | |
30263 | char *kwnames[] = { | |
30264 | (char *) "self",(char *) "window", NULL | |
30265 | }; | |
30266 | ||
30267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
30268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30270 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30272 | { | |
30273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30274 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
30275 | ||
30276 | wxPyEndAllowThreads(__tstate); | |
30277 | if (PyErr_Occurred()) SWIG_fail; | |
30278 | } | |
30279 | { | |
30280 | #if wxUSE_UNICODE | |
30281 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30282 | #else | |
30283 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30284 | #endif | |
30285 | } | |
30286 | return resultobj; | |
30287 | fail: | |
30288 | return NULL; | |
30289 | } | |
30290 | ||
30291 | ||
30292 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30293 | PyObject *resultobj; | |
30294 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30295 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30296 | bool result; | |
30297 | PyObject * obj0 = 0 ; | |
30298 | PyObject * obj1 = 0 ; | |
30299 | char *kwnames[] = { | |
30300 | (char *) "self",(char *) "window", NULL | |
30301 | }; | |
30302 | ||
30303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
30304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30306 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30308 | { | |
30309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30310 | result = (bool)(arg1)->ShowHelp(arg2); | |
30311 | ||
30312 | wxPyEndAllowThreads(__tstate); | |
30313 | if (PyErr_Occurred()) SWIG_fail; | |
30314 | } | |
30315 | { | |
30316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30317 | } | |
30318 | return resultobj; | |
30319 | fail: | |
30320 | return NULL; | |
30321 | } | |
30322 | ||
30323 | ||
30324 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30325 | PyObject *resultobj; | |
30326 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30327 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30328 | wxString *arg3 = 0 ; | |
30329 | bool temp3 = False ; | |
30330 | PyObject * obj0 = 0 ; | |
30331 | PyObject * obj1 = 0 ; | |
30332 | PyObject * obj2 = 0 ; | |
30333 | char *kwnames[] = { | |
30334 | (char *) "self",(char *) "window",(char *) "text", NULL | |
30335 | }; | |
30336 | ||
30337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30340 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30342 | { | |
30343 | arg3 = wxString_in_helper(obj2); | |
30344 | if (arg3 == NULL) SWIG_fail; | |
30345 | temp3 = True; | |
30346 | } | |
30347 | { | |
30348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30349 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30350 | ||
30351 | wxPyEndAllowThreads(__tstate); | |
30352 | if (PyErr_Occurred()) SWIG_fail; | |
30353 | } | |
30354 | Py_INCREF(Py_None); resultobj = Py_None; | |
30355 | { | |
30356 | if (temp3) | |
30357 | delete arg3; | |
30358 | } | |
30359 | return resultobj; | |
30360 | fail: | |
30361 | { | |
30362 | if (temp3) | |
30363 | delete arg3; | |
30364 | } | |
30365 | return NULL; | |
30366 | } | |
30367 | ||
30368 | ||
30369 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30370 | PyObject *resultobj; | |
30371 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30372 | int arg2 ; | |
30373 | wxString *arg3 = 0 ; | |
30374 | bool temp3 = False ; | |
30375 | PyObject * obj0 = 0 ; | |
30376 | PyObject * obj1 = 0 ; | |
30377 | PyObject * obj2 = 0 ; | |
30378 | char *kwnames[] = { | |
30379 | (char *) "self",(char *) "id",(char *) "text", NULL | |
30380 | }; | |
30381 | ||
30382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30385 | arg2 = (int) SWIG_AsInt(obj1); | |
30386 | if (PyErr_Occurred()) SWIG_fail; | |
30387 | { | |
30388 | arg3 = wxString_in_helper(obj2); | |
30389 | if (arg3 == NULL) SWIG_fail; | |
30390 | temp3 = True; | |
30391 | } | |
30392 | { | |
30393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30394 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30395 | ||
30396 | wxPyEndAllowThreads(__tstate); | |
30397 | if (PyErr_Occurred()) SWIG_fail; | |
30398 | } | |
30399 | Py_INCREF(Py_None); resultobj = Py_None; | |
30400 | { | |
30401 | if (temp3) | |
30402 | delete arg3; | |
30403 | } | |
30404 | return resultobj; | |
30405 | fail: | |
30406 | { | |
30407 | if (temp3) | |
30408 | delete arg3; | |
30409 | } | |
30410 | return NULL; | |
30411 | } | |
30412 | ||
30413 | ||
30414 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30415 | PyObject *resultobj; | |
30416 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30417 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30418 | PyObject * obj0 = 0 ; | |
30419 | PyObject * obj1 = 0 ; | |
30420 | char *kwnames[] = { | |
30421 | (char *) "self",(char *) "window", NULL | |
30422 | }; | |
30423 | ||
30424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
30425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30427 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30429 | { | |
30430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30431 | (arg1)->RemoveHelp(arg2); | |
30432 | ||
30433 | wxPyEndAllowThreads(__tstate); | |
30434 | if (PyErr_Occurred()) SWIG_fail; | |
30435 | } | |
30436 | Py_INCREF(Py_None); resultobj = Py_None; | |
30437 | return resultobj; | |
30438 | fail: | |
30439 | return NULL; | |
30440 | } | |
30441 | ||
30442 | ||
30443 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30444 | PyObject *resultobj; | |
30445 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30446 | PyObject * obj0 = 0 ; | |
30447 | char *kwnames[] = { | |
30448 | (char *) "self", NULL | |
30449 | }; | |
30450 | ||
30451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
30452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30454 | { | |
30455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30456 | wxHelpProvider_Destroy(arg1); | |
30457 | ||
30458 | wxPyEndAllowThreads(__tstate); | |
30459 | if (PyErr_Occurred()) SWIG_fail; | |
30460 | } | |
30461 | Py_INCREF(Py_None); resultobj = Py_None; | |
30462 | return resultobj; | |
30463 | fail: | |
30464 | return NULL; | |
30465 | } | |
30466 | ||
30467 | ||
30468 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30469 | PyObject *obj; | |
30470 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30471 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
30472 | Py_INCREF(obj); | |
30473 | return Py_BuildValue((char *)""); | |
30474 | } | |
30475 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30476 | PyObject *resultobj; | |
30477 | wxSimpleHelpProvider *result; | |
30478 | char *kwnames[] = { | |
30479 | NULL | |
30480 | }; | |
30481 | ||
30482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
30483 | { | |
30484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30485 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
30486 | ||
30487 | wxPyEndAllowThreads(__tstate); | |
30488 | if (PyErr_Occurred()) SWIG_fail; | |
30489 | } | |
30490 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
30491 | return resultobj; | |
30492 | fail: | |
30493 | return NULL; | |
30494 | } | |
30495 | ||
30496 | ||
30497 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30498 | PyObject *obj; | |
30499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30500 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
30501 | Py_INCREF(obj); | |
30502 | return Py_BuildValue((char *)""); | |
30503 | } | |
30504 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30505 | PyObject *resultobj; | |
30506 | wxBitmap *arg1 = 0 ; | |
30507 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30508 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30509 | wxGenericDragImage *result; | |
30510 | PyObject * obj0 = 0 ; | |
30511 | PyObject * obj1 = 0 ; | |
30512 | char *kwnames[] = { | |
30513 | (char *) "image",(char *) "cursor", NULL | |
30514 | }; | |
30515 | ||
30516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
30517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
30518 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30519 | SWIG_fail; | |
30520 | if (arg1 == NULL) { | |
30521 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30522 | SWIG_fail; | |
30523 | } | |
30524 | if (obj1) { | |
30525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30526 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30527 | SWIG_fail; | |
30528 | if (arg2 == NULL) { | |
30529 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30530 | SWIG_fail; | |
30531 | } | |
30532 | } | |
30533 | { | |
0439c23b | 30534 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30536 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
30537 | ||
30538 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30539 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30540 | } |
30541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30542 | return resultobj; | |
30543 | fail: | |
30544 | return NULL; | |
30545 | } | |
30546 | ||
30547 | ||
30548 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30549 | PyObject *resultobj; | |
30550 | wxIcon *arg1 = 0 ; | |
30551 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30552 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30553 | wxGenericDragImage *result; | |
30554 | PyObject * obj0 = 0 ; | |
30555 | PyObject * obj1 = 0 ; | |
30556 | char *kwnames[] = { | |
30557 | (char *) "image",(char *) "cursor", NULL | |
30558 | }; | |
30559 | ||
30560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
30561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
30562 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30563 | SWIG_fail; | |
30564 | if (arg1 == NULL) { | |
30565 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30566 | SWIG_fail; | |
30567 | } | |
30568 | if (obj1) { | |
30569 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30570 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30571 | SWIG_fail; | |
30572 | if (arg2 == NULL) { | |
30573 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30574 | SWIG_fail; | |
30575 | } | |
30576 | } | |
30577 | { | |
0439c23b | 30578 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30580 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
30581 | ||
30582 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30583 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30584 | } |
30585 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30586 | return resultobj; | |
30587 | fail: | |
30588 | return NULL; | |
30589 | } | |
30590 | ||
30591 | ||
30592 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30593 | PyObject *resultobj; | |
30594 | wxString *arg1 = 0 ; | |
30595 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30596 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30597 | wxGenericDragImage *result; | |
30598 | bool temp1 = False ; | |
30599 | PyObject * obj0 = 0 ; | |
30600 | PyObject * obj1 = 0 ; | |
30601 | char *kwnames[] = { | |
30602 | (char *) "str",(char *) "cursor", NULL | |
30603 | }; | |
30604 | ||
30605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
30606 | { | |
30607 | arg1 = wxString_in_helper(obj0); | |
30608 | if (arg1 == NULL) SWIG_fail; | |
30609 | temp1 = True; | |
30610 | } | |
30611 | if (obj1) { | |
30612 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30613 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30614 | SWIG_fail; | |
30615 | if (arg2 == NULL) { | |
30616 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30617 | SWIG_fail; | |
30618 | } | |
30619 | } | |
30620 | { | |
0439c23b | 30621 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30623 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
30624 | ||
30625 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30626 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30627 | } |
30628 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30629 | { | |
30630 | if (temp1) | |
30631 | delete arg1; | |
30632 | } | |
30633 | return resultobj; | |
30634 | fail: | |
30635 | { | |
30636 | if (temp1) | |
30637 | delete arg1; | |
30638 | } | |
30639 | return NULL; | |
30640 | } | |
30641 | ||
30642 | ||
30643 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30644 | PyObject *resultobj; | |
30645 | wxPyTreeCtrl *arg1 = 0 ; | |
30646 | wxTreeItemId *arg2 = 0 ; | |
30647 | wxGenericDragImage *result; | |
30648 | PyObject * obj0 = 0 ; | |
30649 | PyObject * obj1 = 0 ; | |
30650 | char *kwnames[] = { | |
30651 | (char *) "treeCtrl",(char *) "id", NULL | |
30652 | }; | |
30653 | ||
30654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
30655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
30656 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30657 | SWIG_fail; | |
30658 | if (arg1 == NULL) { | |
30659 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30660 | SWIG_fail; | |
30661 | } | |
30662 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
30663 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30664 | SWIG_fail; | |
30665 | if (arg2 == NULL) { | |
30666 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30667 | SWIG_fail; | |
30668 | } | |
30669 | { | |
0439c23b | 30670 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30672 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
30673 | ||
30674 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30675 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30676 | } |
30677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30678 | return resultobj; | |
30679 | fail: | |
30680 | return NULL; | |
30681 | } | |
30682 | ||
30683 | ||
30684 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30685 | PyObject *resultobj; | |
30686 | wxPyListCtrl *arg1 = 0 ; | |
30687 | long arg2 ; | |
30688 | wxGenericDragImage *result; | |
30689 | PyObject * obj0 = 0 ; | |
30690 | PyObject * obj1 = 0 ; | |
30691 | char *kwnames[] = { | |
30692 | (char *) "listCtrl",(char *) "id", NULL | |
30693 | }; | |
30694 | ||
30695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
30696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
30697 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30698 | SWIG_fail; | |
30699 | if (arg1 == NULL) { | |
30700 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30701 | SWIG_fail; | |
30702 | } | |
30703 | arg2 = (long) SWIG_AsLong(obj1); | |
30704 | if (PyErr_Occurred()) SWIG_fail; | |
30705 | { | |
0439c23b | 30706 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30708 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
30709 | ||
30710 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30711 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30712 | } |
30713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30714 | return resultobj; | |
30715 | fail: | |
30716 | return NULL; | |
30717 | } | |
30718 | ||
30719 | ||
30720 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30721 | PyObject *resultobj; | |
30722 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30723 | PyObject * obj0 = 0 ; | |
30724 | char *kwnames[] = { | |
30725 | (char *) "self", NULL | |
30726 | }; | |
30727 | ||
30728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
30729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30731 | { | |
30732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30733 | delete arg1; | |
30734 | ||
30735 | wxPyEndAllowThreads(__tstate); | |
30736 | if (PyErr_Occurred()) SWIG_fail; | |
30737 | } | |
30738 | Py_INCREF(Py_None); resultobj = Py_None; | |
30739 | return resultobj; | |
30740 | fail: | |
30741 | return NULL; | |
30742 | } | |
30743 | ||
30744 | ||
30745 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30746 | PyObject *resultobj; | |
30747 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30748 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
30749 | PyObject * obj0 = 0 ; | |
30750 | PyObject * obj1 = 0 ; | |
30751 | char *kwnames[] = { | |
30752 | (char *) "self",(char *) "bitmap", NULL | |
30753 | }; | |
30754 | ||
30755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
30756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
30759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30760 | { | |
30761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30762 | (arg1)->SetBackingBitmap(arg2); | |
30763 | ||
30764 | wxPyEndAllowThreads(__tstate); | |
30765 | if (PyErr_Occurred()) SWIG_fail; | |
30766 | } | |
30767 | Py_INCREF(Py_None); resultobj = Py_None; | |
30768 | return resultobj; | |
30769 | fail: | |
30770 | return NULL; | |
30771 | } | |
30772 | ||
30773 | ||
30774 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30775 | PyObject *resultobj; | |
30776 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30777 | wxPoint *arg2 = 0 ; | |
30778 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30779 | bool arg4 = (bool) False ; | |
30780 | wxRect *arg5 = (wxRect *) NULL ; | |
30781 | bool result; | |
30782 | wxPoint temp2 ; | |
30783 | PyObject * obj0 = 0 ; | |
30784 | PyObject * obj1 = 0 ; | |
30785 | PyObject * obj2 = 0 ; | |
30786 | PyObject * obj3 = 0 ; | |
30787 | PyObject * obj4 = 0 ; | |
30788 | char *kwnames[] = { | |
30789 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
30790 | }; | |
30791 | ||
30792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30795 | { | |
30796 | arg2 = &temp2; | |
30797 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30798 | } | |
30799 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
30800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30801 | if (obj3) { | |
30802 | arg4 = (bool) SWIG_AsBool(obj3); | |
30803 | if (PyErr_Occurred()) SWIG_fail; | |
30804 | } | |
30805 | if (obj4) { | |
30806 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, | |
30807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30808 | } | |
30809 | { | |
30810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30811 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
30812 | ||
30813 | wxPyEndAllowThreads(__tstate); | |
30814 | if (PyErr_Occurred()) SWIG_fail; | |
30815 | } | |
30816 | { | |
30817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30818 | } | |
30819 | return resultobj; | |
30820 | fail: | |
30821 | return NULL; | |
30822 | } | |
30823 | ||
30824 | ||
30825 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30826 | PyObject *resultobj; | |
30827 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30828 | wxPoint *arg2 = 0 ; | |
30829 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30830 | wxWindow *arg4 = (wxWindow *) 0 ; | |
30831 | bool result; | |
30832 | wxPoint temp2 ; | |
30833 | PyObject * obj0 = 0 ; | |
30834 | PyObject * obj1 = 0 ; | |
30835 | PyObject * obj2 = 0 ; | |
30836 | PyObject * obj3 = 0 ; | |
30837 | char *kwnames[] = { | |
30838 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
30839 | }; | |
30840 | ||
30841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30844 | { | |
30845 | arg2 = &temp2; | |
30846 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30847 | } | |
30848 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
30849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30850 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
30851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30852 | { | |
30853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30854 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
30855 | ||
30856 | wxPyEndAllowThreads(__tstate); | |
30857 | if (PyErr_Occurred()) SWIG_fail; | |
30858 | } | |
30859 | { | |
30860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30861 | } | |
30862 | return resultobj; | |
30863 | fail: | |
30864 | return NULL; | |
30865 | } | |
30866 | ||
30867 | ||
30868 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30869 | PyObject *resultobj; | |
30870 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30871 | bool result; | |
30872 | PyObject * obj0 = 0 ; | |
30873 | char *kwnames[] = { | |
30874 | (char *) "self", NULL | |
30875 | }; | |
30876 | ||
30877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
30878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30880 | { | |
30881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30882 | result = (bool)(arg1)->EndDrag(); | |
30883 | ||
30884 | wxPyEndAllowThreads(__tstate); | |
30885 | if (PyErr_Occurred()) SWIG_fail; | |
30886 | } | |
30887 | { | |
30888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30889 | } | |
30890 | return resultobj; | |
30891 | fail: | |
30892 | return NULL; | |
30893 | } | |
30894 | ||
30895 | ||
30896 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30897 | PyObject *resultobj; | |
30898 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30899 | wxPoint *arg2 = 0 ; | |
30900 | bool result; | |
30901 | wxPoint temp2 ; | |
30902 | PyObject * obj0 = 0 ; | |
30903 | PyObject * obj1 = 0 ; | |
30904 | char *kwnames[] = { | |
30905 | (char *) "self",(char *) "pt", NULL | |
30906 | }; | |
30907 | ||
30908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
30909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30911 | { | |
30912 | arg2 = &temp2; | |
30913 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30914 | } | |
30915 | { | |
30916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30917 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
30918 | ||
30919 | wxPyEndAllowThreads(__tstate); | |
30920 | if (PyErr_Occurred()) SWIG_fail; | |
30921 | } | |
30922 | { | |
30923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30924 | } | |
30925 | return resultobj; | |
30926 | fail: | |
30927 | return NULL; | |
30928 | } | |
30929 | ||
30930 | ||
30931 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30932 | PyObject *resultobj; | |
30933 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30934 | bool result; | |
30935 | PyObject * obj0 = 0 ; | |
30936 | char *kwnames[] = { | |
30937 | (char *) "self", NULL | |
30938 | }; | |
30939 | ||
30940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
30941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30943 | { | |
30944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30945 | result = (bool)(arg1)->Show(); | |
30946 | ||
30947 | wxPyEndAllowThreads(__tstate); | |
30948 | if (PyErr_Occurred()) SWIG_fail; | |
30949 | } | |
30950 | { | |
30951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30952 | } | |
30953 | return resultobj; | |
30954 | fail: | |
30955 | return NULL; | |
30956 | } | |
30957 | ||
30958 | ||
30959 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30960 | PyObject *resultobj; | |
30961 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30962 | bool result; | |
30963 | PyObject * obj0 = 0 ; | |
30964 | char *kwnames[] = { | |
30965 | (char *) "self", NULL | |
30966 | }; | |
30967 | ||
30968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
30969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30971 | { | |
30972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30973 | result = (bool)(arg1)->Hide(); | |
30974 | ||
30975 | wxPyEndAllowThreads(__tstate); | |
30976 | if (PyErr_Occurred()) SWIG_fail; | |
30977 | } | |
30978 | { | |
30979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30980 | } | |
30981 | return resultobj; | |
30982 | fail: | |
30983 | return NULL; | |
30984 | } | |
30985 | ||
30986 | ||
30987 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30988 | PyObject *resultobj; | |
30989 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30990 | wxPoint *arg2 = 0 ; | |
30991 | wxRect result; | |
30992 | wxPoint temp2 ; | |
30993 | PyObject * obj0 = 0 ; | |
30994 | PyObject * obj1 = 0 ; | |
30995 | char *kwnames[] = { | |
30996 | (char *) "self",(char *) "pos", NULL | |
30997 | }; | |
30998 | ||
30999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
31000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31002 | { | |
31003 | arg2 = &temp2; | |
31004 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31005 | } | |
31006 | { | |
31007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31008 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
31009 | ||
31010 | wxPyEndAllowThreads(__tstate); | |
31011 | if (PyErr_Occurred()) SWIG_fail; | |
31012 | } | |
31013 | { | |
31014 | wxRect * resultptr; | |
31015 | resultptr = new wxRect((wxRect &) result); | |
31016 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
31017 | } | |
31018 | return resultobj; | |
31019 | fail: | |
31020 | return NULL; | |
31021 | } | |
31022 | ||
31023 | ||
31024 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31025 | PyObject *resultobj; | |
31026 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31027 | wxDC *arg2 = 0 ; | |
31028 | wxPoint *arg3 = 0 ; | |
31029 | bool result; | |
31030 | wxPoint temp3 ; | |
31031 | PyObject * obj0 = 0 ; | |
31032 | PyObject * obj1 = 0 ; | |
31033 | PyObject * obj2 = 0 ; | |
31034 | char *kwnames[] = { | |
31035 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
31036 | }; | |
31037 | ||
31038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31041 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31042 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31043 | SWIG_fail; | |
31044 | if (arg2 == NULL) { | |
31045 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31046 | SWIG_fail; | |
31047 | } | |
31048 | { | |
31049 | arg3 = &temp3; | |
31050 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31051 | } | |
31052 | { | |
31053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31054 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
31055 | ||
31056 | wxPyEndAllowThreads(__tstate); | |
31057 | if (PyErr_Occurred()) SWIG_fail; | |
31058 | } | |
31059 | { | |
31060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31061 | } | |
31062 | return resultobj; | |
31063 | fail: | |
31064 | return NULL; | |
31065 | } | |
31066 | ||
31067 | ||
31068 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31069 | PyObject *resultobj; | |
31070 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31071 | wxDC *arg2 = 0 ; | |
31072 | wxMemoryDC *arg3 = 0 ; | |
31073 | wxRect *arg4 = 0 ; | |
31074 | wxRect *arg5 = 0 ; | |
31075 | bool result; | |
31076 | wxRect temp4 ; | |
31077 | wxRect temp5 ; | |
31078 | PyObject * obj0 = 0 ; | |
31079 | PyObject * obj1 = 0 ; | |
31080 | PyObject * obj2 = 0 ; | |
31081 | PyObject * obj3 = 0 ; | |
31082 | PyObject * obj4 = 0 ; | |
31083 | char *kwnames[] = { | |
31084 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
31085 | }; | |
31086 | ||
31087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31090 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31091 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31092 | SWIG_fail; | |
31093 | if (arg2 == NULL) { | |
31094 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31095 | SWIG_fail; | |
31096 | } | |
31097 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, | |
31098 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31099 | SWIG_fail; | |
31100 | if (arg3 == NULL) { | |
31101 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31102 | SWIG_fail; | |
31103 | } | |
31104 | { | |
31105 | arg4 = &temp4; | |
31106 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31107 | } | |
31108 | { | |
31109 | arg5 = &temp5; | |
31110 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
31111 | } | |
31112 | { | |
31113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31114 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
31115 | ||
31116 | wxPyEndAllowThreads(__tstate); | |
31117 | if (PyErr_Occurred()) SWIG_fail; | |
31118 | } | |
31119 | { | |
31120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31121 | } | |
31122 | return resultobj; | |
31123 | fail: | |
31124 | return NULL; | |
31125 | } | |
31126 | ||
31127 | ||
31128 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31129 | PyObject *resultobj; | |
31130 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31131 | wxPoint *arg2 = 0 ; | |
31132 | wxPoint *arg3 = 0 ; | |
31133 | bool arg4 ; | |
31134 | bool arg5 ; | |
31135 | bool result; | |
31136 | wxPoint temp2 ; | |
31137 | wxPoint temp3 ; | |
31138 | PyObject * obj0 = 0 ; | |
31139 | PyObject * obj1 = 0 ; | |
31140 | PyObject * obj2 = 0 ; | |
31141 | PyObject * obj3 = 0 ; | |
31142 | PyObject * obj4 = 0 ; | |
31143 | char *kwnames[] = { | |
31144 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
31145 | }; | |
31146 | ||
31147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31150 | { | |
31151 | arg2 = &temp2; | |
31152 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31153 | } | |
31154 | { | |
31155 | arg3 = &temp3; | |
31156 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31157 | } | |
31158 | arg4 = (bool) SWIG_AsBool(obj3); | |
31159 | if (PyErr_Occurred()) SWIG_fail; | |
31160 | arg5 = (bool) SWIG_AsBool(obj4); | |
31161 | if (PyErr_Occurred()) SWIG_fail; | |
31162 | { | |
31163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31164 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31165 | ||
31166 | wxPyEndAllowThreads(__tstate); | |
31167 | if (PyErr_Occurred()) SWIG_fail; | |
31168 | } | |
31169 | { | |
31170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31171 | } | |
31172 | return resultobj; | |
31173 | fail: | |
31174 | return NULL; | |
31175 | } | |
31176 | ||
31177 | ||
31178 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
31179 | PyObject *obj; | |
31180 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31181 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31182 | Py_INCREF(obj); | |
31183 | return Py_BuildValue((char *)""); | |
31184 | } | |
31185 | static PyMethodDef SwigMethods[] = { | |
31186 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
31187 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
31188 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
31189 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
31190 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31191 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31192 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, |
31193 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31194 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31195 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31196 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31197 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31198 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31199 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31200 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31201 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31202 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31203 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31204 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31205 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
31206 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
31207 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
31208 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31209 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31210 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31211 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31212 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31213 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31214 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31215 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31216 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
31217 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31218 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31219 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, |
31220 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
31221 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
31222 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
31223 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31224 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31225 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31226 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31227 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, |
31228 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31229 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31230 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31231 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31232 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31233 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
31234 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31235 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31236 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31237 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31238 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31239 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
31240 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31241 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
121b9a67 RD |
31242 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
31243 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
31244 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
31245 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31246 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31247 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31248 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, |
31249 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
31250 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
31251 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
31252 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31253 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31254 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31255 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31256 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31257 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31258 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31259 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
31260 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31261 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31262 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, |
31263 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31264 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31265 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31266 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31267 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, |
31268 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31269 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31270 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
31271 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31272 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31273 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31274 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, |
31275 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
31276 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
31277 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31278 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31279 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, |
31280 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31281 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31282 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
31283 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31284 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31285 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31286 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31287 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, |
31288 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
31289 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
31290 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31291 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
31292 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
31293 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
31294 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31295 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31296 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
31297 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
31298 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
31299 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31300 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31301 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
31302 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
31303 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31304 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31305 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
31306 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31307 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31308 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31309 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31310 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
31311 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31312 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31313 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31314 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31315 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
31316 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31317 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
31318 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
908b74cd | 31319 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31320 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
31321 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
31322 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31323 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31324 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31325 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31326 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31327 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31328 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31329 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31330 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31331 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31332 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31333 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31334 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
31335 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31336 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31337 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
31338 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31339 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31340 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31341 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31342 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31343 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
68e533f8 | 31344 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31345 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, |
31346 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31347 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
31348 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
31349 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
31350 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31351 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31352 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31353 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31354 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31355 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31356 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
31357 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
31358 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
31359 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
31360 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
31361 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
31362 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
31363 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31364 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31365 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31366 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
31367 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
31368 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
31369 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
31370 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
31371 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
31372 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
31373 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
31374 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
31375 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
31376 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31377 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31378 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31379 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31380 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
31381 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
31382 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
31383 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31384 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
31385 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31386 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31387 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
31388 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
31389 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
31390 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
31391 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
31392 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
31393 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
31394 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31395 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31396 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31397 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31398 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31399 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
31400 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
31401 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
31402 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31403 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31404 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, |
31405 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31406 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
31407 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
31408 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
31409 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
31410 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31411 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31412 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31413 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31414 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
31415 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31416 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31417 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31418 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31419 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31420 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31421 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, |
31422 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31423 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31424 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31425 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31426 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31427 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31428 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31429 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31430 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31431 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31432 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31433 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31434 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, |
31435 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31436 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31437 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31438 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31439 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31440 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
31441 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31442 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31443 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31444 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31445 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31446 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, |
31447 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, | |
31448 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31449 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31450 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
31451 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, | |
31452 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
31453 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31454 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31455 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31456 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31457 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31458 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31459 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
31460 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
31461 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
31462 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
31463 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
31464 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31465 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31466 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31467 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31468 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, |
31469 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31470 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31471 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31472 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31473 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31474 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31475 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, |
31476 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
31477 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
31478 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
31479 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31480 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31481 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31482 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31483 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31484 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31485 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31486 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31487 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31488 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31489 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31490 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31491 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31492 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31493 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31494 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
31495 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
31496 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
31497 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
31498 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
31499 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31500 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31501 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, |
31502 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31503 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
121b9a67 RD |
31504 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, |
31505 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31506 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31507 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31508 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31509 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, |
31510 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
31511 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
31512 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31513 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31514 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31515 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31516 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31517 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31518 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31519 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31520 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31521 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
31522 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
31523 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
31524 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
31525 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
31526 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
31527 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31528 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31529 | { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31530 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, |
31531 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31532 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31533 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31534 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31535 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31536 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
31537 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
31538 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31539 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31540 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31541 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
31542 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
31543 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31544 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31545 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31546 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, |
31547 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31548 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
31549 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
31550 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
31551 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31552 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31553 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
31554 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31555 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
31556 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
31557 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31558 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31559 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31560 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
31561 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
31562 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31563 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31564 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31565 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
31566 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31567 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31568 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31569 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
31570 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
31571 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31572 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31573 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
31574 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31575 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
31576 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
31577 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31578 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31579 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31580 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31581 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31582 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31583 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
31584 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31585 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31586 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31587 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31588 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31589 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31590 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31591 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
31592 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
31593 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31594 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31595 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
31596 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
31597 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
31598 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, | |
31599 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
31600 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, | |
31601 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
31602 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
31603 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31604 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31605 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
31606 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
31607 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
31608 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
31609 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
31610 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
31611 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
31612 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31613 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31614 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31615 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
31616 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
31617 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31618 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31619 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31620 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31621 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31622 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
31623 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31624 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31625 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31626 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
31627 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31628 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31629 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31630 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
31631 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
31632 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
31633 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
31634 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31635 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31636 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
31637 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
31638 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, | |
31639 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31640 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
31641 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31642 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31643 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31644 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31645 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31646 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, |
31647 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
31648 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31649 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31650 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31651 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31652 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31653 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31654 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31655 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31656 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31657 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31658 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
31659 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31660 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31661 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31662 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31663 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
31664 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31665 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31666 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
31667 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
31668 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
31669 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
31670 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31671 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31672 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31673 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31674 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31675 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31676 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31677 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31678 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31679 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
31680 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31681 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31682 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31683 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31684 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31685 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31686 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31687 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31688 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31689 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31690 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
31691 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
31692 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
31693 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
31694 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31695 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31696 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
31697 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
31698 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
31699 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
31700 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
31701 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
31702 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
31703 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
31704 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
31705 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
31706 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
31707 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
31708 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
31709 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
31710 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
31711 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
31712 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
31713 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
31714 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31715 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31716 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31717 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31718 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31719 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31720 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
31721 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
31722 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
31723 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31724 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
31725 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31726 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31727 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31728 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31729 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31730 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31731 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31732 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31733 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
31734 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
31735 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31736 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
31737 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
31738 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31739 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31740 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31741 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31742 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31743 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31744 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31745 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31746 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31747 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31748 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
31749 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
31750 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31751 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31752 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31753 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31754 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31755 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31756 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31757 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31758 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31759 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31760 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31761 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
31762 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31763 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31764 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31765 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31766 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31767 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31768 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31769 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31770 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
31771 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
31772 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
31773 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
31774 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31775 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31776 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31777 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, | |
31778 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
31779 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
31780 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
31781 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
31782 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
31783 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31784 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
31785 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
31786 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
31787 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31788 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31789 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
31790 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
31791 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
31792 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31793 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31794 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31795 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
31796 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31797 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
31798 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
31799 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31800 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
31801 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31802 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31803 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31804 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31805 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
31806 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
31807 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31808 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
31809 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
31810 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
31811 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
31812 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
31813 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
31814 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
31815 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
31816 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
31817 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31818 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31819 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31820 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
31821 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31822 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31823 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
31824 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
31825 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
31826 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
31827 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
31828 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
31829 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
31830 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31831 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31832 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31833 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31834 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31835 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
31836 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
31837 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31838 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31839 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31840 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31841 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31842 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31843 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31844 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31845 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31846 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31847 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31848 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31849 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
31850 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
31851 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, | |
31852 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31853 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31854 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31855 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31856 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31857 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31858 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31859 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31860 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31861 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31862 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31863 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31864 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31865 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31866 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31867 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31868 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31869 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31870 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31871 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31872 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31873 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31874 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31875 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31876 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31877 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31878 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31879 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
31880 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31881 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31882 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31883 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
31884 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31885 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
31886 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31887 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
31888 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
31889 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
31890 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31891 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31892 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
31893 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
31894 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
31895 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
31896 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
31897 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
31898 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
31899 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
31900 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
31901 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
31902 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
31903 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31904 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
31905 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
31906 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
31907 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
31908 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31909 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
31910 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
31911 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
31912 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31913 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
31914 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, | |
31915 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
31916 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
31917 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, | |
31918 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31919 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
31920 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31921 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
31922 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
31923 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31924 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
31925 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31926 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
31927 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31928 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31929 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31930 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
31931 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31932 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31933 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
31934 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
31935 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
31936 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31937 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31938 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31939 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31940 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31941 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31942 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
31943 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31944 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31945 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
31946 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
31947 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
31948 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
31949 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31950 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31951 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31952 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
31953 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
31954 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
31955 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, | |
31956 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 31957 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31958 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
31959 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
31960 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31961 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31962 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
31963 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31964 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31965 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31966 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
31967 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
31968 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
31969 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31970 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
31971 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
31972 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
31973 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
31974 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
31975 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
31976 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
31977 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 31978 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31979 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, |
31980 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
31981 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31982 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31983 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
31984 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
31985 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31986 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31987 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
31988 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31989 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31990 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31991 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31992 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
31993 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
31994 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
31995 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
31996 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
31997 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
31998 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
31999 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
32000 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
32001 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, | |
32002 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
32003 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
32004 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
32005 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
32006 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
32007 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
32008 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
32009 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
32010 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
32011 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
32012 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
32013 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
32014 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
32015 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
32016 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
32017 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
32018 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
32019 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
32020 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
32021 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
32022 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
32023 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
32024 | { NULL, NULL } | |
32025 | }; | |
32026 | ||
32027 | ||
32028 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32029 | ||
32030 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
32031 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32032 | } | |
32033 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
32034 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32035 | } | |
32036 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
32037 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
32038 | } | |
32039 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
32040 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32041 | } | |
32042 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
32043 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32044 | } | |
32045 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
32046 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
32047 | } | |
32048 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
32049 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32050 | } | |
32051 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
32052 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
32053 | } | |
32054 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
32055 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
32056 | } | |
32057 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
32058 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
32059 | } | |
32060 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32061 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32062 | } | |
32063 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32064 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32065 | } | |
32066 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32067 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32068 | } | |
32069 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32070 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32071 | } | |
32072 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32073 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32074 | } | |
32075 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
32076 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32077 | } | |
32078 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32079 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32080 | } | |
32081 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32082 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32083 | } | |
32084 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32085 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32086 | } | |
32087 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
32088 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32089 | } | |
32090 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
32091 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32092 | } | |
32093 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
32094 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32095 | } | |
32096 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32097 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32098 | } | |
32099 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
32100 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32101 | } | |
32102 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
32103 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32104 | } | |
32105 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
32106 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32107 | } | |
32108 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
32109 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
32110 | } | |
32111 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32112 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32113 | } | |
32114 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32115 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32116 | } | |
32117 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32118 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32119 | } | |
32120 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32121 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32122 | } | |
32123 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32124 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32125 | } | |
32126 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32127 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32128 | } | |
32129 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32130 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32131 | } | |
32132 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32133 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32134 | } | |
32135 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
32136 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32137 | } | |
32138 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32139 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32140 | } | |
32141 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32142 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32143 | } | |
32144 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32145 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32146 | } | |
32147 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32148 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32149 | } | |
32150 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32151 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32152 | } | |
32153 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32154 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32155 | } | |
32156 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32157 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32158 | } | |
32159 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32160 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32161 | } | |
32162 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32163 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32164 | } | |
32165 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32166 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32167 | } | |
32168 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32169 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32170 | } | |
32171 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32172 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32173 | } | |
32174 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32175 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32176 | } | |
32177 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32178 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32179 | } | |
32180 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32181 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32182 | } | |
32183 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32184 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32185 | } | |
32186 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
32187 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32188 | } | |
32189 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
32190 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
32191 | } | |
32192 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32193 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32194 | } | |
32195 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32196 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32197 | } | |
32198 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32199 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32200 | } | |
32201 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32202 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32203 | } | |
32204 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32205 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32206 | } | |
32207 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32208 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32209 | } | |
32210 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
32211 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32212 | } | |
32213 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
32214 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
32215 | } | |
32216 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
32217 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
32218 | } | |
32219 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32220 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32221 | } | |
32222 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
32223 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
32224 | } | |
32225 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
32226 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
32227 | } | |
32228 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
32229 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
32230 | } | |
32231 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
32232 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
32233 | } | |
32234 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
32235 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
32236 | } | |
32237 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
32238 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
32239 | } | |
32240 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
32241 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32242 | } | |
32243 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
32244 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
32245 | } | |
32246 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
32247 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
32248 | } | |
32249 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
32250 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
32251 | } | |
32252 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
32253 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
32254 | } | |
32255 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
32256 | return (void *)((wxControl *) ((wxGauge *) x)); | |
32257 | } | |
32258 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
32259 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
32260 | } | |
32261 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
32262 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
32263 | } | |
32264 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
32265 | return (void *)((wxControl *) ((wxButton *) x)); | |
32266 | } | |
32267 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
32268 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
32269 | } | |
32270 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
32271 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32272 | } | |
32273 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
32274 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
32275 | } | |
32276 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
32277 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
32278 | } | |
32279 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
32280 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
32281 | } | |
32282 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
32283 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
32284 | } | |
32285 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
32286 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
32287 | } | |
32288 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
32289 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
32290 | } | |
32291 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
32292 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
32293 | } | |
32294 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
32295 | return (void *)((wxControl *) ((wxSlider *) x)); | |
32296 | } | |
32297 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
32298 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
32299 | } | |
32300 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
32301 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
32302 | } | |
32303 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
32304 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
32305 | } | |
32306 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
32307 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
32308 | } | |
32309 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
32310 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
32311 | } | |
32312 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
32313 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32314 | } | |
32315 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
32316 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32317 | } | |
32318 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
32319 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32320 | } | |
32321 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
32322 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
32323 | } | |
32324 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
32325 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32326 | } | |
32327 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
32328 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32329 | } | |
32330 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
32331 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32332 | } | |
32333 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
32334 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32335 | } | |
32336 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32337 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32338 | } | |
32339 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32340 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32341 | } | |
32342 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32343 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32344 | } | |
32345 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
32346 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32347 | } | |
32348 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32349 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32350 | } | |
32351 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
32352 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32353 | } | |
32354 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
32355 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32356 | } | |
32357 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32358 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32359 | } | |
32360 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32361 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32362 | } | |
32363 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
32364 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32365 | } | |
32366 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
32367 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32368 | } | |
32369 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
32370 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32371 | } | |
32372 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
32373 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32374 | } | |
32375 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
32376 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32377 | } | |
32378 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32379 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32380 | } | |
32381 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
32382 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32383 | } | |
32384 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
32385 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32386 | } | |
32387 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32388 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32389 | } | |
32390 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
32391 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32392 | } | |
32393 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
32394 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32395 | } | |
32396 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
32397 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32398 | } | |
32399 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
32400 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32401 | } | |
32402 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
32403 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32404 | } | |
32405 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
32406 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32407 | } | |
32408 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
32409 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32410 | } | |
32411 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
32412 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32413 | } | |
32414 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
32415 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32416 | } | |
32417 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
32418 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32419 | } | |
32420 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
32421 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32422 | } | |
32423 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
32424 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32425 | } | |
32426 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
32427 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32428 | } | |
32429 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
32430 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32431 | } | |
32432 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
32433 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32434 | } | |
32435 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
32436 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32437 | } | |
32438 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
32439 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32440 | } | |
32441 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
32442 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
32443 | } | |
32444 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
32445 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32446 | } | |
32447 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
32448 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32449 | } | |
32450 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
32451 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32452 | } | |
32453 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
32454 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
32455 | } | |
32456 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
32457 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
32458 | } | |
32459 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
32460 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
32461 | } | |
32462 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
32463 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
32464 | } | |
32465 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
32466 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32467 | } | |
32468 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
32469 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32470 | } | |
32471 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
32472 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
32473 | } | |
32474 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32475 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32476 | } | |
32477 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32478 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32479 | } | |
32480 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32481 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32482 | } | |
32483 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32484 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32485 | } | |
32486 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32487 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32488 | } | |
32489 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
32490 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32491 | } | |
32492 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
32493 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32494 | } | |
32495 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32496 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32497 | } | |
32498 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32499 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32500 | } | |
32501 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32502 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32503 | } | |
32504 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32505 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32506 | } | |
32507 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
32508 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32509 | } | |
32510 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
32511 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32512 | } | |
32513 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32514 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32515 | } | |
32516 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32517 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32518 | } | |
32519 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32520 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32521 | } | |
32522 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32523 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32524 | } | |
32525 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32526 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32527 | } | |
32528 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
32529 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32530 | } | |
32531 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
32532 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32533 | } | |
32534 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
32535 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32536 | } | |
32537 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32538 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32539 | } | |
32540 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32541 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32542 | } | |
32543 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32544 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32545 | } | |
32546 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32547 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32548 | } | |
32549 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32550 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32551 | } | |
32552 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32553 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32554 | } | |
32555 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
32556 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32557 | } | |
32558 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32559 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32560 | } | |
32561 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
32562 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32563 | } | |
32564 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
32565 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32566 | } | |
32567 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
32568 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32569 | } | |
32570 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
32571 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32572 | } | |
32573 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
32574 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32575 | } | |
32576 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32577 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32578 | } | |
32579 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
32580 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32581 | } | |
32582 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32583 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32584 | } | |
32585 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32586 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32587 | } | |
32588 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
32589 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32590 | } | |
32591 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
32592 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32593 | } | |
32594 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
32595 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32596 | } | |
32597 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32598 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32599 | } | |
32600 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32601 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32602 | } | |
32603 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
32604 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32605 | } | |
32606 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32607 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32608 | } | |
32609 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
32610 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32611 | } | |
32612 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
32613 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32614 | } | |
32615 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32616 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32617 | } | |
32618 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
32619 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32620 | } | |
32621 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32622 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32623 | } | |
32624 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32625 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32626 | } | |
32627 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32628 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32629 | } | |
32630 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32631 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32632 | } | |
32633 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32634 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32635 | } | |
32636 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32637 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32638 | } | |
32639 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32640 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32641 | } | |
32642 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
32643 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32644 | } | |
32645 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
32646 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
32647 | } | |
32648 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32649 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32650 | } | |
32651 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32652 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32653 | } | |
32654 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32655 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32656 | } | |
32657 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32658 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32659 | } | |
32660 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32661 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32662 | } | |
32663 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32664 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32665 | } | |
32666 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32667 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32668 | } | |
32669 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32670 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32671 | } | |
32672 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32673 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32674 | } | |
32675 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32676 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32677 | } | |
32678 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32679 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32680 | } | |
32681 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32682 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32683 | } | |
32684 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32685 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32686 | } | |
32687 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
32688 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32689 | } | |
32690 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
32691 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32692 | } | |
32693 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
32694 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32695 | } | |
32696 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
32697 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32698 | } | |
32699 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
32700 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
32701 | } | |
32702 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
32703 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32704 | } | |
32705 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
32706 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32707 | } | |
32708 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
32709 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32710 | } | |
32711 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
32712 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32713 | } | |
32714 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
32715 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32716 | } | |
32717 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
32718 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32719 | } | |
32720 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
32721 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32722 | } | |
32723 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
32724 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
32725 | } | |
32726 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
32727 | return (void *)((wxObject *) ((wxListItem *) x)); | |
32728 | } | |
32729 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32730 | return (void *)((wxObject *) ((wxImage *) x)); | |
32731 | } | |
32732 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
32733 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
32734 | } | |
32735 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32736 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32737 | } | |
32738 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
32739 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32740 | } | |
32741 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
32742 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
32743 | } | |
32744 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
32745 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32746 | } | |
32747 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
32748 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32749 | } | |
32750 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
32751 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32752 | } | |
32753 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32754 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32755 | } | |
32756 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32757 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32758 | } | |
32759 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32760 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32761 | } | |
32762 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32763 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32764 | } | |
32765 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32766 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32767 | } | |
32768 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32769 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32770 | } | |
32771 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32772 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32773 | } | |
32774 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32775 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32776 | } | |
32777 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32778 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32779 | } | |
32780 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32781 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32782 | } | |
32783 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32784 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32785 | } | |
32786 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32787 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32788 | } | |
32789 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32790 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32791 | } | |
32792 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
32793 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32794 | } | |
32795 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32796 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32797 | } | |
32798 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32799 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32800 | } | |
32801 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
32802 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32803 | } | |
32804 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32805 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32806 | } | |
32807 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32808 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32809 | } | |
32810 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32811 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32812 | } | |
32813 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32814 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32815 | } | |
32816 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
32817 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
32818 | } | |
32819 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
32820 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32821 | } | |
32822 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32823 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32824 | } | |
32825 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32826 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32827 | } | |
32828 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
32829 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
32830 | } | |
32831 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
32832 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
32833 | } | |
32834 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32835 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32836 | } | |
32837 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
32838 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32839 | } | |
32840 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
32841 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
32842 | } | |
32843 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
32844 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
32845 | } | |
32846 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
32847 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
32848 | } | |
32849 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32850 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32851 | } | |
32852 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
32853 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
32854 | } | |
32855 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
32856 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32857 | } | |
32858 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
32859 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
32860 | } | |
32861 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
32862 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
32863 | } | |
32864 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
32865 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
32866 | } | |
32867 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
32868 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
32869 | } | |
32870 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32871 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32872 | } | |
32873 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
32874 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
32875 | } | |
32876 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
32877 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
32878 | } | |
32879 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
32880 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32881 | } | |
32882 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
32883 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
32884 | } | |
32885 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
32886 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
32887 | } | |
32888 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
32889 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
32890 | } | |
32891 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
32892 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32893 | } | |
32894 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
32895 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32896 | } | |
32897 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
32898 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32899 | } | |
32900 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
32901 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32902 | } | |
32903 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
32904 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32905 | } | |
32906 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
32907 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
32908 | } | |
32909 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
32910 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
32911 | } | |
32912 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
32913 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
32914 | } | |
32915 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
32916 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
32917 | } | |
32918 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
32919 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
32920 | } | |
32921 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
32922 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
32923 | } | |
32924 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
32925 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
32926 | } | |
32927 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
32928 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32929 | } | |
32930 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
32931 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32932 | } | |
32933 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
32934 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
32935 | } | |
32936 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32937 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32938 | } | |
32939 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
32940 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32941 | } | |
32942 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
32943 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32944 | } | |
32945 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32946 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32947 | } | |
32948 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32949 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32950 | } | |
32951 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32952 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32953 | } | |
32954 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32955 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32956 | } | |
32957 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
32958 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32959 | } | |
32960 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
32961 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32962 | } | |
32963 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
32964 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
32965 | } | |
32966 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32967 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32968 | } | |
32969 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
32970 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32971 | } | |
32972 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
32973 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32974 | } | |
32975 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
32976 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
32977 | } | |
32978 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32979 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32980 | } | |
32981 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
32982 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32983 | } | |
32984 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
32985 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32986 | } | |
32987 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
32988 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
32989 | } | |
32990 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
32991 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
32992 | } | |
32993 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
32994 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
32995 | } | |
32996 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
32997 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
32998 | } | |
32999 | 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}}; | |
33000 | 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}}; | |
33001 | 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}}; | |
33002 | 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}}; | |
33003 | 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}}; | |
33004 | 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}}; | |
33005 | 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}}; | |
33006 | 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}}; | |
33007 | 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}}; | |
33008 | 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}}; | |
33009 | 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}}; | |
33010 | 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}}; | |
33011 | 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}}; | |
33012 | 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}}; | |
33013 | 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}}; | |
33014 | 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}}; | |
33015 | 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}}; | |
33016 | 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}}; | |
33017 | 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}}; | |
33018 | 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}}; | |
33019 | 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}}; | |
33020 | 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}}; | |
33021 | 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}}; | |
33022 | 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}}; | |
33023 | 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}}; | |
33024 | 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}}; | |
33025 | 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}}; | |
33026 | 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}}; | |
33027 | 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}}; | |
33028 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33029 | 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}}; | |
33030 | 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}}; | |
33031 | 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}}; | |
33032 | 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}}; | |
33033 | 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}}; | |
33034 | 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}}; | |
33035 | 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}}; | |
33036 | 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}}; | |
33037 | 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}}; | |
33038 | 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}}; | |
33039 | 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}}; | |
33040 | 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}}; | |
33041 | 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}}; | |
33042 | 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}}; | |
33043 | 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}}; | |
33044 | 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}}; | |
33045 | 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}}; | |
33046 | 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}}; | |
33047 | 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}}; | |
33048 | 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}}; | |
33049 | 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}}; | |
33050 | 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}}; | |
33051 | 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}}; | |
33052 | 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}}; | |
33053 | 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}}; | |
33054 | 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}}; | |
33055 | 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}}; | |
33056 | 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}}; | |
33057 | 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}}; | |
33058 | 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}}; | |
33059 | 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}}; | |
33060 | 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}}; | |
33061 | 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}}; | |
33062 | 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}}; | |
33063 | 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}}; | |
33064 | 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}}; | |
33065 | 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}}; | |
33066 | 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}}; | |
33067 | 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}}; | |
33068 | 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}}; | |
33069 | 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}}; | |
33070 | 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}}; | |
33071 | 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}}; | |
33072 | 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}}; | |
33073 | 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}}; | |
33074 | 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}}; | |
33075 | 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}}; | |
33076 | 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}}; | |
33077 | 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}}; | |
33078 | 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}}; | |
33079 | 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}}; | |
33080 | 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}}; | |
33081 | 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}}; | |
33082 | 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}}; | |
33083 | 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}}; | |
33084 | ||
33085 | static swig_type_info *swig_types_initial[] = { | |
33086 | _swigt__p_wxTextUrlEvent, | |
33087 | _swigt__p_wxBookCtrlEvent, | |
33088 | _swigt__p_wxSizer, | |
33089 | _swigt__p_wxCheckBox, | |
33090 | _swigt__p_wxPyTreeCtrl, | |
33091 | _swigt__p_wxEvent, | |
33092 | _swigt__p_wxGenericDirCtrl, | |
33093 | _swigt__p_bool, | |
33094 | _swigt__p_wxPyTreeItemData, | |
33095 | _swigt__p_wxItemContainer, | |
33096 | _swigt__p_wxPyListCtrl, | |
33097 | _swigt__p_wxDirFilterListCtrl, | |
33098 | _swigt__p_wxStaticLine, | |
33099 | _swigt__p_wxControl, | |
33100 | _swigt__p_wxPyControl, | |
33101 | _swigt__p_wxGauge, | |
33102 | _swigt__p_wxToolBarBase, | |
33103 | _swigt__p_wxFont, | |
33104 | _swigt__p_wxToggleButton, | |
33105 | _swigt__p_wxRadioButton, | |
33106 | _swigt__p_wxChoice, | |
33107 | _swigt__p_wxMemoryDC, | |
33108 | _swigt__p_wxListItemAttr, | |
33109 | _swigt__p_void, | |
33110 | _swigt__p_int, | |
33111 | _swigt__p_wxSize, | |
33112 | _swigt__p_wxDC, | |
33113 | _swigt__p_wxListView, | |
33114 | _swigt__p_wxIcon, | |
33115 | _swigt__p_wxVisualAttributes, | |
33116 | _swigt__p_wxTextCtrl, | |
33117 | _swigt__p_wxNotebook, | |
33118 | _swigt__p_wxNotifyEvent, | |
33119 | _swigt__p_wxArrayString, | |
33120 | _swigt__p_wxListbook, | |
33121 | _swigt__p_wxStaticBitmap, | |
33122 | _swigt__p_wxSlider, | |
33123 | _swigt__p_wxStaticBox, | |
33124 | _swigt__p_wxArrayInt, | |
33125 | _swigt__p_wxContextHelp, | |
33126 | _swigt__p_long, | |
33127 | _swigt__p_wxEvtHandler, | |
33128 | _swigt__p_wxListEvent, | |
33129 | _swigt__p_wxCheckListBox, | |
33130 | _swigt__p_wxListBox, | |
33131 | _swigt__p_wxBookCtrl, | |
33132 | _swigt__p_wxSpinButton, | |
33133 | _swigt__p_wxButton, | |
33134 | _swigt__p_wxBitmapButton, | |
33135 | _swigt__p_wxRect, | |
33136 | _swigt__p_wxContextHelpButton, | |
33137 | _swigt__p_wxRadioBox, | |
33138 | _swigt__p_wxScrollBar, | |
33139 | _swigt__p_char, | |
33140 | _swigt__p_wxTreeItemId, | |
33141 | _swigt__p_wxComboBox, | |
33142 | _swigt__p_wxHelpEvent, | |
33143 | _swigt__p_wxListItem, | |
33144 | _swigt__p_wxNotebookSizer, | |
33145 | _swigt__p_wxSpinEvent, | |
33146 | _swigt__p_wxGenericDragImage, | |
33147 | _swigt__p_wxSpinCtrl, | |
33148 | _swigt__p_wxImageList, | |
33149 | _swigt__p_wxHelpProvider, | |
33150 | _swigt__p_wxTextAttr, | |
33151 | _swigt__p_wxSimpleHelpProvider, | |
33152 | _swigt__p_wxPoint, | |
33153 | _swigt__p_wxListbookEvent, | |
33154 | _swigt__p_wxNotebookEvent, | |
33155 | _swigt__p_wxObject, | |
33156 | _swigt__p_wxCursor, | |
33157 | _swigt__p_wxKeyEvent, | |
33158 | _swigt__p_wxWindow, | |
33159 | _swigt__p_wxString, | |
33160 | _swigt__p_wxBitmap, | |
33161 | _swigt__p_wxTreeEvent, | |
33162 | _swigt__p_wxMouseEvent, | |
33163 | _swigt__p_wxCommandEvent, | |
33164 | _swigt__p_wxStaticText, | |
33165 | _swigt__p_wxControlWithItems, | |
33166 | _swigt__p_wxToolBarToolBase, | |
33167 | _swigt__p_wxColour, | |
33168 | _swigt__p_wxToolBar, | |
33169 | _swigt__p_wxBookCtrlSizer, | |
33170 | _swigt__p_wxValidator, | |
33171 | 0 | |
33172 | }; | |
33173 | ||
33174 | ||
33175 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33176 | ||
33177 | static swig_const_info swig_const_table[] = { | |
33178 | {0}}; | |
33179 | ||
33180 | #ifdef __cplusplus | |
33181 | } | |
33182 | #endif | |
33183 | ||
33184 | #ifdef __cplusplus | |
33185 | extern "C" | |
33186 | #endif | |
33187 | SWIGEXPORT(void) SWIG_init(void) { | |
33188 | static PyObject *SWIG_globals = 0; | |
33189 | static int typeinit = 0; | |
33190 | PyObject *m, *d; | |
33191 | int i; | |
33192 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
33193 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33194 | d = PyModule_GetDict(m); | |
33195 | ||
33196 | if (!typeinit) { | |
33197 | for (i = 0; swig_types_initial[i]; i++) { | |
33198 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33199 | } | |
33200 | typeinit = 1; | |
33201 | } | |
33202 | SWIG_InstallConstants(d,swig_const_table); | |
33203 | ||
33204 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
33205 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
33206 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); | |
33207 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
33208 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
33209 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
33210 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
33211 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
33212 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); | |
33213 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); | |
33214 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
33215 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
33216 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
33217 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
33218 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
33219 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); | |
33220 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
33221 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
33222 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); | |
33223 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
33224 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
33225 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
33226 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); | |
33227 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
33228 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
33229 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
33230 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
33231 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); | |
33232 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
33233 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
33234 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
33235 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
33236 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
33237 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
33238 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
33239 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
33240 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
33241 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
33242 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
33243 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
33244 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
33245 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
33246 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
33247 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
33248 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
33249 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
33250 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
33251 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
33252 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
33253 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
33254 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
33255 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
33256 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
33257 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
33258 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
33259 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
33260 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
33261 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
33262 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
33263 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
33264 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
33265 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
33266 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
33267 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
33268 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
33269 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
33270 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
33271 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
33272 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
33273 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
33274 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
33275 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
33276 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
33277 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
33278 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
33279 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); | |
33280 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
33281 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
33282 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
33283 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
33284 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
33285 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
33286 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
33287 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
33288 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
33289 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); | |
33290 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); | |
33291 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
33292 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
33293 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
33294 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
33295 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
33296 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
33297 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
33298 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
33299 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
33300 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
33301 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
33302 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); | |
33303 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
33304 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
33305 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
33306 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
33307 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
33308 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
33309 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
33310 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); | |
33311 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
33312 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
33313 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
33314 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
33315 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
33316 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
33317 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
33318 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
33319 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
33320 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
33321 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
33322 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
33323 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
33324 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); | |
33325 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); | |
33326 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
33327 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
33328 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
33329 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
33330 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
33331 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
33332 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
33333 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
33334 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
33335 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
33336 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
33337 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
33338 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
33339 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
33340 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
33341 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
33342 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
33343 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
33344 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
33345 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
33346 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
33347 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
33348 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
33349 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
33350 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
33351 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
33352 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
33353 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
33354 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
33355 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
33356 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
33357 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
33358 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
33359 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
33360 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
33361 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
33362 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
33363 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
33364 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
33365 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
33366 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
33367 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
33368 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
33369 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
33370 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
33371 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
33372 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
33373 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
33374 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
33375 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
33376 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
33377 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
33378 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
33379 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
33380 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
33381 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
33382 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
33383 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
33384 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
33385 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
33386 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
33387 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
33388 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
33389 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
33390 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
33391 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
33392 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
33393 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
33394 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
33395 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
33396 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
33397 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
33398 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
33399 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
33400 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
33401 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
33402 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
33403 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
33404 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
33405 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
33406 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
33407 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
33408 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
33409 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
33410 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
33411 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
33412 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
33413 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
33414 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
33415 | ||
33416 | // Map renamed classes back to their common name for OOR | |
33417 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
33418 | ||
33419 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
33420 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); | |
33421 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
33422 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
33423 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
33424 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
33425 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
33426 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
33427 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
33428 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
33429 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
33430 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
33431 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
33432 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
33433 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
33434 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
33435 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
33436 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
33437 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
33438 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
33439 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
33440 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
33441 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
33442 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
33443 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
33444 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
33445 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
33446 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
33447 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
33448 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
33449 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
33450 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
33451 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
33452 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
33453 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
33454 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
33455 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
33456 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
33457 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
33458 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
33459 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
33460 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
33461 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
33462 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
33463 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
33464 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
33465 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
33466 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
33467 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
33468 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
33469 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
33470 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
33471 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
33472 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
33473 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
33474 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
33475 | ||
33476 | // Map renamed classes back to their common name for OOR | |
33477 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
33478 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
33479 | ||
33480 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
33481 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); | |
33482 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
33483 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
33484 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
33485 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
33486 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
33487 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
33488 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
33489 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
33490 | ||
33491 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
33492 | ||
33493 | } | |
33494 |