]>
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 | |
c370783e | 46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName |
d55e5bfc RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
49 | #define SWIG_PackData SWIG_Python_PackData | |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
52 | ||
53 | /*********************************************************************** | |
54 | * common.swg for wxPython | |
55 | * | |
56 | * Include only the function prototypes and such from SWIG's common.swg, | |
57 | * but not the runtime functions themselves. This helps keep the | |
58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
59 | * anyway. | |
60 | * | |
61 | ************************************************************************/ | |
62 | ||
63 | #include <string.h> | |
64 | ||
65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
66 | # if defined(_MSC_VER) || defined(__GNUC__) | |
67 | # if defined(STATIC_LINKED) | |
68 | # define SWIGEXPORT(a) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # else | |
71 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
72 | # define SWIGIMPORT(a) extern a | |
73 | # endif | |
74 | # else | |
75 | # if defined(__BORLANDC__) | |
76 | # define SWIGEXPORT(a) a _export | |
77 | # define SWIGIMPORT(a) a _export | |
78 | # else | |
79 | # define SWIGEXPORT(a) a | |
80 | # define SWIGIMPORT(a) a | |
81 | # endif | |
82 | # endif | |
83 | #else | |
84 | # define SWIGEXPORT(a) a | |
85 | # define SWIGIMPORT(a) a | |
86 | #endif | |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
90 | #else | |
91 | # define SWIGRUNTIME(a) static a | |
92 | #endif | |
93 | ||
94 | #ifdef __cplusplus | |
95 | extern "C" { | |
96 | #endif | |
97 | ||
98 | typedef void *(*swig_converter_func)(void *); | |
99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
100 | ||
101 | typedef struct swig_type_info { | |
102 | const char *name; | |
103 | swig_converter_func converter; | |
104 | const char *str; | |
105 | void *clientdata; | |
106 | swig_dycast_func dcast; | |
107 | struct swig_type_info *next; | |
108 | struct swig_type_info *prev; | |
109 | } swig_type_info; | |
110 | ||
111 | ||
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
c370783e | 117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); |
d55e5bfc RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
122 | ||
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
c370783e | 128 | |
d55e5bfc RD |
129 | /*********************************************************************** |
130 | * pyrun.swg for wxPython | |
131 | * | |
132 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
133 | * but not the runtime functions themselves. This helps keep the | |
134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
135 | * anyway. | |
136 | * | |
137 | ************************************************************************/ | |
138 | ||
d55e5bfc RD |
139 | #ifdef __cplusplus |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
167 | /* Common SWIG API */ | |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
197 | ||
198 | ||
199 | /* Contract support */ | |
200 | ||
201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
202 | ||
203 | #ifdef __cplusplus | |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c370783e | 208 | |
d55e5bfc RD |
209 | /* -------- TYPES TABLE (BEGIN) -------- */ |
210 | ||
211 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
212 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
213 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
214 | #define SWIGTYPE_p_wxCheckBox swig_types[3] | |
215 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] | |
216 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
217 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] | |
218 | #define SWIGTYPE_p_bool swig_types[7] | |
219 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
220 | #define SWIGTYPE_p_wxItemContainer swig_types[9] | |
221 | #define SWIGTYPE_p_wxPyListCtrl swig_types[10] | |
222 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11] | |
223 | #define SWIGTYPE_p_wxStaticLine swig_types[12] | |
224 | #define SWIGTYPE_p_wxControl swig_types[13] | |
225 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
226 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
227 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
228 | #define SWIGTYPE_p_wxFont swig_types[17] | |
229 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
230 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
231 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
232 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
233 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
234 | #define SWIGTYPE_p_void swig_types[23] | |
235 | #define SWIGTYPE_p_int swig_types[24] | |
236 | #define SWIGTYPE_p_wxSize swig_types[25] | |
237 | #define SWIGTYPE_p_wxDC swig_types[26] | |
238 | #define SWIGTYPE_p_wxListView swig_types[27] | |
239 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
240 | #define SWIGTYPE_p_wxVisualAttributes swig_types[29] | |
241 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
242 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
243 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
244 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
245 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
246 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
247 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
248 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
249 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
250 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
251 | #define SWIGTYPE_p_long swig_types[40] | |
252 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
253 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
254 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] | |
255 | #define SWIGTYPE_p_wxListBox swig_types[44] | |
256 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
257 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
258 | #define SWIGTYPE_p_wxButton swig_types[47] | |
259 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
260 | #define SWIGTYPE_p_wxRect swig_types[49] | |
261 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
262 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
263 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
264 | #define SWIGTYPE_p_char swig_types[53] | |
265 | #define SWIGTYPE_p_wxTreeItemId swig_types[54] | |
266 | #define SWIGTYPE_p_wxComboBox swig_types[55] | |
267 | #define SWIGTYPE_p_wxHelpEvent swig_types[56] | |
268 | #define SWIGTYPE_p_wxListItem swig_types[57] | |
269 | #define SWIGTYPE_p_wxNotebookSizer swig_types[58] | |
270 | #define SWIGTYPE_p_wxSpinEvent swig_types[59] | |
271 | #define SWIGTYPE_p_wxGenericDragImage swig_types[60] | |
272 | #define SWIGTYPE_p_wxSpinCtrl swig_types[61] | |
273 | #define SWIGTYPE_p_wxImageList swig_types[62] | |
274 | #define SWIGTYPE_p_wxHelpProvider swig_types[63] | |
275 | #define SWIGTYPE_p_wxTextAttr swig_types[64] | |
276 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] | |
277 | #define SWIGTYPE_p_wxPoint swig_types[66] | |
278 | #define SWIGTYPE_p_wxListbookEvent swig_types[67] | |
279 | #define SWIGTYPE_p_wxNotebookEvent swig_types[68] | |
280 | #define SWIGTYPE_p_wxObject swig_types[69] | |
281 | #define SWIGTYPE_p_wxCursor swig_types[70] | |
282 | #define SWIGTYPE_p_wxKeyEvent swig_types[71] | |
283 | #define SWIGTYPE_p_wxWindow swig_types[72] | |
284 | #define SWIGTYPE_p_wxString swig_types[73] | |
285 | #define SWIGTYPE_p_wxBitmap swig_types[74] | |
286 | #define SWIGTYPE_p_wxTreeEvent swig_types[75] | |
287 | #define SWIGTYPE_p_wxMouseEvent swig_types[76] | |
288 | #define SWIGTYPE_p_wxCommandEvent swig_types[77] | |
289 | #define SWIGTYPE_p_wxStaticText swig_types[78] | |
290 | #define SWIGTYPE_p_wxControlWithItems swig_types[79] | |
291 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[80] | |
292 | #define SWIGTYPE_p_wxColour swig_types[81] | |
293 | #define SWIGTYPE_p_wxToolBar swig_types[82] | |
294 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83] | |
295 | #define SWIGTYPE_p_wxValidator swig_types[84] | |
296 | static swig_type_info *swig_types[86]; | |
297 | ||
298 | /* -------- TYPES TABLE (END) -------- */ | |
299 | ||
300 | ||
301 | /*----------------------------------------------- | |
302 | @(target):= _controls_.so | |
303 | ------------------------------------------------*/ | |
304 | #define SWIG_init init_controls_ | |
305 | ||
306 | #define SWIG_name "_controls_" | |
307 | ||
c370783e RD |
308 | /* Auxiliar swig macros that appear in the header */ |
309 | ||
310 | #define SWIG_OLDOBJ 1 | |
311 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
312 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
313 | |
314 | #ifdef __cplusplus | |
315 | #define SWIGSTATICINLINE(a) static inline a | |
316 | #define SWIGSTATIC(a) static a | |
c370783e RD |
317 | #define swig_new_array(size,Type) (new Type[(size)]) |
318 | #define swig_delete(cptr) delete cptr | |
d55e5bfc | 319 | #define swig_delete_array(cptr) delete[] cptr |
c370783e RD |
320 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
321 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
322 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
323 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
324 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
d55e5bfc RD |
325 | |
326 | #else /* C case */ | |
327 | ||
328 | #define SWIGSTATICINLINE(a) static a | |
329 | #define SWIGSTATIC(a) static a | |
c370783e RD |
330 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
331 | #define swig_delete(cptr) free((char*)cptr) | |
d55e5bfc | 332 | #define swig_delete_array(cptr) free((char*)cptr) |
c370783e RD |
333 | #define swig_const_cast(a,Type) (Type)(a) |
334 | #define swig_static_cast(a,Type) (Type)(a) | |
335 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
336 | #define swig_numeric_cast(a,Type) (Type)(a) | |
337 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
d55e5bfc RD |
338 | |
339 | #endif /* __cplusplus */ | |
340 | ||
341 | ||
c370783e RD |
342 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
343 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
344 | /*@@*/ | |
345 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
346 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
347 | /*@@*/ | |
348 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
349 | #define SWIG_From_short PyInt_FromLong | |
350 | /*@@*/ | |
351 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
352 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
353 | /*@@*/ | |
354 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
355 | #define SWIG_From_int PyInt_FromLong | |
356 | /*@@*/ | |
357 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
358 | #define SWIG_From_long PyInt_FromLong | |
359 | /*@@*/ | |
360 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
361 | #define SWIG_From_float PyFloat_FromDouble | |
362 | /*@@*/ | |
363 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
364 | #define SWIG_From_double PyFloat_FromDouble | |
365 | /*@@*/ | |
d55e5bfc RD |
366 | |
367 | ||
368 | #include "wx/wxPython/wxPython.h" | |
369 | #include "wx/wxPython/pyclasses.h" | |
370 | ||
371 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
372 | static const wxString wxPyEmptyString(wxEmptyString); | |
373 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
374 | ||
375 | const wxArrayString wxPyEmptyStringArray; | |
376 | ||
377 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
378 | ||
379 | #include <limits.h> | |
380 | ||
381 | ||
c370783e RD |
382 | SWIGSTATICINLINE(int) |
383 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
384 | const char *errmsg) | |
d55e5bfc | 385 | { |
c370783e RD |
386 | if (value < min_value) { |
387 | if (errmsg) { | |
388 | PyErr_Format(PyExc_OverflowError, | |
389 | "value %ld is less than '%s' minimum %ld", | |
390 | value, errmsg, min_value); | |
391 | } | |
392 | return 0; | |
393 | } else if (value > max_value) { | |
394 | if (errmsg) { | |
395 | PyErr_Format(PyExc_OverflowError, | |
396 | "value %ld is greater than '%s' maximum %ld", | |
397 | value, errmsg, max_value); | |
d55e5bfc | 398 | } |
c370783e | 399 | return 0; |
d55e5bfc | 400 | } |
c370783e | 401 | return 1; |
d55e5bfc RD |
402 | } |
403 | ||
404 | ||
c370783e RD |
405 | // See my_fragments.i |
406 | SWIGSTATICINLINE(int) | |
407 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 408 | { |
c370783e RD |
409 | if (PyNumber_Check(obj)) { |
410 | if (val) *val = PyInt_AsLong(obj); | |
411 | return 1; | |
412 | } | |
d55e5bfc RD |
413 | else { |
414 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
415 | obj->ob_type->tp_name); | |
416 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
417 | Py_DECREF(errmsg); | |
d55e5bfc | 418 | } |
c370783e | 419 | return 0; |
d55e5bfc RD |
420 | } |
421 | ||
422 | ||
423 | #if INT_MAX != LONG_MAX | |
424 | SWIGSTATICINLINE(int) | |
c370783e | 425 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 426 | { |
c370783e RD |
427 | const char* errmsg = val ? "int" : 0; |
428 | long v; | |
429 | if (SWIG_AsVal_long(obj, &v)) { | |
430 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
431 | if (val) *val = swig_numeric_cast(v, int); | |
432 | return 1; | |
433 | } else { | |
434 | return 0; | |
435 | } | |
436 | } else { | |
437 | PyErr_Clear(); | |
438 | } | |
439 | if (val) { | |
440 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
441 | } | |
442 | return 0; | |
d55e5bfc RD |
443 | } |
444 | #else | |
c370783e RD |
445 | SWIGSTATICINLINE(int) |
446 | SWIG_AsVal_int(PyObject *obj, int *val) | |
447 | { | |
448 | return SWIG_AsVal_long(obj,(long*)val); | |
449 | } | |
d55e5bfc RD |
450 | #endif |
451 | ||
452 | ||
453 | SWIGSTATICINLINE(int) | |
c370783e | 454 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 455 | { |
c370783e RD |
456 | int v; |
457 | if (!SWIG_AsVal_int(obj, &v)) { | |
458 | /* | |
459 | this is needed to make valgrind/purify happier. the other | |
460 | solution is throw an exception, but since this code should work | |
461 | with plain C .... | |
462 | */ | |
463 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 464 | } |
c370783e | 465 | return v; |
d55e5bfc RD |
466 | } |
467 | ||
468 | ||
c370783e RD |
469 | SWIGSTATICINLINE(long) |
470 | SWIG_As_long(PyObject* obj) | |
d55e5bfc | 471 | { |
c370783e RD |
472 | long v; |
473 | if (!SWIG_AsVal_long(obj, &v)) { | |
474 | /* | |
475 | this is needed to make valgrind/purify happier. the other | |
476 | solution is throw an exception, but since this code should work | |
477 | with plain C .... | |
478 | */ | |
479 | memset((void*)&v, 0, sizeof(long)); | |
d55e5bfc | 480 | } |
c370783e | 481 | return v; |
d55e5bfc RD |
482 | } |
483 | ||
c370783e RD |
484 | |
485 | SWIGSTATICINLINE(int) | |
486 | SWIG_Check_int(PyObject* obj) | |
487 | { | |
488 | return SWIG_AsVal_int(obj, (int*)0); | |
489 | } | |
d55e5bfc | 490 | |
c370783e RD |
491 | |
492 | SWIGSTATICINLINE(int) | |
493 | SWIG_Check_long(PyObject* obj) | |
d55e5bfc | 494 | { |
c370783e | 495 | return SWIG_AsVal_long(obj, (long*)0); |
d55e5bfc RD |
496 | } |
497 | ||
c370783e | 498 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
d55e5bfc RD |
499 | |
500 | SWIGSTATICINLINE(int) | |
c370783e | 501 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
d55e5bfc | 502 | { |
c370783e RD |
503 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ |
504 | if (obj == Py_True) { | |
505 | if (val) *val = true; | |
506 | return 1; | |
507 | } | |
508 | if (obj == Py_False) { | |
509 | if (val) *val = false; | |
d55e5bfc RD |
510 | return 1; |
511 | } | |
c370783e RD |
512 | int res = 0; |
513 | if (SWIG_AsVal_int(obj, &res)) { | |
514 | if (val) *val = (bool)res; | |
515 | return 1; | |
516 | } | |
517 | if (val) { | |
518 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
519 | } | |
520 | return 0; | |
521 | } | |
522 | ||
523 | ||
524 | SWIGSTATICINLINE(bool) | |
525 | SWIG_As_bool(PyObject* obj) | |
526 | { | |
527 | bool v; | |
528 | if (!SWIG_AsVal_bool(obj, &v)) { | |
529 | /* | |
530 | this is needed to make valgrind/purify happier. the other | |
531 | solution is throw an exception, but since this code should work | |
532 | with plain C .... | |
533 | */ | |
534 | memset((void*)&v, 0, sizeof(bool)); | |
535 | } | |
536 | return v; | |
537 | } | |
538 | ||
539 | ||
540 | SWIGSTATICINLINE(int) | |
541 | SWIG_Check_bool(PyObject* obj) | |
542 | { | |
543 | return SWIG_AsVal_bool(obj, (bool*)0); | |
d55e5bfc RD |
544 | } |
545 | ||
546 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
547 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
548 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
549 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
550 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
551 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
552 | ||
553 | #include <wx/checklst.h> | |
554 | ||
555 | ||
556 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
557 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ | |
558 | if (clientData) { | |
559 | wxPyClientData* data = new wxPyClientData(clientData); | |
560 | self->Insert(item, pos, data); | |
561 | } else | |
562 | self->Insert(item, pos); | |
563 | } | |
564 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
565 | wxArrayInt lst; | |
566 | self->GetSelections(lst); | |
567 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
568 | for(size_t i=0; i<lst.GetCount(); i++) { | |
569 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
570 | } | |
571 | return tup; | |
572 | } | |
573 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ | |
574 | #ifdef __WXMSW__ | |
575 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
576 | self->GetItem(item)->SetTextColour(c); | |
577 | #endif | |
578 | } | |
579 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
580 | #ifdef __WXMSW__ | |
581 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
582 | self->GetItem(item)->SetBackgroundColour(c); | |
583 | #endif | |
584 | } | |
585 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
586 | #ifdef __WXMSW__ | |
587 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
588 | self->GetItem(item)->SetFont(f); | |
589 | #endif | |
590 | } | |
591 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
592 | ||
c370783e | 593 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
594 | PyObject* o2; |
595 | PyObject* o3; | |
c370783e | 596 | |
d55e5bfc RD |
597 | if (!target) { |
598 | target = o; | |
599 | } else if (target == Py_None) { | |
600 | Py_DECREF(Py_None); | |
601 | target = o; | |
629e65c2 RD |
602 | } else { |
603 | if (!PyTuple_Check(target)) { | |
604 | o2 = target; | |
605 | target = PyTuple_New(1); | |
606 | PyTuple_SetItem(target, 0, o2); | |
607 | } | |
d55e5bfc RD |
608 | o3 = PyTuple_New(1); |
609 | PyTuple_SetItem(o3, 0, o); | |
610 | ||
611 | o2 = target; | |
612 | target = PySequence_Concat(o2, o3); | |
613 | Py_DECREF(o2); | |
614 | Py_DECREF(o3); | |
615 | } | |
616 | return target; | |
629e65c2 | 617 | } |
d55e5bfc RD |
618 | |
619 | ||
c370783e RD |
620 | |
621 | // See my_fragments.i | |
622 | SWIGSTATICINLINE(int) | |
623 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 624 | { |
c370783e RD |
625 | long v = 0; |
626 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
627 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
628 | return 0; | |
d55e5bfc | 629 | } |
c370783e RD |
630 | else if (val) |
631 | *val = (unsigned long)v; | |
632 | return 1; | |
d55e5bfc RD |
633 | } |
634 | ||
635 | ||
c370783e RD |
636 | SWIGSTATICINLINE(unsigned long) |
637 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 638 | { |
c370783e RD |
639 | unsigned long v; |
640 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
641 | /* | |
642 | this is needed to make valgrind/purify happier. the other | |
643 | solution is throw an exception, but since this code should work | |
644 | with plain C .... | |
645 | */ | |
646 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 647 | } |
c370783e RD |
648 | return v; |
649 | } | |
650 | ||
651 | ||
652 | SWIGSTATICINLINE(int) | |
653 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
654 | { | |
655 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
656 | } |
657 | ||
658 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
659 | self->AppendText(text); | |
660 | } | |
661 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
662 | return self->GetValue().Mid(from, to - from); | |
663 | } | |
664 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
665 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
666 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
667 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
668 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
669 | ||
670 | #include <wx/slider.h> | |
671 | ||
672 | ||
673 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
674 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
675 | ||
676 | #if !wxUSE_TOGGLEBTN | |
677 | // implement dummy items for platforms that don't have this class | |
678 | ||
679 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
680 | ||
681 | class wxToggleButton : public wxControl | |
682 | { | |
683 | public: | |
684 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
685 | const wxPoint&, const wxSize&, long, | |
686 | const wxValidator&, const wxString&) | |
687 | { wxPyRaiseNotImplemented(); } | |
688 | ||
689 | wxToggleButton() | |
690 | { wxPyRaiseNotImplemented(); } | |
691 | }; | |
692 | #endif | |
693 | ||
694 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); | |
695 | ||
696 | SWIGSTATICINLINE(PyObject* ) | |
c370783e | 697 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
698 | { |
699 | return (value > LONG_MAX) ? | |
700 | PyLong_FromUnsignedLong(value) | |
c370783e | 701 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
702 | } |
703 | ||
704 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
705 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ | |
706 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
707 | if (udata) { | |
708 | Py_INCREF(udata->m_obj); | |
709 | return udata->m_obj; | |
710 | } else { | |
711 | Py_INCREF(Py_None); | |
712 | return Py_None; | |
713 | } | |
714 | } | |
715 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
716 | self->SetClientData(new wxPyUserData(clientData)); | |
717 | } | |
718 | 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){ | |
719 | wxPyUserData* udata = NULL; | |
720 | if (clientData && clientData != Py_None) | |
721 | udata = new wxPyUserData(clientData); | |
722 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
723 | shortHelp, longHelp, udata); | |
724 | } | |
725 | 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){ | |
726 | wxPyUserData* udata = NULL; | |
727 | if (clientData && clientData != Py_None) | |
728 | udata = new wxPyUserData(clientData); | |
729 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
730 | shortHelp, longHelp, udata); | |
731 | } | |
732 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
733 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
734 | if (udata) { | |
735 | Py_INCREF(udata->m_obj); | |
736 | return udata->m_obj; | |
737 | } else { | |
738 | Py_INCREF(Py_None); | |
739 | return Py_None; | |
740 | } | |
741 | } | |
742 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
743 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
744 | } | |
745 | ||
746 | #include <wx/listctrl.h> | |
747 | ||
d55e5bfc RD |
748 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
749 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } | |
750 | // Python aware sorting function for wxPyListCtrl | |
751 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
752 | int retval = 0; | |
753 | PyObject* func = (PyObject*)funcPtr; | |
754 | bool blocked = wxPyBeginBlockThreads(); | |
755 | ||
756 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
757 | PyObject* result = PyEval_CallObject(func, args); | |
758 | Py_DECREF(args); | |
759 | if (result) { | |
760 | retval = PyInt_AsLong(result); | |
761 | Py_DECREF(result); | |
762 | } | |
763 | ||
764 | wxPyEndBlockThreads(blocked); | |
765 | return retval; | |
766 | } | |
767 | ||
768 | // C++ Version of a Python aware class | |
769 | class wxPyListCtrl : public wxListCtrl { | |
770 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
771 | public: | |
772 | wxPyListCtrl() : wxListCtrl() {} | |
773 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
774 | const wxPoint& pos, | |
775 | const wxSize& size, | |
776 | long style, | |
777 | const wxValidator& validator, | |
778 | const wxString& name) : | |
779 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
780 | ||
781 | bool Create(wxWindow* parent, wxWindowID id, | |
782 | const wxPoint& pos, | |
783 | const wxSize& size, | |
784 | long style, | |
785 | const wxValidator& validator, | |
786 | const wxString& name) { | |
787 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
788 | } | |
789 | ||
790 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
791 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
792 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
793 | ||
794 | PYPRIVATE; | |
795 | }; | |
796 | ||
797 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
798 | ||
799 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
800 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
801 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
802 | ||
803 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
804 | wxListItem item; | |
805 | item.SetMask( wxLIST_MASK_STATE | | |
806 | wxLIST_MASK_TEXT | | |
807 | wxLIST_MASK_IMAGE | | |
808 | wxLIST_MASK_DATA | | |
809 | wxLIST_SET_ITEM | | |
810 | wxLIST_MASK_WIDTH | | |
811 | wxLIST_MASK_FORMAT | |
812 | ); | |
813 | if (self->GetColumn(col, item)) | |
814 | return new wxListItem(item); | |
815 | else | |
816 | return NULL; | |
817 | } | |
818 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
819 | wxListItem* info = new wxListItem; | |
820 | info->m_itemId = itemId; | |
821 | info->m_col = col; | |
822 | info->m_mask = 0xFFFF; | |
823 | self->GetItem(*info); | |
824 | return info; | |
825 | } | |
826 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
827 | wxPoint pos; | |
828 | self->GetItemPosition(item, pos); | |
829 | return pos; | |
830 | } | |
831 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
832 | wxRect rect; | |
833 | self->GetItemRect(item, rect, code); | |
834 | return rect; | |
835 | } | |
c370783e | 836 | |
d55e5bfc RD |
837 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
838 | if (!PyCallable_Check(func)) | |
839 | return False; | |
840 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); | |
841 | } | |
842 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
843 | ||
844 | ||
845 | ||
846 | return (wxWindow*)self->m_mainWin; | |
847 | ||
848 | } | |
849 | ||
850 | #include <wx/treectrl.h> | |
851 | #include "wx/wxPython/pytree.h" | |
852 | ||
853 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
854 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } | |
855 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
856 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
857 | // C++ version of Python aware wxTreeCtrl | |
858 | class wxPyTreeCtrl : public wxTreeCtrl { | |
859 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
860 | public: | |
861 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
862 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
863 | const wxPoint& pos, | |
864 | const wxSize& size, | |
865 | long style, | |
866 | const wxValidator& validator, | |
867 | const wxString& name) : | |
868 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
869 | ||
870 | bool Create(wxWindow *parent, wxWindowID id, | |
871 | const wxPoint& pos, | |
872 | const wxSize& size, | |
873 | long style, | |
874 | const wxValidator& validator, | |
875 | const wxString& name) { | |
876 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
877 | } | |
878 | ||
879 | ||
880 | int OnCompareItems(const wxTreeItemId& item1, | |
881 | const wxTreeItemId& item2) { | |
882 | int rval = 0; | |
883 | bool found; | |
884 | bool blocked = wxPyBeginBlockThreads(); | |
885 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
886 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); | |
887 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
888 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); | |
889 | Py_DECREF(o1); | |
890 | Py_DECREF(o2); | |
891 | } | |
892 | wxPyEndBlockThreads(blocked); | |
893 | if (! found) | |
894 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
895 | return rval; | |
896 | } | |
897 | PYPRIVATE; | |
898 | }; | |
899 | ||
900 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
901 | ||
902 | ||
903 | ||
904 | #if UINT_MAX < LONG_MAX | |
c370783e RD |
905 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
906 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
907 | /*@@*/ | |
d55e5bfc | 908 | #else |
c370783e RD |
909 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
910 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
911 | /*@@*/ | |
d55e5bfc RD |
912 | #endif |
913 | ||
914 | ||
c370783e RD |
915 | SWIGSTATICINLINE(int) |
916 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
917 | unsigned long max_value, | |
918 | const char *errmsg) | |
d55e5bfc | 919 | { |
c370783e RD |
920 | if (value > max_value) { |
921 | if (errmsg) { | |
922 | PyErr_Format(PyExc_OverflowError, | |
923 | "value %ld is greater than '%s' minimum %ld", | |
924 | value, errmsg, max_value); | |
d55e5bfc | 925 | } |
c370783e | 926 | return 0; |
d55e5bfc | 927 | } |
c370783e RD |
928 | return 1; |
929 | } | |
d55e5bfc RD |
930 | |
931 | ||
932 | #if UINT_MAX != ULONG_MAX | |
c370783e RD |
933 | SWIGSTATICINLINE(int) |
934 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 935 | { |
c370783e RD |
936 | const char* errmsg = val ? "unsigned int" : 0; |
937 | unsigned long v; | |
938 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
939 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
940 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
941 | return 1; | |
942 | } | |
943 | } else { | |
944 | PyErr_Clear(); | |
945 | } | |
946 | if (val) { | |
947 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
948 | } | |
949 | return 0; | |
d55e5bfc RD |
950 | } |
951 | #else | |
c370783e RD |
952 | SWIGSTATICINLINE(unsigned int) |
953 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
954 | { | |
955 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
956 | } | |
d55e5bfc RD |
957 | #endif |
958 | ||
959 | ||
c370783e RD |
960 | SWIGSTATICINLINE(unsigned int) |
961 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 962 | { |
c370783e RD |
963 | unsigned int v; |
964 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
965 | /* | |
966 | this is needed to make valgrind/purify happier. the other | |
967 | solution is throw an exception, but since this code should work | |
968 | with plain C .... | |
969 | */ | |
970 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 971 | } |
c370783e RD |
972 | return v; |
973 | } | |
974 | ||
975 | ||
976 | SWIGSTATICINLINE(int) | |
977 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
978 | { | |
979 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
980 | } |
981 | ||
982 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
983 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
984 | if (data == NULL) { | |
985 | data = new wxPyTreeItemData(); | |
986 | data->SetId(item); // set the id | |
987 | self->SetItemData(item, data); | |
988 | } | |
989 | return data; | |
990 | } | |
991 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
992 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
993 | if (data == NULL) { | |
994 | data = new wxPyTreeItemData(); | |
995 | data->SetId(item); // set the id | |
996 | self->SetItemData(item, data); | |
997 | } | |
998 | return data->GetData(); | |
999 | } | |
1000 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
1001 | data->SetId(item); // set the id | |
1002 | self->SetItemData(item, data); | |
1003 | } | |
1004 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
1005 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
1006 | if (data == NULL) { | |
1007 | data = new wxPyTreeItemData(obj); | |
1008 | data->SetId(item); // set the id | |
1009 | self->SetItemData(item, data); | |
1010 | } else | |
1011 | data->SetData(obj); | |
1012 | } | |
1013 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
1014 | bool blocked = wxPyBeginBlockThreads(); | |
1015 | PyObject* rval = PyList_New(0); | |
1016 | wxArrayTreeItemIds array; | |
1017 | size_t num, x; | |
1018 | num = self->GetSelections(array); | |
1019 | for (x=0; x < num; x++) { | |
1020 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
1021 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); | |
1022 | PyList_Append(rval, item); | |
68e533f8 | 1023 | Py_DECREF(item); |
d55e5bfc RD |
1024 | } |
1025 | wxPyEndBlockThreads(blocked); | |
1026 | return rval; | |
1027 | } | |
1028 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
1029 | void* cookie = 0; | |
1030 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
1031 | bool blocked = wxPyBeginBlockThreads(); | |
1032 | PyObject* tup = PyTuple_New(2); | |
1033 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
1034 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
1035 | wxPyEndBlockThreads(blocked); | |
1036 | return tup; | |
1037 | } | |
1038 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ | |
1039 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
1040 | bool blocked = wxPyBeginBlockThreads(); | |
1041 | PyObject* tup = PyTuple_New(2); | |
1042 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
1043 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
1044 | wxPyEndBlockThreads(blocked); | |
1045 | return tup; | |
1046 | } | |
1047 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
1048 | wxRect rect; | |
1049 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
1050 | bool blocked = wxPyBeginBlockThreads(); | |
1051 | wxRect* r = new wxRect(rect); | |
1052 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); | |
1053 | wxPyEndBlockThreads(blocked); | |
1054 | return val; | |
1055 | } | |
1056 | else | |
1057 | RETURN_NONE(); | |
1058 | } | |
1059 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
c370783e RD |
1060 | |
1061 | SWIGSTATICINLINE(PyObject*) | |
1062 | SWIG_From_bool(bool value) | |
1063 | { | |
1064 | PyObject *obj = value ? Py_True : Py_False; | |
1065 | Py_INCREF(obj); | |
1066 | return obj; | |
1067 | } | |
1068 | ||
1069 | ||
d55e5bfc RD |
1070 | // C++ version of Python aware wxControl |
1071 | class wxPyControl : public wxControl | |
1072 | { | |
1073 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
1074 | public: | |
1075 | wxPyControl() : wxControl() {} | |
1076 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
1077 | const wxPoint& pos = wxDefaultPosition, | |
1078 | const wxSize& size = wxDefaultSize, | |
1079 | long style = 0, | |
1080 | const wxValidator& validator=wxDefaultValidator, | |
1081 | const wxString& name = wxPyControlNameStr) | |
1082 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
1083 | ||
a5ee0656 | 1084 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d55e5bfc RD |
1085 | |
1086 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1087 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1088 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1089 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1090 | ||
1091 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1092 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1093 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1094 | ||
1095 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1096 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1097 | ||
1098 | DEC_PYCALLBACK__(InitDialog); | |
1099 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1100 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1101 | DEC_PYCALLBACK_BOOL_(Validate); | |
1102 | ||
1103 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1104 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1105 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1106 | ||
1107 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1108 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1109 | ||
a5ee0656 | 1110 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 1111 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
a5ee0656 | 1112 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
1113 | |
1114 | PYPRIVATE; | |
1115 | }; | |
1116 | ||
1117 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
1118 | ||
1119 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
1120 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
1121 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
1122 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
1123 | ||
1124 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
1125 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
1126 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
1127 | ||
1128 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
1129 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
1130 | ||
1131 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
1132 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
1133 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
1134 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
1135 | ||
1136 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1137 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1138 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1139 | ||
1140 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1141 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1142 | ||
a5ee0656 | 1143 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
d55e5bfc | 1144 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
a5ee0656 | 1145 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d55e5bfc RD |
1146 | |
1147 | ||
1148 | ||
1149 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
1150 | ||
1151 | #include <wx/generic/dragimgg.h> | |
1152 | ||
1153 | #ifdef __cplusplus | |
1154 | extern "C" { | |
1155 | #endif | |
c370783e | 1156 | static int _wrap_ButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
1157 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
1158 | return 1; | |
1159 | } | |
1160 | ||
1161 | ||
1162 | static PyObject *_wrap_ButtonNameStr_get() { | |
1163 | PyObject *pyobj; | |
1164 | ||
1165 | { | |
1166 | #if wxUSE_UNICODE | |
1167 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1168 | #else | |
1169 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1170 | #endif | |
1171 | } | |
1172 | return pyobj; | |
1173 | } | |
1174 | ||
1175 | ||
c370783e | 1176 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1177 | PyObject *resultobj; |
1178 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
1179 | int arg2 = (int) -1 ; |
1180 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1181 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
1182 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1183 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1184 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1185 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1186 | long arg6 = (long) 0 ; | |
1187 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1188 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1189 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1190 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1191 | wxButton *result; | |
1192 | bool temp3 = False ; | |
1193 | wxPoint temp4 ; | |
1194 | wxSize temp5 ; | |
1195 | bool temp8 = False ; | |
1196 | PyObject * obj0 = 0 ; | |
1197 | PyObject * obj1 = 0 ; | |
1198 | PyObject * obj2 = 0 ; | |
1199 | PyObject * obj3 = 0 ; | |
1200 | PyObject * obj4 = 0 ; | |
1201 | PyObject * obj5 = 0 ; | |
1202 | PyObject * obj6 = 0 ; | |
1203 | PyObject * obj7 = 0 ; | |
1204 | char *kwnames[] = { | |
1205 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1206 | }; | |
1207 | ||
bfddbb17 | 1208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
1209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 1211 | if (obj1) { |
c370783e | 1212 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
1213 | if (PyErr_Occurred()) SWIG_fail; |
1214 | } | |
1215 | if (obj2) { | |
1216 | { | |
1217 | arg3 = wxString_in_helper(obj2); | |
1218 | if (arg3 == NULL) SWIG_fail; | |
1219 | temp3 = True; | |
1220 | } | |
d55e5bfc RD |
1221 | } |
1222 | if (obj3) { | |
1223 | { | |
1224 | arg4 = &temp4; | |
1225 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1226 | } | |
1227 | } | |
1228 | if (obj4) { | |
1229 | { | |
1230 | arg5 = &temp5; | |
1231 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1232 | } | |
1233 | } | |
1234 | if (obj5) { | |
c370783e | 1235 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
1236 | if (PyErr_Occurred()) SWIG_fail; |
1237 | } | |
1238 | if (obj6) { | |
1239 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1240 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1241 | SWIG_fail; | |
1242 | if (arg7 == NULL) { | |
1243 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1244 | SWIG_fail; | |
1245 | } | |
1246 | } | |
1247 | if (obj7) { | |
1248 | { | |
1249 | arg8 = wxString_in_helper(obj7); | |
1250 | if (arg8 == NULL) SWIG_fail; | |
1251 | temp8 = True; | |
1252 | } | |
1253 | } | |
1254 | { | |
0439c23b | 1255 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1257 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1258 | ||
1259 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1260 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1261 | } |
b0f7404b | 1262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d55e5bfc RD |
1263 | { |
1264 | if (temp3) | |
1265 | delete arg3; | |
1266 | } | |
1267 | { | |
1268 | if (temp8) | |
1269 | delete arg8; | |
1270 | } | |
1271 | return resultobj; | |
1272 | fail: | |
1273 | { | |
1274 | if (temp3) | |
1275 | delete arg3; | |
1276 | } | |
1277 | { | |
1278 | if (temp8) | |
1279 | delete arg8; | |
1280 | } | |
1281 | return NULL; | |
1282 | } | |
1283 | ||
1284 | ||
c370783e | 1285 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1286 | PyObject *resultobj; |
1287 | wxButton *result; | |
1288 | char *kwnames[] = { | |
1289 | NULL | |
1290 | }; | |
1291 | ||
1292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1293 | { | |
0439c23b | 1294 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1296 | result = (wxButton *)new wxButton(); | |
1297 | ||
1298 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1299 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1300 | } |
b0f7404b | 1301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d55e5bfc RD |
1302 | return resultobj; |
1303 | fail: | |
1304 | return NULL; | |
1305 | } | |
1306 | ||
1307 | ||
c370783e | 1308 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1309 | PyObject *resultobj; |
1310 | wxButton *arg1 = (wxButton *) 0 ; | |
1311 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
1312 | int arg3 = (int) -1 ; |
1313 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1314 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
1315 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1316 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1317 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1318 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1319 | long arg7 = (long) 0 ; | |
1320 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1321 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1322 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1323 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1324 | bool result; | |
1325 | bool temp4 = False ; | |
1326 | wxPoint temp5 ; | |
1327 | wxSize temp6 ; | |
1328 | bool temp9 = False ; | |
1329 | PyObject * obj0 = 0 ; | |
1330 | PyObject * obj1 = 0 ; | |
1331 | PyObject * obj2 = 0 ; | |
1332 | PyObject * obj3 = 0 ; | |
1333 | PyObject * obj4 = 0 ; | |
1334 | PyObject * obj5 = 0 ; | |
1335 | PyObject * obj6 = 0 ; | |
1336 | PyObject * obj7 = 0 ; | |
1337 | PyObject * obj8 = 0 ; | |
1338 | char *kwnames[] = { | |
1339 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1340 | }; | |
1341 | ||
bfddbb17 | 1342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
1343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 1347 | if (obj2) { |
c370783e | 1348 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
1349 | if (PyErr_Occurred()) SWIG_fail; |
1350 | } | |
1351 | if (obj3) { | |
1352 | { | |
1353 | arg4 = wxString_in_helper(obj3); | |
1354 | if (arg4 == NULL) SWIG_fail; | |
1355 | temp4 = True; | |
1356 | } | |
d55e5bfc RD |
1357 | } |
1358 | if (obj4) { | |
1359 | { | |
1360 | arg5 = &temp5; | |
1361 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1362 | } | |
1363 | } | |
1364 | if (obj5) { | |
1365 | { | |
1366 | arg6 = &temp6; | |
1367 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1368 | } | |
1369 | } | |
1370 | if (obj6) { | |
c370783e | 1371 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
1372 | if (PyErr_Occurred()) SWIG_fail; |
1373 | } | |
1374 | if (obj7) { | |
1375 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1376 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1377 | SWIG_fail; | |
1378 | if (arg8 == NULL) { | |
1379 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1380 | SWIG_fail; | |
1381 | } | |
1382 | } | |
1383 | if (obj8) { | |
1384 | { | |
1385 | arg9 = wxString_in_helper(obj8); | |
1386 | if (arg9 == NULL) SWIG_fail; | |
1387 | temp9 = True; | |
1388 | } | |
1389 | } | |
1390 | { | |
1391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1392 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1393 | ||
1394 | wxPyEndAllowThreads(__tstate); | |
1395 | if (PyErr_Occurred()) SWIG_fail; | |
1396 | } | |
1397 | { | |
1398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1399 | } | |
1400 | { | |
1401 | if (temp4) | |
1402 | delete arg4; | |
1403 | } | |
1404 | { | |
1405 | if (temp9) | |
1406 | delete arg9; | |
1407 | } | |
1408 | return resultobj; | |
1409 | fail: | |
1410 | { | |
1411 | if (temp4) | |
1412 | delete arg4; | |
1413 | } | |
1414 | { | |
1415 | if (temp9) | |
1416 | delete arg9; | |
1417 | } | |
1418 | return NULL; | |
1419 | } | |
1420 | ||
1421 | ||
c370783e | 1422 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1423 | PyObject *resultobj; |
1424 | wxButton *arg1 = (wxButton *) 0 ; | |
1425 | PyObject * obj0 = 0 ; | |
1426 | char *kwnames[] = { | |
1427 | (char *) "self", NULL | |
1428 | }; | |
1429 | ||
1430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, | |
1432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1433 | { | |
1434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1435 | (arg1)->SetDefault(); | |
1436 | ||
1437 | wxPyEndAllowThreads(__tstate); | |
1438 | if (PyErr_Occurred()) SWIG_fail; | |
1439 | } | |
1440 | Py_INCREF(Py_None); resultobj = Py_None; | |
1441 | return resultobj; | |
1442 | fail: | |
1443 | return NULL; | |
1444 | } | |
1445 | ||
1446 | ||
c370783e | 1447 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1448 | PyObject *resultobj; |
1449 | wxSize result; | |
1450 | char *kwnames[] = { | |
1451 | NULL | |
1452 | }; | |
1453 | ||
1454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1455 | { | |
1456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1457 | result = wxButton::GetDefaultSize(); | |
1458 | ||
1459 | wxPyEndAllowThreads(__tstate); | |
1460 | if (PyErr_Occurred()) SWIG_fail; | |
1461 | } | |
1462 | { | |
1463 | wxSize * resultptr; | |
1464 | resultptr = new wxSize((wxSize &) result); | |
1465 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
1466 | } | |
1467 | return resultobj; | |
1468 | fail: | |
1469 | return NULL; | |
1470 | } | |
1471 | ||
1472 | ||
c370783e | 1473 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
1474 | PyObject *resultobj; |
1475 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1476 | wxVisualAttributes result; | |
1477 | PyObject * obj0 = 0 ; | |
1478 | char *kwnames[] = { | |
1479 | (char *) "variant", NULL | |
1480 | }; | |
1481 | ||
1482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1483 | if (obj0) { | |
c370783e | 1484 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
1485 | if (PyErr_Occurred()) SWIG_fail; |
1486 | } | |
1487 | { | |
0439c23b | 1488 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
1489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1490 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1491 | ||
1492 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1493 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
1494 | } |
1495 | { | |
1496 | wxVisualAttributes * resultptr; | |
1497 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1498 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1499 | } | |
1500 | return resultobj; | |
1501 | fail: | |
1502 | return NULL; | |
1503 | } | |
1504 | ||
1505 | ||
c370783e | 1506 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1507 | PyObject *obj; |
1508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1509 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1510 | Py_INCREF(obj); | |
1511 | return Py_BuildValue((char *)""); | |
1512 | } | |
c370783e | 1513 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1514 | PyObject *resultobj; |
1515 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
1516 | int arg2 = (int) -1 ; |
1517 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
1518 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
1519 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1520 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1521 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1522 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1523 | long arg6 = (long) wxBU_AUTODRAW ; | |
1524 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1525 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1526 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1527 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1528 | wxBitmapButton *result; | |
1529 | wxPoint temp4 ; | |
1530 | wxSize temp5 ; | |
1531 | bool temp8 = False ; | |
1532 | PyObject * obj0 = 0 ; | |
1533 | PyObject * obj1 = 0 ; | |
1534 | PyObject * obj2 = 0 ; | |
1535 | PyObject * obj3 = 0 ; | |
1536 | PyObject * obj4 = 0 ; | |
1537 | PyObject * obj5 = 0 ; | |
1538 | PyObject * obj6 = 0 ; | |
1539 | PyObject * obj7 = 0 ; | |
1540 | char *kwnames[] = { | |
1541 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1542 | }; | |
1543 | ||
bfddbb17 | 1544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
1545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 1547 | if (obj1) { |
c370783e | 1548 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
1549 | if (PyErr_Occurred()) SWIG_fail; |
1550 | } | |
1551 | if (obj2) { | |
1552 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1553 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 1554 | SWIG_fail; |
bfddbb17 RD |
1555 | if (arg3 == NULL) { |
1556 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1557 | SWIG_fail; | |
1558 | } | |
d55e5bfc RD |
1559 | } |
1560 | if (obj3) { | |
1561 | { | |
1562 | arg4 = &temp4; | |
1563 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1564 | } | |
1565 | } | |
1566 | if (obj4) { | |
1567 | { | |
1568 | arg5 = &temp5; | |
1569 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1570 | } | |
1571 | } | |
1572 | if (obj5) { | |
c370783e | 1573 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
1574 | if (PyErr_Occurred()) SWIG_fail; |
1575 | } | |
1576 | if (obj6) { | |
1577 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1578 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1579 | SWIG_fail; | |
1580 | if (arg7 == NULL) { | |
1581 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1582 | SWIG_fail; | |
1583 | } | |
1584 | } | |
1585 | if (obj7) { | |
1586 | { | |
1587 | arg8 = wxString_in_helper(obj7); | |
1588 | if (arg8 == NULL) SWIG_fail; | |
1589 | temp8 = True; | |
1590 | } | |
1591 | } | |
1592 | { | |
0439c23b | 1593 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1595 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1596 | ||
1597 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1598 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1599 | } |
b0f7404b | 1600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d55e5bfc RD |
1601 | { |
1602 | if (temp8) | |
1603 | delete arg8; | |
1604 | } | |
1605 | return resultobj; | |
1606 | fail: | |
1607 | { | |
1608 | if (temp8) | |
1609 | delete arg8; | |
1610 | } | |
1611 | return NULL; | |
1612 | } | |
1613 | ||
1614 | ||
c370783e | 1615 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1616 | PyObject *resultobj; |
1617 | wxBitmapButton *result; | |
1618 | char *kwnames[] = { | |
1619 | NULL | |
1620 | }; | |
1621 | ||
1622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1623 | { | |
0439c23b | 1624 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1626 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1627 | ||
1628 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1629 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1630 | } |
b0f7404b | 1631 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d55e5bfc RD |
1632 | return resultobj; |
1633 | fail: | |
1634 | return NULL; | |
1635 | } | |
1636 | ||
1637 | ||
c370783e | 1638 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1639 | PyObject *resultobj; |
1640 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1641 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
1642 | int arg3 = (int) -1 ; |
1643 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
1644 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
1645 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1646 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1647 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1648 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1649 | long arg7 = (long) wxBU_AUTODRAW ; | |
1650 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1651 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1652 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1653 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1654 | bool result; | |
1655 | wxPoint temp5 ; | |
1656 | wxSize temp6 ; | |
1657 | bool temp9 = False ; | |
1658 | PyObject * obj0 = 0 ; | |
1659 | PyObject * obj1 = 0 ; | |
1660 | PyObject * obj2 = 0 ; | |
1661 | PyObject * obj3 = 0 ; | |
1662 | PyObject * obj4 = 0 ; | |
1663 | PyObject * obj5 = 0 ; | |
1664 | PyObject * obj6 = 0 ; | |
1665 | PyObject * obj7 = 0 ; | |
1666 | PyObject * obj8 = 0 ; | |
1667 | char *kwnames[] = { | |
1668 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1669 | }; | |
1670 | ||
bfddbb17 | 1671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
1672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1674 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 1676 | if (obj2) { |
c370783e | 1677 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
1678 | if (PyErr_Occurred()) SWIG_fail; |
1679 | } | |
1680 | if (obj3) { | |
1681 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1682 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 1683 | SWIG_fail; |
bfddbb17 RD |
1684 | if (arg4 == NULL) { |
1685 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1686 | SWIG_fail; | |
1687 | } | |
d55e5bfc RD |
1688 | } |
1689 | if (obj4) { | |
1690 | { | |
1691 | arg5 = &temp5; | |
1692 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1693 | } | |
1694 | } | |
1695 | if (obj5) { | |
1696 | { | |
1697 | arg6 = &temp6; | |
1698 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1699 | } | |
1700 | } | |
1701 | if (obj6) { | |
c370783e | 1702 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
1703 | if (PyErr_Occurred()) SWIG_fail; |
1704 | } | |
1705 | if (obj7) { | |
1706 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1707 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1708 | SWIG_fail; | |
1709 | if (arg8 == NULL) { | |
1710 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1711 | SWIG_fail; | |
1712 | } | |
1713 | } | |
1714 | if (obj8) { | |
1715 | { | |
1716 | arg9 = wxString_in_helper(obj8); | |
1717 | if (arg9 == NULL) SWIG_fail; | |
1718 | temp9 = True; | |
1719 | } | |
1720 | } | |
1721 | { | |
1722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1723 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1724 | ||
1725 | wxPyEndAllowThreads(__tstate); | |
1726 | if (PyErr_Occurred()) SWIG_fail; | |
1727 | } | |
1728 | { | |
1729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1730 | } | |
1731 | { | |
1732 | if (temp9) | |
1733 | delete arg9; | |
1734 | } | |
1735 | return resultobj; | |
1736 | fail: | |
1737 | { | |
1738 | if (temp9) | |
1739 | delete arg9; | |
1740 | } | |
1741 | return NULL; | |
1742 | } | |
1743 | ||
1744 | ||
c370783e | 1745 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1746 | PyObject *resultobj; |
1747 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1748 | wxBitmap result; | |
1749 | PyObject * obj0 = 0 ; | |
1750 | char *kwnames[] = { | |
1751 | (char *) "self", NULL | |
1752 | }; | |
1753 | ||
1754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1757 | { | |
1758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1759 | result = (arg1)->GetBitmapLabel(); | |
1760 | ||
1761 | wxPyEndAllowThreads(__tstate); | |
1762 | if (PyErr_Occurred()) SWIG_fail; | |
1763 | } | |
1764 | { | |
1765 | wxBitmap * resultptr; | |
1766 | resultptr = new wxBitmap((wxBitmap &) result); | |
1767 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1768 | } | |
1769 | return resultobj; | |
1770 | fail: | |
1771 | return NULL; | |
1772 | } | |
1773 | ||
1774 | ||
c370783e | 1775 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1776 | PyObject *resultobj; |
1777 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1778 | wxBitmap result; | |
1779 | PyObject * obj0 = 0 ; | |
1780 | char *kwnames[] = { | |
1781 | (char *) "self", NULL | |
1782 | }; | |
1783 | ||
1784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1787 | { | |
1788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1789 | result = (arg1)->GetBitmapDisabled(); | |
1790 | ||
1791 | wxPyEndAllowThreads(__tstate); | |
1792 | if (PyErr_Occurred()) SWIG_fail; | |
1793 | } | |
1794 | { | |
1795 | wxBitmap * resultptr; | |
1796 | resultptr = new wxBitmap((wxBitmap &) result); | |
1797 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1798 | } | |
1799 | return resultobj; | |
1800 | fail: | |
1801 | return NULL; | |
1802 | } | |
1803 | ||
1804 | ||
c370783e | 1805 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1806 | PyObject *resultobj; |
1807 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1808 | wxBitmap result; | |
1809 | PyObject * obj0 = 0 ; | |
1810 | char *kwnames[] = { | |
1811 | (char *) "self", NULL | |
1812 | }; | |
1813 | ||
1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1817 | { | |
1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1819 | result = (arg1)->GetBitmapFocus(); | |
1820 | ||
1821 | wxPyEndAllowThreads(__tstate); | |
1822 | if (PyErr_Occurred()) SWIG_fail; | |
1823 | } | |
1824 | { | |
1825 | wxBitmap * resultptr; | |
1826 | resultptr = new wxBitmap((wxBitmap &) result); | |
1827 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1828 | } | |
1829 | return resultobj; | |
1830 | fail: | |
1831 | return NULL; | |
1832 | } | |
1833 | ||
1834 | ||
c370783e | 1835 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1836 | PyObject *resultobj; |
1837 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1838 | wxBitmap result; | |
1839 | PyObject * obj0 = 0 ; | |
1840 | char *kwnames[] = { | |
1841 | (char *) "self", NULL | |
1842 | }; | |
1843 | ||
1844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1847 | { | |
1848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1849 | result = (arg1)->GetBitmapSelected(); | |
1850 | ||
1851 | wxPyEndAllowThreads(__tstate); | |
1852 | if (PyErr_Occurred()) SWIG_fail; | |
1853 | } | |
1854 | { | |
1855 | wxBitmap * resultptr; | |
1856 | resultptr = new wxBitmap((wxBitmap &) result); | |
1857 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1858 | } | |
1859 | return resultobj; | |
1860 | fail: | |
1861 | return NULL; | |
1862 | } | |
1863 | ||
1864 | ||
c370783e | 1865 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1866 | PyObject *resultobj; |
1867 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1868 | wxBitmap *arg2 = 0 ; | |
1869 | PyObject * obj0 = 0 ; | |
1870 | PyObject * obj1 = 0 ; | |
1871 | char *kwnames[] = { | |
1872 | (char *) "self",(char *) "bitmap", NULL | |
1873 | }; | |
1874 | ||
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1878 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1879 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1880 | SWIG_fail; | |
1881 | if (arg2 == NULL) { | |
1882 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1883 | SWIG_fail; | |
1884 | } | |
1885 | { | |
1886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1887 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1888 | ||
1889 | wxPyEndAllowThreads(__tstate); | |
1890 | if (PyErr_Occurred()) SWIG_fail; | |
1891 | } | |
1892 | Py_INCREF(Py_None); resultobj = Py_None; | |
1893 | return resultobj; | |
1894 | fail: | |
1895 | return NULL; | |
1896 | } | |
1897 | ||
1898 | ||
c370783e | 1899 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1900 | PyObject *resultobj; |
1901 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1902 | wxBitmap *arg2 = 0 ; | |
1903 | PyObject * obj0 = 0 ; | |
1904 | PyObject * obj1 = 0 ; | |
1905 | char *kwnames[] = { | |
1906 | (char *) "self",(char *) "bitmap", NULL | |
1907 | }; | |
1908 | ||
1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1912 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1913 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1914 | SWIG_fail; | |
1915 | if (arg2 == NULL) { | |
1916 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1917 | SWIG_fail; | |
1918 | } | |
1919 | { | |
1920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1921 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1922 | ||
1923 | wxPyEndAllowThreads(__tstate); | |
1924 | if (PyErr_Occurred()) SWIG_fail; | |
1925 | } | |
1926 | Py_INCREF(Py_None); resultobj = Py_None; | |
1927 | return resultobj; | |
1928 | fail: | |
1929 | return NULL; | |
1930 | } | |
1931 | ||
1932 | ||
c370783e | 1933 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1934 | PyObject *resultobj; |
1935 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1936 | wxBitmap *arg2 = 0 ; | |
1937 | PyObject * obj0 = 0 ; | |
1938 | PyObject * obj1 = 0 ; | |
1939 | char *kwnames[] = { | |
1940 | (char *) "self",(char *) "bitmap", NULL | |
1941 | }; | |
1942 | ||
1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1946 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1947 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1948 | SWIG_fail; | |
1949 | if (arg2 == NULL) { | |
1950 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1951 | SWIG_fail; | |
1952 | } | |
1953 | { | |
1954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1955 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1956 | ||
1957 | wxPyEndAllowThreads(__tstate); | |
1958 | if (PyErr_Occurred()) SWIG_fail; | |
1959 | } | |
1960 | Py_INCREF(Py_None); resultobj = Py_None; | |
1961 | return resultobj; | |
1962 | fail: | |
1963 | return NULL; | |
1964 | } | |
1965 | ||
1966 | ||
c370783e | 1967 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1968 | PyObject *resultobj; |
1969 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1970 | wxBitmap *arg2 = 0 ; | |
1971 | PyObject * obj0 = 0 ; | |
1972 | PyObject * obj1 = 0 ; | |
1973 | char *kwnames[] = { | |
1974 | (char *) "self",(char *) "bitmap", NULL | |
1975 | }; | |
1976 | ||
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1980 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1981 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1982 | SWIG_fail; | |
1983 | if (arg2 == NULL) { | |
1984 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1985 | SWIG_fail; | |
1986 | } | |
1987 | { | |
1988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1989 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1990 | ||
1991 | wxPyEndAllowThreads(__tstate); | |
1992 | if (PyErr_Occurred()) SWIG_fail; | |
1993 | } | |
1994 | Py_INCREF(Py_None); resultobj = Py_None; | |
1995 | return resultobj; | |
1996 | fail: | |
1997 | return NULL; | |
1998 | } | |
1999 | ||
2000 | ||
c370783e | 2001 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2002 | PyObject *resultobj; |
2003 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2004 | int arg2 ; | |
2005 | int arg3 ; | |
2006 | PyObject * obj0 = 0 ; | |
2007 | PyObject * obj1 = 0 ; | |
2008 | PyObject * obj2 = 0 ; | |
2009 | char *kwnames[] = { | |
2010 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2011 | }; | |
2012 | ||
2013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
2015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2016 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 2017 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2018 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2019 | if (PyErr_Occurred()) SWIG_fail; |
2020 | { | |
2021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2022 | (arg1)->SetMargins(arg2,arg3); | |
2023 | ||
2024 | wxPyEndAllowThreads(__tstate); | |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
2026 | } | |
2027 | Py_INCREF(Py_None); resultobj = Py_None; | |
2028 | return resultobj; | |
2029 | fail: | |
2030 | return NULL; | |
2031 | } | |
2032 | ||
2033 | ||
c370783e | 2034 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2035 | PyObject *resultobj; |
2036 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2037 | int result; | |
2038 | PyObject * obj0 = 0 ; | |
2039 | char *kwnames[] = { | |
2040 | (char *) "self", NULL | |
2041 | }; | |
2042 | ||
2043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
2044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
2045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2046 | { | |
2047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2048 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
2049 | ||
2050 | wxPyEndAllowThreads(__tstate); | |
2051 | if (PyErr_Occurred()) SWIG_fail; | |
2052 | } | |
c370783e | 2053 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2054 | return resultobj; |
2055 | fail: | |
2056 | return NULL; | |
2057 | } | |
2058 | ||
2059 | ||
c370783e | 2060 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2061 | PyObject *resultobj; |
2062 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2063 | int result; | |
2064 | PyObject * obj0 = 0 ; | |
2065 | char *kwnames[] = { | |
2066 | (char *) "self", NULL | |
2067 | }; | |
2068 | ||
2069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
2070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
2071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2072 | { | |
2073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2074 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
2075 | ||
2076 | wxPyEndAllowThreads(__tstate); | |
2077 | if (PyErr_Occurred()) SWIG_fail; | |
2078 | } | |
c370783e | 2079 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2080 | return resultobj; |
2081 | fail: | |
2082 | return NULL; | |
2083 | } | |
2084 | ||
2085 | ||
c370783e | 2086 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2087 | PyObject *obj; |
2088 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2089 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
2090 | Py_INCREF(obj); | |
2091 | return Py_BuildValue((char *)""); | |
2092 | } | |
c370783e | 2093 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
2094 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
2095 | return 1; | |
2096 | } | |
2097 | ||
2098 | ||
2099 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
2100 | PyObject *pyobj; | |
2101 | ||
2102 | { | |
2103 | #if wxUSE_UNICODE | |
2104 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
2105 | #else | |
2106 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
2107 | #endif | |
2108 | } | |
2109 | return pyobj; | |
2110 | } | |
2111 | ||
2112 | ||
c370783e | 2113 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2114 | PyObject *resultobj; |
2115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
2116 | int arg2 = (int) -1 ; |
2117 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2118 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
2119 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2120 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2121 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2122 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2123 | long arg6 = (long) 0 ; | |
2124 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2125 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2126 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
2127 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2128 | wxCheckBox *result; | |
2129 | bool temp3 = False ; | |
2130 | wxPoint temp4 ; | |
2131 | wxSize temp5 ; | |
2132 | bool temp8 = False ; | |
2133 | PyObject * obj0 = 0 ; | |
2134 | PyObject * obj1 = 0 ; | |
2135 | PyObject * obj2 = 0 ; | |
2136 | PyObject * obj3 = 0 ; | |
2137 | PyObject * obj4 = 0 ; | |
2138 | PyObject * obj5 = 0 ; | |
2139 | PyObject * obj6 = 0 ; | |
2140 | PyObject * obj7 = 0 ; | |
2141 | char *kwnames[] = { | |
2142 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2143 | }; | |
2144 | ||
bfddbb17 | 2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
2146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 2148 | if (obj1) { |
c370783e | 2149 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
2150 | if (PyErr_Occurred()) SWIG_fail; |
2151 | } | |
2152 | if (obj2) { | |
2153 | { | |
2154 | arg3 = wxString_in_helper(obj2); | |
2155 | if (arg3 == NULL) SWIG_fail; | |
2156 | temp3 = True; | |
2157 | } | |
d55e5bfc RD |
2158 | } |
2159 | if (obj3) { | |
2160 | { | |
2161 | arg4 = &temp4; | |
2162 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2163 | } | |
2164 | } | |
2165 | if (obj4) { | |
2166 | { | |
2167 | arg5 = &temp5; | |
2168 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2169 | } | |
2170 | } | |
2171 | if (obj5) { | |
c370783e | 2172 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
2173 | if (PyErr_Occurred()) SWIG_fail; |
2174 | } | |
2175 | if (obj6) { | |
2176 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2177 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2178 | SWIG_fail; | |
2179 | if (arg7 == NULL) { | |
2180 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2181 | SWIG_fail; | |
2182 | } | |
2183 | } | |
2184 | if (obj7) { | |
2185 | { | |
2186 | arg8 = wxString_in_helper(obj7); | |
2187 | if (arg8 == NULL) SWIG_fail; | |
2188 | temp8 = True; | |
2189 | } | |
2190 | } | |
2191 | { | |
0439c23b | 2192 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2194 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2195 | ||
2196 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2197 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2198 | } |
2199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2200 | { | |
2201 | if (temp3) | |
2202 | delete arg3; | |
2203 | } | |
2204 | { | |
2205 | if (temp8) | |
2206 | delete arg8; | |
2207 | } | |
2208 | return resultobj; | |
2209 | fail: | |
2210 | { | |
2211 | if (temp3) | |
2212 | delete arg3; | |
2213 | } | |
2214 | { | |
2215 | if (temp8) | |
2216 | delete arg8; | |
2217 | } | |
2218 | return NULL; | |
2219 | } | |
2220 | ||
2221 | ||
c370783e | 2222 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2223 | PyObject *resultobj; |
2224 | wxCheckBox *result; | |
2225 | char *kwnames[] = { | |
2226 | NULL | |
2227 | }; | |
2228 | ||
2229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2230 | { | |
0439c23b | 2231 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2233 | result = (wxCheckBox *)new wxCheckBox(); | |
2234 | ||
2235 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2236 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2237 | } |
2238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2239 | return resultobj; | |
2240 | fail: | |
2241 | return NULL; | |
2242 | } | |
2243 | ||
2244 | ||
c370783e | 2245 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2246 | PyObject *resultobj; |
2247 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2248 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
2249 | int arg3 = (int) -1 ; |
2250 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2251 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
2252 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2253 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2254 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2255 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2256 | long arg7 = (long) 0 ; | |
2257 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2258 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2259 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2260 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2261 | bool result; | |
2262 | bool temp4 = False ; | |
2263 | wxPoint temp5 ; | |
2264 | wxSize temp6 ; | |
2265 | bool temp9 = False ; | |
2266 | PyObject * obj0 = 0 ; | |
2267 | PyObject * obj1 = 0 ; | |
2268 | PyObject * obj2 = 0 ; | |
2269 | PyObject * obj3 = 0 ; | |
2270 | PyObject * obj4 = 0 ; | |
2271 | PyObject * obj5 = 0 ; | |
2272 | PyObject * obj6 = 0 ; | |
2273 | PyObject * obj7 = 0 ; | |
2274 | PyObject * obj8 = 0 ; | |
2275 | char *kwnames[] = { | |
2276 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2277 | }; | |
2278 | ||
bfddbb17 | 2279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
2280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2282 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 2284 | if (obj2) { |
c370783e | 2285 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
2286 | if (PyErr_Occurred()) SWIG_fail; |
2287 | } | |
2288 | if (obj3) { | |
2289 | { | |
2290 | arg4 = wxString_in_helper(obj3); | |
2291 | if (arg4 == NULL) SWIG_fail; | |
2292 | temp4 = True; | |
2293 | } | |
d55e5bfc RD |
2294 | } |
2295 | if (obj4) { | |
2296 | { | |
2297 | arg5 = &temp5; | |
2298 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2299 | } | |
2300 | } | |
2301 | if (obj5) { | |
2302 | { | |
2303 | arg6 = &temp6; | |
2304 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2305 | } | |
2306 | } | |
2307 | if (obj6) { | |
c370783e | 2308 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
2309 | if (PyErr_Occurred()) SWIG_fail; |
2310 | } | |
2311 | if (obj7) { | |
2312 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2313 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2314 | SWIG_fail; | |
2315 | if (arg8 == NULL) { | |
2316 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2317 | SWIG_fail; | |
2318 | } | |
2319 | } | |
2320 | if (obj8) { | |
2321 | { | |
2322 | arg9 = wxString_in_helper(obj8); | |
2323 | if (arg9 == NULL) SWIG_fail; | |
2324 | temp9 = True; | |
2325 | } | |
2326 | } | |
2327 | { | |
2328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2329 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2330 | ||
2331 | wxPyEndAllowThreads(__tstate); | |
2332 | if (PyErr_Occurred()) SWIG_fail; | |
2333 | } | |
2334 | { | |
2335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2336 | } | |
2337 | { | |
2338 | if (temp4) | |
2339 | delete arg4; | |
2340 | } | |
2341 | { | |
2342 | if (temp9) | |
2343 | delete arg9; | |
2344 | } | |
2345 | return resultobj; | |
2346 | fail: | |
2347 | { | |
2348 | if (temp4) | |
2349 | delete arg4; | |
2350 | } | |
2351 | { | |
2352 | if (temp9) | |
2353 | delete arg9; | |
2354 | } | |
2355 | return NULL; | |
2356 | } | |
2357 | ||
2358 | ||
c370783e | 2359 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2360 | PyObject *resultobj; |
2361 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2362 | bool result; | |
2363 | PyObject * obj0 = 0 ; | |
2364 | char *kwnames[] = { | |
2365 | (char *) "self", NULL | |
2366 | }; | |
2367 | ||
2368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2371 | { | |
2372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2373 | result = (bool)(arg1)->GetValue(); | |
2374 | ||
2375 | wxPyEndAllowThreads(__tstate); | |
2376 | if (PyErr_Occurred()) SWIG_fail; | |
2377 | } | |
2378 | { | |
2379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2380 | } | |
2381 | return resultobj; | |
2382 | fail: | |
2383 | return NULL; | |
2384 | } | |
2385 | ||
2386 | ||
c370783e | 2387 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2388 | PyObject *resultobj; |
2389 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2390 | bool result; | |
2391 | PyObject * obj0 = 0 ; | |
2392 | char *kwnames[] = { | |
2393 | (char *) "self", NULL | |
2394 | }; | |
2395 | ||
2396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2399 | { | |
2400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2401 | result = (bool)(arg1)->IsChecked(); | |
2402 | ||
2403 | wxPyEndAllowThreads(__tstate); | |
2404 | if (PyErr_Occurred()) SWIG_fail; | |
2405 | } | |
2406 | { | |
2407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2408 | } | |
2409 | return resultobj; | |
2410 | fail: | |
2411 | return NULL; | |
2412 | } | |
2413 | ||
2414 | ||
c370783e | 2415 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2416 | PyObject *resultobj; |
2417 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2418 | bool arg2 ; | |
2419 | PyObject * obj0 = 0 ; | |
2420 | PyObject * obj1 = 0 ; | |
2421 | char *kwnames[] = { | |
2422 | (char *) "self",(char *) "state", NULL | |
2423 | }; | |
2424 | ||
2425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2428 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
2429 | if (PyErr_Occurred()) SWIG_fail; |
2430 | { | |
2431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2432 | (arg1)->SetValue(arg2); | |
2433 | ||
2434 | wxPyEndAllowThreads(__tstate); | |
2435 | if (PyErr_Occurred()) SWIG_fail; | |
2436 | } | |
2437 | Py_INCREF(Py_None); resultobj = Py_None; | |
2438 | return resultobj; | |
2439 | fail: | |
2440 | return NULL; | |
2441 | } | |
2442 | ||
2443 | ||
c370783e | 2444 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2445 | PyObject *resultobj; |
2446 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2447 | int result; | |
2448 | PyObject * obj0 = 0 ; | |
2449 | char *kwnames[] = { | |
2450 | (char *) "self", NULL | |
2451 | }; | |
2452 | ||
2453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2456 | { | |
2457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2458 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2459 | ||
2460 | wxPyEndAllowThreads(__tstate); | |
2461 | if (PyErr_Occurred()) SWIG_fail; | |
2462 | } | |
c370783e | 2463 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2464 | return resultobj; |
2465 | fail: | |
2466 | return NULL; | |
2467 | } | |
2468 | ||
2469 | ||
c370783e | 2470 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2471 | PyObject *resultobj; |
2472 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2473 | int arg2 ; | |
2474 | PyObject * obj0 = 0 ; | |
2475 | PyObject * obj1 = 0 ; | |
2476 | char *kwnames[] = { | |
2477 | (char *) "self",(char *) "state", NULL | |
2478 | }; | |
2479 | ||
2480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; | |
2481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2483 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2484 | if (PyErr_Occurred()) SWIG_fail; |
2485 | { | |
2486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2487 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2488 | ||
2489 | wxPyEndAllowThreads(__tstate); | |
2490 | if (PyErr_Occurred()) SWIG_fail; | |
2491 | } | |
2492 | Py_INCREF(Py_None); resultobj = Py_None; | |
2493 | return resultobj; | |
2494 | fail: | |
2495 | return NULL; | |
2496 | } | |
2497 | ||
2498 | ||
c370783e | 2499 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2500 | PyObject *resultobj; |
2501 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2502 | bool result; | |
2503 | PyObject * obj0 = 0 ; | |
2504 | char *kwnames[] = { | |
2505 | (char *) "self", NULL | |
2506 | }; | |
2507 | ||
2508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2511 | { | |
2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2513 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2514 | ||
2515 | wxPyEndAllowThreads(__tstate); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | { | |
2519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2520 | } | |
2521 | return resultobj; | |
2522 | fail: | |
2523 | return NULL; | |
2524 | } | |
2525 | ||
2526 | ||
c370783e | 2527 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2528 | PyObject *resultobj; |
2529 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2530 | bool result; | |
2531 | PyObject * obj0 = 0 ; | |
2532 | char *kwnames[] = { | |
2533 | (char *) "self", NULL | |
2534 | }; | |
2535 | ||
2536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2539 | { | |
2540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2541 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2542 | ||
2543 | wxPyEndAllowThreads(__tstate); | |
2544 | if (PyErr_Occurred()) SWIG_fail; | |
2545 | } | |
2546 | { | |
2547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2548 | } | |
2549 | return resultobj; | |
2550 | fail: | |
2551 | return NULL; | |
2552 | } | |
2553 | ||
2554 | ||
c370783e | 2555 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
2556 | PyObject *resultobj; |
2557 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2558 | wxVisualAttributes result; | |
2559 | PyObject * obj0 = 0 ; | |
2560 | char *kwnames[] = { | |
2561 | (char *) "variant", NULL | |
2562 | }; | |
2563 | ||
2564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2565 | if (obj0) { | |
c370783e | 2566 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
2567 | if (PyErr_Occurred()) SWIG_fail; |
2568 | } | |
2569 | { | |
0439c23b | 2570 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2572 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2573 | ||
2574 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2575 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2576 | } |
2577 | { | |
2578 | wxVisualAttributes * resultptr; | |
2579 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2580 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2581 | } | |
2582 | return resultobj; | |
2583 | fail: | |
2584 | return NULL; | |
2585 | } | |
2586 | ||
2587 | ||
c370783e | 2588 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2589 | PyObject *obj; |
2590 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2591 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2592 | Py_INCREF(obj); | |
2593 | return Py_BuildValue((char *)""); | |
2594 | } | |
c370783e | 2595 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
d55e5bfc RD |
2596 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2597 | return 1; | |
2598 | } | |
2599 | ||
2600 | ||
2601 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2602 | PyObject *pyobj; | |
2603 | ||
2604 | { | |
2605 | #if wxUSE_UNICODE | |
2606 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2607 | #else | |
2608 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2609 | #endif | |
2610 | } | |
2611 | return pyobj; | |
2612 | } | |
2613 | ||
2614 | ||
c370783e | 2615 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2616 | PyObject *resultobj; |
2617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2618 | int arg2 = (int) -1 ; | |
2619 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
2620 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2621 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2622 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2623 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
2624 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2625 | long arg6 = (long) 0 ; | |
2626 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2627 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2628 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2629 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2630 | wxChoice *result; | |
2631 | wxPoint temp3 ; | |
2632 | wxSize temp4 ; | |
2633 | bool temp5 = False ; | |
2634 | bool temp8 = False ; | |
2635 | PyObject * obj0 = 0 ; | |
2636 | PyObject * obj1 = 0 ; | |
2637 | PyObject * obj2 = 0 ; | |
2638 | PyObject * obj3 = 0 ; | |
2639 | PyObject * obj4 = 0 ; | |
2640 | PyObject * obj5 = 0 ; | |
2641 | PyObject * obj6 = 0 ; | |
2642 | PyObject * obj7 = 0 ; | |
2643 | char *kwnames[] = { | |
2644 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2645 | }; | |
2646 | ||
2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
2648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2650 | if (obj1) { | |
c370783e | 2651 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2652 | if (PyErr_Occurred()) SWIG_fail; |
2653 | } | |
2654 | if (obj2) { | |
2655 | { | |
2656 | arg3 = &temp3; | |
2657 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2658 | } | |
2659 | } | |
2660 | if (obj3) { | |
2661 | { | |
2662 | arg4 = &temp4; | |
2663 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2664 | } | |
2665 | } | |
2666 | if (obj4) { | |
2667 | { | |
2668 | if (! PySequence_Check(obj4)) { | |
2669 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2670 | SWIG_fail; | |
2671 | } | |
2672 | arg5 = new wxArrayString; | |
2673 | temp5 = True; | |
2674 | int i, len=PySequence_Length(obj4); | |
2675 | for (i=0; i<len; i++) { | |
2676 | PyObject* item = PySequence_GetItem(obj4, i); | |
2677 | #if wxUSE_UNICODE | |
2678 | PyObject* str = PyObject_Unicode(item); | |
2679 | #else | |
2680 | PyObject* str = PyObject_Str(item); | |
2681 | #endif | |
2682 | if (PyErr_Occurred()) SWIG_fail; | |
2683 | arg5->Add(Py2wxString(str)); | |
2684 | Py_DECREF(item); | |
2685 | Py_DECREF(str); | |
2686 | } | |
2687 | } | |
2688 | } | |
2689 | if (obj5) { | |
c370783e | 2690 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
2691 | if (PyErr_Occurred()) SWIG_fail; |
2692 | } | |
2693 | if (obj6) { | |
2694 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2695 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2696 | SWIG_fail; | |
2697 | if (arg7 == NULL) { | |
2698 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2699 | SWIG_fail; | |
2700 | } | |
2701 | } | |
2702 | if (obj7) { | |
2703 | { | |
2704 | arg8 = wxString_in_helper(obj7); | |
2705 | if (arg8 == NULL) SWIG_fail; | |
2706 | temp8 = True; | |
2707 | } | |
2708 | } | |
2709 | { | |
0439c23b | 2710 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2712 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2713 | ||
2714 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2715 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2716 | } |
2717 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2718 | { | |
2719 | if (temp5) delete arg5; | |
2720 | } | |
2721 | { | |
2722 | if (temp8) | |
2723 | delete arg8; | |
2724 | } | |
2725 | return resultobj; | |
2726 | fail: | |
2727 | { | |
2728 | if (temp5) delete arg5; | |
2729 | } | |
2730 | { | |
2731 | if (temp8) | |
2732 | delete arg8; | |
2733 | } | |
2734 | return NULL; | |
2735 | } | |
2736 | ||
2737 | ||
c370783e | 2738 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2739 | PyObject *resultobj; |
2740 | wxChoice *result; | |
2741 | char *kwnames[] = { | |
2742 | NULL | |
2743 | }; | |
2744 | ||
2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2746 | { | |
0439c23b | 2747 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2749 | result = (wxChoice *)new wxChoice(); | |
2750 | ||
2751 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2752 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2753 | } |
2754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2755 | return resultobj; | |
2756 | fail: | |
2757 | return NULL; | |
2758 | } | |
2759 | ||
2760 | ||
c370783e | 2761 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2762 | PyObject *resultobj; |
2763 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2764 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2765 | int arg3 = (int) -1 ; | |
2766 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2767 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2768 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2769 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2770 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2771 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2772 | long arg7 = (long) 0 ; | |
2773 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2774 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2775 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2776 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2777 | bool result; | |
2778 | wxPoint temp4 ; | |
2779 | wxSize temp5 ; | |
2780 | bool temp6 = False ; | |
2781 | bool temp9 = False ; | |
2782 | PyObject * obj0 = 0 ; | |
2783 | PyObject * obj1 = 0 ; | |
2784 | PyObject * obj2 = 0 ; | |
2785 | PyObject * obj3 = 0 ; | |
2786 | PyObject * obj4 = 0 ; | |
2787 | PyObject * obj5 = 0 ; | |
2788 | PyObject * obj6 = 0 ; | |
2789 | PyObject * obj7 = 0 ; | |
2790 | PyObject * obj8 = 0 ; | |
2791 | char *kwnames[] = { | |
2792 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2793 | }; | |
2794 | ||
2795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2800 | if (obj2) { | |
c370783e | 2801 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2802 | if (PyErr_Occurred()) SWIG_fail; |
2803 | } | |
2804 | if (obj3) { | |
2805 | { | |
2806 | arg4 = &temp4; | |
2807 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2808 | } | |
2809 | } | |
2810 | if (obj4) { | |
2811 | { | |
2812 | arg5 = &temp5; | |
2813 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2814 | } | |
2815 | } | |
2816 | if (obj5) { | |
2817 | { | |
2818 | if (! PySequence_Check(obj5)) { | |
2819 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2820 | SWIG_fail; | |
2821 | } | |
2822 | arg6 = new wxArrayString; | |
2823 | temp6 = True; | |
2824 | int i, len=PySequence_Length(obj5); | |
2825 | for (i=0; i<len; i++) { | |
2826 | PyObject* item = PySequence_GetItem(obj5, i); | |
2827 | #if wxUSE_UNICODE | |
2828 | PyObject* str = PyObject_Unicode(item); | |
2829 | #else | |
2830 | PyObject* str = PyObject_Str(item); | |
2831 | #endif | |
2832 | if (PyErr_Occurred()) SWIG_fail; | |
2833 | arg6->Add(Py2wxString(str)); | |
2834 | Py_DECREF(item); | |
2835 | Py_DECREF(str); | |
2836 | } | |
2837 | } | |
2838 | } | |
2839 | if (obj6) { | |
c370783e | 2840 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
2841 | if (PyErr_Occurred()) SWIG_fail; |
2842 | } | |
2843 | if (obj7) { | |
2844 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2845 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2846 | SWIG_fail; | |
2847 | if (arg8 == NULL) { | |
2848 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2849 | SWIG_fail; | |
2850 | } | |
2851 | } | |
2852 | if (obj8) { | |
2853 | { | |
2854 | arg9 = wxString_in_helper(obj8); | |
2855 | if (arg9 == NULL) SWIG_fail; | |
2856 | temp9 = True; | |
2857 | } | |
2858 | } | |
2859 | { | |
2860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2861 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2862 | ||
2863 | wxPyEndAllowThreads(__tstate); | |
2864 | if (PyErr_Occurred()) SWIG_fail; | |
2865 | } | |
2866 | { | |
2867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2868 | } | |
2869 | { | |
2870 | if (temp6) delete arg6; | |
2871 | } | |
2872 | { | |
2873 | if (temp9) | |
2874 | delete arg9; | |
2875 | } | |
2876 | return resultobj; | |
2877 | fail: | |
2878 | { | |
2879 | if (temp6) delete arg6; | |
2880 | } | |
2881 | { | |
2882 | if (temp9) | |
2883 | delete arg9; | |
2884 | } | |
2885 | return NULL; | |
2886 | } | |
2887 | ||
2888 | ||
c370783e | 2889 | static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2890 | PyObject *resultobj; |
2891 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2892 | int arg2 ; | |
2893 | PyObject * obj0 = 0 ; | |
2894 | PyObject * obj1 = 0 ; | |
2895 | char *kwnames[] = { | |
2896 | (char *) "self",(char *) "n", NULL | |
2897 | }; | |
2898 | ||
2899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
2900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2902 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2903 | if (PyErr_Occurred()) SWIG_fail; |
2904 | { | |
2905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2906 | (arg1)->SetSelection(arg2); | |
2907 | ||
2908 | wxPyEndAllowThreads(__tstate); | |
2909 | if (PyErr_Occurred()) SWIG_fail; | |
2910 | } | |
2911 | Py_INCREF(Py_None); resultobj = Py_None; | |
2912 | return resultobj; | |
2913 | fail: | |
2914 | return NULL; | |
2915 | } | |
2916 | ||
2917 | ||
c370783e | 2918 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2919 | PyObject *resultobj; |
2920 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2921 | wxString *arg2 = 0 ; | |
121b9a67 | 2922 | bool result; |
d55e5bfc RD |
2923 | bool temp2 = False ; |
2924 | PyObject * obj0 = 0 ; | |
2925 | PyObject * obj1 = 0 ; | |
2926 | char *kwnames[] = { | |
2927 | (char *) "self",(char *) "string", NULL | |
2928 | }; | |
2929 | ||
2930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2933 | { | |
2934 | arg2 = wxString_in_helper(obj1); | |
2935 | if (arg2 == NULL) SWIG_fail; | |
2936 | temp2 = True; | |
2937 | } | |
2938 | { | |
2939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2940 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d55e5bfc RD |
2941 | |
2942 | wxPyEndAllowThreads(__tstate); | |
2943 | if (PyErr_Occurred()) SWIG_fail; | |
2944 | } | |
121b9a67 RD |
2945 | { |
2946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2947 | } | |
d55e5bfc RD |
2948 | { |
2949 | if (temp2) | |
2950 | delete arg2; | |
2951 | } | |
2952 | return resultobj; | |
2953 | fail: | |
2954 | { | |
2955 | if (temp2) | |
2956 | delete arg2; | |
2957 | } | |
2958 | return NULL; | |
2959 | } | |
2960 | ||
2961 | ||
c370783e | 2962 | static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2963 | PyObject *resultobj; |
2964 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2965 | int arg2 ; | |
2966 | wxString *arg3 = 0 ; | |
2967 | bool temp3 = False ; | |
2968 | PyObject * obj0 = 0 ; | |
2969 | PyObject * obj1 = 0 ; | |
2970 | PyObject * obj2 = 0 ; | |
2971 | char *kwnames[] = { | |
2972 | (char *) "self",(char *) "n",(char *) "string", NULL | |
2973 | }; | |
2974 | ||
2975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2978 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2979 | if (PyErr_Occurred()) SWIG_fail; |
2980 | { | |
2981 | arg3 = wxString_in_helper(obj2); | |
2982 | if (arg3 == NULL) SWIG_fail; | |
2983 | temp3 = True; | |
2984 | } | |
2985 | { | |
2986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2987 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2988 | ||
2989 | wxPyEndAllowThreads(__tstate); | |
2990 | if (PyErr_Occurred()) SWIG_fail; | |
2991 | } | |
2992 | Py_INCREF(Py_None); resultobj = Py_None; | |
2993 | { | |
2994 | if (temp3) | |
2995 | delete arg3; | |
2996 | } | |
2997 | return resultobj; | |
2998 | fail: | |
2999 | { | |
3000 | if (temp3) | |
3001 | delete arg3; | |
3002 | } | |
3003 | return NULL; | |
3004 | } | |
3005 | ||
3006 | ||
c370783e | 3007 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
3008 | PyObject *resultobj; |
3009 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3010 | wxVisualAttributes result; | |
3011 | PyObject * obj0 = 0 ; | |
3012 | char *kwnames[] = { | |
3013 | (char *) "variant", NULL | |
3014 | }; | |
3015 | ||
3016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3017 | if (obj0) { | |
c370783e | 3018 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
3019 | if (PyErr_Occurred()) SWIG_fail; |
3020 | } | |
3021 | { | |
0439c23b | 3022 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
3023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3024 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3025 | ||
3026 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3027 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
3028 | } |
3029 | { | |
3030 | wxVisualAttributes * resultptr; | |
3031 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3032 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3033 | } | |
3034 | return resultobj; | |
3035 | fail: | |
3036 | return NULL; | |
3037 | } | |
3038 | ||
3039 | ||
c370783e | 3040 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3041 | PyObject *obj; |
3042 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3043 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
3044 | Py_INCREF(obj); | |
3045 | return Py_BuildValue((char *)""); | |
3046 | } | |
c370783e | 3047 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
3048 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
3049 | return 1; | |
3050 | } | |
3051 | ||
3052 | ||
3053 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
3054 | PyObject *pyobj; | |
3055 | ||
3056 | { | |
3057 | #if wxUSE_UNICODE | |
3058 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
3059 | #else | |
3060 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
3061 | #endif | |
3062 | } | |
3063 | return pyobj; | |
3064 | } | |
3065 | ||
3066 | ||
c370783e | 3067 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3068 | PyObject *resultobj; |
3069 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3070 | int arg2 = (int) -1 ; | |
3071 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3072 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3073 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3074 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3075 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3076 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3077 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
3078 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
3079 | long arg7 = (long) 0 ; | |
3080 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3081 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3082 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
3083 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3084 | wxComboBox *result; | |
3085 | bool temp3 = False ; | |
3086 | wxPoint temp4 ; | |
3087 | wxSize temp5 ; | |
3088 | bool temp6 = False ; | |
3089 | bool temp9 = False ; | |
3090 | PyObject * obj0 = 0 ; | |
3091 | PyObject * obj1 = 0 ; | |
3092 | PyObject * obj2 = 0 ; | |
3093 | PyObject * obj3 = 0 ; | |
3094 | PyObject * obj4 = 0 ; | |
3095 | PyObject * obj5 = 0 ; | |
3096 | PyObject * obj6 = 0 ; | |
3097 | PyObject * obj7 = 0 ; | |
3098 | PyObject * obj8 = 0 ; | |
3099 | char *kwnames[] = { | |
3100 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3101 | }; | |
3102 | ||
3103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
3105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3106 | if (obj1) { | |
c370783e | 3107 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3108 | if (PyErr_Occurred()) SWIG_fail; |
3109 | } | |
3110 | if (obj2) { | |
3111 | { | |
3112 | arg3 = wxString_in_helper(obj2); | |
3113 | if (arg3 == NULL) SWIG_fail; | |
3114 | temp3 = True; | |
3115 | } | |
3116 | } | |
3117 | if (obj3) { | |
3118 | { | |
3119 | arg4 = &temp4; | |
3120 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3121 | } | |
3122 | } | |
3123 | if (obj4) { | |
3124 | { | |
3125 | arg5 = &temp5; | |
3126 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3127 | } | |
3128 | } | |
3129 | if (obj5) { | |
3130 | { | |
3131 | if (! PySequence_Check(obj5)) { | |
3132 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3133 | SWIG_fail; | |
3134 | } | |
3135 | arg6 = new wxArrayString; | |
3136 | temp6 = True; | |
3137 | int i, len=PySequence_Length(obj5); | |
3138 | for (i=0; i<len; i++) { | |
3139 | PyObject* item = PySequence_GetItem(obj5, i); | |
3140 | #if wxUSE_UNICODE | |
3141 | PyObject* str = PyObject_Unicode(item); | |
3142 | #else | |
3143 | PyObject* str = PyObject_Str(item); | |
3144 | #endif | |
3145 | if (PyErr_Occurred()) SWIG_fail; | |
3146 | arg6->Add(Py2wxString(str)); | |
3147 | Py_DECREF(item); | |
3148 | Py_DECREF(str); | |
3149 | } | |
3150 | } | |
3151 | } | |
3152 | if (obj6) { | |
c370783e | 3153 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
3154 | if (PyErr_Occurred()) SWIG_fail; |
3155 | } | |
3156 | if (obj7) { | |
3157 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
3158 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3159 | SWIG_fail; | |
3160 | if (arg8 == NULL) { | |
3161 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3162 | SWIG_fail; | |
3163 | } | |
3164 | } | |
3165 | if (obj8) { | |
3166 | { | |
3167 | arg9 = wxString_in_helper(obj8); | |
3168 | if (arg9 == NULL) SWIG_fail; | |
3169 | temp9 = True; | |
3170 | } | |
3171 | } | |
3172 | { | |
0439c23b | 3173 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3175 | 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); | |
3176 | ||
3177 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3178 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3179 | } |
3180 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
3181 | { | |
3182 | if (temp3) | |
3183 | delete arg3; | |
3184 | } | |
3185 | { | |
3186 | if (temp6) delete arg6; | |
3187 | } | |
3188 | { | |
3189 | if (temp9) | |
3190 | delete arg9; | |
3191 | } | |
3192 | return resultobj; | |
3193 | fail: | |
3194 | { | |
3195 | if (temp3) | |
3196 | delete arg3; | |
3197 | } | |
3198 | { | |
3199 | if (temp6) delete arg6; | |
3200 | } | |
3201 | { | |
3202 | if (temp9) | |
3203 | delete arg9; | |
3204 | } | |
3205 | return NULL; | |
3206 | } | |
3207 | ||
3208 | ||
c370783e | 3209 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3210 | PyObject *resultobj; |
3211 | wxComboBox *result; | |
3212 | char *kwnames[] = { | |
3213 | NULL | |
3214 | }; | |
3215 | ||
3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3217 | { | |
0439c23b | 3218 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3220 | result = (wxComboBox *)new wxComboBox(); | |
3221 | ||
3222 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3223 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3224 | } |
3225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
3226 | return resultobj; | |
3227 | fail: | |
3228 | return NULL; | |
3229 | } | |
3230 | ||
3231 | ||
c370783e | 3232 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3233 | PyObject *resultobj; |
3234 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3235 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3236 | int arg3 = (int) -1 ; | |
3237 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3238 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3239 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3240 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3241 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3242 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3243 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
3244 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3245 | long arg8 = (long) 0 ; | |
3246 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3247 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
3248 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
3249 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
3250 | bool result; | |
3251 | bool temp4 = False ; | |
3252 | wxPoint temp5 ; | |
3253 | wxSize temp6 ; | |
3254 | bool temp7 = False ; | |
3255 | bool temp10 = False ; | |
3256 | PyObject * obj0 = 0 ; | |
3257 | PyObject * obj1 = 0 ; | |
3258 | PyObject * obj2 = 0 ; | |
3259 | PyObject * obj3 = 0 ; | |
3260 | PyObject * obj4 = 0 ; | |
3261 | PyObject * obj5 = 0 ; | |
3262 | PyObject * obj6 = 0 ; | |
3263 | PyObject * obj7 = 0 ; | |
3264 | PyObject * obj8 = 0 ; | |
3265 | PyObject * obj9 = 0 ; | |
3266 | char *kwnames[] = { | |
3267 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3268 | }; | |
3269 | ||
3270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
3271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3273 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3275 | if (obj2) { | |
c370783e | 3276 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3277 | if (PyErr_Occurred()) SWIG_fail; |
3278 | } | |
3279 | if (obj3) { | |
3280 | { | |
3281 | arg4 = wxString_in_helper(obj3); | |
3282 | if (arg4 == NULL) SWIG_fail; | |
3283 | temp4 = True; | |
3284 | } | |
3285 | } | |
3286 | if (obj4) { | |
3287 | { | |
3288 | arg5 = &temp5; | |
3289 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3290 | } | |
3291 | } | |
3292 | if (obj5) { | |
3293 | { | |
3294 | arg6 = &temp6; | |
3295 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3296 | } | |
3297 | } | |
3298 | if (obj6) { | |
3299 | { | |
3300 | if (! PySequence_Check(obj6)) { | |
3301 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3302 | SWIG_fail; | |
3303 | } | |
3304 | arg7 = new wxArrayString; | |
3305 | temp7 = True; | |
3306 | int i, len=PySequence_Length(obj6); | |
3307 | for (i=0; i<len; i++) { | |
3308 | PyObject* item = PySequence_GetItem(obj6, i); | |
3309 | #if wxUSE_UNICODE | |
3310 | PyObject* str = PyObject_Unicode(item); | |
3311 | #else | |
3312 | PyObject* str = PyObject_Str(item); | |
3313 | #endif | |
3314 | if (PyErr_Occurred()) SWIG_fail; | |
3315 | arg7->Add(Py2wxString(str)); | |
3316 | Py_DECREF(item); | |
3317 | Py_DECREF(str); | |
3318 | } | |
3319 | } | |
3320 | } | |
3321 | if (obj7) { | |
c370783e | 3322 | arg8 = (long)SWIG_As_long(obj7); |
d55e5bfc RD |
3323 | if (PyErr_Occurred()) SWIG_fail; |
3324 | } | |
3325 | if (obj8) { | |
3326 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
3327 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3328 | SWIG_fail; | |
3329 | if (arg9 == NULL) { | |
3330 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3331 | SWIG_fail; | |
3332 | } | |
3333 | } | |
3334 | if (obj9) { | |
3335 | { | |
3336 | arg10 = wxString_in_helper(obj9); | |
3337 | if (arg10 == NULL) SWIG_fail; | |
3338 | temp10 = True; | |
3339 | } | |
3340 | } | |
3341 | { | |
3342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3343 | 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); | |
3344 | ||
3345 | wxPyEndAllowThreads(__tstate); | |
3346 | if (PyErr_Occurred()) SWIG_fail; | |
3347 | } | |
3348 | { | |
3349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3350 | } | |
3351 | { | |
3352 | if (temp4) | |
3353 | delete arg4; | |
3354 | } | |
3355 | { | |
3356 | if (temp7) delete arg7; | |
3357 | } | |
3358 | { | |
3359 | if (temp10) | |
3360 | delete arg10; | |
3361 | } | |
3362 | return resultobj; | |
3363 | fail: | |
3364 | { | |
3365 | if (temp4) | |
3366 | delete arg4; | |
3367 | } | |
3368 | { | |
3369 | if (temp7) delete arg7; | |
3370 | } | |
3371 | { | |
3372 | if (temp10) | |
3373 | delete arg10; | |
3374 | } | |
3375 | return NULL; | |
3376 | } | |
3377 | ||
3378 | ||
c370783e | 3379 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3380 | PyObject *resultobj; |
3381 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3382 | wxString result; | |
3383 | PyObject * obj0 = 0 ; | |
3384 | char *kwnames[] = { | |
3385 | (char *) "self", NULL | |
3386 | }; | |
3387 | ||
3388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
3389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3391 | { | |
3392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3393 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3394 | ||
3395 | wxPyEndAllowThreads(__tstate); | |
3396 | if (PyErr_Occurred()) SWIG_fail; | |
3397 | } | |
3398 | { | |
3399 | #if wxUSE_UNICODE | |
3400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3401 | #else | |
3402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3403 | #endif | |
3404 | } | |
3405 | return resultobj; | |
3406 | fail: | |
3407 | return NULL; | |
3408 | } | |
3409 | ||
3410 | ||
c370783e | 3411 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3412 | PyObject *resultobj; |
3413 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3414 | wxString *arg2 = 0 ; | |
3415 | bool temp2 = False ; | |
3416 | PyObject * obj0 = 0 ; | |
3417 | PyObject * obj1 = 0 ; | |
3418 | char *kwnames[] = { | |
3419 | (char *) "self",(char *) "value", NULL | |
3420 | }; | |
3421 | ||
3422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3425 | { | |
3426 | arg2 = wxString_in_helper(obj1); | |
3427 | if (arg2 == NULL) SWIG_fail; | |
3428 | temp2 = True; | |
3429 | } | |
3430 | { | |
3431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3432 | (arg1)->SetValue((wxString const &)*arg2); | |
3433 | ||
3434 | wxPyEndAllowThreads(__tstate); | |
3435 | if (PyErr_Occurred()) SWIG_fail; | |
3436 | } | |
3437 | Py_INCREF(Py_None); resultobj = Py_None; | |
3438 | { | |
3439 | if (temp2) | |
3440 | delete arg2; | |
3441 | } | |
3442 | return resultobj; | |
3443 | fail: | |
3444 | { | |
3445 | if (temp2) | |
3446 | delete arg2; | |
3447 | } | |
3448 | return NULL; | |
3449 | } | |
3450 | ||
3451 | ||
c370783e | 3452 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3453 | PyObject *resultobj; |
3454 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3455 | PyObject * obj0 = 0 ; | |
3456 | char *kwnames[] = { | |
3457 | (char *) "self", NULL | |
3458 | }; | |
3459 | ||
3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
3461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3463 | { | |
3464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3465 | (arg1)->Copy(); | |
3466 | ||
3467 | wxPyEndAllowThreads(__tstate); | |
3468 | if (PyErr_Occurred()) SWIG_fail; | |
3469 | } | |
3470 | Py_INCREF(Py_None); resultobj = Py_None; | |
3471 | return resultobj; | |
3472 | fail: | |
3473 | return NULL; | |
3474 | } | |
3475 | ||
3476 | ||
c370783e | 3477 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3478 | PyObject *resultobj; |
3479 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3480 | PyObject * obj0 = 0 ; | |
3481 | char *kwnames[] = { | |
3482 | (char *) "self", NULL | |
3483 | }; | |
3484 | ||
3485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3488 | { | |
3489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3490 | (arg1)->Cut(); | |
3491 | ||
3492 | wxPyEndAllowThreads(__tstate); | |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
3494 | } | |
3495 | Py_INCREF(Py_None); resultobj = Py_None; | |
3496 | return resultobj; | |
3497 | fail: | |
3498 | return NULL; | |
3499 | } | |
3500 | ||
3501 | ||
c370783e | 3502 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3503 | PyObject *resultobj; |
3504 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3505 | PyObject * obj0 = 0 ; | |
3506 | char *kwnames[] = { | |
3507 | (char *) "self", NULL | |
3508 | }; | |
3509 | ||
3510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3513 | { | |
3514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3515 | (arg1)->Paste(); | |
3516 | ||
3517 | wxPyEndAllowThreads(__tstate); | |
3518 | if (PyErr_Occurred()) SWIG_fail; | |
3519 | } | |
3520 | Py_INCREF(Py_None); resultobj = Py_None; | |
3521 | return resultobj; | |
3522 | fail: | |
3523 | return NULL; | |
3524 | } | |
3525 | ||
3526 | ||
c370783e | 3527 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3528 | PyObject *resultobj; |
3529 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3530 | long arg2 ; | |
3531 | PyObject * obj0 = 0 ; | |
3532 | PyObject * obj1 = 0 ; | |
3533 | char *kwnames[] = { | |
3534 | (char *) "self",(char *) "pos", NULL | |
3535 | }; | |
3536 | ||
3537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
3538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3540 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
3541 | if (PyErr_Occurred()) SWIG_fail; |
3542 | { | |
3543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3544 | (arg1)->SetInsertionPoint(arg2); | |
3545 | ||
3546 | wxPyEndAllowThreads(__tstate); | |
3547 | if (PyErr_Occurred()) SWIG_fail; | |
3548 | } | |
3549 | Py_INCREF(Py_None); resultobj = Py_None; | |
3550 | return resultobj; | |
3551 | fail: | |
3552 | return NULL; | |
3553 | } | |
3554 | ||
3555 | ||
c370783e | 3556 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3557 | PyObject *resultobj; |
3558 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3559 | long result; | |
3560 | PyObject * obj0 = 0 ; | |
3561 | char *kwnames[] = { | |
3562 | (char *) "self", NULL | |
3563 | }; | |
3564 | ||
3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3568 | { | |
3569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3570 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3571 | ||
3572 | wxPyEndAllowThreads(__tstate); | |
3573 | if (PyErr_Occurred()) SWIG_fail; | |
3574 | } | |
c370783e | 3575 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
3576 | return resultobj; |
3577 | fail: | |
3578 | return NULL; | |
3579 | } | |
3580 | ||
3581 | ||
c370783e | 3582 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3583 | PyObject *resultobj; |
3584 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3585 | long result; | |
3586 | PyObject * obj0 = 0 ; | |
3587 | char *kwnames[] = { | |
3588 | (char *) "self", NULL | |
3589 | }; | |
3590 | ||
3591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3594 | { | |
3595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3596 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3597 | ||
3598 | wxPyEndAllowThreads(__tstate); | |
3599 | if (PyErr_Occurred()) SWIG_fail; | |
3600 | } | |
c370783e | 3601 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
3602 | return resultobj; |
3603 | fail: | |
3604 | return NULL; | |
3605 | } | |
3606 | ||
3607 | ||
c370783e | 3608 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3609 | PyObject *resultobj; |
3610 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3611 | long arg2 ; | |
3612 | long arg3 ; | |
3613 | wxString *arg4 = 0 ; | |
3614 | bool temp4 = False ; | |
3615 | PyObject * obj0 = 0 ; | |
3616 | PyObject * obj1 = 0 ; | |
3617 | PyObject * obj2 = 0 ; | |
3618 | PyObject * obj3 = 0 ; | |
3619 | char *kwnames[] = { | |
3620 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3621 | }; | |
3622 | ||
3623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3626 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3627 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3628 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3629 | if (PyErr_Occurred()) SWIG_fail; |
3630 | { | |
3631 | arg4 = wxString_in_helper(obj3); | |
3632 | if (arg4 == NULL) SWIG_fail; | |
3633 | temp4 = True; | |
3634 | } | |
3635 | { | |
3636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3637 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3638 | ||
3639 | wxPyEndAllowThreads(__tstate); | |
3640 | if (PyErr_Occurred()) SWIG_fail; | |
3641 | } | |
3642 | Py_INCREF(Py_None); resultobj = Py_None; | |
3643 | { | |
3644 | if (temp4) | |
3645 | delete arg4; | |
3646 | } | |
3647 | return resultobj; | |
3648 | fail: | |
3649 | { | |
3650 | if (temp4) | |
3651 | delete arg4; | |
3652 | } | |
3653 | return NULL; | |
3654 | } | |
3655 | ||
3656 | ||
c370783e | 3657 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3658 | PyObject *resultobj; |
3659 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3660 | int arg2 ; | |
3661 | PyObject * obj0 = 0 ; | |
3662 | PyObject * obj1 = 0 ; | |
3663 | char *kwnames[] = { | |
3664 | (char *) "self",(char *) "n", NULL | |
3665 | }; | |
3666 | ||
3667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
3668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3670 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3671 | if (PyErr_Occurred()) SWIG_fail; |
3672 | { | |
3673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3674 | (arg1)->SetSelection(arg2); | |
3675 | ||
3676 | wxPyEndAllowThreads(__tstate); | |
3677 | if (PyErr_Occurred()) SWIG_fail; | |
3678 | } | |
3679 | Py_INCREF(Py_None); resultobj = Py_None; | |
3680 | return resultobj; | |
3681 | fail: | |
3682 | return NULL; | |
3683 | } | |
3684 | ||
3685 | ||
c370783e | 3686 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3687 | PyObject *resultobj; |
3688 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3689 | long arg2 ; | |
3690 | long arg3 ; | |
3691 | PyObject * obj0 = 0 ; | |
3692 | PyObject * obj1 = 0 ; | |
3693 | PyObject * obj2 = 0 ; | |
3694 | char *kwnames[] = { | |
3695 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3696 | }; | |
3697 | ||
3698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3701 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3702 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3703 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3704 | if (PyErr_Occurred()) SWIG_fail; |
3705 | { | |
3706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3707 | (arg1)->SetSelection(arg2,arg3); | |
3708 | ||
3709 | wxPyEndAllowThreads(__tstate); | |
3710 | if (PyErr_Occurred()) SWIG_fail; | |
3711 | } | |
3712 | Py_INCREF(Py_None); resultobj = Py_None; | |
3713 | return resultobj; | |
3714 | fail: | |
3715 | return NULL; | |
3716 | } | |
3717 | ||
3718 | ||
c370783e | 3719 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
3720 | PyObject *resultobj; |
3721 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3722 | wxString *arg2 = 0 ; | |
3723 | bool result; | |
3724 | bool temp2 = False ; | |
3725 | PyObject * obj0 = 0 ; | |
3726 | PyObject * obj1 = 0 ; | |
3727 | char *kwnames[] = { | |
3728 | (char *) "self",(char *) "string", NULL | |
3729 | }; | |
3730 | ||
3731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3734 | { | |
3735 | arg2 = wxString_in_helper(obj1); | |
3736 | if (arg2 == NULL) SWIG_fail; | |
3737 | temp2 = True; | |
3738 | } | |
3739 | { | |
3740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3741 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3742 | ||
3743 | wxPyEndAllowThreads(__tstate); | |
3744 | if (PyErr_Occurred()) SWIG_fail; | |
3745 | } | |
3746 | { | |
3747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3748 | } | |
3749 | { | |
3750 | if (temp2) | |
3751 | delete arg2; | |
3752 | } | |
3753 | return resultobj; | |
3754 | fail: | |
3755 | { | |
3756 | if (temp2) | |
3757 | delete arg2; | |
3758 | } | |
3759 | return NULL; | |
3760 | } | |
3761 | ||
3762 | ||
c370783e | 3763 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
3764 | PyObject *resultobj; |
3765 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3766 | int arg2 ; | |
3767 | wxString *arg3 = 0 ; | |
3768 | bool temp3 = False ; | |
3769 | PyObject * obj0 = 0 ; | |
3770 | PyObject * obj1 = 0 ; | |
3771 | PyObject * obj2 = 0 ; | |
3772 | char *kwnames[] = { | |
3773 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3774 | }; | |
3775 | ||
3776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3779 | arg2 = (int)SWIG_As_int(obj1); |
121b9a67 RD |
3780 | if (PyErr_Occurred()) SWIG_fail; |
3781 | { | |
3782 | arg3 = wxString_in_helper(obj2); | |
3783 | if (arg3 == NULL) SWIG_fail; | |
3784 | temp3 = True; | |
3785 | } | |
3786 | { | |
3787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3788 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3789 | ||
3790 | wxPyEndAllowThreads(__tstate); | |
3791 | if (PyErr_Occurred()) SWIG_fail; | |
3792 | } | |
3793 | Py_INCREF(Py_None); resultobj = Py_None; | |
3794 | { | |
3795 | if (temp3) | |
3796 | delete arg3; | |
3797 | } | |
3798 | return resultobj; | |
3799 | fail: | |
3800 | { | |
3801 | if (temp3) | |
3802 | delete arg3; | |
3803 | } | |
3804 | return NULL; | |
3805 | } | |
3806 | ||
3807 | ||
c370783e | 3808 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3809 | PyObject *resultobj; |
3810 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3811 | bool arg2 ; | |
3812 | PyObject * obj0 = 0 ; | |
3813 | PyObject * obj1 = 0 ; | |
3814 | char *kwnames[] = { | |
3815 | (char *) "self",(char *) "editable", NULL | |
3816 | }; | |
3817 | ||
3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3821 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
3822 | if (PyErr_Occurred()) SWIG_fail; |
3823 | { | |
3824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3825 | (arg1)->SetEditable(arg2); | |
3826 | ||
3827 | wxPyEndAllowThreads(__tstate); | |
3828 | if (PyErr_Occurred()) SWIG_fail; | |
3829 | } | |
3830 | Py_INCREF(Py_None); resultobj = Py_None; | |
3831 | return resultobj; | |
3832 | fail: | |
3833 | return NULL; | |
3834 | } | |
3835 | ||
3836 | ||
c370783e | 3837 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3838 | PyObject *resultobj; |
3839 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3840 | PyObject * obj0 = 0 ; | |
3841 | char *kwnames[] = { | |
3842 | (char *) "self", NULL | |
3843 | }; | |
3844 | ||
3845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3848 | { | |
3849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3850 | (arg1)->SetInsertionPointEnd(); | |
3851 | ||
3852 | wxPyEndAllowThreads(__tstate); | |
3853 | if (PyErr_Occurred()) SWIG_fail; | |
3854 | } | |
3855 | Py_INCREF(Py_None); resultobj = Py_None; | |
3856 | return resultobj; | |
3857 | fail: | |
3858 | return NULL; | |
3859 | } | |
3860 | ||
3861 | ||
c370783e | 3862 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3863 | PyObject *resultobj; |
3864 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3865 | long arg2 ; | |
3866 | long arg3 ; | |
3867 | PyObject * obj0 = 0 ; | |
3868 | PyObject * obj1 = 0 ; | |
3869 | PyObject * obj2 = 0 ; | |
3870 | char *kwnames[] = { | |
3871 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3872 | }; | |
3873 | ||
3874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3877 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3878 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3879 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3880 | if (PyErr_Occurred()) SWIG_fail; |
3881 | { | |
3882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3883 | (arg1)->Remove(arg2,arg3); | |
3884 | ||
3885 | wxPyEndAllowThreads(__tstate); | |
3886 | if (PyErr_Occurred()) SWIG_fail; | |
3887 | } | |
3888 | Py_INCREF(Py_None); resultobj = Py_None; | |
3889 | return resultobj; | |
3890 | fail: | |
3891 | return NULL; | |
3892 | } | |
3893 | ||
3894 | ||
c370783e | 3895 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
3896 | PyObject *resultobj; |
3897 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3898 | wxVisualAttributes result; | |
3899 | PyObject * obj0 = 0 ; | |
3900 | char *kwnames[] = { | |
3901 | (char *) "variant", NULL | |
3902 | }; | |
3903 | ||
3904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3905 | if (obj0) { | |
c370783e | 3906 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
3907 | if (PyErr_Occurred()) SWIG_fail; |
3908 | } | |
3909 | { | |
0439c23b | 3910 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3912 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3913 | ||
3914 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3915 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
3916 | } |
3917 | { | |
3918 | wxVisualAttributes * resultptr; | |
3919 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3920 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3921 | } | |
3922 | return resultobj; | |
3923 | fail: | |
3924 | return NULL; | |
3925 | } | |
3926 | ||
3927 | ||
c370783e | 3928 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3929 | PyObject *obj; |
3930 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3931 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3932 | Py_INCREF(obj); | |
3933 | return Py_BuildValue((char *)""); | |
3934 | } | |
c370783e | 3935 | static int _wrap_GaugeNameStr_set(PyObject *) { |
d55e5bfc RD |
3936 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3937 | return 1; | |
3938 | } | |
3939 | ||
3940 | ||
3941 | static PyObject *_wrap_GaugeNameStr_get() { | |
3942 | PyObject *pyobj; | |
3943 | ||
3944 | { | |
3945 | #if wxUSE_UNICODE | |
3946 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3947 | #else | |
3948 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3949 | #endif | |
3950 | } | |
3951 | return pyobj; | |
3952 | } | |
3953 | ||
3954 | ||
c370783e | 3955 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3956 | PyObject *resultobj; |
3957 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
3958 | int arg2 = (int) -1 ; |
3959 | int arg3 = (int) 100 ; | |
d55e5bfc RD |
3960 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3961 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3962 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3963 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3964 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3965 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3966 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3967 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3968 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3969 | wxGauge *result; | |
3970 | wxPoint temp4 ; | |
3971 | wxSize temp5 ; | |
3972 | bool temp8 = False ; | |
3973 | PyObject * obj0 = 0 ; | |
3974 | PyObject * obj1 = 0 ; | |
3975 | PyObject * obj2 = 0 ; | |
3976 | PyObject * obj3 = 0 ; | |
3977 | PyObject * obj4 = 0 ; | |
3978 | PyObject * obj5 = 0 ; | |
3979 | PyObject * obj6 = 0 ; | |
3980 | PyObject * obj7 = 0 ; | |
3981 | char *kwnames[] = { | |
3982 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3983 | }; | |
3984 | ||
bfddbb17 | 3985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
3986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 3988 | if (obj1) { |
c370783e | 3989 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
3990 | if (PyErr_Occurred()) SWIG_fail; |
3991 | } | |
3992 | if (obj2) { | |
c370783e | 3993 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
3994 | if (PyErr_Occurred()) SWIG_fail; |
3995 | } | |
d55e5bfc RD |
3996 | if (obj3) { |
3997 | { | |
3998 | arg4 = &temp4; | |
3999 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4000 | } | |
4001 | } | |
4002 | if (obj4) { | |
4003 | { | |
4004 | arg5 = &temp5; | |
4005 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4006 | } | |
4007 | } | |
4008 | if (obj5) { | |
c370783e | 4009 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
4010 | if (PyErr_Occurred()) SWIG_fail; |
4011 | } | |
4012 | if (obj6) { | |
4013 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
4014 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4015 | SWIG_fail; | |
4016 | if (arg7 == NULL) { | |
4017 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4018 | SWIG_fail; | |
4019 | } | |
4020 | } | |
4021 | if (obj7) { | |
4022 | { | |
4023 | arg8 = wxString_in_helper(obj7); | |
4024 | if (arg8 == NULL) SWIG_fail; | |
4025 | temp8 = True; | |
4026 | } | |
4027 | } | |
4028 | { | |
0439c23b | 4029 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4031 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4032 | ||
4033 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4034 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4035 | } |
4036 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
4037 | { | |
4038 | if (temp8) | |
4039 | delete arg8; | |
4040 | } | |
4041 | return resultobj; | |
4042 | fail: | |
4043 | { | |
4044 | if (temp8) | |
4045 | delete arg8; | |
4046 | } | |
4047 | return NULL; | |
4048 | } | |
4049 | ||
4050 | ||
c370783e | 4051 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4052 | PyObject *resultobj; |
4053 | wxGauge *result; | |
4054 | char *kwnames[] = { | |
4055 | NULL | |
4056 | }; | |
4057 | ||
4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
4059 | { | |
0439c23b | 4060 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4062 | result = (wxGauge *)new wxGauge(); | |
4063 | ||
4064 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4065 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4066 | } |
4067 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
4068 | return resultobj; | |
4069 | fail: | |
4070 | return NULL; | |
4071 | } | |
4072 | ||
4073 | ||
c370783e | 4074 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4075 | PyObject *resultobj; |
4076 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4077 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
4078 | int arg3 = (int) -1 ; |
4079 | int arg4 = (int) 100 ; | |
d55e5bfc RD |
4080 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4081 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4082 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4083 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4084 | long arg7 = (long) wxGA_HORIZONTAL ; | |
4085 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4086 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4087 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
4088 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4089 | bool result; | |
4090 | wxPoint temp5 ; | |
4091 | wxSize temp6 ; | |
4092 | bool temp9 = False ; | |
4093 | PyObject * obj0 = 0 ; | |
4094 | PyObject * obj1 = 0 ; | |
4095 | PyObject * obj2 = 0 ; | |
4096 | PyObject * obj3 = 0 ; | |
4097 | PyObject * obj4 = 0 ; | |
4098 | PyObject * obj5 = 0 ; | |
4099 | PyObject * obj6 = 0 ; | |
4100 | PyObject * obj7 = 0 ; | |
4101 | PyObject * obj8 = 0 ; | |
4102 | char *kwnames[] = { | |
4103 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4104 | }; | |
4105 | ||
bfddbb17 | 4106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
4107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4109 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 4111 | if (obj2) { |
c370783e | 4112 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
4113 | if (PyErr_Occurred()) SWIG_fail; |
4114 | } | |
4115 | if (obj3) { | |
c370783e | 4116 | arg4 = (int)SWIG_As_int(obj3); |
bfddbb17 RD |
4117 | if (PyErr_Occurred()) SWIG_fail; |
4118 | } | |
d55e5bfc RD |
4119 | if (obj4) { |
4120 | { | |
4121 | arg5 = &temp5; | |
4122 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4123 | } | |
4124 | } | |
4125 | if (obj5) { | |
4126 | { | |
4127 | arg6 = &temp6; | |
4128 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4129 | } | |
4130 | } | |
4131 | if (obj6) { | |
c370783e | 4132 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
4133 | if (PyErr_Occurred()) SWIG_fail; |
4134 | } | |
4135 | if (obj7) { | |
4136 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
4137 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4138 | SWIG_fail; | |
4139 | if (arg8 == NULL) { | |
4140 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4141 | SWIG_fail; | |
4142 | } | |
4143 | } | |
4144 | if (obj8) { | |
4145 | { | |
4146 | arg9 = wxString_in_helper(obj8); | |
4147 | if (arg9 == NULL) SWIG_fail; | |
4148 | temp9 = True; | |
4149 | } | |
4150 | } | |
4151 | { | |
4152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4153 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4154 | ||
4155 | wxPyEndAllowThreads(__tstate); | |
4156 | if (PyErr_Occurred()) SWIG_fail; | |
4157 | } | |
4158 | { | |
4159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4160 | } | |
4161 | { | |
4162 | if (temp9) | |
4163 | delete arg9; | |
4164 | } | |
4165 | return resultobj; | |
4166 | fail: | |
4167 | { | |
4168 | if (temp9) | |
4169 | delete arg9; | |
4170 | } | |
4171 | return NULL; | |
4172 | } | |
4173 | ||
4174 | ||
c370783e | 4175 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4176 | PyObject *resultobj; |
4177 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4178 | int arg2 ; | |
4179 | PyObject * obj0 = 0 ; | |
4180 | PyObject * obj1 = 0 ; | |
4181 | char *kwnames[] = { | |
4182 | (char *) "self",(char *) "range", NULL | |
4183 | }; | |
4184 | ||
4185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
4186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4188 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4189 | if (PyErr_Occurred()) SWIG_fail; |
4190 | { | |
4191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4192 | (arg1)->SetRange(arg2); | |
4193 | ||
4194 | wxPyEndAllowThreads(__tstate); | |
4195 | if (PyErr_Occurred()) SWIG_fail; | |
4196 | } | |
4197 | Py_INCREF(Py_None); resultobj = Py_None; | |
4198 | return resultobj; | |
4199 | fail: | |
4200 | return NULL; | |
4201 | } | |
4202 | ||
4203 | ||
c370783e | 4204 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4205 | PyObject *resultobj; |
4206 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4207 | int result; | |
4208 | PyObject * obj0 = 0 ; | |
4209 | char *kwnames[] = { | |
4210 | (char *) "self", NULL | |
4211 | }; | |
4212 | ||
4213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
4214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4216 | { | |
4217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4218 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4219 | ||
4220 | wxPyEndAllowThreads(__tstate); | |
4221 | if (PyErr_Occurred()) SWIG_fail; | |
4222 | } | |
c370783e | 4223 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4224 | return resultobj; |
4225 | fail: | |
4226 | return NULL; | |
4227 | } | |
4228 | ||
4229 | ||
c370783e | 4230 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4231 | PyObject *resultobj; |
4232 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4233 | int arg2 ; | |
4234 | PyObject * obj0 = 0 ; | |
4235 | PyObject * obj1 = 0 ; | |
4236 | char *kwnames[] = { | |
4237 | (char *) "self",(char *) "pos", NULL | |
4238 | }; | |
4239 | ||
4240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
4241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4243 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4244 | if (PyErr_Occurred()) SWIG_fail; |
4245 | { | |
4246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4247 | (arg1)->SetValue(arg2); | |
4248 | ||
4249 | wxPyEndAllowThreads(__tstate); | |
4250 | if (PyErr_Occurred()) SWIG_fail; | |
4251 | } | |
4252 | Py_INCREF(Py_None); resultobj = Py_None; | |
4253 | return resultobj; | |
4254 | fail: | |
4255 | return NULL; | |
4256 | } | |
4257 | ||
4258 | ||
c370783e | 4259 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4260 | PyObject *resultobj; |
4261 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4262 | int result; | |
4263 | PyObject * obj0 = 0 ; | |
4264 | char *kwnames[] = { | |
4265 | (char *) "self", NULL | |
4266 | }; | |
4267 | ||
4268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
4269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4271 | { | |
4272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4273 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4274 | ||
4275 | wxPyEndAllowThreads(__tstate); | |
4276 | if (PyErr_Occurred()) SWIG_fail; | |
4277 | } | |
c370783e | 4278 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4279 | return resultobj; |
4280 | fail: | |
4281 | return NULL; | |
4282 | } | |
4283 | ||
4284 | ||
c370783e | 4285 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4286 | PyObject *resultobj; |
4287 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4288 | bool result; | |
4289 | PyObject * obj0 = 0 ; | |
4290 | char *kwnames[] = { | |
4291 | (char *) "self", NULL | |
4292 | }; | |
4293 | ||
4294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
4295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4297 | { | |
4298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4299 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4300 | ||
4301 | wxPyEndAllowThreads(__tstate); | |
4302 | if (PyErr_Occurred()) SWIG_fail; | |
4303 | } | |
4304 | { | |
4305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4306 | } | |
4307 | return resultobj; | |
4308 | fail: | |
4309 | return NULL; | |
4310 | } | |
4311 | ||
4312 | ||
c370783e | 4313 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4314 | PyObject *resultobj; |
4315 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4316 | int arg2 ; | |
4317 | PyObject * obj0 = 0 ; | |
4318 | PyObject * obj1 = 0 ; | |
4319 | char *kwnames[] = { | |
4320 | (char *) "self",(char *) "w", NULL | |
4321 | }; | |
4322 | ||
4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
4324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4326 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4327 | if (PyErr_Occurred()) SWIG_fail; |
4328 | { | |
4329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4330 | (arg1)->SetShadowWidth(arg2); | |
4331 | ||
4332 | wxPyEndAllowThreads(__tstate); | |
4333 | if (PyErr_Occurred()) SWIG_fail; | |
4334 | } | |
4335 | Py_INCREF(Py_None); resultobj = Py_None; | |
4336 | return resultobj; | |
4337 | fail: | |
4338 | return NULL; | |
4339 | } | |
4340 | ||
4341 | ||
c370783e | 4342 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4343 | PyObject *resultobj; |
4344 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4345 | int result; | |
4346 | PyObject * obj0 = 0 ; | |
4347 | char *kwnames[] = { | |
4348 | (char *) "self", NULL | |
4349 | }; | |
4350 | ||
4351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
4352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4354 | { | |
4355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4356 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4357 | ||
4358 | wxPyEndAllowThreads(__tstate); | |
4359 | if (PyErr_Occurred()) SWIG_fail; | |
4360 | } | |
c370783e | 4361 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4362 | return resultobj; |
4363 | fail: | |
4364 | return NULL; | |
4365 | } | |
4366 | ||
4367 | ||
c370783e | 4368 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4369 | PyObject *resultobj; |
4370 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4371 | int arg2 ; | |
4372 | PyObject * obj0 = 0 ; | |
4373 | PyObject * obj1 = 0 ; | |
4374 | char *kwnames[] = { | |
4375 | (char *) "self",(char *) "w", NULL | |
4376 | }; | |
4377 | ||
4378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
4379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4381 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4382 | if (PyErr_Occurred()) SWIG_fail; |
4383 | { | |
4384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4385 | (arg1)->SetBezelFace(arg2); | |
4386 | ||
4387 | wxPyEndAllowThreads(__tstate); | |
4388 | if (PyErr_Occurred()) SWIG_fail; | |
4389 | } | |
4390 | Py_INCREF(Py_None); resultobj = Py_None; | |
4391 | return resultobj; | |
4392 | fail: | |
4393 | return NULL; | |
4394 | } | |
4395 | ||
4396 | ||
c370783e | 4397 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4398 | PyObject *resultobj; |
4399 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4400 | int result; | |
4401 | PyObject * obj0 = 0 ; | |
4402 | char *kwnames[] = { | |
4403 | (char *) "self", NULL | |
4404 | }; | |
4405 | ||
4406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
4407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4409 | { | |
4410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4411 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4412 | ||
4413 | wxPyEndAllowThreads(__tstate); | |
4414 | if (PyErr_Occurred()) SWIG_fail; | |
4415 | } | |
c370783e | 4416 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4417 | return resultobj; |
4418 | fail: | |
4419 | return NULL; | |
4420 | } | |
4421 | ||
4422 | ||
c370783e | 4423 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
4424 | PyObject *resultobj; |
4425 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4426 | wxVisualAttributes result; | |
4427 | PyObject * obj0 = 0 ; | |
4428 | char *kwnames[] = { | |
4429 | (char *) "variant", NULL | |
4430 | }; | |
4431 | ||
4432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4433 | if (obj0) { | |
c370783e | 4434 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
4435 | if (PyErr_Occurred()) SWIG_fail; |
4436 | } | |
4437 | { | |
0439c23b | 4438 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4440 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4441 | ||
4442 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4443 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4444 | } |
4445 | { | |
4446 | wxVisualAttributes * resultptr; | |
4447 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4448 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4449 | } | |
4450 | return resultobj; | |
4451 | fail: | |
4452 | return NULL; | |
4453 | } | |
4454 | ||
4455 | ||
c370783e | 4456 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4457 | PyObject *obj; |
4458 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4459 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4460 | Py_INCREF(obj); | |
4461 | return Py_BuildValue((char *)""); | |
4462 | } | |
c370783e | 4463 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
d55e5bfc RD |
4464 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
4465 | return 1; | |
4466 | } | |
4467 | ||
4468 | ||
4469 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4470 | PyObject *pyobj; | |
4471 | ||
4472 | { | |
4473 | #if wxUSE_UNICODE | |
4474 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4475 | #else | |
4476 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4477 | #endif | |
4478 | } | |
4479 | return pyobj; | |
4480 | } | |
4481 | ||
4482 | ||
c370783e | 4483 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
4484 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
4485 | return 1; | |
4486 | } | |
4487 | ||
4488 | ||
4489 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4490 | PyObject *pyobj; | |
4491 | ||
4492 | { | |
4493 | #if wxUSE_UNICODE | |
4494 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4495 | #else | |
4496 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4497 | #endif | |
4498 | } | |
4499 | return pyobj; | |
4500 | } | |
4501 | ||
4502 | ||
c370783e | 4503 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
d55e5bfc RD |
4504 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
4505 | return 1; | |
4506 | } | |
4507 | ||
4508 | ||
4509 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4510 | PyObject *pyobj; | |
4511 | ||
4512 | { | |
4513 | #if wxUSE_UNICODE | |
4514 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4515 | #else | |
4516 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4517 | #endif | |
4518 | } | |
4519 | return pyobj; | |
4520 | } | |
4521 | ||
4522 | ||
c370783e | 4523 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4524 | PyObject *resultobj; |
4525 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
4526 | int arg2 = (int) -1 ; |
4527 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4528 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4529 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4530 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4531 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4532 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4533 | long arg6 = (long) 0 ; | |
4534 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4535 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4536 | wxStaticBox *result; | |
4537 | bool temp3 = False ; | |
4538 | wxPoint temp4 ; | |
4539 | wxSize temp5 ; | |
4540 | bool temp7 = False ; | |
4541 | PyObject * obj0 = 0 ; | |
4542 | PyObject * obj1 = 0 ; | |
4543 | PyObject * obj2 = 0 ; | |
4544 | PyObject * obj3 = 0 ; | |
4545 | PyObject * obj4 = 0 ; | |
4546 | PyObject * obj5 = 0 ; | |
4547 | PyObject * obj6 = 0 ; | |
4548 | char *kwnames[] = { | |
4549 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4550 | }; | |
4551 | ||
bfddbb17 | 4552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 4555 | if (obj1) { |
c370783e | 4556 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
4557 | if (PyErr_Occurred()) SWIG_fail; |
4558 | } | |
4559 | if (obj2) { | |
4560 | { | |
4561 | arg3 = wxString_in_helper(obj2); | |
4562 | if (arg3 == NULL) SWIG_fail; | |
4563 | temp3 = True; | |
4564 | } | |
d55e5bfc RD |
4565 | } |
4566 | if (obj3) { | |
4567 | { | |
4568 | arg4 = &temp4; | |
4569 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4570 | } | |
4571 | } | |
4572 | if (obj4) { | |
4573 | { | |
4574 | arg5 = &temp5; | |
4575 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4576 | } | |
4577 | } | |
4578 | if (obj5) { | |
c370783e | 4579 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
4580 | if (PyErr_Occurred()) SWIG_fail; |
4581 | } | |
4582 | if (obj6) { | |
4583 | { | |
4584 | arg7 = wxString_in_helper(obj6); | |
4585 | if (arg7 == NULL) SWIG_fail; | |
4586 | temp7 = True; | |
4587 | } | |
4588 | } | |
4589 | { | |
0439c23b | 4590 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4592 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4593 | ||
4594 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4595 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4596 | } |
b0f7404b | 4597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d55e5bfc RD |
4598 | { |
4599 | if (temp3) | |
4600 | delete arg3; | |
4601 | } | |
4602 | { | |
4603 | if (temp7) | |
4604 | delete arg7; | |
4605 | } | |
4606 | return resultobj; | |
4607 | fail: | |
4608 | { | |
4609 | if (temp3) | |
4610 | delete arg3; | |
4611 | } | |
4612 | { | |
4613 | if (temp7) | |
4614 | delete arg7; | |
4615 | } | |
4616 | return NULL; | |
4617 | } | |
4618 | ||
4619 | ||
c370783e | 4620 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4621 | PyObject *resultobj; |
4622 | wxStaticBox *result; | |
4623 | char *kwnames[] = { | |
4624 | NULL | |
4625 | }; | |
4626 | ||
4627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4628 | { | |
0439c23b | 4629 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4631 | result = (wxStaticBox *)new wxStaticBox(); | |
4632 | ||
4633 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4634 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4635 | } |
b0f7404b | 4636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d55e5bfc RD |
4637 | return resultobj; |
4638 | fail: | |
4639 | return NULL; | |
4640 | } | |
4641 | ||
4642 | ||
c370783e | 4643 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4644 | PyObject *resultobj; |
4645 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4646 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
4647 | int arg3 = (int) -1 ; |
4648 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4649 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4650 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4651 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4652 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4653 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4654 | long arg7 = (long) 0 ; | |
4655 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4656 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4657 | bool result; | |
4658 | bool temp4 = False ; | |
4659 | wxPoint temp5 ; | |
4660 | wxSize temp6 ; | |
4661 | bool temp8 = False ; | |
4662 | PyObject * obj0 = 0 ; | |
4663 | PyObject * obj1 = 0 ; | |
4664 | PyObject * obj2 = 0 ; | |
4665 | PyObject * obj3 = 0 ; | |
4666 | PyObject * obj4 = 0 ; | |
4667 | PyObject * obj5 = 0 ; | |
4668 | PyObject * obj6 = 0 ; | |
4669 | PyObject * obj7 = 0 ; | |
4670 | char *kwnames[] = { | |
4671 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4672 | }; | |
4673 | ||
bfddbb17 | 4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4677 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 4679 | if (obj2) { |
c370783e | 4680 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
4681 | if (PyErr_Occurred()) SWIG_fail; |
4682 | } | |
4683 | if (obj3) { | |
4684 | { | |
4685 | arg4 = wxString_in_helper(obj3); | |
4686 | if (arg4 == NULL) SWIG_fail; | |
4687 | temp4 = True; | |
4688 | } | |
d55e5bfc RD |
4689 | } |
4690 | if (obj4) { | |
4691 | { | |
4692 | arg5 = &temp5; | |
4693 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4694 | } | |
4695 | } | |
4696 | if (obj5) { | |
4697 | { | |
4698 | arg6 = &temp6; | |
4699 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4700 | } | |
4701 | } | |
4702 | if (obj6) { | |
c370783e | 4703 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
4704 | if (PyErr_Occurred()) SWIG_fail; |
4705 | } | |
4706 | if (obj7) { | |
4707 | { | |
4708 | arg8 = wxString_in_helper(obj7); | |
4709 | if (arg8 == NULL) SWIG_fail; | |
4710 | temp8 = True; | |
4711 | } | |
4712 | } | |
4713 | { | |
4714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4715 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4716 | ||
4717 | wxPyEndAllowThreads(__tstate); | |
4718 | if (PyErr_Occurred()) SWIG_fail; | |
4719 | } | |
4720 | { | |
4721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4722 | } | |
4723 | { | |
4724 | if (temp4) | |
4725 | delete arg4; | |
4726 | } | |
4727 | { | |
4728 | if (temp8) | |
4729 | delete arg8; | |
4730 | } | |
4731 | return resultobj; | |
4732 | fail: | |
4733 | { | |
4734 | if (temp4) | |
4735 | delete arg4; | |
4736 | } | |
4737 | { | |
4738 | if (temp8) | |
4739 | delete arg8; | |
4740 | } | |
4741 | return NULL; | |
4742 | } | |
4743 | ||
4744 | ||
c370783e | 4745 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
4746 | PyObject *resultobj; |
4747 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4748 | wxVisualAttributes result; | |
4749 | PyObject * obj0 = 0 ; | |
4750 | char *kwnames[] = { | |
4751 | (char *) "variant", NULL | |
4752 | }; | |
4753 | ||
4754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4755 | if (obj0) { | |
c370783e | 4756 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
4757 | if (PyErr_Occurred()) SWIG_fail; |
4758 | } | |
4759 | { | |
0439c23b | 4760 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4762 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4763 | ||
4764 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4765 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4766 | } |
4767 | { | |
4768 | wxVisualAttributes * resultptr; | |
4769 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4770 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4771 | } | |
4772 | return resultobj; | |
4773 | fail: | |
4774 | return NULL; | |
4775 | } | |
4776 | ||
4777 | ||
c370783e | 4778 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4779 | PyObject *obj; |
4780 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4781 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4782 | Py_INCREF(obj); | |
4783 | return Py_BuildValue((char *)""); | |
4784 | } | |
c370783e | 4785 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4786 | PyObject *resultobj; |
4787 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 4788 | int arg2 = (int) -1 ; |
d55e5bfc RD |
4789 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4790 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4791 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4792 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4793 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4794 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4795 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4796 | wxStaticLine *result; | |
4797 | wxPoint temp3 ; | |
4798 | wxSize temp4 ; | |
4799 | bool temp6 = False ; | |
4800 | PyObject * obj0 = 0 ; | |
4801 | PyObject * obj1 = 0 ; | |
4802 | PyObject * obj2 = 0 ; | |
4803 | PyObject * obj3 = 0 ; | |
4804 | PyObject * obj4 = 0 ; | |
4805 | PyObject * obj5 = 0 ; | |
4806 | char *kwnames[] = { | |
4807 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4808 | }; | |
4809 | ||
bfddbb17 | 4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
4811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 4813 | if (obj1) { |
c370783e | 4814 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
4815 | if (PyErr_Occurred()) SWIG_fail; |
4816 | } | |
d55e5bfc RD |
4817 | if (obj2) { |
4818 | { | |
4819 | arg3 = &temp3; | |
4820 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4821 | } | |
4822 | } | |
4823 | if (obj3) { | |
4824 | { | |
4825 | arg4 = &temp4; | |
4826 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4827 | } | |
4828 | } | |
4829 | if (obj4) { | |
c370783e | 4830 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
4831 | if (PyErr_Occurred()) SWIG_fail; |
4832 | } | |
4833 | if (obj5) { | |
4834 | { | |
4835 | arg6 = wxString_in_helper(obj5); | |
4836 | if (arg6 == NULL) SWIG_fail; | |
4837 | temp6 = True; | |
4838 | } | |
4839 | } | |
4840 | { | |
0439c23b | 4841 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4843 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4844 | ||
4845 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4846 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4847 | } |
4848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4849 | { | |
4850 | if (temp6) | |
4851 | delete arg6; | |
4852 | } | |
4853 | return resultobj; | |
4854 | fail: | |
4855 | { | |
4856 | if (temp6) | |
4857 | delete arg6; | |
4858 | } | |
4859 | return NULL; | |
4860 | } | |
4861 | ||
4862 | ||
c370783e | 4863 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4864 | PyObject *resultobj; |
4865 | wxStaticLine *result; | |
4866 | char *kwnames[] = { | |
4867 | NULL | |
4868 | }; | |
4869 | ||
4870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4871 | { | |
0439c23b | 4872 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4874 | result = (wxStaticLine *)new wxStaticLine(); | |
4875 | ||
4876 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4877 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4878 | } |
4879 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4880 | return resultobj; | |
4881 | fail: | |
4882 | return NULL; | |
4883 | } | |
4884 | ||
4885 | ||
c370783e | 4886 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4887 | PyObject *resultobj; |
4888 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4889 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 4890 | int arg3 = (int) -1 ; |
d55e5bfc RD |
4891 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4892 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4893 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4894 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4895 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4896 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4897 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4898 | bool result; | |
4899 | wxPoint temp4 ; | |
4900 | wxSize temp5 ; | |
4901 | bool temp7 = False ; | |
4902 | PyObject * obj0 = 0 ; | |
4903 | PyObject * obj1 = 0 ; | |
4904 | PyObject * obj2 = 0 ; | |
4905 | PyObject * obj3 = 0 ; | |
4906 | PyObject * obj4 = 0 ; | |
4907 | PyObject * obj5 = 0 ; | |
4908 | PyObject * obj6 = 0 ; | |
4909 | char *kwnames[] = { | |
4910 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4911 | }; | |
4912 | ||
bfddbb17 | 4913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4916 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 4918 | if (obj2) { |
c370783e | 4919 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
4920 | if (PyErr_Occurred()) SWIG_fail; |
4921 | } | |
d55e5bfc RD |
4922 | if (obj3) { |
4923 | { | |
4924 | arg4 = &temp4; | |
4925 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4926 | } | |
4927 | } | |
4928 | if (obj4) { | |
4929 | { | |
4930 | arg5 = &temp5; | |
4931 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4932 | } | |
4933 | } | |
4934 | if (obj5) { | |
c370783e | 4935 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
4936 | if (PyErr_Occurred()) SWIG_fail; |
4937 | } | |
4938 | if (obj6) { | |
4939 | { | |
4940 | arg7 = wxString_in_helper(obj6); | |
4941 | if (arg7 == NULL) SWIG_fail; | |
4942 | temp7 = True; | |
4943 | } | |
4944 | } | |
4945 | { | |
4946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4947 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4948 | ||
4949 | wxPyEndAllowThreads(__tstate); | |
4950 | if (PyErr_Occurred()) SWIG_fail; | |
4951 | } | |
4952 | { | |
4953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4954 | } | |
4955 | { | |
4956 | if (temp7) | |
4957 | delete arg7; | |
4958 | } | |
4959 | return resultobj; | |
4960 | fail: | |
4961 | { | |
4962 | if (temp7) | |
4963 | delete arg7; | |
4964 | } | |
4965 | return NULL; | |
4966 | } | |
4967 | ||
4968 | ||
c370783e | 4969 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4970 | PyObject *resultobj; |
4971 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4972 | bool result; | |
4973 | PyObject * obj0 = 0 ; | |
4974 | char *kwnames[] = { | |
4975 | (char *) "self", NULL | |
4976 | }; | |
4977 | ||
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, | |
4980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4981 | { | |
4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4983 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4984 | ||
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | { | |
4989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4990 | } | |
4991 | return resultobj; | |
4992 | fail: | |
4993 | return NULL; | |
4994 | } | |
4995 | ||
4996 | ||
c370783e | 4997 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4998 | PyObject *resultobj; |
4999 | int result; | |
5000 | char *kwnames[] = { | |
5001 | NULL | |
5002 | }; | |
5003 | ||
5004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
5005 | { | |
5006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5007 | result = (int)wxStaticLine::GetDefaultSize(); | |
5008 | ||
5009 | wxPyEndAllowThreads(__tstate); | |
5010 | if (PyErr_Occurred()) SWIG_fail; | |
5011 | } | |
c370783e | 5012 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5013 | return resultobj; |
5014 | fail: | |
5015 | return NULL; | |
5016 | } | |
5017 | ||
5018 | ||
c370783e | 5019 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
5020 | PyObject *resultobj; |
5021 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5022 | wxVisualAttributes result; | |
5023 | PyObject * obj0 = 0 ; | |
5024 | char *kwnames[] = { | |
5025 | (char *) "variant", NULL | |
5026 | }; | |
5027 | ||
5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5029 | if (obj0) { | |
c370783e | 5030 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
5031 | if (PyErr_Occurred()) SWIG_fail; |
5032 | } | |
5033 | { | |
0439c23b | 5034 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5036 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5037 | ||
5038 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5039 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5040 | } |
5041 | { | |
5042 | wxVisualAttributes * resultptr; | |
5043 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5044 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5045 | } | |
5046 | return resultobj; | |
5047 | fail: | |
5048 | return NULL; | |
5049 | } | |
5050 | ||
5051 | ||
c370783e | 5052 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5053 | PyObject *obj; |
5054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5055 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
5056 | Py_INCREF(obj); | |
5057 | return Py_BuildValue((char *)""); | |
5058 | } | |
c370783e | 5059 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5060 | PyObject *resultobj; |
5061 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
5062 | int arg2 = (int) -1 ; |
5063 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5064 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
5065 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5066 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5067 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5068 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5069 | long arg6 = (long) 0 ; | |
5070 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
5071 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5072 | wxStaticText *result; | |
5073 | bool temp3 = False ; | |
5074 | wxPoint temp4 ; | |
5075 | wxSize temp5 ; | |
5076 | bool temp7 = False ; | |
5077 | PyObject * obj0 = 0 ; | |
5078 | PyObject * obj1 = 0 ; | |
5079 | PyObject * obj2 = 0 ; | |
5080 | PyObject * obj3 = 0 ; | |
5081 | PyObject * obj4 = 0 ; | |
5082 | PyObject * obj5 = 0 ; | |
5083 | PyObject * obj6 = 0 ; | |
5084 | char *kwnames[] = { | |
5085 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5086 | }; | |
5087 | ||
bfddbb17 | 5088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
5089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 5091 | if (obj1) { |
c370783e | 5092 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
5093 | if (PyErr_Occurred()) SWIG_fail; |
5094 | } | |
5095 | if (obj2) { | |
5096 | { | |
5097 | arg3 = wxString_in_helper(obj2); | |
5098 | if (arg3 == NULL) SWIG_fail; | |
5099 | temp3 = True; | |
5100 | } | |
d55e5bfc RD |
5101 | } |
5102 | if (obj3) { | |
5103 | { | |
5104 | arg4 = &temp4; | |
5105 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5106 | } | |
5107 | } | |
5108 | if (obj4) { | |
5109 | { | |
5110 | arg5 = &temp5; | |
5111 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5112 | } | |
5113 | } | |
5114 | if (obj5) { | |
c370783e | 5115 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
5116 | if (PyErr_Occurred()) SWIG_fail; |
5117 | } | |
5118 | if (obj6) { | |
5119 | { | |
5120 | arg7 = wxString_in_helper(obj6); | |
5121 | if (arg7 == NULL) SWIG_fail; | |
5122 | temp7 = True; | |
5123 | } | |
5124 | } | |
5125 | { | |
0439c23b | 5126 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5128 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5129 | ||
5130 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5131 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5132 | } |
5133 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
5134 | { | |
5135 | if (temp3) | |
5136 | delete arg3; | |
5137 | } | |
5138 | { | |
5139 | if (temp7) | |
5140 | delete arg7; | |
5141 | } | |
5142 | return resultobj; | |
5143 | fail: | |
5144 | { | |
5145 | if (temp3) | |
5146 | delete arg3; | |
5147 | } | |
5148 | { | |
5149 | if (temp7) | |
5150 | delete arg7; | |
5151 | } | |
5152 | return NULL; | |
5153 | } | |
5154 | ||
5155 | ||
c370783e | 5156 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5157 | PyObject *resultobj; |
5158 | wxStaticText *result; | |
5159 | char *kwnames[] = { | |
5160 | NULL | |
5161 | }; | |
5162 | ||
5163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
5164 | { | |
0439c23b | 5165 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5167 | result = (wxStaticText *)new wxStaticText(); | |
5168 | ||
5169 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5170 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5171 | } |
5172 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
5173 | return resultobj; | |
5174 | fail: | |
5175 | return NULL; | |
5176 | } | |
5177 | ||
5178 | ||
c370783e | 5179 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5180 | PyObject *resultobj; |
5181 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
5182 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
5183 | int arg3 = (int) -1 ; |
5184 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5185 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
5186 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5187 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5188 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5189 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5190 | long arg7 = (long) 0 ; | |
5191 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
5192 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5193 | bool result; | |
5194 | bool temp4 = False ; | |
5195 | wxPoint temp5 ; | |
5196 | wxSize temp6 ; | |
5197 | bool temp8 = False ; | |
5198 | PyObject * obj0 = 0 ; | |
5199 | PyObject * obj1 = 0 ; | |
5200 | PyObject * obj2 = 0 ; | |
5201 | PyObject * obj3 = 0 ; | |
5202 | PyObject * obj4 = 0 ; | |
5203 | PyObject * obj5 = 0 ; | |
5204 | PyObject * obj6 = 0 ; | |
5205 | PyObject * obj7 = 0 ; | |
5206 | char *kwnames[] = { | |
5207 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5208 | }; | |
5209 | ||
bfddbb17 | 5210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 5215 | if (obj2) { |
c370783e | 5216 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
5217 | if (PyErr_Occurred()) SWIG_fail; |
5218 | } | |
5219 | if (obj3) { | |
5220 | { | |
5221 | arg4 = wxString_in_helper(obj3); | |
5222 | if (arg4 == NULL) SWIG_fail; | |
5223 | temp4 = True; | |
5224 | } | |
d55e5bfc RD |
5225 | } |
5226 | if (obj4) { | |
5227 | { | |
5228 | arg5 = &temp5; | |
5229 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5230 | } | |
5231 | } | |
5232 | if (obj5) { | |
5233 | { | |
5234 | arg6 = &temp6; | |
5235 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5236 | } | |
5237 | } | |
5238 | if (obj6) { | |
c370783e | 5239 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
5240 | if (PyErr_Occurred()) SWIG_fail; |
5241 | } | |
5242 | if (obj7) { | |
5243 | { | |
5244 | arg8 = wxString_in_helper(obj7); | |
5245 | if (arg8 == NULL) SWIG_fail; | |
5246 | temp8 = True; | |
5247 | } | |
5248 | } | |
5249 | { | |
5250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5251 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5252 | ||
5253 | wxPyEndAllowThreads(__tstate); | |
5254 | if (PyErr_Occurred()) SWIG_fail; | |
5255 | } | |
5256 | { | |
5257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5258 | } | |
5259 | { | |
5260 | if (temp4) | |
5261 | delete arg4; | |
5262 | } | |
5263 | { | |
5264 | if (temp8) | |
5265 | delete arg8; | |
5266 | } | |
5267 | return resultobj; | |
5268 | fail: | |
5269 | { | |
5270 | if (temp4) | |
5271 | delete arg4; | |
5272 | } | |
5273 | { | |
5274 | if (temp8) | |
5275 | delete arg8; | |
5276 | } | |
5277 | return NULL; | |
5278 | } | |
5279 | ||
5280 | ||
c370783e | 5281 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
5282 | PyObject *resultobj; |
5283 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5284 | wxVisualAttributes result; | |
5285 | PyObject * obj0 = 0 ; | |
5286 | char *kwnames[] = { | |
5287 | (char *) "variant", NULL | |
5288 | }; | |
5289 | ||
5290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5291 | if (obj0) { | |
c370783e | 5292 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
5293 | if (PyErr_Occurred()) SWIG_fail; |
5294 | } | |
5295 | { | |
0439c23b | 5296 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5298 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5299 | ||
5300 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5301 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5302 | } |
5303 | { | |
5304 | wxVisualAttributes * resultptr; | |
5305 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5306 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5307 | } | |
5308 | return resultobj; | |
5309 | fail: | |
5310 | return NULL; | |
5311 | } | |
5312 | ||
5313 | ||
c370783e | 5314 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5315 | PyObject *obj; |
5316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5317 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5318 | Py_INCREF(obj); | |
5319 | return Py_BuildValue((char *)""); | |
5320 | } | |
c370783e | 5321 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5322 | PyObject *resultobj; |
5323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
5324 | int arg2 = (int) -1 ; |
5325 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
5326 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
5327 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5328 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5329 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5330 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5331 | long arg6 = (long) 0 ; | |
5332 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5333 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5334 | wxStaticBitmap *result; | |
5335 | wxPoint temp4 ; | |
5336 | wxSize temp5 ; | |
5337 | bool temp7 = False ; | |
5338 | PyObject * obj0 = 0 ; | |
5339 | PyObject * obj1 = 0 ; | |
5340 | PyObject * obj2 = 0 ; | |
5341 | PyObject * obj3 = 0 ; | |
5342 | PyObject * obj4 = 0 ; | |
5343 | PyObject * obj5 = 0 ; | |
5344 | PyObject * obj6 = 0 ; | |
5345 | char *kwnames[] = { | |
5346 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5347 | }; | |
5348 | ||
bfddbb17 | 5349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
5350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 5352 | if (obj1) { |
c370783e | 5353 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
5354 | if (PyErr_Occurred()) SWIG_fail; |
5355 | } | |
5356 | if (obj2) { | |
5357 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5358 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 5359 | SWIG_fail; |
bfddbb17 RD |
5360 | if (arg3 == NULL) { |
5361 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5362 | SWIG_fail; | |
5363 | } | |
d55e5bfc RD |
5364 | } |
5365 | if (obj3) { | |
5366 | { | |
5367 | arg4 = &temp4; | |
5368 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5369 | } | |
5370 | } | |
5371 | if (obj4) { | |
5372 | { | |
5373 | arg5 = &temp5; | |
5374 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5375 | } | |
5376 | } | |
5377 | if (obj5) { | |
c370783e | 5378 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
5379 | if (PyErr_Occurred()) SWIG_fail; |
5380 | } | |
5381 | if (obj6) { | |
5382 | { | |
5383 | arg7 = wxString_in_helper(obj6); | |
5384 | if (arg7 == NULL) SWIG_fail; | |
5385 | temp7 = True; | |
5386 | } | |
5387 | } | |
5388 | { | |
0439c23b | 5389 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5391 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5392 | ||
5393 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5394 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5395 | } |
5396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
5397 | { | |
5398 | if (temp7) | |
5399 | delete arg7; | |
5400 | } | |
5401 | return resultobj; | |
5402 | fail: | |
5403 | { | |
5404 | if (temp7) | |
5405 | delete arg7; | |
5406 | } | |
5407 | return NULL; | |
5408 | } | |
5409 | ||
5410 | ||
c370783e | 5411 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5412 | PyObject *resultobj; |
5413 | wxStaticBitmap *result; | |
5414 | char *kwnames[] = { | |
5415 | NULL | |
5416 | }; | |
5417 | ||
5418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5419 | { | |
0439c23b | 5420 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5422 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5423 | ||
5424 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5425 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5426 | } |
5427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
5428 | return resultobj; | |
5429 | fail: | |
5430 | return NULL; | |
5431 | } | |
5432 | ||
5433 | ||
c370783e | 5434 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5435 | PyObject *resultobj; |
5436 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5437 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
5438 | int arg3 = (int) -1 ; |
5439 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
5440 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
5441 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5442 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5443 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5444 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5445 | long arg7 = (long) 0 ; | |
5446 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5447 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5448 | bool result; | |
5449 | wxPoint temp5 ; | |
5450 | wxSize temp6 ; | |
5451 | bool temp8 = False ; | |
5452 | PyObject * obj0 = 0 ; | |
5453 | PyObject * obj1 = 0 ; | |
5454 | PyObject * obj2 = 0 ; | |
5455 | PyObject * obj3 = 0 ; | |
5456 | PyObject * obj4 = 0 ; | |
5457 | PyObject * obj5 = 0 ; | |
5458 | PyObject * obj6 = 0 ; | |
5459 | PyObject * obj7 = 0 ; | |
5460 | char *kwnames[] = { | |
5461 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5462 | }; | |
5463 | ||
bfddbb17 | 5464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 5469 | if (obj2) { |
c370783e | 5470 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
5471 | if (PyErr_Occurred()) SWIG_fail; |
5472 | } | |
5473 | if (obj3) { | |
5474 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5475 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 5476 | SWIG_fail; |
bfddbb17 RD |
5477 | if (arg4 == NULL) { |
5478 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5479 | SWIG_fail; | |
5480 | } | |
d55e5bfc RD |
5481 | } |
5482 | if (obj4) { | |
5483 | { | |
5484 | arg5 = &temp5; | |
5485 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5486 | } | |
5487 | } | |
5488 | if (obj5) { | |
5489 | { | |
5490 | arg6 = &temp6; | |
5491 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5492 | } | |
5493 | } | |
5494 | if (obj6) { | |
c370783e | 5495 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
5496 | if (PyErr_Occurred()) SWIG_fail; |
5497 | } | |
5498 | if (obj7) { | |
5499 | { | |
5500 | arg8 = wxString_in_helper(obj7); | |
5501 | if (arg8 == NULL) SWIG_fail; | |
5502 | temp8 = True; | |
5503 | } | |
5504 | } | |
5505 | { | |
5506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5507 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5508 | ||
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
5512 | { | |
5513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5514 | } | |
5515 | { | |
5516 | if (temp8) | |
5517 | delete arg8; | |
5518 | } | |
5519 | return resultobj; | |
5520 | fail: | |
5521 | { | |
5522 | if (temp8) | |
5523 | delete arg8; | |
5524 | } | |
5525 | return NULL; | |
5526 | } | |
5527 | ||
5528 | ||
c370783e | 5529 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5530 | PyObject *resultobj; |
5531 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5532 | wxBitmap result; | |
5533 | PyObject * obj0 = 0 ; | |
5534 | char *kwnames[] = { | |
5535 | (char *) "self", NULL | |
5536 | }; | |
5537 | ||
5538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
5539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5541 | { | |
5542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5543 | result = (arg1)->GetBitmap(); | |
5544 | ||
5545 | wxPyEndAllowThreads(__tstate); | |
5546 | if (PyErr_Occurred()) SWIG_fail; | |
5547 | } | |
5548 | { | |
5549 | wxBitmap * resultptr; | |
5550 | resultptr = new wxBitmap((wxBitmap &) result); | |
5551 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
5552 | } | |
5553 | return resultobj; | |
5554 | fail: | |
5555 | return NULL; | |
5556 | } | |
5557 | ||
5558 | ||
c370783e | 5559 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5560 | PyObject *resultobj; |
5561 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5562 | wxBitmap *arg2 = 0 ; | |
5563 | PyObject * obj0 = 0 ; | |
5564 | PyObject * obj1 = 0 ; | |
5565 | char *kwnames[] = { | |
5566 | (char *) "self",(char *) "bitmap", NULL | |
5567 | }; | |
5568 | ||
5569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5572 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5573 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5574 | SWIG_fail; | |
5575 | if (arg2 == NULL) { | |
5576 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5577 | SWIG_fail; | |
5578 | } | |
5579 | { | |
5580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5581 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5582 | ||
5583 | wxPyEndAllowThreads(__tstate); | |
5584 | if (PyErr_Occurred()) SWIG_fail; | |
5585 | } | |
5586 | Py_INCREF(Py_None); resultobj = Py_None; | |
5587 | return resultobj; | |
5588 | fail: | |
5589 | return NULL; | |
5590 | } | |
5591 | ||
5592 | ||
c370783e | 5593 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5594 | PyObject *resultobj; |
5595 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5596 | wxIcon *arg2 = 0 ; | |
5597 | PyObject * obj0 = 0 ; | |
5598 | PyObject * obj1 = 0 ; | |
5599 | char *kwnames[] = { | |
5600 | (char *) "self",(char *) "icon", NULL | |
5601 | }; | |
5602 | ||
5603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
5604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5607 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5608 | SWIG_fail; | |
5609 | if (arg2 == NULL) { | |
5610 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5611 | SWIG_fail; | |
5612 | } | |
5613 | { | |
5614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5615 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5616 | ||
5617 | wxPyEndAllowThreads(__tstate); | |
5618 | if (PyErr_Occurred()) SWIG_fail; | |
5619 | } | |
5620 | Py_INCREF(Py_None); resultobj = Py_None; | |
5621 | return resultobj; | |
5622 | fail: | |
5623 | return NULL; | |
5624 | } | |
5625 | ||
5626 | ||
c370783e | 5627 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
5628 | PyObject *resultobj; |
5629 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5630 | wxVisualAttributes result; | |
5631 | PyObject * obj0 = 0 ; | |
5632 | char *kwnames[] = { | |
5633 | (char *) "variant", NULL | |
5634 | }; | |
5635 | ||
5636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5637 | if (obj0) { | |
c370783e | 5638 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
5639 | if (PyErr_Occurred()) SWIG_fail; |
5640 | } | |
5641 | { | |
0439c23b | 5642 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5644 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5645 | ||
5646 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5647 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5648 | } |
5649 | { | |
5650 | wxVisualAttributes * resultptr; | |
5651 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5652 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5653 | } | |
5654 | return resultobj; | |
5655 | fail: | |
5656 | return NULL; | |
5657 | } | |
5658 | ||
5659 | ||
c370783e | 5660 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5661 | PyObject *obj; |
5662 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5663 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5664 | Py_INCREF(obj); | |
5665 | return Py_BuildValue((char *)""); | |
5666 | } | |
c370783e | 5667 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
5668 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
5669 | return 1; | |
5670 | } | |
5671 | ||
5672 | ||
5673 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5674 | PyObject *pyobj; | |
5675 | ||
5676 | { | |
5677 | #if wxUSE_UNICODE | |
5678 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5679 | #else | |
5680 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5681 | #endif | |
5682 | } | |
5683 | return pyobj; | |
5684 | } | |
5685 | ||
5686 | ||
c370783e | 5687 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5688 | PyObject *resultobj; |
5689 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 5690 | int arg2 = (int) -1 ; |
d55e5bfc RD |
5691 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5692 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5693 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5694 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5695 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5696 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5697 | long arg6 = (long) 0 ; | |
5698 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5699 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5700 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5701 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5702 | wxListBox *result; | |
5703 | wxPoint temp3 ; | |
5704 | wxSize temp4 ; | |
5705 | bool temp5 = False ; | |
5706 | bool temp8 = False ; | |
5707 | PyObject * obj0 = 0 ; | |
5708 | PyObject * obj1 = 0 ; | |
5709 | PyObject * obj2 = 0 ; | |
5710 | PyObject * obj3 = 0 ; | |
5711 | PyObject * obj4 = 0 ; | |
5712 | PyObject * obj5 = 0 ; | |
5713 | PyObject * obj6 = 0 ; | |
5714 | PyObject * obj7 = 0 ; | |
5715 | char *kwnames[] = { | |
5716 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5717 | }; | |
5718 | ||
bfddbb17 | 5719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 5722 | if (obj1) { |
c370783e | 5723 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
5724 | if (PyErr_Occurred()) SWIG_fail; |
5725 | } | |
d55e5bfc RD |
5726 | if (obj2) { |
5727 | { | |
5728 | arg3 = &temp3; | |
5729 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5730 | } | |
5731 | } | |
5732 | if (obj3) { | |
5733 | { | |
5734 | arg4 = &temp4; | |
5735 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5736 | } | |
5737 | } | |
5738 | if (obj4) { | |
5739 | { | |
5740 | if (! PySequence_Check(obj4)) { | |
5741 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5742 | SWIG_fail; | |
5743 | } | |
5744 | arg5 = new wxArrayString; | |
5745 | temp5 = True; | |
5746 | int i, len=PySequence_Length(obj4); | |
5747 | for (i=0; i<len; i++) { | |
5748 | PyObject* item = PySequence_GetItem(obj4, i); | |
5749 | #if wxUSE_UNICODE | |
5750 | PyObject* str = PyObject_Unicode(item); | |
5751 | #else | |
5752 | PyObject* str = PyObject_Str(item); | |
5753 | #endif | |
5754 | if (PyErr_Occurred()) SWIG_fail; | |
5755 | arg5->Add(Py2wxString(str)); | |
5756 | Py_DECREF(item); | |
5757 | Py_DECREF(str); | |
5758 | } | |
5759 | } | |
5760 | } | |
5761 | if (obj5) { | |
c370783e | 5762 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
5763 | if (PyErr_Occurred()) SWIG_fail; |
5764 | } | |
5765 | if (obj6) { | |
5766 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
5767 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5768 | SWIG_fail; | |
5769 | if (arg7 == NULL) { | |
5770 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5771 | SWIG_fail; | |
5772 | } | |
5773 | } | |
5774 | if (obj7) { | |
5775 | { | |
5776 | arg8 = wxString_in_helper(obj7); | |
5777 | if (arg8 == NULL) SWIG_fail; | |
5778 | temp8 = True; | |
5779 | } | |
5780 | } | |
5781 | { | |
0439c23b | 5782 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5784 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5785 | ||
5786 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5787 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5788 | } |
5789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5790 | { | |
5791 | if (temp5) delete arg5; | |
5792 | } | |
5793 | { | |
5794 | if (temp8) | |
5795 | delete arg8; | |
5796 | } | |
5797 | return resultobj; | |
5798 | fail: | |
5799 | { | |
5800 | if (temp5) delete arg5; | |
5801 | } | |
5802 | { | |
5803 | if (temp8) | |
5804 | delete arg8; | |
5805 | } | |
5806 | return NULL; | |
5807 | } | |
5808 | ||
5809 | ||
c370783e | 5810 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5811 | PyObject *resultobj; |
5812 | wxListBox *result; | |
5813 | char *kwnames[] = { | |
5814 | NULL | |
5815 | }; | |
5816 | ||
5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5818 | { | |
0439c23b | 5819 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5821 | result = (wxListBox *)new wxListBox(); | |
5822 | ||
5823 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5824 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5825 | } |
5826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5827 | return resultobj; | |
5828 | fail: | |
5829 | return NULL; | |
5830 | } | |
5831 | ||
5832 | ||
c370783e | 5833 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5834 | PyObject *resultobj; |
5835 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5836 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 5837 | int arg3 = (int) -1 ; |
d55e5bfc RD |
5838 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5839 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5840 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5841 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5842 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5843 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5844 | long arg7 = (long) 0 ; | |
5845 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5846 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5847 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5848 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5849 | bool result; | |
5850 | wxPoint temp4 ; | |
5851 | wxSize temp5 ; | |
5852 | bool temp6 = False ; | |
5853 | bool temp9 = False ; | |
5854 | PyObject * obj0 = 0 ; | |
5855 | PyObject * obj1 = 0 ; | |
5856 | PyObject * obj2 = 0 ; | |
5857 | PyObject * obj3 = 0 ; | |
5858 | PyObject * obj4 = 0 ; | |
5859 | PyObject * obj5 = 0 ; | |
5860 | PyObject * obj6 = 0 ; | |
5861 | PyObject * obj7 = 0 ; | |
5862 | PyObject * obj8 = 0 ; | |
5863 | char *kwnames[] = { | |
5864 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5865 | }; | |
5866 | ||
bfddbb17 | 5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
5868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5870 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 5872 | if (obj2) { |
c370783e | 5873 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
5874 | if (PyErr_Occurred()) SWIG_fail; |
5875 | } | |
d55e5bfc RD |
5876 | if (obj3) { |
5877 | { | |
5878 | arg4 = &temp4; | |
5879 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5880 | } | |
5881 | } | |
5882 | if (obj4) { | |
5883 | { | |
5884 | arg5 = &temp5; | |
5885 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5886 | } | |
5887 | } | |
5888 | if (obj5) { | |
5889 | { | |
5890 | if (! PySequence_Check(obj5)) { | |
5891 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5892 | SWIG_fail; | |
5893 | } | |
5894 | arg6 = new wxArrayString; | |
5895 | temp6 = True; | |
5896 | int i, len=PySequence_Length(obj5); | |
5897 | for (i=0; i<len; i++) { | |
5898 | PyObject* item = PySequence_GetItem(obj5, i); | |
5899 | #if wxUSE_UNICODE | |
5900 | PyObject* str = PyObject_Unicode(item); | |
5901 | #else | |
5902 | PyObject* str = PyObject_Str(item); | |
5903 | #endif | |
5904 | if (PyErr_Occurred()) SWIG_fail; | |
5905 | arg6->Add(Py2wxString(str)); | |
5906 | Py_DECREF(item); | |
5907 | Py_DECREF(str); | |
5908 | } | |
5909 | } | |
5910 | } | |
5911 | if (obj6) { | |
c370783e | 5912 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
5913 | if (PyErr_Occurred()) SWIG_fail; |
5914 | } | |
5915 | if (obj7) { | |
5916 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
5917 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5918 | SWIG_fail; | |
5919 | if (arg8 == NULL) { | |
5920 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5921 | SWIG_fail; | |
5922 | } | |
5923 | } | |
5924 | if (obj8) { | |
5925 | { | |
5926 | arg9 = wxString_in_helper(obj8); | |
5927 | if (arg9 == NULL) SWIG_fail; | |
5928 | temp9 = True; | |
5929 | } | |
5930 | } | |
5931 | { | |
5932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5933 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5934 | ||
5935 | wxPyEndAllowThreads(__tstate); | |
5936 | if (PyErr_Occurred()) SWIG_fail; | |
5937 | } | |
5938 | { | |
5939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5940 | } | |
5941 | { | |
5942 | if (temp6) delete arg6; | |
5943 | } | |
5944 | { | |
5945 | if (temp9) | |
5946 | delete arg9; | |
5947 | } | |
5948 | return resultobj; | |
5949 | fail: | |
5950 | { | |
5951 | if (temp6) delete arg6; | |
5952 | } | |
5953 | { | |
5954 | if (temp9) | |
5955 | delete arg9; | |
5956 | } | |
5957 | return NULL; | |
5958 | } | |
5959 | ||
5960 | ||
c370783e | 5961 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5962 | PyObject *resultobj; |
5963 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5964 | wxString *arg2 = 0 ; | |
5965 | int arg3 ; | |
5966 | PyObject *arg4 = (PyObject *) NULL ; | |
5967 | bool temp2 = False ; | |
5968 | PyObject * obj0 = 0 ; | |
5969 | PyObject * obj1 = 0 ; | |
5970 | PyObject * obj2 = 0 ; | |
5971 | PyObject * obj3 = 0 ; | |
5972 | char *kwnames[] = { | |
5973 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5974 | }; | |
5975 | ||
5976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5979 | { | |
5980 | arg2 = wxString_in_helper(obj1); | |
5981 | if (arg2 == NULL) SWIG_fail; | |
5982 | temp2 = True; | |
5983 | } | |
c370783e | 5984 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5985 | if (PyErr_Occurred()) SWIG_fail; |
5986 | if (obj3) { | |
5987 | arg4 = obj3; | |
5988 | } | |
5989 | { | |
5990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5991 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5992 | ||
5993 | wxPyEndAllowThreads(__tstate); | |
5994 | if (PyErr_Occurred()) SWIG_fail; | |
5995 | } | |
5996 | Py_INCREF(Py_None); resultobj = Py_None; | |
5997 | { | |
5998 | if (temp2) | |
5999 | delete arg2; | |
6000 | } | |
6001 | return resultobj; | |
6002 | fail: | |
6003 | { | |
6004 | if (temp2) | |
6005 | delete arg2; | |
6006 | } | |
6007 | return NULL; | |
6008 | } | |
6009 | ||
6010 | ||
c370783e | 6011 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6012 | PyObject *resultobj; |
6013 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6014 | wxArrayString *arg2 = 0 ; | |
6015 | int arg3 ; | |
6016 | bool temp2 = False ; | |
6017 | PyObject * obj0 = 0 ; | |
6018 | PyObject * obj1 = 0 ; | |
6019 | PyObject * obj2 = 0 ; | |
6020 | char *kwnames[] = { | |
6021 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
6022 | }; | |
6023 | ||
6024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6027 | { | |
6028 | if (! PySequence_Check(obj1)) { | |
6029 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6030 | SWIG_fail; | |
6031 | } | |
6032 | arg2 = new wxArrayString; | |
6033 | temp2 = True; | |
6034 | int i, len=PySequence_Length(obj1); | |
6035 | for (i=0; i<len; i++) { | |
6036 | PyObject* item = PySequence_GetItem(obj1, i); | |
6037 | #if wxUSE_UNICODE | |
6038 | PyObject* str = PyObject_Unicode(item); | |
6039 | #else | |
6040 | PyObject* str = PyObject_Str(item); | |
6041 | #endif | |
6042 | if (PyErr_Occurred()) SWIG_fail; | |
6043 | arg2->Add(Py2wxString(str)); | |
6044 | Py_DECREF(item); | |
6045 | Py_DECREF(str); | |
6046 | } | |
6047 | } | |
c370783e | 6048 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6049 | if (PyErr_Occurred()) SWIG_fail; |
6050 | { | |
6051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6052 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
6053 | ||
6054 | wxPyEndAllowThreads(__tstate); | |
6055 | if (PyErr_Occurred()) SWIG_fail; | |
6056 | } | |
6057 | Py_INCREF(Py_None); resultobj = Py_None; | |
6058 | { | |
6059 | if (temp2) delete arg2; | |
6060 | } | |
6061 | return resultobj; | |
6062 | fail: | |
6063 | { | |
6064 | if (temp2) delete arg2; | |
6065 | } | |
6066 | return NULL; | |
6067 | } | |
6068 | ||
6069 | ||
c370783e | 6070 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6071 | PyObject *resultobj; |
6072 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6073 | wxArrayString *arg2 = 0 ; | |
6074 | bool temp2 = False ; | |
6075 | PyObject * obj0 = 0 ; | |
6076 | PyObject * obj1 = 0 ; | |
6077 | char *kwnames[] = { | |
6078 | (char *) "self",(char *) "items", NULL | |
6079 | }; | |
6080 | ||
6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
6082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6084 | { | |
6085 | if (! PySequence_Check(obj1)) { | |
6086 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6087 | SWIG_fail; | |
6088 | } | |
6089 | arg2 = new wxArrayString; | |
6090 | temp2 = True; | |
6091 | int i, len=PySequence_Length(obj1); | |
6092 | for (i=0; i<len; i++) { | |
6093 | PyObject* item = PySequence_GetItem(obj1, i); | |
6094 | #if wxUSE_UNICODE | |
6095 | PyObject* str = PyObject_Unicode(item); | |
6096 | #else | |
6097 | PyObject* str = PyObject_Str(item); | |
6098 | #endif | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | arg2->Add(Py2wxString(str)); | |
6101 | Py_DECREF(item); | |
6102 | Py_DECREF(str); | |
6103 | } | |
6104 | } | |
6105 | { | |
6106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6107 | (arg1)->Set((wxArrayString const &)*arg2); | |
6108 | ||
6109 | wxPyEndAllowThreads(__tstate); | |
6110 | if (PyErr_Occurred()) SWIG_fail; | |
6111 | } | |
6112 | Py_INCREF(Py_None); resultobj = Py_None; | |
6113 | { | |
6114 | if (temp2) delete arg2; | |
6115 | } | |
6116 | return resultobj; | |
6117 | fail: | |
6118 | { | |
6119 | if (temp2) delete arg2; | |
6120 | } | |
6121 | return NULL; | |
6122 | } | |
6123 | ||
6124 | ||
c370783e | 6125 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6126 | PyObject *resultobj; |
6127 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6128 | int arg2 ; | |
6129 | bool result; | |
6130 | PyObject * obj0 = 0 ; | |
6131 | PyObject * obj1 = 0 ; | |
6132 | char *kwnames[] = { | |
6133 | (char *) "self",(char *) "n", NULL | |
6134 | }; | |
6135 | ||
6136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
6137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6139 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6140 | if (PyErr_Occurred()) SWIG_fail; |
6141 | { | |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
6144 | ||
6145 | wxPyEndAllowThreads(__tstate); | |
6146 | if (PyErr_Occurred()) SWIG_fail; | |
6147 | } | |
6148 | { | |
6149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6150 | } | |
6151 | return resultobj; | |
6152 | fail: | |
6153 | return NULL; | |
6154 | } | |
6155 | ||
6156 | ||
c370783e | 6157 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6158 | PyObject *resultobj; |
6159 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6160 | int arg2 ; | |
6161 | bool arg3 = (bool) True ; | |
6162 | PyObject * obj0 = 0 ; | |
6163 | PyObject * obj1 = 0 ; | |
6164 | PyObject * obj2 = 0 ; | |
6165 | char *kwnames[] = { | |
6166 | (char *) "self",(char *) "n",(char *) "select", NULL | |
6167 | }; | |
6168 | ||
6169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6172 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6173 | if (PyErr_Occurred()) SWIG_fail; |
6174 | if (obj2) { | |
c370783e | 6175 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6176 | if (PyErr_Occurred()) SWIG_fail; |
6177 | } | |
6178 | { | |
6179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6180 | (arg1)->SetSelection(arg2,arg3); | |
6181 | ||
6182 | wxPyEndAllowThreads(__tstate); | |
6183 | if (PyErr_Occurred()) SWIG_fail; | |
6184 | } | |
6185 | Py_INCREF(Py_None); resultobj = Py_None; | |
6186 | return resultobj; | |
6187 | fail: | |
6188 | return NULL; | |
6189 | } | |
6190 | ||
6191 | ||
c370783e | 6192 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6193 | PyObject *resultobj; |
6194 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6195 | int arg2 ; | |
6196 | PyObject * obj0 = 0 ; | |
6197 | PyObject * obj1 = 0 ; | |
6198 | char *kwnames[] = { | |
6199 | (char *) "self",(char *) "n", NULL | |
6200 | }; | |
6201 | ||
6202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
6203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6205 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6206 | if (PyErr_Occurred()) SWIG_fail; |
6207 | { | |
6208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6209 | (arg1)->Select(arg2); | |
6210 | ||
6211 | wxPyEndAllowThreads(__tstate); | |
6212 | if (PyErr_Occurred()) SWIG_fail; | |
6213 | } | |
6214 | Py_INCREF(Py_None); resultobj = Py_None; | |
6215 | return resultobj; | |
6216 | fail: | |
6217 | return NULL; | |
6218 | } | |
6219 | ||
6220 | ||
c370783e | 6221 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6222 | PyObject *resultobj; |
6223 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6224 | int arg2 ; | |
6225 | PyObject * obj0 = 0 ; | |
6226 | PyObject * obj1 = 0 ; | |
6227 | char *kwnames[] = { | |
6228 | (char *) "self",(char *) "n", NULL | |
6229 | }; | |
6230 | ||
6231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
6232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6234 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6235 | if (PyErr_Occurred()) SWIG_fail; |
6236 | { | |
6237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6238 | (arg1)->Deselect(arg2); | |
6239 | ||
6240 | wxPyEndAllowThreads(__tstate); | |
6241 | if (PyErr_Occurred()) SWIG_fail; | |
6242 | } | |
6243 | Py_INCREF(Py_None); resultobj = Py_None; | |
6244 | return resultobj; | |
6245 | fail: | |
6246 | return NULL; | |
6247 | } | |
6248 | ||
6249 | ||
c370783e | 6250 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6251 | PyObject *resultobj; |
6252 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6253 | int arg2 = (int) -1 ; | |
6254 | PyObject * obj0 = 0 ; | |
6255 | PyObject * obj1 = 0 ; | |
6256 | char *kwnames[] = { | |
6257 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6258 | }; | |
6259 | ||
6260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
6261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6263 | if (obj1) { | |
c370783e | 6264 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6265 | if (PyErr_Occurred()) SWIG_fail; |
6266 | } | |
6267 | { | |
6268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6269 | (arg1)->DeselectAll(arg2); | |
6270 | ||
6271 | wxPyEndAllowThreads(__tstate); | |
6272 | if (PyErr_Occurred()) SWIG_fail; | |
6273 | } | |
6274 | Py_INCREF(Py_None); resultobj = Py_None; | |
6275 | return resultobj; | |
6276 | fail: | |
6277 | return NULL; | |
6278 | } | |
6279 | ||
6280 | ||
c370783e | 6281 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6282 | PyObject *resultobj; |
6283 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6284 | wxString *arg2 = 0 ; | |
6285 | bool arg3 = (bool) True ; | |
6286 | bool result; | |
6287 | bool temp2 = False ; | |
6288 | PyObject * obj0 = 0 ; | |
6289 | PyObject * obj1 = 0 ; | |
6290 | PyObject * obj2 = 0 ; | |
6291 | char *kwnames[] = { | |
6292 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6293 | }; | |
6294 | ||
6295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6298 | { | |
6299 | arg2 = wxString_in_helper(obj1); | |
6300 | if (arg2 == NULL) SWIG_fail; | |
6301 | temp2 = True; | |
6302 | } | |
6303 | if (obj2) { | |
c370783e | 6304 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6305 | if (PyErr_Occurred()) SWIG_fail; |
6306 | } | |
6307 | { | |
6308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6309 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6310 | ||
6311 | wxPyEndAllowThreads(__tstate); | |
6312 | if (PyErr_Occurred()) SWIG_fail; | |
6313 | } | |
6314 | { | |
6315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6316 | } | |
6317 | { | |
6318 | if (temp2) | |
6319 | delete arg2; | |
6320 | } | |
6321 | return resultobj; | |
6322 | fail: | |
6323 | { | |
6324 | if (temp2) | |
6325 | delete arg2; | |
6326 | } | |
6327 | return NULL; | |
6328 | } | |
6329 | ||
6330 | ||
c370783e | 6331 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6332 | PyObject *resultobj; |
6333 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6334 | PyObject *result; | |
6335 | PyObject * obj0 = 0 ; | |
6336 | char *kwnames[] = { | |
6337 | (char *) "self", NULL | |
6338 | }; | |
6339 | ||
6340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
6341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | resultobj = result; | |
6351 | return resultobj; | |
6352 | fail: | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
c370783e | 6357 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6358 | PyObject *resultobj; |
6359 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6360 | int arg2 ; | |
6361 | PyObject * obj0 = 0 ; | |
6362 | PyObject * obj1 = 0 ; | |
6363 | char *kwnames[] = { | |
6364 | (char *) "self",(char *) "n", NULL | |
6365 | }; | |
6366 | ||
6367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
6368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6370 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6371 | if (PyErr_Occurred()) SWIG_fail; |
6372 | { | |
6373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6374 | (arg1)->SetFirstItem(arg2); | |
6375 | ||
6376 | wxPyEndAllowThreads(__tstate); | |
6377 | if (PyErr_Occurred()) SWIG_fail; | |
6378 | } | |
6379 | Py_INCREF(Py_None); resultobj = Py_None; | |
6380 | return resultobj; | |
6381 | fail: | |
6382 | return NULL; | |
6383 | } | |
6384 | ||
6385 | ||
c370783e | 6386 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6387 | PyObject *resultobj; |
6388 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6389 | wxString *arg2 = 0 ; | |
6390 | bool temp2 = False ; | |
6391 | PyObject * obj0 = 0 ; | |
6392 | PyObject * obj1 = 0 ; | |
6393 | char *kwnames[] = { | |
6394 | (char *) "self",(char *) "s", NULL | |
6395 | }; | |
6396 | ||
6397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
6398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6400 | { | |
6401 | arg2 = wxString_in_helper(obj1); | |
6402 | if (arg2 == NULL) SWIG_fail; | |
6403 | temp2 = True; | |
6404 | } | |
6405 | { | |
6406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6407 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6408 | ||
6409 | wxPyEndAllowThreads(__tstate); | |
6410 | if (PyErr_Occurred()) SWIG_fail; | |
6411 | } | |
6412 | Py_INCREF(Py_None); resultobj = Py_None; | |
6413 | { | |
6414 | if (temp2) | |
6415 | delete arg2; | |
6416 | } | |
6417 | return resultobj; | |
6418 | fail: | |
6419 | { | |
6420 | if (temp2) | |
6421 | delete arg2; | |
6422 | } | |
6423 | return NULL; | |
6424 | } | |
6425 | ||
6426 | ||
c370783e | 6427 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6428 | PyObject *resultobj; |
6429 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6430 | int arg2 ; | |
6431 | PyObject * obj0 = 0 ; | |
6432 | PyObject * obj1 = 0 ; | |
6433 | char *kwnames[] = { | |
6434 | (char *) "self",(char *) "n", NULL | |
6435 | }; | |
6436 | ||
6437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
6438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6440 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6441 | if (PyErr_Occurred()) SWIG_fail; |
6442 | { | |
6443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6444 | (arg1)->EnsureVisible(arg2); | |
6445 | ||
6446 | wxPyEndAllowThreads(__tstate); | |
6447 | if (PyErr_Occurred()) SWIG_fail; | |
6448 | } | |
6449 | Py_INCREF(Py_None); resultobj = Py_None; | |
6450 | return resultobj; | |
6451 | fail: | |
6452 | return NULL; | |
6453 | } | |
6454 | ||
6455 | ||
c370783e | 6456 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6457 | PyObject *resultobj; |
6458 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6459 | wxString *arg2 = 0 ; | |
6460 | bool temp2 = False ; | |
6461 | PyObject * obj0 = 0 ; | |
6462 | PyObject * obj1 = 0 ; | |
6463 | char *kwnames[] = { | |
6464 | (char *) "self",(char *) "s", NULL | |
6465 | }; | |
6466 | ||
6467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
6468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6470 | { | |
6471 | arg2 = wxString_in_helper(obj1); | |
6472 | if (arg2 == NULL) SWIG_fail; | |
6473 | temp2 = True; | |
6474 | } | |
6475 | { | |
6476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6477 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6478 | ||
6479 | wxPyEndAllowThreads(__tstate); | |
6480 | if (PyErr_Occurred()) SWIG_fail; | |
6481 | } | |
6482 | Py_INCREF(Py_None); resultobj = Py_None; | |
6483 | { | |
6484 | if (temp2) | |
6485 | delete arg2; | |
6486 | } | |
6487 | return resultobj; | |
6488 | fail: | |
6489 | { | |
6490 | if (temp2) | |
6491 | delete arg2; | |
6492 | } | |
6493 | return NULL; | |
6494 | } | |
6495 | ||
6496 | ||
c370783e | 6497 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6498 | PyObject *resultobj; |
6499 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6500 | bool result; | |
6501 | PyObject * obj0 = 0 ; | |
6502 | char *kwnames[] = { | |
6503 | (char *) "self", NULL | |
6504 | }; | |
6505 | ||
6506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
6507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6509 | { | |
6510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6511 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6512 | ||
6513 | wxPyEndAllowThreads(__tstate); | |
6514 | if (PyErr_Occurred()) SWIG_fail; | |
6515 | } | |
6516 | { | |
6517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6518 | } | |
6519 | return resultobj; | |
6520 | fail: | |
6521 | return NULL; | |
6522 | } | |
6523 | ||
6524 | ||
c370783e | 6525 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6526 | PyObject *resultobj; |
6527 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6528 | int arg2 ; | |
6529 | wxColour *arg3 = 0 ; | |
6530 | wxColour temp3 ; | |
6531 | PyObject * obj0 = 0 ; | |
6532 | PyObject * obj1 = 0 ; | |
6533 | PyObject * obj2 = 0 ; | |
6534 | char *kwnames[] = { | |
6535 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6536 | }; | |
6537 | ||
6538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6541 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6542 | if (PyErr_Occurred()) SWIG_fail; |
6543 | { | |
6544 | arg3 = &temp3; | |
6545 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6546 | } | |
6547 | { | |
6548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6549 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6550 | ||
6551 | wxPyEndAllowThreads(__tstate); | |
6552 | if (PyErr_Occurred()) SWIG_fail; | |
6553 | } | |
6554 | Py_INCREF(Py_None); resultobj = Py_None; | |
6555 | return resultobj; | |
6556 | fail: | |
6557 | return NULL; | |
6558 | } | |
6559 | ||
6560 | ||
c370783e | 6561 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6562 | PyObject *resultobj; |
6563 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6564 | int arg2 ; | |
6565 | wxColour *arg3 = 0 ; | |
6566 | wxColour temp3 ; | |
6567 | PyObject * obj0 = 0 ; | |
6568 | PyObject * obj1 = 0 ; | |
6569 | PyObject * obj2 = 0 ; | |
6570 | char *kwnames[] = { | |
6571 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6572 | }; | |
6573 | ||
6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6577 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6578 | if (PyErr_Occurred()) SWIG_fail; |
6579 | { | |
6580 | arg3 = &temp3; | |
6581 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6582 | } | |
6583 | { | |
6584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6585 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6586 | ||
6587 | wxPyEndAllowThreads(__tstate); | |
6588 | if (PyErr_Occurred()) SWIG_fail; | |
6589 | } | |
6590 | Py_INCREF(Py_None); resultobj = Py_None; | |
6591 | return resultobj; | |
6592 | fail: | |
6593 | return NULL; | |
6594 | } | |
6595 | ||
6596 | ||
c370783e | 6597 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6598 | PyObject *resultobj; |
6599 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6600 | int arg2 ; | |
6601 | wxFont *arg3 = 0 ; | |
6602 | PyObject * obj0 = 0 ; | |
6603 | PyObject * obj1 = 0 ; | |
6604 | PyObject * obj2 = 0 ; | |
6605 | char *kwnames[] = { | |
6606 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6607 | }; | |
6608 | ||
6609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6612 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6613 | if (PyErr_Occurred()) SWIG_fail; |
6614 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6615 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6616 | SWIG_fail; | |
6617 | if (arg3 == NULL) { | |
6618 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6619 | SWIG_fail; | |
6620 | } | |
6621 | { | |
6622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6623 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6624 | ||
6625 | wxPyEndAllowThreads(__tstate); | |
6626 | if (PyErr_Occurred()) SWIG_fail; | |
6627 | } | |
6628 | Py_INCREF(Py_None); resultobj = Py_None; | |
6629 | return resultobj; | |
6630 | fail: | |
6631 | return NULL; | |
6632 | } | |
6633 | ||
6634 | ||
c370783e | 6635 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6636 | PyObject *resultobj; |
6637 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6638 | wxVisualAttributes result; | |
6639 | PyObject * obj0 = 0 ; | |
6640 | char *kwnames[] = { | |
6641 | (char *) "variant", NULL | |
6642 | }; | |
6643 | ||
6644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6645 | if (obj0) { | |
c370783e | 6646 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
6647 | if (PyErr_Occurred()) SWIG_fail; |
6648 | } | |
6649 | { | |
0439c23b | 6650 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6652 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6653 | ||
6654 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6655 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6656 | } |
6657 | { | |
6658 | wxVisualAttributes * resultptr; | |
6659 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6660 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6661 | } | |
6662 | return resultobj; | |
6663 | fail: | |
6664 | return NULL; | |
6665 | } | |
6666 | ||
6667 | ||
c370783e | 6668 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6669 | PyObject *obj; |
6670 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6671 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6672 | Py_INCREF(obj); | |
6673 | return Py_BuildValue((char *)""); | |
6674 | } | |
c370783e | 6675 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6676 | PyObject *resultobj; |
6677 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 6678 | int arg2 = (int) -1 ; |
d55e5bfc RD |
6679 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6680 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6681 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6682 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6683 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
6684 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6685 | long arg6 = (long) 0 ; | |
6686 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6687 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6688 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6689 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6690 | wxCheckListBox *result; | |
6691 | wxPoint temp3 ; | |
6692 | wxSize temp4 ; | |
6693 | bool temp5 = False ; | |
6694 | bool temp8 = False ; | |
6695 | PyObject * obj0 = 0 ; | |
6696 | PyObject * obj1 = 0 ; | |
6697 | PyObject * obj2 = 0 ; | |
6698 | PyObject * obj3 = 0 ; | |
6699 | PyObject * obj4 = 0 ; | |
6700 | PyObject * obj5 = 0 ; | |
6701 | PyObject * obj6 = 0 ; | |
6702 | PyObject * obj7 = 0 ; | |
6703 | char *kwnames[] = { | |
6704 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6705 | }; | |
6706 | ||
bfddbb17 | 6707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
6708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 6710 | if (obj1) { |
c370783e | 6711 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
6712 | if (PyErr_Occurred()) SWIG_fail; |
6713 | } | |
d55e5bfc RD |
6714 | if (obj2) { |
6715 | { | |
6716 | arg3 = &temp3; | |
6717 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6718 | } | |
6719 | } | |
6720 | if (obj3) { | |
6721 | { | |
6722 | arg4 = &temp4; | |
6723 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6724 | } | |
6725 | } | |
6726 | if (obj4) { | |
6727 | { | |
6728 | if (! PySequence_Check(obj4)) { | |
6729 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6730 | SWIG_fail; | |
6731 | } | |
6732 | arg5 = new wxArrayString; | |
6733 | temp5 = True; | |
6734 | int i, len=PySequence_Length(obj4); | |
6735 | for (i=0; i<len; i++) { | |
6736 | PyObject* item = PySequence_GetItem(obj4, i); | |
6737 | #if wxUSE_UNICODE | |
6738 | PyObject* str = PyObject_Unicode(item); | |
6739 | #else | |
6740 | PyObject* str = PyObject_Str(item); | |
6741 | #endif | |
6742 | if (PyErr_Occurred()) SWIG_fail; | |
6743 | arg5->Add(Py2wxString(str)); | |
6744 | Py_DECREF(item); | |
6745 | Py_DECREF(str); | |
6746 | } | |
6747 | } | |
6748 | } | |
6749 | if (obj5) { | |
c370783e | 6750 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
6751 | if (PyErr_Occurred()) SWIG_fail; |
6752 | } | |
6753 | if (obj6) { | |
6754 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
6755 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6756 | SWIG_fail; | |
6757 | if (arg7 == NULL) { | |
6758 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6759 | SWIG_fail; | |
6760 | } | |
6761 | } | |
6762 | if (obj7) { | |
6763 | { | |
6764 | arg8 = wxString_in_helper(obj7); | |
6765 | if (arg8 == NULL) SWIG_fail; | |
6766 | temp8 = True; | |
6767 | } | |
6768 | } | |
6769 | { | |
0439c23b | 6770 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6772 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6773 | ||
6774 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6775 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6776 | } |
6777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6778 | { | |
6779 | if (temp5) delete arg5; | |
6780 | } | |
6781 | { | |
6782 | if (temp8) | |
6783 | delete arg8; | |
6784 | } | |
6785 | return resultobj; | |
6786 | fail: | |
6787 | { | |
6788 | if (temp5) delete arg5; | |
6789 | } | |
6790 | { | |
6791 | if (temp8) | |
6792 | delete arg8; | |
6793 | } | |
6794 | return NULL; | |
6795 | } | |
6796 | ||
6797 | ||
c370783e | 6798 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6799 | PyObject *resultobj; |
6800 | wxCheckListBox *result; | |
6801 | char *kwnames[] = { | |
6802 | NULL | |
6803 | }; | |
6804 | ||
6805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6806 | { | |
0439c23b | 6807 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6809 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6810 | ||
6811 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6812 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6813 | } |
6814 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6815 | return resultobj; | |
6816 | fail: | |
6817 | return NULL; | |
6818 | } | |
6819 | ||
6820 | ||
c370783e | 6821 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6822 | PyObject *resultobj; |
6823 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6824 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 6825 | int arg3 = (int) -1 ; |
d55e5bfc RD |
6826 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6827 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6828 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6829 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6830 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
6831 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6832 | long arg7 = (long) 0 ; | |
6833 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6834 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6835 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6836 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6837 | bool result; | |
6838 | wxPoint temp4 ; | |
6839 | wxSize temp5 ; | |
6840 | bool temp6 = False ; | |
6841 | bool temp9 = False ; | |
6842 | PyObject * obj0 = 0 ; | |
6843 | PyObject * obj1 = 0 ; | |
6844 | PyObject * obj2 = 0 ; | |
6845 | PyObject * obj3 = 0 ; | |
6846 | PyObject * obj4 = 0 ; | |
6847 | PyObject * obj5 = 0 ; | |
6848 | PyObject * obj6 = 0 ; | |
6849 | PyObject * obj7 = 0 ; | |
6850 | PyObject * obj8 = 0 ; | |
6851 | char *kwnames[] = { | |
6852 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6853 | }; | |
6854 | ||
bfddbb17 | 6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
6856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6858 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 6860 | if (obj2) { |
c370783e | 6861 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
6862 | if (PyErr_Occurred()) SWIG_fail; |
6863 | } | |
d55e5bfc RD |
6864 | if (obj3) { |
6865 | { | |
6866 | arg4 = &temp4; | |
6867 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6868 | } | |
6869 | } | |
6870 | if (obj4) { | |
6871 | { | |
6872 | arg5 = &temp5; | |
6873 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6874 | } | |
6875 | } | |
6876 | if (obj5) { | |
6877 | { | |
6878 | if (! PySequence_Check(obj5)) { | |
6879 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6880 | SWIG_fail; | |
6881 | } | |
6882 | arg6 = new wxArrayString; | |
6883 | temp6 = True; | |
6884 | int i, len=PySequence_Length(obj5); | |
6885 | for (i=0; i<len; i++) { | |
6886 | PyObject* item = PySequence_GetItem(obj5, i); | |
6887 | #if wxUSE_UNICODE | |
6888 | PyObject* str = PyObject_Unicode(item); | |
6889 | #else | |
6890 | PyObject* str = PyObject_Str(item); | |
6891 | #endif | |
6892 | if (PyErr_Occurred()) SWIG_fail; | |
6893 | arg6->Add(Py2wxString(str)); | |
6894 | Py_DECREF(item); | |
6895 | Py_DECREF(str); | |
6896 | } | |
6897 | } | |
6898 | } | |
6899 | if (obj6) { | |
c370783e | 6900 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
6901 | if (PyErr_Occurred()) SWIG_fail; |
6902 | } | |
6903 | if (obj7) { | |
6904 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
6905 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6906 | SWIG_fail; | |
6907 | if (arg8 == NULL) { | |
6908 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6909 | SWIG_fail; | |
6910 | } | |
6911 | } | |
6912 | if (obj8) { | |
6913 | { | |
6914 | arg9 = wxString_in_helper(obj8); | |
6915 | if (arg9 == NULL) SWIG_fail; | |
6916 | temp9 = True; | |
6917 | } | |
6918 | } | |
6919 | { | |
6920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6921 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6922 | ||
6923 | wxPyEndAllowThreads(__tstate); | |
6924 | if (PyErr_Occurred()) SWIG_fail; | |
6925 | } | |
6926 | { | |
6927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6928 | } | |
6929 | { | |
6930 | if (temp6) delete arg6; | |
6931 | } | |
6932 | { | |
6933 | if (temp9) | |
6934 | delete arg9; | |
6935 | } | |
6936 | return resultobj; | |
6937 | fail: | |
6938 | { | |
6939 | if (temp6) delete arg6; | |
6940 | } | |
6941 | { | |
6942 | if (temp9) | |
6943 | delete arg9; | |
6944 | } | |
6945 | return NULL; | |
6946 | } | |
6947 | ||
6948 | ||
c370783e | 6949 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6950 | PyObject *resultobj; |
6951 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6952 | int arg2 ; | |
6953 | bool result; | |
6954 | PyObject * obj0 = 0 ; | |
6955 | PyObject * obj1 = 0 ; | |
6956 | char *kwnames[] = { | |
6957 | (char *) "self",(char *) "index", NULL | |
6958 | }; | |
6959 | ||
6960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
6961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6963 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6964 | if (PyErr_Occurred()) SWIG_fail; |
6965 | { | |
6966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6967 | result = (bool)(arg1)->IsChecked(arg2); | |
6968 | ||
6969 | wxPyEndAllowThreads(__tstate); | |
6970 | if (PyErr_Occurred()) SWIG_fail; | |
6971 | } | |
6972 | { | |
6973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6974 | } | |
6975 | return resultobj; | |
6976 | fail: | |
6977 | return NULL; | |
6978 | } | |
6979 | ||
6980 | ||
c370783e | 6981 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6982 | PyObject *resultobj; |
6983 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6984 | int arg2 ; | |
6985 | int arg3 = (int) True ; | |
6986 | PyObject * obj0 = 0 ; | |
6987 | PyObject * obj1 = 0 ; | |
6988 | PyObject * obj2 = 0 ; | |
6989 | char *kwnames[] = { | |
6990 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6991 | }; | |
6992 | ||
6993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6996 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6997 | if (PyErr_Occurred()) SWIG_fail; |
6998 | if (obj2) { | |
c370783e | 6999 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7000 | if (PyErr_Occurred()) SWIG_fail; |
7001 | } | |
7002 | { | |
7003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7004 | (arg1)->Check(arg2,arg3); | |
7005 | ||
7006 | wxPyEndAllowThreads(__tstate); | |
7007 | if (PyErr_Occurred()) SWIG_fail; | |
7008 | } | |
7009 | Py_INCREF(Py_None); resultobj = Py_None; | |
7010 | return resultobj; | |
7011 | fail: | |
7012 | return NULL; | |
7013 | } | |
7014 | ||
7015 | ||
c370783e | 7016 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7017 | PyObject *resultobj; |
7018 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7019 | wxPoint *arg2 = 0 ; | |
7020 | int result; | |
7021 | wxPoint temp2 ; | |
7022 | PyObject * obj0 = 0 ; | |
7023 | PyObject * obj1 = 0 ; | |
7024 | char *kwnames[] = { | |
7025 | (char *) "self",(char *) "pt", NULL | |
7026 | }; | |
7027 | ||
7028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
7029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
7030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7031 | { | |
7032 | arg2 = &temp2; | |
7033 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7034 | } | |
7035 | { | |
7036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7037 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
7038 | ||
7039 | wxPyEndAllowThreads(__tstate); | |
7040 | if (PyErr_Occurred()) SWIG_fail; | |
7041 | } | |
c370783e | 7042 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7043 | return resultobj; |
7044 | fail: | |
7045 | return NULL; | |
7046 | } | |
7047 | ||
7048 | ||
c370783e | 7049 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7050 | PyObject *resultobj; |
7051 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7052 | int arg2 ; | |
7053 | int arg3 ; | |
7054 | int result; | |
7055 | PyObject * obj0 = 0 ; | |
7056 | PyObject * obj1 = 0 ; | |
7057 | PyObject * obj2 = 0 ; | |
7058 | char *kwnames[] = { | |
7059 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7060 | }; | |
7061 | ||
7062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
7064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7065 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 7066 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7067 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7068 | if (PyErr_Occurred()) SWIG_fail; |
7069 | { | |
7070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7071 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
7072 | ||
7073 | wxPyEndAllowThreads(__tstate); | |
7074 | if (PyErr_Occurred()) SWIG_fail; | |
7075 | } | |
c370783e | 7076 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7077 | return resultobj; |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
c370783e | 7083 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7084 | PyObject *obj; |
7085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7086 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
7087 | Py_INCREF(obj); | |
7088 | return Py_BuildValue((char *)""); | |
7089 | } | |
c370783e | 7090 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
7091 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
7092 | return 1; | |
7093 | } | |
7094 | ||
7095 | ||
7096 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
7097 | PyObject *pyobj; | |
7098 | ||
7099 | { | |
7100 | #if wxUSE_UNICODE | |
7101 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7102 | #else | |
7103 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7104 | #endif | |
7105 | } | |
7106 | return pyobj; | |
7107 | } | |
7108 | ||
7109 | ||
c370783e | 7110 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7111 | PyObject *resultobj; |
908b74cd RD |
7112 | wxColour const &arg1_defvalue = wxNullColour ; |
7113 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d55e5bfc RD |
7114 | wxColour const &arg2_defvalue = wxNullColour ; |
7115 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
7116 | wxFont const &arg3_defvalue = wxNullFont ; | |
7117 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
7118 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
7119 | wxTextAttr *result; | |
7120 | wxColour temp1 ; | |
7121 | wxColour temp2 ; | |
7122 | PyObject * obj0 = 0 ; | |
7123 | PyObject * obj1 = 0 ; | |
7124 | PyObject * obj2 = 0 ; | |
7125 | PyObject * obj3 = 0 ; | |
908b74cd RD |
7126 | char *kwnames[] = { |
7127 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
7128 | }; | |
d55e5bfc | 7129 | |
908b74cd RD |
7130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7131 | if (obj0) { | |
7132 | { | |
7133 | arg1 = &temp1; | |
7134 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
7135 | } | |
d55e5bfc RD |
7136 | } |
7137 | if (obj1) { | |
7138 | { | |
7139 | arg2 = &temp2; | |
7140 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7141 | } | |
7142 | } | |
7143 | if (obj2) { | |
7144 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
7145 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7146 | SWIG_fail; | |
7147 | if (arg3 == NULL) { | |
7148 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7149 | SWIG_fail; | |
7150 | } | |
7151 | } | |
7152 | if (obj3) { | |
c370783e | 7153 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
7154 | if (PyErr_Occurred()) SWIG_fail; |
7155 | } | |
7156 | { | |
7157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7158 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
7159 | ||
7160 | wxPyEndAllowThreads(__tstate); | |
7161 | if (PyErr_Occurred()) SWIG_fail; | |
7162 | } | |
7163 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
7164 | return resultobj; | |
7165 | fail: | |
7166 | return NULL; | |
7167 | } | |
7168 | ||
7169 | ||
c370783e | 7170 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7171 | PyObject *resultobj; |
7172 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7173 | PyObject * obj0 = 0 ; | |
7174 | char *kwnames[] = { | |
7175 | (char *) "self", NULL | |
7176 | }; | |
7177 | ||
7178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
7179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7181 | { | |
7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7183 | delete arg1; | |
7184 | ||
7185 | wxPyEndAllowThreads(__tstate); | |
7186 | if (PyErr_Occurred()) SWIG_fail; | |
7187 | } | |
7188 | Py_INCREF(Py_None); resultobj = Py_None; | |
7189 | return resultobj; | |
7190 | fail: | |
7191 | return NULL; | |
7192 | } | |
7193 | ||
7194 | ||
c370783e | 7195 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7196 | PyObject *resultobj; |
7197 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7198 | PyObject * obj0 = 0 ; | |
7199 | char *kwnames[] = { | |
7200 | (char *) "self", NULL | |
7201 | }; | |
7202 | ||
7203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
7204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7206 | { | |
7207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7208 | (arg1)->Init(); | |
7209 | ||
7210 | wxPyEndAllowThreads(__tstate); | |
7211 | if (PyErr_Occurred()) SWIG_fail; | |
7212 | } | |
7213 | Py_INCREF(Py_None); resultobj = Py_None; | |
7214 | return resultobj; | |
7215 | fail: | |
7216 | return NULL; | |
7217 | } | |
7218 | ||
7219 | ||
c370783e | 7220 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7221 | PyObject *resultobj; |
7222 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7223 | wxColour *arg2 = 0 ; | |
7224 | wxColour temp2 ; | |
7225 | PyObject * obj0 = 0 ; | |
7226 | PyObject * obj1 = 0 ; | |
7227 | char *kwnames[] = { | |
7228 | (char *) "self",(char *) "colText", NULL | |
7229 | }; | |
7230 | ||
7231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
7232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7234 | { | |
7235 | arg2 = &temp2; | |
7236 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7237 | } | |
7238 | { | |
7239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7240 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7241 | ||
7242 | wxPyEndAllowThreads(__tstate); | |
7243 | if (PyErr_Occurred()) SWIG_fail; | |
7244 | } | |
7245 | Py_INCREF(Py_None); resultobj = Py_None; | |
7246 | return resultobj; | |
7247 | fail: | |
7248 | return NULL; | |
7249 | } | |
7250 | ||
7251 | ||
c370783e | 7252 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7253 | PyObject *resultobj; |
7254 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7255 | wxColour *arg2 = 0 ; | |
7256 | wxColour temp2 ; | |
7257 | PyObject * obj0 = 0 ; | |
7258 | PyObject * obj1 = 0 ; | |
7259 | char *kwnames[] = { | |
7260 | (char *) "self",(char *) "colBack", NULL | |
7261 | }; | |
7262 | ||
7263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
7264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7266 | { | |
7267 | arg2 = &temp2; | |
7268 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7269 | } | |
7270 | { | |
7271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7272 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7273 | ||
7274 | wxPyEndAllowThreads(__tstate); | |
7275 | if (PyErr_Occurred()) SWIG_fail; | |
7276 | } | |
7277 | Py_INCREF(Py_None); resultobj = Py_None; | |
7278 | return resultobj; | |
7279 | fail: | |
7280 | return NULL; | |
7281 | } | |
7282 | ||
7283 | ||
c370783e | 7284 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7285 | PyObject *resultobj; |
7286 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7287 | wxFont *arg2 = 0 ; | |
7288 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7289 | PyObject * obj0 = 0 ; | |
7290 | PyObject * obj1 = 0 ; | |
7291 | PyObject * obj2 = 0 ; | |
7292 | char *kwnames[] = { | |
7293 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7294 | }; | |
7295 | ||
7296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7299 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7300 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7301 | SWIG_fail; | |
7302 | if (arg2 == NULL) { | |
7303 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7304 | SWIG_fail; | |
7305 | } | |
7306 | if (obj2) { | |
c370783e | 7307 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
7308 | if (PyErr_Occurred()) SWIG_fail; |
7309 | } | |
7310 | { | |
7311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7312 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7313 | ||
7314 | wxPyEndAllowThreads(__tstate); | |
7315 | if (PyErr_Occurred()) SWIG_fail; | |
7316 | } | |
7317 | Py_INCREF(Py_None); resultobj = Py_None; | |
7318 | return resultobj; | |
7319 | fail: | |
7320 | return NULL; | |
7321 | } | |
7322 | ||
7323 | ||
c370783e | 7324 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7325 | PyObject *resultobj; |
7326 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7327 | int arg2 ; | |
7328 | PyObject * obj0 = 0 ; | |
7329 | PyObject * obj1 = 0 ; | |
7330 | char *kwnames[] = { | |
7331 | (char *) "self",(char *) "alignment", NULL | |
7332 | }; | |
7333 | ||
7334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
7335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7337 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7338 | if (PyErr_Occurred()) SWIG_fail; |
7339 | { | |
7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7341 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7342 | ||
7343 | wxPyEndAllowThreads(__tstate); | |
7344 | if (PyErr_Occurred()) SWIG_fail; | |
7345 | } | |
7346 | Py_INCREF(Py_None); resultobj = Py_None; | |
7347 | return resultobj; | |
7348 | fail: | |
7349 | return NULL; | |
7350 | } | |
7351 | ||
7352 | ||
c370783e | 7353 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7354 | PyObject *resultobj; |
7355 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7356 | wxArrayInt *arg2 = 0 ; | |
7357 | bool temp2 = False ; | |
7358 | PyObject * obj0 = 0 ; | |
7359 | PyObject * obj1 = 0 ; | |
7360 | char *kwnames[] = { | |
7361 | (char *) "self",(char *) "tabs", NULL | |
7362 | }; | |
7363 | ||
7364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
7365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7367 | { | |
7368 | if (! PySequence_Check(obj1)) { | |
7369 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7370 | SWIG_fail; | |
7371 | } | |
7372 | arg2 = new wxArrayInt; | |
7373 | temp2 = True; | |
7374 | int i, len=PySequence_Length(obj1); | |
7375 | for (i=0; i<len; i++) { | |
7376 | PyObject* item = PySequence_GetItem(obj1, i); | |
7377 | PyObject* number = PyNumber_Int(item); | |
7378 | arg2->Add(PyInt_AS_LONG(number)); | |
7379 | Py_DECREF(item); | |
7380 | Py_DECREF(number); | |
7381 | } | |
7382 | } | |
7383 | { | |
7384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7385 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7386 | ||
7387 | wxPyEndAllowThreads(__tstate); | |
7388 | if (PyErr_Occurred()) SWIG_fail; | |
7389 | } | |
7390 | Py_INCREF(Py_None); resultobj = Py_None; | |
7391 | { | |
7392 | if (temp2) delete arg2; | |
7393 | } | |
7394 | return resultobj; | |
7395 | fail: | |
7396 | { | |
7397 | if (temp2) delete arg2; | |
7398 | } | |
7399 | return NULL; | |
7400 | } | |
7401 | ||
7402 | ||
c370783e | 7403 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7404 | PyObject *resultobj; |
7405 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7406 | int arg2 ; | |
68e533f8 | 7407 | int arg3 = (int) 0 ; |
d55e5bfc RD |
7408 | PyObject * obj0 = 0 ; |
7409 | PyObject * obj1 = 0 ; | |
68e533f8 | 7410 | PyObject * obj2 = 0 ; |
d55e5bfc | 7411 | char *kwnames[] = { |
68e533f8 | 7412 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d55e5bfc RD |
7413 | }; |
7414 | ||
68e533f8 | 7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
7416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7418 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 7419 | if (PyErr_Occurred()) SWIG_fail; |
68e533f8 | 7420 | if (obj2) { |
c370783e | 7421 | arg3 = (int)SWIG_As_int(obj2); |
68e533f8 RD |
7422 | if (PyErr_Occurred()) SWIG_fail; |
7423 | } | |
d55e5bfc RD |
7424 | { |
7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 7426 | (arg1)->SetLeftIndent(arg2,arg3); |
d55e5bfc RD |
7427 | |
7428 | wxPyEndAllowThreads(__tstate); | |
7429 | if (PyErr_Occurred()) SWIG_fail; | |
7430 | } | |
7431 | Py_INCREF(Py_None); resultobj = Py_None; | |
7432 | return resultobj; | |
7433 | fail: | |
7434 | return NULL; | |
7435 | } | |
7436 | ||
7437 | ||
c370783e | 7438 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7439 | PyObject *resultobj; |
7440 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7441 | int arg2 ; | |
7442 | PyObject * obj0 = 0 ; | |
7443 | PyObject * obj1 = 0 ; | |
7444 | char *kwnames[] = { | |
7445 | (char *) "self",(char *) "indent", NULL | |
7446 | }; | |
7447 | ||
7448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
7449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7451 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7452 | if (PyErr_Occurred()) SWIG_fail; |
7453 | { | |
7454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7455 | (arg1)->SetRightIndent(arg2); | |
7456 | ||
7457 | wxPyEndAllowThreads(__tstate); | |
7458 | if (PyErr_Occurred()) SWIG_fail; | |
7459 | } | |
7460 | Py_INCREF(Py_None); resultobj = Py_None; | |
7461 | return resultobj; | |
7462 | fail: | |
7463 | return NULL; | |
7464 | } | |
7465 | ||
7466 | ||
c370783e | 7467 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7468 | PyObject *resultobj; |
7469 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7470 | long arg2 ; | |
7471 | PyObject * obj0 = 0 ; | |
7472 | PyObject * obj1 = 0 ; | |
7473 | char *kwnames[] = { | |
7474 | (char *) "self",(char *) "flags", NULL | |
7475 | }; | |
7476 | ||
7477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7480 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
7481 | if (PyErr_Occurred()) SWIG_fail; |
7482 | { | |
7483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7484 | (arg1)->SetFlags(arg2); | |
7485 | ||
7486 | wxPyEndAllowThreads(__tstate); | |
7487 | if (PyErr_Occurred()) SWIG_fail; | |
7488 | } | |
7489 | Py_INCREF(Py_None); resultobj = Py_None; | |
7490 | return resultobj; | |
7491 | fail: | |
7492 | return NULL; | |
7493 | } | |
7494 | ||
7495 | ||
c370783e | 7496 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7497 | PyObject *resultobj; |
7498 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7499 | bool result; | |
7500 | PyObject * obj0 = 0 ; | |
7501 | char *kwnames[] = { | |
7502 | (char *) "self", NULL | |
7503 | }; | |
7504 | ||
7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
7506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7508 | { | |
7509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7510 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7511 | ||
7512 | wxPyEndAllowThreads(__tstate); | |
7513 | if (PyErr_Occurred()) SWIG_fail; | |
7514 | } | |
7515 | { | |
7516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7517 | } | |
7518 | return resultobj; | |
7519 | fail: | |
7520 | return NULL; | |
7521 | } | |
7522 | ||
7523 | ||
c370783e | 7524 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7525 | PyObject *resultobj; |
7526 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7527 | bool result; | |
7528 | PyObject * obj0 = 0 ; | |
7529 | char *kwnames[] = { | |
7530 | (char *) "self", NULL | |
7531 | }; | |
7532 | ||
7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
7534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7536 | { | |
7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7538 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7539 | ||
7540 | wxPyEndAllowThreads(__tstate); | |
7541 | if (PyErr_Occurred()) SWIG_fail; | |
7542 | } | |
7543 | { | |
7544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7545 | } | |
7546 | return resultobj; | |
7547 | fail: | |
7548 | return NULL; | |
7549 | } | |
7550 | ||
7551 | ||
c370783e | 7552 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7553 | PyObject *resultobj; |
7554 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7555 | bool result; | |
7556 | PyObject * obj0 = 0 ; | |
7557 | char *kwnames[] = { | |
7558 | (char *) "self", NULL | |
7559 | }; | |
7560 | ||
7561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
7562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7564 | { | |
7565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7566 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7567 | ||
7568 | wxPyEndAllowThreads(__tstate); | |
7569 | if (PyErr_Occurred()) SWIG_fail; | |
7570 | } | |
7571 | { | |
7572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7573 | } | |
7574 | return resultobj; | |
7575 | fail: | |
7576 | return NULL; | |
7577 | } | |
7578 | ||
7579 | ||
c370783e | 7580 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7581 | PyObject *resultobj; |
7582 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7583 | bool result; | |
7584 | PyObject * obj0 = 0 ; | |
7585 | char *kwnames[] = { | |
7586 | (char *) "self", NULL | |
7587 | }; | |
7588 | ||
7589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
7590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7592 | { | |
7593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7594 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7595 | ||
7596 | wxPyEndAllowThreads(__tstate); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | } | |
7599 | { | |
7600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7601 | } | |
7602 | return resultobj; | |
7603 | fail: | |
7604 | return NULL; | |
7605 | } | |
7606 | ||
7607 | ||
c370783e | 7608 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7609 | PyObject *resultobj; |
7610 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7611 | bool result; | |
7612 | PyObject * obj0 = 0 ; | |
7613 | char *kwnames[] = { | |
7614 | (char *) "self", NULL | |
7615 | }; | |
7616 | ||
7617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
7618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7620 | { | |
7621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7622 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7623 | ||
7624 | wxPyEndAllowThreads(__tstate); | |
7625 | if (PyErr_Occurred()) SWIG_fail; | |
7626 | } | |
7627 | { | |
7628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7629 | } | |
7630 | return resultobj; | |
7631 | fail: | |
7632 | return NULL; | |
7633 | } | |
7634 | ||
7635 | ||
c370783e | 7636 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7637 | PyObject *resultobj; |
7638 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7639 | bool result; | |
7640 | PyObject * obj0 = 0 ; | |
7641 | char *kwnames[] = { | |
7642 | (char *) "self", NULL | |
7643 | }; | |
7644 | ||
7645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
7646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7648 | { | |
7649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7650 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7651 | ||
7652 | wxPyEndAllowThreads(__tstate); | |
7653 | if (PyErr_Occurred()) SWIG_fail; | |
7654 | } | |
7655 | { | |
7656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7657 | } | |
7658 | return resultobj; | |
7659 | fail: | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
c370783e | 7664 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7665 | PyObject *resultobj; |
7666 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7667 | bool result; | |
7668 | PyObject * obj0 = 0 ; | |
7669 | char *kwnames[] = { | |
7670 | (char *) "self", NULL | |
7671 | }; | |
7672 | ||
7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
7674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7676 | { | |
7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7678 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7679 | ||
7680 | wxPyEndAllowThreads(__tstate); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | } | |
7683 | { | |
7684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7685 | } | |
7686 | return resultobj; | |
7687 | fail: | |
7688 | return NULL; | |
7689 | } | |
7690 | ||
7691 | ||
c370783e | 7692 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7693 | PyObject *resultobj; |
7694 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7695 | long arg2 ; | |
7696 | bool result; | |
7697 | PyObject * obj0 = 0 ; | |
7698 | PyObject * obj1 = 0 ; | |
7699 | char *kwnames[] = { | |
7700 | (char *) "self",(char *) "flag", NULL | |
7701 | }; | |
7702 | ||
7703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
7704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7706 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
7707 | if (PyErr_Occurred()) SWIG_fail; |
7708 | { | |
7709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7710 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7711 | ||
7712 | wxPyEndAllowThreads(__tstate); | |
7713 | if (PyErr_Occurred()) SWIG_fail; | |
7714 | } | |
7715 | { | |
7716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7717 | } | |
7718 | return resultobj; | |
7719 | fail: | |
7720 | return NULL; | |
7721 | } | |
7722 | ||
7723 | ||
c370783e | 7724 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7725 | PyObject *resultobj; |
7726 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7727 | wxColour *result; | |
7728 | PyObject * obj0 = 0 ; | |
7729 | char *kwnames[] = { | |
7730 | (char *) "self", NULL | |
7731 | }; | |
7732 | ||
7733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
7734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7736 | { | |
7737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7738 | { | |
7739 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7740 | result = (wxColour *) &_result_ref; | |
7741 | } | |
7742 | ||
7743 | wxPyEndAllowThreads(__tstate); | |
7744 | if (PyErr_Occurred()) SWIG_fail; | |
7745 | } | |
7746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7747 | return resultobj; | |
7748 | fail: | |
7749 | return NULL; | |
7750 | } | |
7751 | ||
7752 | ||
c370783e | 7753 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7754 | PyObject *resultobj; |
7755 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7756 | wxColour *result; | |
7757 | PyObject * obj0 = 0 ; | |
7758 | char *kwnames[] = { | |
7759 | (char *) "self", NULL | |
7760 | }; | |
7761 | ||
7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",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 | { | |
7768 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7769 | result = (wxColour *) &_result_ref; | |
7770 | } | |
7771 | ||
7772 | wxPyEndAllowThreads(__tstate); | |
7773 | if (PyErr_Occurred()) SWIG_fail; | |
7774 | } | |
7775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7776 | return resultobj; | |
7777 | fail: | |
7778 | return NULL; | |
7779 | } | |
7780 | ||
7781 | ||
c370783e | 7782 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7783 | PyObject *resultobj; |
7784 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7785 | wxFont *result; | |
7786 | PyObject * obj0 = 0 ; | |
7787 | char *kwnames[] = { | |
7788 | (char *) "self", NULL | |
7789 | }; | |
7790 | ||
7791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
7792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7794 | { | |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7796 | { | |
7797 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7798 | result = (wxFont *) &_result_ref; | |
7799 | } | |
7800 | ||
7801 | wxPyEndAllowThreads(__tstate); | |
7802 | if (PyErr_Occurred()) SWIG_fail; | |
7803 | } | |
7804 | { | |
7805 | wxFont* resultptr = new wxFont(*result); | |
7806 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7807 | } | |
7808 | return resultobj; | |
7809 | fail: | |
7810 | return NULL; | |
7811 | } | |
7812 | ||
7813 | ||
c370783e | 7814 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7815 | PyObject *resultobj; |
7816 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7817 | int result; | |
7818 | PyObject * obj0 = 0 ; | |
7819 | char *kwnames[] = { | |
7820 | (char *) "self", NULL | |
7821 | }; | |
7822 | ||
7823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7826 | { | |
7827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7828 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7829 | ||
7830 | wxPyEndAllowThreads(__tstate); | |
7831 | if (PyErr_Occurred()) SWIG_fail; | |
7832 | } | |
c370783e | 7833 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7834 | return resultobj; |
7835 | fail: | |
7836 | return NULL; | |
7837 | } | |
7838 | ||
7839 | ||
c370783e | 7840 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7841 | PyObject *resultobj; |
7842 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7843 | wxArrayInt *result; | |
7844 | PyObject * obj0 = 0 ; | |
7845 | char *kwnames[] = { | |
7846 | (char *) "self", NULL | |
7847 | }; | |
7848 | ||
7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7852 | { | |
7853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7854 | { | |
7855 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7856 | result = (wxArrayInt *) &_result_ref; | |
7857 | } | |
7858 | ||
7859 | wxPyEndAllowThreads(__tstate); | |
7860 | if (PyErr_Occurred()) SWIG_fail; | |
7861 | } | |
7862 | { | |
7863 | resultobj = PyList_New(0); | |
7864 | size_t idx; | |
7865 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7866 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7867 | PyList_Append(resultobj, val); | |
7868 | Py_DECREF(val); | |
7869 | } | |
7870 | } | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
c370783e | 7877 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7878 | PyObject *resultobj; |
7879 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7880 | long result; | |
7881 | PyObject * obj0 = 0 ; | |
7882 | char *kwnames[] = { | |
7883 | (char *) "self", NULL | |
7884 | }; | |
7885 | ||
7886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7889 | { | |
7890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7891 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7892 | ||
7893 | wxPyEndAllowThreads(__tstate); | |
7894 | if (PyErr_Occurred()) SWIG_fail; | |
7895 | } | |
c370783e | 7896 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
7897 | return resultobj; |
7898 | fail: | |
7899 | return NULL; | |
7900 | } | |
7901 | ||
7902 | ||
c370783e | 7903 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
7904 | PyObject *resultobj; |
7905 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7906 | long result; | |
7907 | PyObject * obj0 = 0 ; | |
7908 | char *kwnames[] = { | |
7909 | (char *) "self", NULL | |
7910 | }; | |
7911 | ||
7912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
7913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7915 | { | |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
c370783e | 7922 | resultobj = SWIG_From_long((long)result); |
68e533f8 RD |
7923 | return resultobj; |
7924 | fail: | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
c370783e | 7929 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7930 | PyObject *resultobj; |
7931 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7932 | long result; | |
7933 | PyObject * obj0 = 0 ; | |
7934 | char *kwnames[] = { | |
7935 | (char *) "self", NULL | |
7936 | }; | |
7937 | ||
7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7941 | { | |
7942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7943 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7944 | ||
7945 | wxPyEndAllowThreads(__tstate); | |
7946 | if (PyErr_Occurred()) SWIG_fail; | |
7947 | } | |
c370783e | 7948 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
7949 | return resultobj; |
7950 | fail: | |
7951 | return NULL; | |
7952 | } | |
7953 | ||
7954 | ||
c370783e | 7955 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7956 | PyObject *resultobj; |
7957 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7958 | long result; | |
7959 | PyObject * obj0 = 0 ; | |
7960 | char *kwnames[] = { | |
7961 | (char *) "self", NULL | |
7962 | }; | |
7963 | ||
7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7970 | ||
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) SWIG_fail; | |
7973 | } | |
c370783e | 7974 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
7975 | return resultobj; |
7976 | fail: | |
7977 | return NULL; | |
7978 | } | |
7979 | ||
7980 | ||
c370783e | 7981 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7982 | PyObject *resultobj; |
7983 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7984 | bool result; | |
7985 | PyObject * obj0 = 0 ; | |
7986 | char *kwnames[] = { | |
7987 | (char *) "self", NULL | |
7988 | }; | |
7989 | ||
7990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7993 | { | |
7994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7995 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7996 | ||
7997 | wxPyEndAllowThreads(__tstate); | |
7998 | if (PyErr_Occurred()) SWIG_fail; | |
7999 | } | |
8000 | { | |
8001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8002 | } | |
8003 | return resultobj; | |
8004 | fail: | |
8005 | return NULL; | |
8006 | } | |
8007 | ||
8008 | ||
c370783e | 8009 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8010 | PyObject *resultobj; |
8011 | wxTextAttr *arg1 = 0 ; | |
8012 | wxTextAttr *arg2 = 0 ; | |
8013 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
8014 | wxTextAttr result; | |
8015 | PyObject * obj0 = 0 ; | |
8016 | PyObject * obj1 = 0 ; | |
8017 | PyObject * obj2 = 0 ; | |
8018 | char *kwnames[] = { | |
8019 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
8020 | }; | |
8021 | ||
8022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8024 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8025 | SWIG_fail; | |
8026 | if (arg1 == NULL) { | |
8027 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8028 | SWIG_fail; | |
8029 | } | |
8030 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
8031 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8032 | SWIG_fail; | |
8033 | if (arg2 == NULL) { | |
8034 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8035 | SWIG_fail; | |
8036 | } | |
8037 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, | |
8038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8039 | { | |
8040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8041 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
8042 | ||
8043 | wxPyEndAllowThreads(__tstate); | |
8044 | if (PyErr_Occurred()) SWIG_fail; | |
8045 | } | |
8046 | { | |
8047 | wxTextAttr * resultptr; | |
8048 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
8049 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); | |
8050 | } | |
8051 | return resultobj; | |
8052 | fail: | |
8053 | return NULL; | |
8054 | } | |
8055 | ||
8056 | ||
c370783e | 8057 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8058 | PyObject *obj; |
8059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8060 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
8061 | Py_INCREF(obj); | |
8062 | return Py_BuildValue((char *)""); | |
8063 | } | |
c370783e | 8064 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8065 | PyObject *resultobj; |
8066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 8067 | int arg2 = (int) -1 ; |
d55e5bfc RD |
8068 | wxString const &arg3_defvalue = wxPyEmptyString ; |
8069 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8070 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8071 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8072 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8073 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8074 | long arg6 = (long) 0 ; | |
8075 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8076 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8077 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
8078 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8079 | wxTextCtrl *result; | |
8080 | bool temp3 = False ; | |
8081 | wxPoint temp4 ; | |
8082 | wxSize temp5 ; | |
8083 | bool temp8 = False ; | |
8084 | PyObject * obj0 = 0 ; | |
8085 | PyObject * obj1 = 0 ; | |
8086 | PyObject * obj2 = 0 ; | |
8087 | PyObject * obj3 = 0 ; | |
8088 | PyObject * obj4 = 0 ; | |
8089 | PyObject * obj5 = 0 ; | |
8090 | PyObject * obj6 = 0 ; | |
8091 | PyObject * obj7 = 0 ; | |
8092 | char *kwnames[] = { | |
8093 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8094 | }; | |
8095 | ||
bfddbb17 | 8096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
8097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 8099 | if (obj1) { |
c370783e | 8100 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
8101 | if (PyErr_Occurred()) SWIG_fail; |
8102 | } | |
d55e5bfc RD |
8103 | if (obj2) { |
8104 | { | |
8105 | arg3 = wxString_in_helper(obj2); | |
8106 | if (arg3 == NULL) SWIG_fail; | |
8107 | temp3 = True; | |
8108 | } | |
8109 | } | |
8110 | if (obj3) { | |
8111 | { | |
8112 | arg4 = &temp4; | |
8113 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8114 | } | |
8115 | } | |
8116 | if (obj4) { | |
8117 | { | |
8118 | arg5 = &temp5; | |
8119 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8120 | } | |
8121 | } | |
8122 | if (obj5) { | |
c370783e | 8123 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
8124 | if (PyErr_Occurred()) SWIG_fail; |
8125 | } | |
8126 | if (obj6) { | |
8127 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
8128 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8129 | SWIG_fail; | |
8130 | if (arg7 == NULL) { | |
8131 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8132 | SWIG_fail; | |
8133 | } | |
8134 | } | |
8135 | if (obj7) { | |
8136 | { | |
8137 | arg8 = wxString_in_helper(obj7); | |
8138 | if (arg8 == NULL) SWIG_fail; | |
8139 | temp8 = True; | |
8140 | } | |
8141 | } | |
8142 | { | |
0439c23b | 8143 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8145 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8146 | ||
8147 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8148 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 8149 | } |
b0f7404b | 8150 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d55e5bfc RD |
8151 | { |
8152 | if (temp3) | |
8153 | delete arg3; | |
8154 | } | |
8155 | { | |
8156 | if (temp8) | |
8157 | delete arg8; | |
8158 | } | |
8159 | return resultobj; | |
8160 | fail: | |
8161 | { | |
8162 | if (temp3) | |
8163 | delete arg3; | |
8164 | } | |
8165 | { | |
8166 | if (temp8) | |
8167 | delete arg8; | |
8168 | } | |
8169 | return NULL; | |
8170 | } | |
8171 | ||
8172 | ||
c370783e | 8173 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8174 | PyObject *resultobj; |
8175 | wxTextCtrl *result; | |
8176 | char *kwnames[] = { | |
8177 | NULL | |
8178 | }; | |
8179 | ||
8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8181 | { | |
0439c23b | 8182 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8184 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8185 | ||
8186 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8187 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 8188 | } |
b0f7404b | 8189 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d55e5bfc RD |
8190 | return resultobj; |
8191 | fail: | |
8192 | return NULL; | |
8193 | } | |
8194 | ||
8195 | ||
c370783e | 8196 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8197 | PyObject *resultobj; |
8198 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8199 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 8200 | int arg3 = (int) -1 ; |
d55e5bfc RD |
8201 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8202 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8203 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8204 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8205 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8206 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8207 | long arg7 = (long) 0 ; | |
8208 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8209 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8210 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8211 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8212 | bool result; | |
8213 | bool temp4 = False ; | |
8214 | wxPoint temp5 ; | |
8215 | wxSize temp6 ; | |
8216 | bool temp9 = False ; | |
8217 | PyObject * obj0 = 0 ; | |
8218 | PyObject * obj1 = 0 ; | |
8219 | PyObject * obj2 = 0 ; | |
8220 | PyObject * obj3 = 0 ; | |
8221 | PyObject * obj4 = 0 ; | |
8222 | PyObject * obj5 = 0 ; | |
8223 | PyObject * obj6 = 0 ; | |
8224 | PyObject * obj7 = 0 ; | |
8225 | PyObject * obj8 = 0 ; | |
8226 | char *kwnames[] = { | |
8227 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8228 | }; | |
8229 | ||
bfddbb17 | 8230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
8231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8233 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 8235 | if (obj2) { |
c370783e | 8236 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
8237 | if (PyErr_Occurred()) SWIG_fail; |
8238 | } | |
d55e5bfc RD |
8239 | if (obj3) { |
8240 | { | |
8241 | arg4 = wxString_in_helper(obj3); | |
8242 | if (arg4 == NULL) SWIG_fail; | |
8243 | temp4 = True; | |
8244 | } | |
8245 | } | |
8246 | if (obj4) { | |
8247 | { | |
8248 | arg5 = &temp5; | |
8249 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8250 | } | |
8251 | } | |
8252 | if (obj5) { | |
8253 | { | |
8254 | arg6 = &temp6; | |
8255 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8256 | } | |
8257 | } | |
8258 | if (obj6) { | |
c370783e | 8259 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
8260 | if (PyErr_Occurred()) SWIG_fail; |
8261 | } | |
8262 | if (obj7) { | |
8263 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
8264 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8265 | SWIG_fail; | |
8266 | if (arg8 == NULL) { | |
8267 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8268 | SWIG_fail; | |
8269 | } | |
8270 | } | |
8271 | if (obj8) { | |
8272 | { | |
8273 | arg9 = wxString_in_helper(obj8); | |
8274 | if (arg9 == NULL) SWIG_fail; | |
8275 | temp9 = True; | |
8276 | } | |
8277 | } | |
8278 | { | |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8281 | ||
8282 | wxPyEndAllowThreads(__tstate); | |
8283 | if (PyErr_Occurred()) SWIG_fail; | |
8284 | } | |
8285 | { | |
8286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8287 | } | |
8288 | { | |
8289 | if (temp4) | |
8290 | delete arg4; | |
8291 | } | |
8292 | { | |
8293 | if (temp9) | |
8294 | delete arg9; | |
8295 | } | |
8296 | return resultobj; | |
8297 | fail: | |
8298 | { | |
8299 | if (temp4) | |
8300 | delete arg4; | |
8301 | } | |
8302 | { | |
8303 | if (temp9) | |
8304 | delete arg9; | |
8305 | } | |
8306 | return NULL; | |
8307 | } | |
8308 | ||
8309 | ||
c370783e | 8310 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8311 | PyObject *resultobj; |
8312 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8313 | wxString result; | |
8314 | PyObject * obj0 = 0 ; | |
8315 | char *kwnames[] = { | |
8316 | (char *) "self", NULL | |
8317 | }; | |
8318 | ||
8319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
8320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8322 | { | |
8323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8324 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8325 | ||
8326 | wxPyEndAllowThreads(__tstate); | |
8327 | if (PyErr_Occurred()) SWIG_fail; | |
8328 | } | |
8329 | { | |
8330 | #if wxUSE_UNICODE | |
8331 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8332 | #else | |
8333 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8334 | #endif | |
8335 | } | |
8336 | return resultobj; | |
8337 | fail: | |
8338 | return NULL; | |
8339 | } | |
8340 | ||
8341 | ||
c370783e | 8342 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8343 | PyObject *resultobj; |
8344 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8345 | wxString *arg2 = 0 ; | |
8346 | bool temp2 = False ; | |
8347 | PyObject * obj0 = 0 ; | |
8348 | PyObject * obj1 = 0 ; | |
8349 | char *kwnames[] = { | |
8350 | (char *) "self",(char *) "value", NULL | |
8351 | }; | |
8352 | ||
8353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
8354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8356 | { | |
8357 | arg2 = wxString_in_helper(obj1); | |
8358 | if (arg2 == NULL) SWIG_fail; | |
8359 | temp2 = True; | |
8360 | } | |
8361 | { | |
8362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8363 | (arg1)->SetValue((wxString const &)*arg2); | |
8364 | ||
8365 | wxPyEndAllowThreads(__tstate); | |
8366 | if (PyErr_Occurred()) SWIG_fail; | |
8367 | } | |
8368 | Py_INCREF(Py_None); resultobj = Py_None; | |
8369 | { | |
8370 | if (temp2) | |
8371 | delete arg2; | |
8372 | } | |
8373 | return resultobj; | |
8374 | fail: | |
8375 | { | |
8376 | if (temp2) | |
8377 | delete arg2; | |
8378 | } | |
8379 | return NULL; | |
8380 | } | |
8381 | ||
8382 | ||
c370783e | 8383 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8384 | PyObject *resultobj; |
8385 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8386 | long arg2 ; | |
8387 | long arg3 ; | |
8388 | wxString result; | |
8389 | PyObject * obj0 = 0 ; | |
8390 | PyObject * obj1 = 0 ; | |
8391 | PyObject * obj2 = 0 ; | |
8392 | char *kwnames[] = { | |
8393 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8394 | }; | |
8395 | ||
8396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8399 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 8400 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8401 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8402 | if (PyErr_Occurred()) SWIG_fail; |
8403 | { | |
8404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8405 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8406 | ||
8407 | wxPyEndAllowThreads(__tstate); | |
8408 | if (PyErr_Occurred()) SWIG_fail; | |
8409 | } | |
8410 | { | |
8411 | #if wxUSE_UNICODE | |
8412 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8413 | #else | |
8414 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8415 | #endif | |
8416 | } | |
8417 | return resultobj; | |
8418 | fail: | |
8419 | return NULL; | |
8420 | } | |
8421 | ||
8422 | ||
c370783e | 8423 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8424 | PyObject *resultobj; |
8425 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8426 | long arg2 ; | |
8427 | int result; | |
8428 | PyObject * obj0 = 0 ; | |
8429 | PyObject * obj1 = 0 ; | |
8430 | char *kwnames[] = { | |
8431 | (char *) "self",(char *) "lineNo", NULL | |
8432 | }; | |
8433 | ||
8434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
8435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8437 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8438 | if (PyErr_Occurred()) SWIG_fail; |
8439 | { | |
8440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8441 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8442 | ||
8443 | wxPyEndAllowThreads(__tstate); | |
8444 | if (PyErr_Occurred()) SWIG_fail; | |
8445 | } | |
c370783e | 8446 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8447 | return resultobj; |
8448 | fail: | |
8449 | return NULL; | |
8450 | } | |
8451 | ||
8452 | ||
c370783e | 8453 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8454 | PyObject *resultobj; |
8455 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8456 | long arg2 ; | |
8457 | wxString result; | |
8458 | PyObject * obj0 = 0 ; | |
8459 | PyObject * obj1 = 0 ; | |
8460 | char *kwnames[] = { | |
8461 | (char *) "self",(char *) "lineNo", NULL | |
8462 | }; | |
8463 | ||
8464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
8465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8467 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8468 | if (PyErr_Occurred()) SWIG_fail; |
8469 | { | |
8470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8471 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8472 | ||
8473 | wxPyEndAllowThreads(__tstate); | |
8474 | if (PyErr_Occurred()) SWIG_fail; | |
8475 | } | |
8476 | { | |
8477 | #if wxUSE_UNICODE | |
8478 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8479 | #else | |
8480 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8481 | #endif | |
8482 | } | |
8483 | return resultobj; | |
8484 | fail: | |
8485 | return NULL; | |
8486 | } | |
8487 | ||
8488 | ||
c370783e | 8489 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8490 | PyObject *resultobj; |
8491 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8492 | int result; | |
8493 | PyObject * obj0 = 0 ; | |
8494 | char *kwnames[] = { | |
8495 | (char *) "self", NULL | |
8496 | }; | |
8497 | ||
8498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
8499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8501 | { | |
8502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8503 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8504 | ||
8505 | wxPyEndAllowThreads(__tstate); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | } | |
c370783e | 8508 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8509 | return resultobj; |
8510 | fail: | |
8511 | return NULL; | |
8512 | } | |
8513 | ||
8514 | ||
c370783e | 8515 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8516 | PyObject *resultobj; |
8517 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8518 | bool result; | |
8519 | PyObject * obj0 = 0 ; | |
8520 | char *kwnames[] = { | |
8521 | (char *) "self", NULL | |
8522 | }; | |
8523 | ||
8524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
8525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8527 | { | |
8528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8529 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8530 | ||
8531 | wxPyEndAllowThreads(__tstate); | |
8532 | if (PyErr_Occurred()) SWIG_fail; | |
8533 | } | |
8534 | { | |
8535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8536 | } | |
8537 | return resultobj; | |
8538 | fail: | |
8539 | return NULL; | |
8540 | } | |
8541 | ||
8542 | ||
c370783e | 8543 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8544 | PyObject *resultobj; |
8545 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8546 | bool result; | |
8547 | PyObject * obj0 = 0 ; | |
8548 | char *kwnames[] = { | |
8549 | (char *) "self", NULL | |
8550 | }; | |
8551 | ||
8552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
8553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8555 | { | |
8556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8557 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8558 | ||
8559 | wxPyEndAllowThreads(__tstate); | |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
8561 | } | |
8562 | { | |
8563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8564 | } | |
8565 | return resultobj; | |
8566 | fail: | |
8567 | return NULL; | |
8568 | } | |
8569 | ||
8570 | ||
c370783e | 8571 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8572 | PyObject *resultobj; |
8573 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8574 | bool result; | |
8575 | PyObject * obj0 = 0 ; | |
8576 | char *kwnames[] = { | |
8577 | (char *) "self", NULL | |
8578 | }; | |
8579 | ||
8580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
8581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8583 | { | |
8584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8585 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8586 | ||
8587 | wxPyEndAllowThreads(__tstate); | |
8588 | if (PyErr_Occurred()) SWIG_fail; | |
8589 | } | |
8590 | { | |
8591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8592 | } | |
8593 | return resultobj; | |
8594 | fail: | |
8595 | return NULL; | |
8596 | } | |
8597 | ||
8598 | ||
c370783e | 8599 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8600 | PyObject *resultobj; |
8601 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8602 | bool result; | |
8603 | PyObject * obj0 = 0 ; | |
8604 | char *kwnames[] = { | |
8605 | (char *) "self", NULL | |
8606 | }; | |
8607 | ||
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
8609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8611 | { | |
8612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8613 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8614 | ||
8615 | wxPyEndAllowThreads(__tstate); | |
8616 | if (PyErr_Occurred()) SWIG_fail; | |
8617 | } | |
8618 | { | |
8619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8620 | } | |
8621 | return resultobj; | |
8622 | fail: | |
8623 | return NULL; | |
8624 | } | |
8625 | ||
8626 | ||
c370783e | 8627 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8628 | PyObject *resultobj; |
8629 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8630 | long *arg2 = (long *) 0 ; | |
8631 | long *arg3 = (long *) 0 ; | |
8632 | long temp2 ; | |
c370783e | 8633 | int res2 = 0 ; |
d55e5bfc | 8634 | long temp3 ; |
c370783e | 8635 | int res3 = 0 ; |
d55e5bfc RD |
8636 | PyObject * obj0 = 0 ; |
8637 | char *kwnames[] = { | |
8638 | (char *) "self", NULL | |
8639 | }; | |
8640 | ||
c370783e RD |
8641 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8642 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
8643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
8644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8646 | { | |
8647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8648 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8649 | ||
8650 | wxPyEndAllowThreads(__tstate); | |
8651 | if (PyErr_Occurred()) SWIG_fail; | |
8652 | } | |
8653 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
8654 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8655 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
8656 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8657 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
8658 | return resultobj; |
8659 | fail: | |
8660 | return NULL; | |
8661 | } | |
8662 | ||
8663 | ||
c370783e | 8664 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8665 | PyObject *resultobj; |
8666 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8667 | wxString result; | |
8668 | PyObject * obj0 = 0 ; | |
8669 | char *kwnames[] = { | |
8670 | (char *) "self", NULL | |
8671 | }; | |
8672 | ||
8673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
8674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8676 | { | |
8677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8678 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8679 | ||
8680 | wxPyEndAllowThreads(__tstate); | |
8681 | if (PyErr_Occurred()) SWIG_fail; | |
8682 | } | |
8683 | { | |
8684 | #if wxUSE_UNICODE | |
8685 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8686 | #else | |
8687 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8688 | #endif | |
8689 | } | |
8690 | return resultobj; | |
8691 | fail: | |
8692 | return NULL; | |
8693 | } | |
8694 | ||
8695 | ||
c370783e | 8696 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8697 | PyObject *resultobj; |
8698 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8699 | PyObject * obj0 = 0 ; | |
8700 | char *kwnames[] = { | |
8701 | (char *) "self", NULL | |
8702 | }; | |
8703 | ||
8704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
8705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8707 | { | |
8708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8709 | (arg1)->Clear(); | |
8710 | ||
8711 | wxPyEndAllowThreads(__tstate); | |
8712 | if (PyErr_Occurred()) SWIG_fail; | |
8713 | } | |
8714 | Py_INCREF(Py_None); resultobj = Py_None; | |
8715 | return resultobj; | |
8716 | fail: | |
8717 | return NULL; | |
8718 | } | |
8719 | ||
8720 | ||
c370783e | 8721 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8722 | PyObject *resultobj; |
8723 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8724 | long arg2 ; | |
8725 | long arg3 ; | |
8726 | wxString *arg4 = 0 ; | |
8727 | bool temp4 = False ; | |
8728 | PyObject * obj0 = 0 ; | |
8729 | PyObject * obj1 = 0 ; | |
8730 | PyObject * obj2 = 0 ; | |
8731 | PyObject * obj3 = 0 ; | |
8732 | char *kwnames[] = { | |
8733 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8734 | }; | |
8735 | ||
8736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8739 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 8740 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8741 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8742 | if (PyErr_Occurred()) SWIG_fail; |
8743 | { | |
8744 | arg4 = wxString_in_helper(obj3); | |
8745 | if (arg4 == NULL) SWIG_fail; | |
8746 | temp4 = True; | |
8747 | } | |
8748 | { | |
8749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8750 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8751 | ||
8752 | wxPyEndAllowThreads(__tstate); | |
8753 | if (PyErr_Occurred()) SWIG_fail; | |
8754 | } | |
8755 | Py_INCREF(Py_None); resultobj = Py_None; | |
8756 | { | |
8757 | if (temp4) | |
8758 | delete arg4; | |
8759 | } | |
8760 | return resultobj; | |
8761 | fail: | |
8762 | { | |
8763 | if (temp4) | |
8764 | delete arg4; | |
8765 | } | |
8766 | return NULL; | |
8767 | } | |
8768 | ||
8769 | ||
c370783e | 8770 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8771 | PyObject *resultobj; |
8772 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8773 | long arg2 ; | |
8774 | long arg3 ; | |
8775 | PyObject * obj0 = 0 ; | |
8776 | PyObject * obj1 = 0 ; | |
8777 | PyObject * obj2 = 0 ; | |
8778 | char *kwnames[] = { | |
8779 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8780 | }; | |
8781 | ||
8782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8785 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 8786 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8787 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8788 | if (PyErr_Occurred()) SWIG_fail; |
8789 | { | |
8790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8791 | (arg1)->Remove(arg2,arg3); | |
8792 | ||
8793 | wxPyEndAllowThreads(__tstate); | |
8794 | if (PyErr_Occurred()) SWIG_fail; | |
8795 | } | |
8796 | Py_INCREF(Py_None); resultobj = Py_None; | |
8797 | return resultobj; | |
8798 | fail: | |
8799 | return NULL; | |
8800 | } | |
8801 | ||
8802 | ||
c370783e | 8803 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8804 | PyObject *resultobj; |
8805 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8806 | wxString *arg2 = 0 ; | |
8807 | bool result; | |
8808 | bool temp2 = False ; | |
8809 | PyObject * obj0 = 0 ; | |
8810 | PyObject * obj1 = 0 ; | |
8811 | char *kwnames[] = { | |
8812 | (char *) "self",(char *) "file", NULL | |
8813 | }; | |
8814 | ||
8815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
8816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8818 | { | |
8819 | arg2 = wxString_in_helper(obj1); | |
8820 | if (arg2 == NULL) SWIG_fail; | |
8821 | temp2 = True; | |
8822 | } | |
8823 | { | |
8824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8825 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8826 | ||
8827 | wxPyEndAllowThreads(__tstate); | |
8828 | if (PyErr_Occurred()) SWIG_fail; | |
8829 | } | |
8830 | { | |
8831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8832 | } | |
8833 | { | |
8834 | if (temp2) | |
8835 | delete arg2; | |
8836 | } | |
8837 | return resultobj; | |
8838 | fail: | |
8839 | { | |
8840 | if (temp2) | |
8841 | delete arg2; | |
8842 | } | |
8843 | return NULL; | |
8844 | } | |
8845 | ||
8846 | ||
c370783e | 8847 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8848 | PyObject *resultobj; |
8849 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8850 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8851 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8852 | bool result; | |
8853 | bool temp2 = False ; | |
8854 | PyObject * obj0 = 0 ; | |
8855 | PyObject * obj1 = 0 ; | |
8856 | char *kwnames[] = { | |
8857 | (char *) "self",(char *) "file", NULL | |
8858 | }; | |
8859 | ||
8860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
8861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8863 | if (obj1) { | |
8864 | { | |
8865 | arg2 = wxString_in_helper(obj1); | |
8866 | if (arg2 == NULL) SWIG_fail; | |
8867 | temp2 = True; | |
8868 | } | |
8869 | } | |
8870 | { | |
8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8872 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8873 | ||
8874 | wxPyEndAllowThreads(__tstate); | |
8875 | if (PyErr_Occurred()) SWIG_fail; | |
8876 | } | |
8877 | { | |
8878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8879 | } | |
8880 | { | |
8881 | if (temp2) | |
8882 | delete arg2; | |
8883 | } | |
8884 | return resultobj; | |
8885 | fail: | |
8886 | { | |
8887 | if (temp2) | |
8888 | delete arg2; | |
8889 | } | |
8890 | return NULL; | |
8891 | } | |
8892 | ||
8893 | ||
c370783e | 8894 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8895 | PyObject *resultobj; |
8896 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8897 | PyObject * obj0 = 0 ; | |
8898 | char *kwnames[] = { | |
8899 | (char *) "self", NULL | |
8900 | }; | |
8901 | ||
8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8905 | { | |
8906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8907 | (arg1)->MarkDirty(); | |
8908 | ||
8909 | wxPyEndAllowThreads(__tstate); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
8911 | } | |
8912 | Py_INCREF(Py_None); resultobj = Py_None; | |
8913 | return resultobj; | |
8914 | fail: | |
8915 | return NULL; | |
8916 | } | |
8917 | ||
8918 | ||
c370783e | 8919 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8920 | PyObject *resultobj; |
8921 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8922 | PyObject * obj0 = 0 ; | |
8923 | char *kwnames[] = { | |
8924 | (char *) "self", NULL | |
8925 | }; | |
8926 | ||
8927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8930 | { | |
8931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8932 | (arg1)->DiscardEdits(); | |
8933 | ||
8934 | wxPyEndAllowThreads(__tstate); | |
8935 | if (PyErr_Occurred()) SWIG_fail; | |
8936 | } | |
8937 | Py_INCREF(Py_None); resultobj = Py_None; | |
8938 | return resultobj; | |
8939 | fail: | |
8940 | return NULL; | |
8941 | } | |
8942 | ||
8943 | ||
c370783e | 8944 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8945 | PyObject *resultobj; |
8946 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8947 | unsigned long arg2 ; | |
8948 | PyObject * obj0 = 0 ; | |
8949 | PyObject * obj1 = 0 ; | |
8950 | char *kwnames[] = { | |
8951 | (char *) "self",(char *) "len", NULL | |
8952 | }; | |
8953 | ||
8954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8957 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
8958 | if (PyErr_Occurred()) SWIG_fail; |
8959 | { | |
8960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8961 | (arg1)->SetMaxLength(arg2); | |
8962 | ||
8963 | wxPyEndAllowThreads(__tstate); | |
8964 | if (PyErr_Occurred()) SWIG_fail; | |
8965 | } | |
8966 | Py_INCREF(Py_None); resultobj = Py_None; | |
8967 | return resultobj; | |
8968 | fail: | |
8969 | return NULL; | |
8970 | } | |
8971 | ||
8972 | ||
c370783e | 8973 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8974 | PyObject *resultobj; |
8975 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8976 | wxString *arg2 = 0 ; | |
8977 | bool temp2 = False ; | |
8978 | PyObject * obj0 = 0 ; | |
8979 | PyObject * obj1 = 0 ; | |
8980 | char *kwnames[] = { | |
8981 | (char *) "self",(char *) "text", NULL | |
8982 | }; | |
8983 | ||
8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8987 | { | |
8988 | arg2 = wxString_in_helper(obj1); | |
8989 | if (arg2 == NULL) SWIG_fail; | |
8990 | temp2 = True; | |
8991 | } | |
8992 | { | |
8993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8994 | (arg1)->WriteText((wxString const &)*arg2); | |
8995 | ||
8996 | wxPyEndAllowThreads(__tstate); | |
8997 | if (PyErr_Occurred()) SWIG_fail; | |
8998 | } | |
8999 | Py_INCREF(Py_None); resultobj = Py_None; | |
9000 | { | |
9001 | if (temp2) | |
9002 | delete arg2; | |
9003 | } | |
9004 | return resultobj; | |
9005 | fail: | |
9006 | { | |
9007 | if (temp2) | |
9008 | delete arg2; | |
9009 | } | |
9010 | return NULL; | |
9011 | } | |
9012 | ||
9013 | ||
c370783e | 9014 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9015 | PyObject *resultobj; |
9016 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9017 | wxString *arg2 = 0 ; | |
9018 | bool temp2 = False ; | |
9019 | PyObject * obj0 = 0 ; | |
9020 | PyObject * obj1 = 0 ; | |
9021 | char *kwnames[] = { | |
9022 | (char *) "self",(char *) "text", NULL | |
9023 | }; | |
9024 | ||
9025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
9026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9028 | { | |
9029 | arg2 = wxString_in_helper(obj1); | |
9030 | if (arg2 == NULL) SWIG_fail; | |
9031 | temp2 = True; | |
9032 | } | |
9033 | { | |
9034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9035 | (arg1)->AppendText((wxString const &)*arg2); | |
9036 | ||
9037 | wxPyEndAllowThreads(__tstate); | |
9038 | if (PyErr_Occurred()) SWIG_fail; | |
9039 | } | |
9040 | Py_INCREF(Py_None); resultobj = Py_None; | |
9041 | { | |
9042 | if (temp2) | |
9043 | delete arg2; | |
9044 | } | |
9045 | return resultobj; | |
9046 | fail: | |
9047 | { | |
9048 | if (temp2) | |
9049 | delete arg2; | |
9050 | } | |
9051 | return NULL; | |
9052 | } | |
9053 | ||
9054 | ||
c370783e | 9055 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9056 | PyObject *resultobj; |
9057 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9058 | wxKeyEvent *arg2 = 0 ; | |
9059 | bool result; | |
9060 | PyObject * obj0 = 0 ; | |
9061 | PyObject * obj1 = 0 ; | |
9062 | char *kwnames[] = { | |
9063 | (char *) "self",(char *) "event", NULL | |
9064 | }; | |
9065 | ||
9066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
9067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9069 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
9070 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9071 | SWIG_fail; | |
9072 | if (arg2 == NULL) { | |
9073 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9074 | SWIG_fail; | |
9075 | } | |
9076 | { | |
9077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9078 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
9079 | ||
9080 | wxPyEndAllowThreads(__tstate); | |
9081 | if (PyErr_Occurred()) SWIG_fail; | |
9082 | } | |
9083 | { | |
9084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9085 | } | |
9086 | return resultobj; | |
9087 | fail: | |
9088 | return NULL; | |
9089 | } | |
9090 | ||
9091 | ||
c370783e | 9092 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9093 | PyObject *resultobj; |
9094 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9095 | long arg2 ; | |
9096 | long arg3 ; | |
9097 | wxTextAttr *arg4 = 0 ; | |
9098 | bool result; | |
9099 | PyObject * obj0 = 0 ; | |
9100 | PyObject * obj1 = 0 ; | |
9101 | PyObject * obj2 = 0 ; | |
9102 | PyObject * obj3 = 0 ; | |
9103 | char *kwnames[] = { | |
9104 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
9105 | }; | |
9106 | ||
9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9110 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 9111 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9112 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9113 | if (PyErr_Occurred()) SWIG_fail; |
9114 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
9115 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9116 | SWIG_fail; | |
9117 | if (arg4 == NULL) { | |
9118 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9119 | SWIG_fail; | |
9120 | } | |
9121 | { | |
9122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9123 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
9124 | ||
9125 | wxPyEndAllowThreads(__tstate); | |
9126 | if (PyErr_Occurred()) SWIG_fail; | |
9127 | } | |
9128 | { | |
9129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9130 | } | |
9131 | return resultobj; | |
9132 | fail: | |
9133 | return NULL; | |
9134 | } | |
9135 | ||
9136 | ||
c370783e | 9137 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9138 | PyObject *resultobj; |
9139 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9140 | long arg2 ; | |
9141 | wxTextAttr *arg3 = 0 ; | |
9142 | bool result; | |
9143 | PyObject * obj0 = 0 ; | |
9144 | PyObject * obj1 = 0 ; | |
9145 | PyObject * obj2 = 0 ; | |
9146 | char *kwnames[] = { | |
9147 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9148 | }; | |
9149 | ||
9150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9153 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9154 | if (PyErr_Occurred()) SWIG_fail; |
9155 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9156 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9157 | SWIG_fail; | |
9158 | if (arg3 == NULL) { | |
9159 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9160 | SWIG_fail; | |
9161 | } | |
9162 | { | |
9163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9164 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9165 | ||
9166 | wxPyEndAllowThreads(__tstate); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
9168 | } | |
9169 | { | |
9170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9171 | } | |
9172 | return resultobj; | |
9173 | fail: | |
9174 | return NULL; | |
9175 | } | |
9176 | ||
9177 | ||
c370783e | 9178 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9179 | PyObject *resultobj; |
9180 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9181 | wxTextAttr *arg2 = 0 ; | |
9182 | bool result; | |
9183 | PyObject * obj0 = 0 ; | |
9184 | PyObject * obj1 = 0 ; | |
9185 | char *kwnames[] = { | |
9186 | (char *) "self",(char *) "style", NULL | |
9187 | }; | |
9188 | ||
9189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
9190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9193 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9194 | SWIG_fail; | |
9195 | if (arg2 == NULL) { | |
9196 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9197 | SWIG_fail; | |
9198 | } | |
9199 | { | |
9200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9201 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9202 | ||
9203 | wxPyEndAllowThreads(__tstate); | |
9204 | if (PyErr_Occurred()) SWIG_fail; | |
9205 | } | |
9206 | { | |
9207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9208 | } | |
9209 | return resultobj; | |
9210 | fail: | |
9211 | return NULL; | |
9212 | } | |
9213 | ||
9214 | ||
c370783e | 9215 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9216 | PyObject *resultobj; |
9217 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9218 | wxTextAttr *result; | |
9219 | PyObject * obj0 = 0 ; | |
9220 | char *kwnames[] = { | |
9221 | (char *) "self", NULL | |
9222 | }; | |
9223 | ||
9224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
9225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9227 | { | |
9228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9229 | { | |
9230 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9231 | result = (wxTextAttr *) &_result_ref; | |
9232 | } | |
9233 | ||
9234 | wxPyEndAllowThreads(__tstate); | |
9235 | if (PyErr_Occurred()) SWIG_fail; | |
9236 | } | |
9237 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); | |
9238 | return resultobj; | |
9239 | fail: | |
9240 | return NULL; | |
9241 | } | |
9242 | ||
9243 | ||
c370783e | 9244 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9245 | PyObject *resultobj; |
9246 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9247 | long arg2 ; | |
9248 | long arg3 ; | |
9249 | long result; | |
9250 | PyObject * obj0 = 0 ; | |
9251 | PyObject * obj1 = 0 ; | |
9252 | PyObject * obj2 = 0 ; | |
9253 | char *kwnames[] = { | |
9254 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9255 | }; | |
9256 | ||
9257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9260 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 9261 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9262 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9263 | if (PyErr_Occurred()) SWIG_fail; |
9264 | { | |
9265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9266 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9267 | ||
9268 | wxPyEndAllowThreads(__tstate); | |
9269 | if (PyErr_Occurred()) SWIG_fail; | |
9270 | } | |
c370783e | 9271 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
9272 | return resultobj; |
9273 | fail: | |
9274 | return NULL; | |
9275 | } | |
9276 | ||
9277 | ||
c370783e | 9278 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9279 | PyObject *resultobj; |
9280 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9281 | long arg2 ; | |
9282 | long *arg3 = (long *) 0 ; | |
9283 | long *arg4 = (long *) 0 ; | |
9284 | long temp3 ; | |
c370783e | 9285 | int res3 = 0 ; |
d55e5bfc | 9286 | long temp4 ; |
c370783e | 9287 | int res4 = 0 ; |
d55e5bfc RD |
9288 | PyObject * obj0 = 0 ; |
9289 | PyObject * obj1 = 0 ; | |
9290 | char *kwnames[] = { | |
9291 | (char *) "self",(char *) "pos", NULL | |
9292 | }; | |
9293 | ||
c370783e RD |
9294 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
9295 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
9296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
9297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9299 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9300 | if (PyErr_Occurred()) SWIG_fail; |
9301 | { | |
9302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9303 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9304 | ||
9305 | wxPyEndAllowThreads(__tstate); | |
9306 | if (PyErr_Occurred()) SWIG_fail; | |
9307 | } | |
9308 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
9309 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
9310 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
9311 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9312 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
9313 | return resultobj; |
9314 | fail: | |
9315 | return NULL; | |
9316 | } | |
9317 | ||
9318 | ||
c370783e | 9319 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9320 | PyObject *resultobj; |
9321 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9322 | long arg2 ; | |
9323 | PyObject * obj0 = 0 ; | |
9324 | PyObject * obj1 = 0 ; | |
9325 | char *kwnames[] = { | |
9326 | (char *) "self",(char *) "pos", NULL | |
9327 | }; | |
9328 | ||
9329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
9330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9332 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9333 | if (PyErr_Occurred()) SWIG_fail; |
9334 | { | |
9335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9336 | (arg1)->ShowPosition(arg2); | |
9337 | ||
9338 | wxPyEndAllowThreads(__tstate); | |
9339 | if (PyErr_Occurred()) SWIG_fail; | |
9340 | } | |
9341 | Py_INCREF(Py_None); resultobj = Py_None; | |
9342 | return resultobj; | |
9343 | fail: | |
9344 | return NULL; | |
9345 | } | |
9346 | ||
9347 | ||
c370783e | 9348 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9349 | PyObject *resultobj; |
9350 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9351 | wxPoint *arg2 = 0 ; | |
9352 | long *arg3 = (long *) 0 ; | |
9353 | long *arg4 = (long *) 0 ; | |
9354 | int result; | |
9355 | wxPoint temp2 ; | |
9356 | long temp3 ; | |
c370783e | 9357 | int res3 = 0 ; |
d55e5bfc | 9358 | long temp4 ; |
c370783e | 9359 | int res4 = 0 ; |
d55e5bfc RD |
9360 | PyObject * obj0 = 0 ; |
9361 | PyObject * obj1 = 0 ; | |
9362 | char *kwnames[] = { | |
9363 | (char *) "self",(char *) "pt", NULL | |
9364 | }; | |
9365 | ||
c370783e RD |
9366 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
9367 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
9368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
9369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9371 | { | |
9372 | arg2 = &temp2; | |
9373 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9374 | } | |
9375 | { | |
9376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9377 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9378 | ||
9379 | wxPyEndAllowThreads(__tstate); | |
9380 | if (PyErr_Occurred()) SWIG_fail; | |
9381 | } | |
c370783e RD |
9382 | resultobj = SWIG_From_int((int)result); |
9383 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9384 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
9385 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9386 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
9387 | return resultobj; |
9388 | fail: | |
9389 | return NULL; | |
9390 | } | |
9391 | ||
9392 | ||
c370783e | 9393 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
4896ac9e RD |
9394 | PyObject *resultobj; |
9395 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9396 | wxPoint *arg2 = 0 ; | |
9397 | long *arg3 = (long *) 0 ; | |
9398 | int result; | |
9399 | wxPoint temp2 ; | |
9400 | long temp3 ; | |
c370783e | 9401 | int res3 = 0 ; |
4896ac9e RD |
9402 | PyObject * obj0 = 0 ; |
9403 | PyObject * obj1 = 0 ; | |
9404 | char *kwnames[] = { | |
9405 | (char *) "self",(char *) "pt", NULL | |
9406 | }; | |
9407 | ||
c370783e | 9408 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e RD |
9409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
9410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9412 | { | |
9413 | arg2 = &temp2; | |
9414 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9415 | } | |
9416 | { | |
9417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9418 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
9419 | ||
9420 | wxPyEndAllowThreads(__tstate); | |
9421 | if (PyErr_Occurred()) SWIG_fail; | |
9422 | } | |
c370783e RD |
9423 | resultobj = SWIG_From_int((int)result); |
9424 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9425 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
9426 | return resultobj; |
9427 | fail: | |
9428 | return NULL; | |
9429 | } | |
9430 | ||
9431 | ||
c370783e | 9432 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9433 | PyObject *resultobj; |
9434 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9435 | PyObject * obj0 = 0 ; | |
9436 | char *kwnames[] = { | |
9437 | (char *) "self", NULL | |
9438 | }; | |
9439 | ||
9440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
9441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9443 | { | |
9444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9445 | (arg1)->Copy(); | |
9446 | ||
9447 | wxPyEndAllowThreads(__tstate); | |
9448 | if (PyErr_Occurred()) SWIG_fail; | |
9449 | } | |
9450 | Py_INCREF(Py_None); resultobj = Py_None; | |
9451 | return resultobj; | |
9452 | fail: | |
9453 | return NULL; | |
9454 | } | |
9455 | ||
9456 | ||
c370783e | 9457 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9458 | PyObject *resultobj; |
9459 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9460 | PyObject * obj0 = 0 ; | |
9461 | char *kwnames[] = { | |
9462 | (char *) "self", NULL | |
9463 | }; | |
9464 | ||
9465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
9466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9468 | { | |
9469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9470 | (arg1)->Cut(); | |
9471 | ||
9472 | wxPyEndAllowThreads(__tstate); | |
9473 | if (PyErr_Occurred()) SWIG_fail; | |
9474 | } | |
9475 | Py_INCREF(Py_None); resultobj = Py_None; | |
9476 | return resultobj; | |
9477 | fail: | |
9478 | return NULL; | |
9479 | } | |
9480 | ||
9481 | ||
c370783e | 9482 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9483 | PyObject *resultobj; |
9484 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9485 | PyObject * obj0 = 0 ; | |
9486 | char *kwnames[] = { | |
9487 | (char *) "self", NULL | |
9488 | }; | |
9489 | ||
9490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
9491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9493 | { | |
9494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9495 | (arg1)->Paste(); | |
9496 | ||
9497 | wxPyEndAllowThreads(__tstate); | |
9498 | if (PyErr_Occurred()) SWIG_fail; | |
9499 | } | |
9500 | Py_INCREF(Py_None); resultobj = Py_None; | |
9501 | return resultobj; | |
9502 | fail: | |
9503 | return NULL; | |
9504 | } | |
9505 | ||
9506 | ||
c370783e | 9507 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9508 | PyObject *resultobj; |
9509 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9510 | bool result; | |
9511 | PyObject * obj0 = 0 ; | |
9512 | char *kwnames[] = { | |
9513 | (char *) "self", NULL | |
9514 | }; | |
9515 | ||
9516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
9517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9519 | { | |
9520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9521 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9522 | ||
9523 | wxPyEndAllowThreads(__tstate); | |
9524 | if (PyErr_Occurred()) SWIG_fail; | |
9525 | } | |
9526 | { | |
9527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9528 | } | |
9529 | return resultobj; | |
9530 | fail: | |
9531 | return NULL; | |
9532 | } | |
9533 | ||
9534 | ||
c370783e | 9535 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9536 | PyObject *resultobj; |
9537 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9538 | bool result; | |
9539 | PyObject * obj0 = 0 ; | |
9540 | char *kwnames[] = { | |
9541 | (char *) "self", NULL | |
9542 | }; | |
9543 | ||
9544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
9545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9547 | { | |
9548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9549 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9550 | ||
9551 | wxPyEndAllowThreads(__tstate); | |
9552 | if (PyErr_Occurred()) SWIG_fail; | |
9553 | } | |
9554 | { | |
9555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9556 | } | |
9557 | return resultobj; | |
9558 | fail: | |
9559 | return NULL; | |
9560 | } | |
9561 | ||
9562 | ||
c370783e | 9563 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9564 | PyObject *resultobj; |
9565 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9566 | bool result; | |
9567 | PyObject * obj0 = 0 ; | |
9568 | char *kwnames[] = { | |
9569 | (char *) "self", NULL | |
9570 | }; | |
9571 | ||
9572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
9573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9575 | { | |
9576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9577 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9578 | ||
9579 | wxPyEndAllowThreads(__tstate); | |
9580 | if (PyErr_Occurred()) SWIG_fail; | |
9581 | } | |
9582 | { | |
9583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9584 | } | |
9585 | return resultobj; | |
9586 | fail: | |
9587 | return NULL; | |
9588 | } | |
9589 | ||
9590 | ||
c370783e | 9591 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9592 | PyObject *resultobj; |
9593 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9594 | PyObject * obj0 = 0 ; | |
9595 | char *kwnames[] = { | |
9596 | (char *) "self", NULL | |
9597 | }; | |
9598 | ||
9599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
9600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9602 | { | |
9603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9604 | (arg1)->Undo(); | |
9605 | ||
9606 | wxPyEndAllowThreads(__tstate); | |
9607 | if (PyErr_Occurred()) SWIG_fail; | |
9608 | } | |
9609 | Py_INCREF(Py_None); resultobj = Py_None; | |
9610 | return resultobj; | |
9611 | fail: | |
9612 | return NULL; | |
9613 | } | |
9614 | ||
9615 | ||
c370783e | 9616 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9617 | PyObject *resultobj; |
9618 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9619 | PyObject * obj0 = 0 ; | |
9620 | char *kwnames[] = { | |
9621 | (char *) "self", NULL | |
9622 | }; | |
9623 | ||
9624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
9625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9627 | { | |
9628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9629 | (arg1)->Redo(); | |
9630 | ||
9631 | wxPyEndAllowThreads(__tstate); | |
9632 | if (PyErr_Occurred()) SWIG_fail; | |
9633 | } | |
9634 | Py_INCREF(Py_None); resultobj = Py_None; | |
9635 | return resultobj; | |
9636 | fail: | |
9637 | return NULL; | |
9638 | } | |
9639 | ||
9640 | ||
c370783e | 9641 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9642 | PyObject *resultobj; |
9643 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9644 | bool result; | |
9645 | PyObject * obj0 = 0 ; | |
9646 | char *kwnames[] = { | |
9647 | (char *) "self", NULL | |
9648 | }; | |
9649 | ||
9650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
9651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9656 | ||
9657 | wxPyEndAllowThreads(__tstate); | |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | { | |
9661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9662 | } | |
9663 | return resultobj; | |
9664 | fail: | |
9665 | return NULL; | |
9666 | } | |
9667 | ||
9668 | ||
c370783e | 9669 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9670 | PyObject *resultobj; |
9671 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9672 | bool result; | |
9673 | PyObject * obj0 = 0 ; | |
9674 | char *kwnames[] = { | |
9675 | (char *) "self", NULL | |
9676 | }; | |
9677 | ||
9678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
9679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9681 | { | |
9682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9683 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9684 | ||
9685 | wxPyEndAllowThreads(__tstate); | |
9686 | if (PyErr_Occurred()) SWIG_fail; | |
9687 | } | |
9688 | { | |
9689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9690 | } | |
9691 | return resultobj; | |
9692 | fail: | |
9693 | return NULL; | |
9694 | } | |
9695 | ||
9696 | ||
c370783e | 9697 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9698 | PyObject *resultobj; |
9699 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9700 | long arg2 ; | |
9701 | PyObject * obj0 = 0 ; | |
9702 | PyObject * obj1 = 0 ; | |
9703 | char *kwnames[] = { | |
9704 | (char *) "self",(char *) "pos", NULL | |
9705 | }; | |
9706 | ||
9707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
9708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9710 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9711 | if (PyErr_Occurred()) SWIG_fail; |
9712 | { | |
9713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9714 | (arg1)->SetInsertionPoint(arg2); | |
9715 | ||
9716 | wxPyEndAllowThreads(__tstate); | |
9717 | if (PyErr_Occurred()) SWIG_fail; | |
9718 | } | |
9719 | Py_INCREF(Py_None); resultobj = Py_None; | |
9720 | return resultobj; | |
9721 | fail: | |
9722 | return NULL; | |
9723 | } | |
9724 | ||
9725 | ||
c370783e | 9726 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9727 | PyObject *resultobj; |
9728 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9729 | PyObject * obj0 = 0 ; | |
9730 | char *kwnames[] = { | |
9731 | (char *) "self", NULL | |
9732 | }; | |
9733 | ||
9734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
9735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9737 | { | |
9738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9739 | (arg1)->SetInsertionPointEnd(); | |
9740 | ||
9741 | wxPyEndAllowThreads(__tstate); | |
9742 | if (PyErr_Occurred()) SWIG_fail; | |
9743 | } | |
9744 | Py_INCREF(Py_None); resultobj = Py_None; | |
9745 | return resultobj; | |
9746 | fail: | |
9747 | return NULL; | |
9748 | } | |
9749 | ||
9750 | ||
c370783e | 9751 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9752 | PyObject *resultobj; |
9753 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9754 | long result; | |
9755 | PyObject * obj0 = 0 ; | |
9756 | char *kwnames[] = { | |
9757 | (char *) "self", NULL | |
9758 | }; | |
9759 | ||
9760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
9761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9763 | { | |
9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9765 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9766 | ||
9767 | wxPyEndAllowThreads(__tstate); | |
9768 | if (PyErr_Occurred()) SWIG_fail; | |
9769 | } | |
c370783e | 9770 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
9771 | return resultobj; |
9772 | fail: | |
9773 | return NULL; | |
9774 | } | |
9775 | ||
9776 | ||
c370783e | 9777 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9778 | PyObject *resultobj; |
9779 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9780 | long result; | |
9781 | PyObject * obj0 = 0 ; | |
9782 | char *kwnames[] = { | |
9783 | (char *) "self", NULL | |
9784 | }; | |
9785 | ||
9786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
9787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9789 | { | |
9790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9791 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9792 | ||
9793 | wxPyEndAllowThreads(__tstate); | |
9794 | if (PyErr_Occurred()) SWIG_fail; | |
9795 | } | |
c370783e | 9796 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
9797 | return resultobj; |
9798 | fail: | |
9799 | return NULL; | |
9800 | } | |
9801 | ||
9802 | ||
c370783e | 9803 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9804 | PyObject *resultobj; |
9805 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9806 | long arg2 ; | |
9807 | long arg3 ; | |
9808 | PyObject * obj0 = 0 ; | |
9809 | PyObject * obj1 = 0 ; | |
9810 | PyObject * obj2 = 0 ; | |
9811 | char *kwnames[] = { | |
9812 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9813 | }; | |
9814 | ||
9815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9818 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 9819 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9820 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9821 | if (PyErr_Occurred()) SWIG_fail; |
9822 | { | |
9823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9824 | (arg1)->SetSelection(arg2,arg3); | |
9825 | ||
9826 | wxPyEndAllowThreads(__tstate); | |
9827 | if (PyErr_Occurred()) SWIG_fail; | |
9828 | } | |
9829 | Py_INCREF(Py_None); resultobj = Py_None; | |
9830 | return resultobj; | |
9831 | fail: | |
9832 | return NULL; | |
9833 | } | |
9834 | ||
9835 | ||
c370783e | 9836 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9837 | PyObject *resultobj; |
9838 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9839 | PyObject * obj0 = 0 ; | |
9840 | char *kwnames[] = { | |
9841 | (char *) "self", NULL | |
9842 | }; | |
9843 | ||
9844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
9845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9847 | { | |
9848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9849 | (arg1)->SelectAll(); | |
9850 | ||
9851 | wxPyEndAllowThreads(__tstate); | |
9852 | if (PyErr_Occurred()) SWIG_fail; | |
9853 | } | |
9854 | Py_INCREF(Py_None); resultobj = Py_None; | |
9855 | return resultobj; | |
9856 | fail: | |
9857 | return NULL; | |
9858 | } | |
9859 | ||
9860 | ||
c370783e | 9861 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9862 | PyObject *resultobj; |
9863 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9864 | bool arg2 ; | |
9865 | PyObject * obj0 = 0 ; | |
9866 | PyObject * obj1 = 0 ; | |
9867 | char *kwnames[] = { | |
9868 | (char *) "self",(char *) "editable", NULL | |
9869 | }; | |
9870 | ||
9871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
9872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9874 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
9875 | if (PyErr_Occurred()) SWIG_fail; |
9876 | { | |
9877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9878 | (arg1)->SetEditable(arg2); | |
9879 | ||
9880 | wxPyEndAllowThreads(__tstate); | |
9881 | if (PyErr_Occurred()) SWIG_fail; | |
9882 | } | |
9883 | Py_INCREF(Py_None); resultobj = Py_None; | |
9884 | return resultobj; | |
9885 | fail: | |
9886 | return NULL; | |
9887 | } | |
9888 | ||
9889 | ||
c370783e | 9890 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9891 | PyObject *resultobj; |
9892 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9893 | wxString *arg2 = 0 ; | |
9894 | bool temp2 = False ; | |
9895 | PyObject * obj0 = 0 ; | |
9896 | PyObject * obj1 = 0 ; | |
9897 | char *kwnames[] = { | |
9898 | (char *) "self",(char *) "text", NULL | |
9899 | }; | |
9900 | ||
9901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
9902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9904 | { | |
9905 | arg2 = wxString_in_helper(obj1); | |
9906 | if (arg2 == NULL) SWIG_fail; | |
9907 | temp2 = True; | |
9908 | } | |
9909 | { | |
9910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9911 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9912 | ||
9913 | wxPyEndAllowThreads(__tstate); | |
9914 | if (PyErr_Occurred()) SWIG_fail; | |
9915 | } | |
9916 | Py_INCREF(Py_None); resultobj = Py_None; | |
9917 | { | |
9918 | if (temp2) | |
9919 | delete arg2; | |
9920 | } | |
9921 | return resultobj; | |
9922 | fail: | |
9923 | { | |
9924 | if (temp2) | |
9925 | delete arg2; | |
9926 | } | |
9927 | return NULL; | |
9928 | } | |
9929 | ||
9930 | ||
c370783e | 9931 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9932 | PyObject *resultobj; |
9933 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9934 | long arg2 ; | |
9935 | long arg3 ; | |
9936 | wxString result; | |
9937 | PyObject * obj0 = 0 ; | |
9938 | PyObject * obj1 = 0 ; | |
9939 | PyObject * obj2 = 0 ; | |
9940 | char *kwnames[] = { | |
9941 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9942 | }; | |
9943 | ||
9944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9947 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 9948 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9949 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9950 | if (PyErr_Occurred()) SWIG_fail; |
9951 | { | |
9952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9953 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9954 | ||
9955 | wxPyEndAllowThreads(__tstate); | |
9956 | if (PyErr_Occurred()) SWIG_fail; | |
9957 | } | |
9958 | { | |
9959 | #if wxUSE_UNICODE | |
9960 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9961 | #else | |
9962 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9963 | #endif | |
9964 | } | |
9965 | return resultobj; | |
9966 | fail: | |
9967 | return NULL; | |
9968 | } | |
9969 | ||
9970 | ||
c370783e | 9971 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
9972 | PyObject *resultobj; |
9973 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
9974 | wxVisualAttributes result; | |
9975 | PyObject * obj0 = 0 ; | |
9976 | char *kwnames[] = { | |
9977 | (char *) "variant", NULL | |
9978 | }; | |
9979 | ||
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
9981 | if (obj0) { | |
c370783e | 9982 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
9983 | if (PyErr_Occurred()) SWIG_fail; |
9984 | } | |
9985 | { | |
0439c23b | 9986 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
9987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9988 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
9989 | ||
9990 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9991 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
9992 | } |
9993 | { | |
9994 | wxVisualAttributes * resultptr; | |
9995 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
9996 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
9997 | } | |
9998 | return resultobj; | |
9999 | fail: | |
10000 | return NULL; | |
10001 | } | |
10002 | ||
10003 | ||
c370783e | 10004 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10005 | PyObject *obj; |
10006 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10007 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
10008 | Py_INCREF(obj); | |
10009 | return Py_BuildValue((char *)""); | |
10010 | } | |
c370783e | 10011 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10012 | PyObject *resultobj; |
10013 | int arg1 ; | |
10014 | wxMouseEvent *arg2 = 0 ; | |
10015 | long arg3 ; | |
10016 | long arg4 ; | |
10017 | wxTextUrlEvent *result; | |
10018 | PyObject * obj0 = 0 ; | |
10019 | PyObject * obj1 = 0 ; | |
10020 | PyObject * obj2 = 0 ; | |
10021 | PyObject * obj3 = 0 ; | |
10022 | char *kwnames[] = { | |
10023 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
10024 | }; | |
10025 | ||
10026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c370783e | 10027 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10028 | if (PyErr_Occurred()) SWIG_fail; |
10029 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
10030 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10031 | SWIG_fail; | |
10032 | if (arg2 == NULL) { | |
10033 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10034 | SWIG_fail; | |
10035 | } | |
c370783e | 10036 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc | 10037 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10038 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
10039 | if (PyErr_Occurred()) SWIG_fail; |
10040 | { | |
10041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10042 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
10043 | ||
10044 | wxPyEndAllowThreads(__tstate); | |
10045 | if (PyErr_Occurred()) SWIG_fail; | |
10046 | } | |
10047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); | |
10048 | return resultobj; | |
10049 | fail: | |
10050 | return NULL; | |
10051 | } | |
10052 | ||
10053 | ||
c370783e | 10054 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10055 | PyObject *resultobj; |
10056 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10057 | wxMouseEvent *result; | |
10058 | PyObject * obj0 = 0 ; | |
10059 | char *kwnames[] = { | |
10060 | (char *) "self", NULL | |
10061 | }; | |
10062 | ||
10063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
10064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
10065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10066 | { | |
10067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10068 | { | |
10069 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
10070 | result = (wxMouseEvent *) &_result_ref; | |
10071 | } | |
10072 | ||
10073 | wxPyEndAllowThreads(__tstate); | |
10074 | if (PyErr_Occurred()) SWIG_fail; | |
10075 | } | |
10076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); | |
10077 | return resultobj; | |
10078 | fail: | |
10079 | return NULL; | |
10080 | } | |
10081 | ||
10082 | ||
c370783e | 10083 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10084 | PyObject *resultobj; |
10085 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10086 | long result; | |
10087 | PyObject * obj0 = 0 ; | |
10088 | char *kwnames[] = { | |
10089 | (char *) "self", NULL | |
10090 | }; | |
10091 | ||
10092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
10093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
10094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10095 | { | |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
10098 | ||
10099 | wxPyEndAllowThreads(__tstate); | |
10100 | if (PyErr_Occurred()) SWIG_fail; | |
10101 | } | |
c370783e | 10102 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
10103 | return resultobj; |
10104 | fail: | |
10105 | return NULL; | |
10106 | } | |
10107 | ||
10108 | ||
c370783e | 10109 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10110 | PyObject *resultobj; |
10111 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10112 | long result; | |
10113 | PyObject * obj0 = 0 ; | |
10114 | char *kwnames[] = { | |
10115 | (char *) "self", NULL | |
10116 | }; | |
10117 | ||
10118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
10119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
10120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10121 | { | |
10122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10123 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
10124 | ||
10125 | wxPyEndAllowThreads(__tstate); | |
10126 | if (PyErr_Occurred()) SWIG_fail; | |
10127 | } | |
c370783e | 10128 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
10129 | return resultobj; |
10130 | fail: | |
10131 | return NULL; | |
10132 | } | |
10133 | ||
10134 | ||
c370783e | 10135 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10136 | PyObject *obj; |
10137 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10138 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
10139 | Py_INCREF(obj); | |
10140 | return Py_BuildValue((char *)""); | |
10141 | } | |
c370783e | 10142 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
d55e5bfc RD |
10143 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
10144 | return 1; | |
10145 | } | |
10146 | ||
10147 | ||
10148 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
10149 | PyObject *pyobj; | |
10150 | ||
10151 | { | |
10152 | #if wxUSE_UNICODE | |
10153 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10154 | #else | |
10155 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10156 | #endif | |
10157 | } | |
10158 | return pyobj; | |
10159 | } | |
10160 | ||
10161 | ||
c370783e | 10162 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10163 | PyObject *resultobj; |
10164 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10165 | int arg2 = (int) -1 ; | |
10166 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10167 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10168 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10169 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10170 | long arg5 = (long) wxSB_HORIZONTAL ; | |
10171 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
10172 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
10173 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
10174 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10175 | wxScrollBar *result; | |
10176 | wxPoint temp3 ; | |
10177 | wxSize temp4 ; | |
10178 | bool temp7 = False ; | |
10179 | PyObject * obj0 = 0 ; | |
10180 | PyObject * obj1 = 0 ; | |
10181 | PyObject * obj2 = 0 ; | |
10182 | PyObject * obj3 = 0 ; | |
10183 | PyObject * obj4 = 0 ; | |
10184 | PyObject * obj5 = 0 ; | |
10185 | PyObject * obj6 = 0 ; | |
10186 | char *kwnames[] = { | |
10187 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10188 | }; | |
10189 | ||
10190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10193 | if (obj1) { | |
c370783e | 10194 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10195 | if (PyErr_Occurred()) SWIG_fail; |
10196 | } | |
10197 | if (obj2) { | |
10198 | { | |
10199 | arg3 = &temp3; | |
10200 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10201 | } | |
10202 | } | |
10203 | if (obj3) { | |
10204 | { | |
10205 | arg4 = &temp4; | |
10206 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10207 | } | |
10208 | } | |
10209 | if (obj4) { | |
c370783e | 10210 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
10211 | if (PyErr_Occurred()) SWIG_fail; |
10212 | } | |
10213 | if (obj5) { | |
10214 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
10215 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10216 | SWIG_fail; | |
10217 | if (arg6 == NULL) { | |
10218 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10219 | SWIG_fail; | |
10220 | } | |
10221 | } | |
10222 | if (obj6) { | |
10223 | { | |
10224 | arg7 = wxString_in_helper(obj6); | |
10225 | if (arg7 == NULL) SWIG_fail; | |
10226 | temp7 = True; | |
10227 | } | |
10228 | } | |
10229 | { | |
0439c23b | 10230 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10232 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10233 | ||
10234 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10235 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10236 | } |
10237 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
10238 | { | |
10239 | if (temp7) | |
10240 | delete arg7; | |
10241 | } | |
10242 | return resultobj; | |
10243 | fail: | |
10244 | { | |
10245 | if (temp7) | |
10246 | delete arg7; | |
10247 | } | |
10248 | return NULL; | |
10249 | } | |
10250 | ||
10251 | ||
c370783e | 10252 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10253 | PyObject *resultobj; |
10254 | wxScrollBar *result; | |
10255 | char *kwnames[] = { | |
10256 | NULL | |
10257 | }; | |
10258 | ||
10259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10260 | { | |
0439c23b | 10261 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10263 | result = (wxScrollBar *)new wxScrollBar(); | |
10264 | ||
10265 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10266 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10267 | } |
10268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
10269 | return resultobj; | |
10270 | fail: | |
10271 | return NULL; | |
10272 | } | |
10273 | ||
10274 | ||
c370783e | 10275 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10276 | PyObject *resultobj; |
10277 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10278 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10279 | int arg3 = (int) -1 ; | |
10280 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10281 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10282 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10283 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10284 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10285 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10286 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10287 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10288 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10289 | bool result; | |
10290 | wxPoint temp4 ; | |
10291 | wxSize temp5 ; | |
10292 | bool temp8 = False ; | |
10293 | PyObject * obj0 = 0 ; | |
10294 | PyObject * obj1 = 0 ; | |
10295 | PyObject * obj2 = 0 ; | |
10296 | PyObject * obj3 = 0 ; | |
10297 | PyObject * obj4 = 0 ; | |
10298 | PyObject * obj5 = 0 ; | |
10299 | PyObject * obj6 = 0 ; | |
10300 | PyObject * obj7 = 0 ; | |
10301 | char *kwnames[] = { | |
10302 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10303 | }; | |
10304 | ||
10305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
10306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10308 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10310 | if (obj2) { | |
c370783e | 10311 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10312 | if (PyErr_Occurred()) SWIG_fail; |
10313 | } | |
10314 | if (obj3) { | |
10315 | { | |
10316 | arg4 = &temp4; | |
10317 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10318 | } | |
10319 | } | |
10320 | if (obj4) { | |
10321 | { | |
10322 | arg5 = &temp5; | |
10323 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10324 | } | |
10325 | } | |
10326 | if (obj5) { | |
c370783e | 10327 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
10328 | if (PyErr_Occurred()) SWIG_fail; |
10329 | } | |
10330 | if (obj6) { | |
10331 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
10332 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10333 | SWIG_fail; | |
10334 | if (arg7 == NULL) { | |
10335 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10336 | SWIG_fail; | |
10337 | } | |
10338 | } | |
10339 | if (obj7) { | |
10340 | { | |
10341 | arg8 = wxString_in_helper(obj7); | |
10342 | if (arg8 == NULL) SWIG_fail; | |
10343 | temp8 = True; | |
10344 | } | |
10345 | } | |
10346 | { | |
10347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10348 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10349 | ||
10350 | wxPyEndAllowThreads(__tstate); | |
10351 | if (PyErr_Occurred()) SWIG_fail; | |
10352 | } | |
10353 | { | |
10354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10355 | } | |
10356 | { | |
10357 | if (temp8) | |
10358 | delete arg8; | |
10359 | } | |
10360 | return resultobj; | |
10361 | fail: | |
10362 | { | |
10363 | if (temp8) | |
10364 | delete arg8; | |
10365 | } | |
10366 | return NULL; | |
10367 | } | |
10368 | ||
10369 | ||
c370783e | 10370 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10371 | PyObject *resultobj; |
10372 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10373 | int result; | |
10374 | PyObject * obj0 = 0 ; | |
10375 | char *kwnames[] = { | |
10376 | (char *) "self", NULL | |
10377 | }; | |
10378 | ||
10379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
10380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10382 | { | |
10383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10384 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10385 | ||
10386 | wxPyEndAllowThreads(__tstate); | |
10387 | if (PyErr_Occurred()) SWIG_fail; | |
10388 | } | |
c370783e | 10389 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10390 | return resultobj; |
10391 | fail: | |
10392 | return NULL; | |
10393 | } | |
10394 | ||
10395 | ||
c370783e | 10396 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10397 | PyObject *resultobj; |
10398 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10399 | int result; | |
10400 | PyObject * obj0 = 0 ; | |
10401 | char *kwnames[] = { | |
10402 | (char *) "self", NULL | |
10403 | }; | |
10404 | ||
10405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
10406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10408 | { | |
10409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10410 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10411 | ||
10412 | wxPyEndAllowThreads(__tstate); | |
10413 | if (PyErr_Occurred()) SWIG_fail; | |
10414 | } | |
c370783e | 10415 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10416 | return resultobj; |
10417 | fail: | |
10418 | return NULL; | |
10419 | } | |
10420 | ||
10421 | ||
c370783e | 10422 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10423 | PyObject *resultobj; |
10424 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10425 | int result; | |
10426 | PyObject * obj0 = 0 ; | |
10427 | char *kwnames[] = { | |
10428 | (char *) "self", NULL | |
10429 | }; | |
10430 | ||
10431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
10432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10434 | { | |
10435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10436 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10437 | ||
10438 | wxPyEndAllowThreads(__tstate); | |
10439 | if (PyErr_Occurred()) SWIG_fail; | |
10440 | } | |
c370783e | 10441 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10442 | return resultobj; |
10443 | fail: | |
10444 | return NULL; | |
10445 | } | |
10446 | ||
10447 | ||
c370783e | 10448 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10449 | PyObject *resultobj; |
10450 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10451 | int result; | |
10452 | PyObject * obj0 = 0 ; | |
10453 | char *kwnames[] = { | |
10454 | (char *) "self", NULL | |
10455 | }; | |
10456 | ||
10457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
10458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10460 | { | |
10461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10462 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10463 | ||
10464 | wxPyEndAllowThreads(__tstate); | |
10465 | if (PyErr_Occurred()) SWIG_fail; | |
10466 | } | |
c370783e | 10467 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10468 | return resultobj; |
10469 | fail: | |
10470 | return NULL; | |
10471 | } | |
10472 | ||
10473 | ||
c370783e | 10474 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10475 | PyObject *resultobj; |
10476 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10477 | bool result; | |
10478 | PyObject * obj0 = 0 ; | |
10479 | char *kwnames[] = { | |
10480 | (char *) "self", NULL | |
10481 | }; | |
10482 | ||
10483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
10484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10486 | { | |
10487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10488 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10489 | ||
10490 | wxPyEndAllowThreads(__tstate); | |
10491 | if (PyErr_Occurred()) SWIG_fail; | |
10492 | } | |
10493 | { | |
10494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10495 | } | |
10496 | return resultobj; | |
10497 | fail: | |
10498 | return NULL; | |
10499 | } | |
10500 | ||
10501 | ||
c370783e | 10502 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10503 | PyObject *resultobj; |
10504 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10505 | int arg2 ; | |
10506 | PyObject * obj0 = 0 ; | |
10507 | PyObject * obj1 = 0 ; | |
10508 | char *kwnames[] = { | |
10509 | (char *) "self",(char *) "viewStart", NULL | |
10510 | }; | |
10511 | ||
10512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
10513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10515 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10516 | if (PyErr_Occurred()) SWIG_fail; |
10517 | { | |
10518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10519 | (arg1)->SetThumbPosition(arg2); | |
10520 | ||
10521 | wxPyEndAllowThreads(__tstate); | |
10522 | if (PyErr_Occurred()) SWIG_fail; | |
10523 | } | |
10524 | Py_INCREF(Py_None); resultobj = Py_None; | |
10525 | return resultobj; | |
10526 | fail: | |
10527 | return NULL; | |
10528 | } | |
10529 | ||
10530 | ||
c370783e | 10531 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10532 | PyObject *resultobj; |
10533 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10534 | int arg2 ; | |
10535 | int arg3 ; | |
10536 | int arg4 ; | |
10537 | int arg5 ; | |
10538 | bool arg6 = (bool) True ; | |
10539 | PyObject * obj0 = 0 ; | |
10540 | PyObject * obj1 = 0 ; | |
10541 | PyObject * obj2 = 0 ; | |
10542 | PyObject * obj3 = 0 ; | |
10543 | PyObject * obj4 = 0 ; | |
10544 | PyObject * obj5 = 0 ; | |
10545 | char *kwnames[] = { | |
10546 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10547 | }; | |
10548 | ||
10549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10552 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 10553 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10554 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 10555 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10556 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 10557 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10558 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
10559 | if (PyErr_Occurred()) SWIG_fail; |
10560 | if (obj5) { | |
c370783e | 10561 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
10562 | if (PyErr_Occurred()) SWIG_fail; |
10563 | } | |
10564 | { | |
10565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10566 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10567 | ||
10568 | wxPyEndAllowThreads(__tstate); | |
10569 | if (PyErr_Occurred()) SWIG_fail; | |
10570 | } | |
10571 | Py_INCREF(Py_None); resultobj = Py_None; | |
10572 | return resultobj; | |
10573 | fail: | |
10574 | return NULL; | |
10575 | } | |
10576 | ||
10577 | ||
c370783e | 10578 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
10579 | PyObject *resultobj; |
10580 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10581 | wxVisualAttributes result; | |
10582 | PyObject * obj0 = 0 ; | |
10583 | char *kwnames[] = { | |
10584 | (char *) "variant", NULL | |
10585 | }; | |
10586 | ||
10587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10588 | if (obj0) { | |
c370783e | 10589 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
10590 | if (PyErr_Occurred()) SWIG_fail; |
10591 | } | |
10592 | { | |
0439c23b | 10593 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
10594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10595 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10596 | ||
10597 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10598 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
10599 | } |
10600 | { | |
10601 | wxVisualAttributes * resultptr; | |
10602 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10603 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10604 | } | |
10605 | return resultobj; | |
10606 | fail: | |
10607 | return NULL; | |
10608 | } | |
10609 | ||
10610 | ||
c370783e | 10611 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10612 | PyObject *obj; |
10613 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10614 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10615 | Py_INCREF(obj); | |
10616 | return Py_BuildValue((char *)""); | |
10617 | } | |
c370783e | 10618 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
d55e5bfc RD |
10619 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
10620 | return 1; | |
10621 | } | |
10622 | ||
10623 | ||
10624 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10625 | PyObject *pyobj; | |
10626 | ||
10627 | { | |
10628 | #if wxUSE_UNICODE | |
10629 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10630 | #else | |
10631 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10632 | #endif | |
10633 | } | |
10634 | return pyobj; | |
10635 | } | |
10636 | ||
10637 | ||
c370783e | 10638 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
10639 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
10640 | return 1; | |
10641 | } | |
10642 | ||
10643 | ||
10644 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10645 | PyObject *pyobj; | |
10646 | ||
10647 | { | |
10648 | #if wxUSE_UNICODE | |
10649 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10650 | #else | |
10651 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10652 | #endif | |
10653 | } | |
10654 | return pyobj; | |
10655 | } | |
10656 | ||
10657 | ||
c370783e | 10658 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10659 | PyObject *resultobj; |
10660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10661 | int arg2 = (int) -1 ; | |
10662 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10663 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10664 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10665 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10666 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10667 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10668 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10669 | wxSpinButton *result; | |
10670 | wxPoint temp3 ; | |
10671 | wxSize temp4 ; | |
10672 | bool temp6 = False ; | |
10673 | PyObject * obj0 = 0 ; | |
10674 | PyObject * obj1 = 0 ; | |
10675 | PyObject * obj2 = 0 ; | |
10676 | PyObject * obj3 = 0 ; | |
10677 | PyObject * obj4 = 0 ; | |
10678 | PyObject * obj5 = 0 ; | |
10679 | char *kwnames[] = { | |
10680 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10681 | }; | |
10682 | ||
10683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10686 | if (obj1) { | |
c370783e | 10687 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10688 | if (PyErr_Occurred()) SWIG_fail; |
10689 | } | |
10690 | if (obj2) { | |
10691 | { | |
10692 | arg3 = &temp3; | |
10693 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10694 | } | |
10695 | } | |
10696 | if (obj3) { | |
10697 | { | |
10698 | arg4 = &temp4; | |
10699 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10700 | } | |
10701 | } | |
10702 | if (obj4) { | |
c370783e | 10703 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
10704 | if (PyErr_Occurred()) SWIG_fail; |
10705 | } | |
10706 | if (obj5) { | |
10707 | { | |
10708 | arg6 = wxString_in_helper(obj5); | |
10709 | if (arg6 == NULL) SWIG_fail; | |
10710 | temp6 = True; | |
10711 | } | |
10712 | } | |
10713 | { | |
0439c23b | 10714 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10716 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10717 | ||
10718 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10719 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10720 | } |
10721 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10722 | { | |
10723 | if (temp6) | |
10724 | delete arg6; | |
10725 | } | |
10726 | return resultobj; | |
10727 | fail: | |
10728 | { | |
10729 | if (temp6) | |
10730 | delete arg6; | |
10731 | } | |
10732 | return NULL; | |
10733 | } | |
10734 | ||
10735 | ||
c370783e | 10736 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10737 | PyObject *resultobj; |
10738 | wxSpinButton *result; | |
10739 | char *kwnames[] = { | |
10740 | NULL | |
10741 | }; | |
10742 | ||
10743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10744 | { | |
0439c23b | 10745 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10747 | result = (wxSpinButton *)new wxSpinButton(); | |
10748 | ||
10749 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10750 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10751 | } |
10752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10753 | return resultobj; | |
10754 | fail: | |
10755 | return NULL; | |
10756 | } | |
10757 | ||
10758 | ||
c370783e | 10759 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10760 | PyObject *resultobj; |
10761 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10762 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10763 | int arg3 = (int) -1 ; | |
10764 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10765 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10766 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10767 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10768 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10769 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10770 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10771 | bool result; | |
10772 | wxPoint temp4 ; | |
10773 | wxSize temp5 ; | |
10774 | bool temp7 = False ; | |
10775 | PyObject * obj0 = 0 ; | |
10776 | PyObject * obj1 = 0 ; | |
10777 | PyObject * obj2 = 0 ; | |
10778 | PyObject * obj3 = 0 ; | |
10779 | PyObject * obj4 = 0 ; | |
10780 | PyObject * obj5 = 0 ; | |
10781 | PyObject * obj6 = 0 ; | |
10782 | char *kwnames[] = { | |
10783 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10784 | }; | |
10785 | ||
10786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10789 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10791 | if (obj2) { | |
c370783e | 10792 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10793 | if (PyErr_Occurred()) SWIG_fail; |
10794 | } | |
10795 | if (obj3) { | |
10796 | { | |
10797 | arg4 = &temp4; | |
10798 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10799 | } | |
10800 | } | |
10801 | if (obj4) { | |
10802 | { | |
10803 | arg5 = &temp5; | |
10804 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10805 | } | |
10806 | } | |
10807 | if (obj5) { | |
c370783e | 10808 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
10809 | if (PyErr_Occurred()) SWIG_fail; |
10810 | } | |
10811 | if (obj6) { | |
10812 | { | |
10813 | arg7 = wxString_in_helper(obj6); | |
10814 | if (arg7 == NULL) SWIG_fail; | |
10815 | temp7 = True; | |
10816 | } | |
10817 | } | |
10818 | { | |
10819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10820 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10821 | ||
10822 | wxPyEndAllowThreads(__tstate); | |
10823 | if (PyErr_Occurred()) SWIG_fail; | |
10824 | } | |
10825 | { | |
10826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10827 | } | |
10828 | { | |
10829 | if (temp7) | |
10830 | delete arg7; | |
10831 | } | |
10832 | return resultobj; | |
10833 | fail: | |
10834 | { | |
10835 | if (temp7) | |
10836 | delete arg7; | |
10837 | } | |
10838 | return NULL; | |
10839 | } | |
10840 | ||
10841 | ||
c370783e | 10842 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10843 | PyObject *resultobj; |
10844 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10845 | int result; | |
10846 | PyObject * obj0 = 0 ; | |
10847 | char *kwnames[] = { | |
10848 | (char *) "self", NULL | |
10849 | }; | |
10850 | ||
10851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
10852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10854 | { | |
10855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10856 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10857 | ||
10858 | wxPyEndAllowThreads(__tstate); | |
10859 | if (PyErr_Occurred()) SWIG_fail; | |
10860 | } | |
c370783e | 10861 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10862 | return resultobj; |
10863 | fail: | |
10864 | return NULL; | |
10865 | } | |
10866 | ||
10867 | ||
c370783e | 10868 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10869 | PyObject *resultobj; |
10870 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10871 | int result; | |
10872 | PyObject * obj0 = 0 ; | |
10873 | char *kwnames[] = { | |
10874 | (char *) "self", NULL | |
10875 | }; | |
10876 | ||
10877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
10878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10880 | { | |
10881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10882 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10883 | ||
10884 | wxPyEndAllowThreads(__tstate); | |
10885 | if (PyErr_Occurred()) SWIG_fail; | |
10886 | } | |
c370783e | 10887 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10888 | return resultobj; |
10889 | fail: | |
10890 | return NULL; | |
10891 | } | |
10892 | ||
10893 | ||
c370783e | 10894 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10895 | PyObject *resultobj; |
10896 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10897 | int result; | |
10898 | PyObject * obj0 = 0 ; | |
10899 | char *kwnames[] = { | |
10900 | (char *) "self", NULL | |
10901 | }; | |
10902 | ||
10903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
10904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10906 | { | |
10907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10908 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10909 | ||
10910 | wxPyEndAllowThreads(__tstate); | |
10911 | if (PyErr_Occurred()) SWIG_fail; | |
10912 | } | |
c370783e | 10913 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10914 | return resultobj; |
10915 | fail: | |
10916 | return NULL; | |
10917 | } | |
10918 | ||
10919 | ||
c370783e | 10920 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10921 | PyObject *resultobj; |
10922 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10923 | int arg2 ; | |
10924 | PyObject * obj0 = 0 ; | |
10925 | PyObject * obj1 = 0 ; | |
10926 | char *kwnames[] = { | |
10927 | (char *) "self",(char *) "val", NULL | |
10928 | }; | |
10929 | ||
10930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10933 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10934 | if (PyErr_Occurred()) SWIG_fail; |
10935 | { | |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | (arg1)->SetValue(arg2); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | Py_INCREF(Py_None); resultobj = Py_None; | |
10943 | return resultobj; | |
10944 | fail: | |
10945 | return NULL; | |
10946 | } | |
10947 | ||
10948 | ||
c370783e | 10949 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10950 | PyObject *resultobj; |
10951 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10952 | int arg2 ; | |
10953 | PyObject * obj0 = 0 ; | |
10954 | PyObject * obj1 = 0 ; | |
10955 | char *kwnames[] = { | |
10956 | (char *) "self",(char *) "minVal", NULL | |
10957 | }; | |
10958 | ||
10959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
10960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10962 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10963 | if (PyErr_Occurred()) SWIG_fail; |
10964 | { | |
10965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10966 | (arg1)->SetMin(arg2); | |
10967 | ||
10968 | wxPyEndAllowThreads(__tstate); | |
10969 | if (PyErr_Occurred()) SWIG_fail; | |
10970 | } | |
10971 | Py_INCREF(Py_None); resultobj = Py_None; | |
10972 | return resultobj; | |
10973 | fail: | |
10974 | return NULL; | |
10975 | } | |
10976 | ||
10977 | ||
c370783e | 10978 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10979 | PyObject *resultobj; |
10980 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10981 | int arg2 ; | |
10982 | PyObject * obj0 = 0 ; | |
10983 | PyObject * obj1 = 0 ; | |
10984 | char *kwnames[] = { | |
10985 | (char *) "self",(char *) "maxVal", NULL | |
10986 | }; | |
10987 | ||
10988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
10989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10991 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10992 | if (PyErr_Occurred()) SWIG_fail; |
10993 | { | |
10994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10995 | (arg1)->SetMax(arg2); | |
10996 | ||
10997 | wxPyEndAllowThreads(__tstate); | |
10998 | if (PyErr_Occurred()) SWIG_fail; | |
10999 | } | |
11000 | Py_INCREF(Py_None); resultobj = Py_None; | |
11001 | return resultobj; | |
11002 | fail: | |
11003 | return NULL; | |
11004 | } | |
11005 | ||
11006 | ||
c370783e | 11007 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11008 | PyObject *resultobj; |
11009 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11010 | int arg2 ; | |
11011 | int arg3 ; | |
11012 | PyObject * obj0 = 0 ; | |
11013 | PyObject * obj1 = 0 ; | |
11014 | PyObject * obj2 = 0 ; | |
11015 | char *kwnames[] = { | |
11016 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11017 | }; | |
11018 | ||
11019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11022 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11023 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11024 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11025 | if (PyErr_Occurred()) SWIG_fail; |
11026 | { | |
11027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11028 | (arg1)->SetRange(arg2,arg3); | |
11029 | ||
11030 | wxPyEndAllowThreads(__tstate); | |
11031 | if (PyErr_Occurred()) SWIG_fail; | |
11032 | } | |
f20a2e1f RD |
11033 | Py_INCREF(Py_None); resultobj = Py_None; |
11034 | return resultobj; | |
11035 | fail: | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
c370783e | 11040 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
11041 | PyObject *resultobj; |
11042 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11043 | bool result; | |
11044 | PyObject * obj0 = 0 ; | |
11045 | char *kwnames[] = { | |
11046 | (char *) "self", NULL | |
11047 | }; | |
11048 | ||
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
11050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11052 | { | |
11053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11054 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
11055 | ||
11056 | wxPyEndAllowThreads(__tstate); | |
11057 | if (PyErr_Occurred()) SWIG_fail; | |
11058 | } | |
11059 | { | |
11060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11061 | } | |
d55e5bfc RD |
11062 | return resultobj; |
11063 | fail: | |
11064 | return NULL; | |
11065 | } | |
11066 | ||
11067 | ||
c370783e | 11068 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11069 | PyObject *resultobj; |
f20a2e1f RD |
11070 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
11071 | wxVisualAttributes result; | |
d55e5bfc RD |
11072 | PyObject * obj0 = 0 ; |
11073 | char *kwnames[] = { | |
f20a2e1f | 11074 | (char *) "variant", NULL |
d55e5bfc RD |
11075 | }; |
11076 | ||
f20a2e1f RD |
11077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
11078 | if (obj0) { | |
c370783e | 11079 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
11080 | if (PyErr_Occurred()) SWIG_fail; |
11081 | } | |
d55e5bfc | 11082 | { |
0439c23b | 11083 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f20a2e1f | 11085 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d55e5bfc RD |
11086 | |
11087 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11088 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11089 | } |
11090 | { | |
f20a2e1f RD |
11091 | wxVisualAttributes * resultptr; |
11092 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11093 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
d55e5bfc RD |
11094 | } |
11095 | return resultobj; | |
11096 | fail: | |
11097 | return NULL; | |
11098 | } | |
11099 | ||
11100 | ||
c370783e | 11101 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11102 | PyObject *obj; |
11103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11104 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
11105 | Py_INCREF(obj); | |
11106 | return Py_BuildValue((char *)""); | |
11107 | } | |
c370783e | 11108 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11109 | PyObject *resultobj; |
11110 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11111 | int arg2 = (int) -1 ; | |
11112 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11113 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11114 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11115 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11116 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11117 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11118 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
11119 | int arg7 = (int) 0 ; | |
11120 | int arg8 = (int) 100 ; | |
11121 | int arg9 = (int) 0 ; | |
11122 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
11123 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11124 | wxSpinCtrl *result; | |
11125 | bool temp3 = False ; | |
11126 | wxPoint temp4 ; | |
11127 | wxSize temp5 ; | |
11128 | bool temp10 = False ; | |
11129 | PyObject * obj0 = 0 ; | |
11130 | PyObject * obj1 = 0 ; | |
11131 | PyObject * obj2 = 0 ; | |
11132 | PyObject * obj3 = 0 ; | |
11133 | PyObject * obj4 = 0 ; | |
11134 | PyObject * obj5 = 0 ; | |
11135 | PyObject * obj6 = 0 ; | |
11136 | PyObject * obj7 = 0 ; | |
11137 | PyObject * obj8 = 0 ; | |
11138 | PyObject * obj9 = 0 ; | |
11139 | char *kwnames[] = { | |
11140 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11141 | }; | |
11142 | ||
11143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
11144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11146 | if (obj1) { | |
c370783e | 11147 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11148 | if (PyErr_Occurred()) SWIG_fail; |
11149 | } | |
11150 | if (obj2) { | |
11151 | { | |
11152 | arg3 = wxString_in_helper(obj2); | |
11153 | if (arg3 == NULL) SWIG_fail; | |
11154 | temp3 = True; | |
11155 | } | |
11156 | } | |
11157 | if (obj3) { | |
11158 | { | |
11159 | arg4 = &temp4; | |
11160 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11161 | } | |
11162 | } | |
11163 | if (obj4) { | |
11164 | { | |
11165 | arg5 = &temp5; | |
11166 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11167 | } | |
11168 | } | |
11169 | if (obj5) { | |
c370783e | 11170 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
11171 | if (PyErr_Occurred()) SWIG_fail; |
11172 | } | |
11173 | if (obj6) { | |
c370783e | 11174 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
11175 | if (PyErr_Occurred()) SWIG_fail; |
11176 | } | |
11177 | if (obj7) { | |
c370783e | 11178 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
11179 | if (PyErr_Occurred()) SWIG_fail; |
11180 | } | |
11181 | if (obj8) { | |
c370783e | 11182 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
11183 | if (PyErr_Occurred()) SWIG_fail; |
11184 | } | |
11185 | if (obj9) { | |
11186 | { | |
11187 | arg10 = wxString_in_helper(obj9); | |
11188 | if (arg10 == NULL) SWIG_fail; | |
11189 | temp10 = True; | |
11190 | } | |
11191 | } | |
11192 | { | |
0439c23b | 11193 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11195 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11196 | ||
11197 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11198 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11199 | } |
11200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
11201 | { | |
11202 | if (temp3) | |
11203 | delete arg3; | |
11204 | } | |
11205 | { | |
11206 | if (temp10) | |
11207 | delete arg10; | |
11208 | } | |
11209 | return resultobj; | |
11210 | fail: | |
11211 | { | |
11212 | if (temp3) | |
11213 | delete arg3; | |
11214 | } | |
11215 | { | |
11216 | if (temp10) | |
11217 | delete arg10; | |
11218 | } | |
11219 | return NULL; | |
11220 | } | |
11221 | ||
11222 | ||
c370783e | 11223 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11224 | PyObject *resultobj; |
11225 | wxSpinCtrl *result; | |
11226 | char *kwnames[] = { | |
11227 | NULL | |
11228 | }; | |
11229 | ||
11230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11231 | { | |
0439c23b | 11232 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11234 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11235 | ||
11236 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11237 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11238 | } |
11239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
11240 | return resultobj; | |
11241 | fail: | |
11242 | return NULL; | |
11243 | } | |
11244 | ||
11245 | ||
c370783e | 11246 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11247 | PyObject *resultobj; |
11248 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11249 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11250 | int arg3 = (int) -1 ; | |
11251 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11252 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11253 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11254 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11255 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11256 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11257 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11258 | int arg8 = (int) 0 ; | |
11259 | int arg9 = (int) 100 ; | |
11260 | int arg10 = (int) 0 ; | |
11261 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11262 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11263 | bool result; | |
11264 | bool temp4 = False ; | |
11265 | wxPoint temp5 ; | |
11266 | wxSize temp6 ; | |
11267 | bool temp11 = False ; | |
11268 | PyObject * obj0 = 0 ; | |
11269 | PyObject * obj1 = 0 ; | |
11270 | PyObject * obj2 = 0 ; | |
11271 | PyObject * obj3 = 0 ; | |
11272 | PyObject * obj4 = 0 ; | |
11273 | PyObject * obj5 = 0 ; | |
11274 | PyObject * obj6 = 0 ; | |
11275 | PyObject * obj7 = 0 ; | |
11276 | PyObject * obj8 = 0 ; | |
11277 | PyObject * obj9 = 0 ; | |
11278 | PyObject * obj10 = 0 ; | |
11279 | char *kwnames[] = { | |
11280 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11281 | }; | |
11282 | ||
11283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
11284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11286 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11288 | if (obj2) { | |
c370783e | 11289 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11290 | if (PyErr_Occurred()) SWIG_fail; |
11291 | } | |
11292 | if (obj3) { | |
11293 | { | |
11294 | arg4 = wxString_in_helper(obj3); | |
11295 | if (arg4 == NULL) SWIG_fail; | |
11296 | temp4 = True; | |
11297 | } | |
11298 | } | |
11299 | if (obj4) { | |
11300 | { | |
11301 | arg5 = &temp5; | |
11302 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11303 | } | |
11304 | } | |
11305 | if (obj5) { | |
11306 | { | |
11307 | arg6 = &temp6; | |
11308 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11309 | } | |
11310 | } | |
11311 | if (obj6) { | |
c370783e | 11312 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
11313 | if (PyErr_Occurred()) SWIG_fail; |
11314 | } | |
11315 | if (obj7) { | |
c370783e | 11316 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
11317 | if (PyErr_Occurred()) SWIG_fail; |
11318 | } | |
11319 | if (obj8) { | |
c370783e | 11320 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
11321 | if (PyErr_Occurred()) SWIG_fail; |
11322 | } | |
11323 | if (obj9) { | |
c370783e | 11324 | arg10 = (int)SWIG_As_int(obj9); |
d55e5bfc RD |
11325 | if (PyErr_Occurred()) SWIG_fail; |
11326 | } | |
11327 | if (obj10) { | |
11328 | { | |
11329 | arg11 = wxString_in_helper(obj10); | |
11330 | if (arg11 == NULL) SWIG_fail; | |
11331 | temp11 = True; | |
11332 | } | |
11333 | } | |
11334 | { | |
11335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11336 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11337 | ||
11338 | wxPyEndAllowThreads(__tstate); | |
11339 | if (PyErr_Occurred()) SWIG_fail; | |
11340 | } | |
11341 | { | |
11342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11343 | } | |
11344 | { | |
11345 | if (temp4) | |
11346 | delete arg4; | |
11347 | } | |
11348 | { | |
11349 | if (temp11) | |
11350 | delete arg11; | |
11351 | } | |
11352 | return resultobj; | |
11353 | fail: | |
11354 | { | |
11355 | if (temp4) | |
11356 | delete arg4; | |
11357 | } | |
11358 | { | |
11359 | if (temp11) | |
11360 | delete arg11; | |
11361 | } | |
11362 | return NULL; | |
11363 | } | |
11364 | ||
11365 | ||
c370783e | 11366 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11367 | PyObject *resultobj; |
11368 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11369 | int result; | |
11370 | PyObject * obj0 = 0 ; | |
11371 | char *kwnames[] = { | |
11372 | (char *) "self", NULL | |
11373 | }; | |
11374 | ||
11375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
11376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11378 | { | |
11379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11380 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11381 | ||
11382 | wxPyEndAllowThreads(__tstate); | |
11383 | if (PyErr_Occurred()) SWIG_fail; | |
11384 | } | |
c370783e | 11385 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11386 | return resultobj; |
11387 | fail: | |
11388 | return NULL; | |
11389 | } | |
11390 | ||
11391 | ||
c370783e | 11392 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11393 | PyObject *resultobj; |
11394 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11395 | int arg2 ; | |
11396 | PyObject * obj0 = 0 ; | |
11397 | PyObject * obj1 = 0 ; | |
11398 | char *kwnames[] = { | |
11399 | (char *) "self",(char *) "value", NULL | |
11400 | }; | |
11401 | ||
11402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11405 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11406 | if (PyErr_Occurred()) SWIG_fail; |
11407 | { | |
11408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11409 | (arg1)->SetValue(arg2); | |
11410 | ||
11411 | wxPyEndAllowThreads(__tstate); | |
11412 | if (PyErr_Occurred()) SWIG_fail; | |
11413 | } | |
11414 | Py_INCREF(Py_None); resultobj = Py_None; | |
11415 | return resultobj; | |
11416 | fail: | |
11417 | return NULL; | |
11418 | } | |
11419 | ||
11420 | ||
c370783e | 11421 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11422 | PyObject *resultobj; |
11423 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11424 | wxString *arg2 = 0 ; | |
11425 | bool temp2 = False ; | |
11426 | PyObject * obj0 = 0 ; | |
11427 | PyObject * obj1 = 0 ; | |
11428 | char *kwnames[] = { | |
11429 | (char *) "self",(char *) "text", NULL | |
11430 | }; | |
11431 | ||
11432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
11433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11435 | { | |
11436 | arg2 = wxString_in_helper(obj1); | |
11437 | if (arg2 == NULL) SWIG_fail; | |
11438 | temp2 = True; | |
11439 | } | |
11440 | { | |
11441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11442 | (arg1)->SetValue((wxString const &)*arg2); | |
11443 | ||
11444 | wxPyEndAllowThreads(__tstate); | |
11445 | if (PyErr_Occurred()) SWIG_fail; | |
11446 | } | |
11447 | Py_INCREF(Py_None); resultobj = Py_None; | |
11448 | { | |
11449 | if (temp2) | |
11450 | delete arg2; | |
11451 | } | |
11452 | return resultobj; | |
11453 | fail: | |
11454 | { | |
11455 | if (temp2) | |
11456 | delete arg2; | |
11457 | } | |
11458 | return NULL; | |
11459 | } | |
11460 | ||
11461 | ||
c370783e | 11462 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11463 | PyObject *resultobj; |
11464 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11465 | int arg2 ; | |
11466 | int arg3 ; | |
11467 | PyObject * obj0 = 0 ; | |
11468 | PyObject * obj1 = 0 ; | |
11469 | PyObject * obj2 = 0 ; | |
11470 | char *kwnames[] = { | |
11471 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11472 | }; | |
11473 | ||
11474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11477 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11478 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11479 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11480 | if (PyErr_Occurred()) SWIG_fail; |
11481 | { | |
11482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11483 | (arg1)->SetRange(arg2,arg3); | |
11484 | ||
11485 | wxPyEndAllowThreads(__tstate); | |
11486 | if (PyErr_Occurred()) SWIG_fail; | |
11487 | } | |
11488 | Py_INCREF(Py_None); resultobj = Py_None; | |
11489 | return resultobj; | |
11490 | fail: | |
11491 | return NULL; | |
11492 | } | |
11493 | ||
11494 | ||
c370783e | 11495 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11496 | PyObject *resultobj; |
11497 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11498 | int result; | |
11499 | PyObject * obj0 = 0 ; | |
11500 | char *kwnames[] = { | |
11501 | (char *) "self", NULL | |
11502 | }; | |
11503 | ||
11504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
11505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11507 | { | |
11508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11509 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11510 | ||
11511 | wxPyEndAllowThreads(__tstate); | |
11512 | if (PyErr_Occurred()) SWIG_fail; | |
11513 | } | |
c370783e | 11514 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11515 | return resultobj; |
11516 | fail: | |
11517 | return NULL; | |
11518 | } | |
11519 | ||
11520 | ||
c370783e | 11521 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11522 | PyObject *resultobj; |
11523 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11524 | int result; | |
11525 | PyObject * obj0 = 0 ; | |
11526 | char *kwnames[] = { | |
11527 | (char *) "self", NULL | |
11528 | }; | |
11529 | ||
11530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
11531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11533 | { | |
11534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11535 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11536 | ||
11537 | wxPyEndAllowThreads(__tstate); | |
11538 | if (PyErr_Occurred()) SWIG_fail; | |
11539 | } | |
c370783e | 11540 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11541 | return resultobj; |
11542 | fail: | |
11543 | return NULL; | |
11544 | } | |
11545 | ||
11546 | ||
c370783e | 11547 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11548 | PyObject *resultobj; |
11549 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11550 | long arg2 ; | |
11551 | long arg3 ; | |
11552 | PyObject * obj0 = 0 ; | |
11553 | PyObject * obj1 = 0 ; | |
11554 | PyObject * obj2 = 0 ; | |
11555 | char *kwnames[] = { | |
11556 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11557 | }; | |
11558 | ||
11559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11562 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 11563 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11564 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
11565 | if (PyErr_Occurred()) SWIG_fail; |
11566 | { | |
11567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11568 | (arg1)->SetSelection(arg2,arg3); | |
11569 | ||
11570 | wxPyEndAllowThreads(__tstate); | |
11571 | if (PyErr_Occurred()) SWIG_fail; | |
11572 | } | |
11573 | Py_INCREF(Py_None); resultobj = Py_None; | |
11574 | return resultobj; | |
11575 | fail: | |
11576 | return NULL; | |
11577 | } | |
11578 | ||
11579 | ||
c370783e | 11580 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
11581 | PyObject *resultobj; |
11582 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11583 | wxVisualAttributes result; | |
11584 | PyObject * obj0 = 0 ; | |
11585 | char *kwnames[] = { | |
11586 | (char *) "variant", NULL | |
11587 | }; | |
11588 | ||
11589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11590 | if (obj0) { | |
c370783e | 11591 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
11592 | if (PyErr_Occurred()) SWIG_fail; |
11593 | } | |
11594 | { | |
0439c23b | 11595 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
11596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11597 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11598 | ||
11599 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11600 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
11601 | } |
11602 | { | |
11603 | wxVisualAttributes * resultptr; | |
11604 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11605 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11606 | } | |
11607 | return resultobj; | |
11608 | fail: | |
11609 | return NULL; | |
11610 | } | |
11611 | ||
11612 | ||
c370783e | 11613 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11614 | PyObject *obj; |
11615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11616 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11617 | Py_INCREF(obj); | |
11618 | return Py_BuildValue((char *)""); | |
11619 | } | |
c370783e | 11620 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11621 | PyObject *resultobj; |
11622 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11623 | int arg2 = (int) 0 ; | |
11624 | wxSpinEvent *result; | |
11625 | PyObject * obj0 = 0 ; | |
11626 | PyObject * obj1 = 0 ; | |
11627 | char *kwnames[] = { | |
11628 | (char *) "commandType",(char *) "winid", NULL | |
11629 | }; | |
11630 | ||
11631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
11632 | if (obj0) { | |
c370783e | 11633 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
11634 | if (PyErr_Occurred()) SWIG_fail; |
11635 | } | |
11636 | if (obj1) { | |
c370783e | 11637 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11638 | if (PyErr_Occurred()) SWIG_fail; |
11639 | } | |
11640 | { | |
11641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11642 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11643 | ||
11644 | wxPyEndAllowThreads(__tstate); | |
11645 | if (PyErr_Occurred()) SWIG_fail; | |
11646 | } | |
11647 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); | |
11648 | return resultobj; | |
11649 | fail: | |
11650 | return NULL; | |
11651 | } | |
11652 | ||
11653 | ||
c370783e | 11654 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11655 | PyObject *resultobj; |
11656 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11657 | int result; | |
11658 | PyObject * obj0 = 0 ; | |
11659 | char *kwnames[] = { | |
11660 | (char *) "self", NULL | |
11661 | }; | |
11662 | ||
11663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
11665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11666 | { | |
11667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11668 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11669 | ||
11670 | wxPyEndAllowThreads(__tstate); | |
11671 | if (PyErr_Occurred()) SWIG_fail; | |
11672 | } | |
c370783e | 11673 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11674 | return resultobj; |
11675 | fail: | |
11676 | return NULL; | |
11677 | } | |
11678 | ||
11679 | ||
c370783e | 11680 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11681 | PyObject *resultobj; |
11682 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11683 | int arg2 ; | |
11684 | PyObject * obj0 = 0 ; | |
11685 | PyObject * obj1 = 0 ; | |
11686 | char *kwnames[] = { | |
11687 | (char *) "self",(char *) "pos", NULL | |
11688 | }; | |
11689 | ||
11690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
11692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11693 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11694 | if (PyErr_Occurred()) SWIG_fail; |
11695 | { | |
11696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11697 | (arg1)->SetPosition(arg2); | |
11698 | ||
11699 | wxPyEndAllowThreads(__tstate); | |
11700 | if (PyErr_Occurred()) SWIG_fail; | |
11701 | } | |
11702 | Py_INCREF(Py_None); resultobj = Py_None; | |
11703 | return resultobj; | |
11704 | fail: | |
11705 | return NULL; | |
11706 | } | |
11707 | ||
11708 | ||
c370783e | 11709 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11710 | PyObject *obj; |
11711 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11712 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11713 | Py_INCREF(obj); | |
11714 | return Py_BuildValue((char *)""); | |
11715 | } | |
c370783e | 11716 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
11717 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
11718 | return 1; | |
11719 | } | |
11720 | ||
11721 | ||
11722 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11723 | PyObject *pyobj; | |
11724 | ||
11725 | { | |
11726 | #if wxUSE_UNICODE | |
11727 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11728 | #else | |
11729 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11730 | #endif | |
11731 | } | |
11732 | return pyobj; | |
11733 | } | |
11734 | ||
11735 | ||
c370783e | 11736 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
11737 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
11738 | return 1; | |
11739 | } | |
11740 | ||
11741 | ||
11742 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11743 | PyObject *pyobj; | |
11744 | ||
11745 | { | |
11746 | #if wxUSE_UNICODE | |
11747 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11748 | #else | |
11749 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11750 | #endif | |
11751 | } | |
11752 | return pyobj; | |
11753 | } | |
11754 | ||
11755 | ||
c370783e | 11756 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11757 | PyObject *resultobj; |
11758 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
11759 | int arg2 = (int) -1 ; |
11760 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11761 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
11762 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11763 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11764 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11765 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11766 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
11767 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11768 | int arg7 = (int) 0 ; | |
11769 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11770 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11771 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11772 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11773 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11774 | wxRadioBox *result; | |
11775 | bool temp3 = False ; | |
11776 | wxPoint temp4 ; | |
11777 | wxSize temp5 ; | |
11778 | bool temp6 = False ; | |
11779 | bool temp10 = False ; | |
11780 | PyObject * obj0 = 0 ; | |
11781 | PyObject * obj1 = 0 ; | |
11782 | PyObject * obj2 = 0 ; | |
11783 | PyObject * obj3 = 0 ; | |
11784 | PyObject * obj4 = 0 ; | |
11785 | PyObject * obj5 = 0 ; | |
11786 | PyObject * obj6 = 0 ; | |
11787 | PyObject * obj7 = 0 ; | |
11788 | PyObject * obj8 = 0 ; | |
11789 | PyObject * obj9 = 0 ; | |
11790 | char *kwnames[] = { | |
11791 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11792 | }; | |
11793 | ||
bfddbb17 | 11794 | 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 |
11795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 11797 | if (obj1) { |
c370783e | 11798 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
11799 | if (PyErr_Occurred()) SWIG_fail; |
11800 | } | |
11801 | if (obj2) { | |
11802 | { | |
11803 | arg3 = wxString_in_helper(obj2); | |
11804 | if (arg3 == NULL) SWIG_fail; | |
11805 | temp3 = True; | |
11806 | } | |
d55e5bfc RD |
11807 | } |
11808 | if (obj3) { | |
11809 | { | |
11810 | arg4 = &temp4; | |
11811 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11812 | } | |
11813 | } | |
11814 | if (obj4) { | |
11815 | { | |
11816 | arg5 = &temp5; | |
11817 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11818 | } | |
11819 | } | |
11820 | if (obj5) { | |
11821 | { | |
11822 | if (! PySequence_Check(obj5)) { | |
11823 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11824 | SWIG_fail; | |
11825 | } | |
11826 | arg6 = new wxArrayString; | |
11827 | temp6 = True; | |
11828 | int i, len=PySequence_Length(obj5); | |
11829 | for (i=0; i<len; i++) { | |
11830 | PyObject* item = PySequence_GetItem(obj5, i); | |
11831 | #if wxUSE_UNICODE | |
11832 | PyObject* str = PyObject_Unicode(item); | |
11833 | #else | |
11834 | PyObject* str = PyObject_Str(item); | |
11835 | #endif | |
11836 | if (PyErr_Occurred()) SWIG_fail; | |
11837 | arg6->Add(Py2wxString(str)); | |
11838 | Py_DECREF(item); | |
11839 | Py_DECREF(str); | |
11840 | } | |
11841 | } | |
11842 | } | |
11843 | if (obj6) { | |
c370783e | 11844 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
11845 | if (PyErr_Occurred()) SWIG_fail; |
11846 | } | |
11847 | if (obj7) { | |
c370783e | 11848 | arg8 = (long)SWIG_As_long(obj7); |
d55e5bfc RD |
11849 | if (PyErr_Occurred()) SWIG_fail; |
11850 | } | |
11851 | if (obj8) { | |
11852 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
11853 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11854 | SWIG_fail; | |
11855 | if (arg9 == NULL) { | |
11856 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11857 | SWIG_fail; | |
11858 | } | |
11859 | } | |
11860 | if (obj9) { | |
11861 | { | |
11862 | arg10 = wxString_in_helper(obj9); | |
11863 | if (arg10 == NULL) SWIG_fail; | |
11864 | temp10 = True; | |
11865 | } | |
11866 | } | |
11867 | { | |
0439c23b | 11868 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11870 | 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); | |
11871 | ||
11872 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11873 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11874 | } |
11875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11876 | { | |
11877 | if (temp3) | |
11878 | delete arg3; | |
11879 | } | |
11880 | { | |
11881 | if (temp6) delete arg6; | |
11882 | } | |
11883 | { | |
11884 | if (temp10) | |
11885 | delete arg10; | |
11886 | } | |
11887 | return resultobj; | |
11888 | fail: | |
11889 | { | |
11890 | if (temp3) | |
11891 | delete arg3; | |
11892 | } | |
11893 | { | |
11894 | if (temp6) delete arg6; | |
11895 | } | |
11896 | { | |
11897 | if (temp10) | |
11898 | delete arg10; | |
11899 | } | |
11900 | return NULL; | |
11901 | } | |
11902 | ||
11903 | ||
c370783e | 11904 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11905 | PyObject *resultobj; |
11906 | wxRadioBox *result; | |
11907 | char *kwnames[] = { | |
11908 | NULL | |
11909 | }; | |
11910 | ||
11911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11912 | { | |
0439c23b | 11913 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11915 | result = (wxRadioBox *)new wxRadioBox(); | |
11916 | ||
11917 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11918 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11919 | } |
11920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11921 | return resultobj; | |
11922 | fail: | |
11923 | return NULL; | |
11924 | } | |
11925 | ||
11926 | ||
c370783e | 11927 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11928 | PyObject *resultobj; |
11929 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11930 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
11931 | int arg3 = (int) -1 ; |
11932 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11933 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
11934 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
11935 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11936 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11937 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11938 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
11939 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11940 | int arg8 = (int) 0 ; | |
11941 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11942 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11943 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11944 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11945 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11946 | bool result; | |
11947 | bool temp4 = False ; | |
11948 | wxPoint temp5 ; | |
11949 | wxSize temp6 ; | |
11950 | bool temp7 = False ; | |
11951 | bool temp11 = False ; | |
11952 | PyObject * obj0 = 0 ; | |
11953 | PyObject * obj1 = 0 ; | |
11954 | PyObject * obj2 = 0 ; | |
11955 | PyObject * obj3 = 0 ; | |
11956 | PyObject * obj4 = 0 ; | |
11957 | PyObject * obj5 = 0 ; | |
11958 | PyObject * obj6 = 0 ; | |
11959 | PyObject * obj7 = 0 ; | |
11960 | PyObject * obj8 = 0 ; | |
11961 | PyObject * obj9 = 0 ; | |
11962 | PyObject * obj10 = 0 ; | |
11963 | char *kwnames[] = { | |
11964 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11965 | }; | |
11966 | ||
bfddbb17 | 11967 | 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 |
11968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11970 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 11972 | if (obj2) { |
c370783e | 11973 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
11974 | if (PyErr_Occurred()) SWIG_fail; |
11975 | } | |
11976 | if (obj3) { | |
11977 | { | |
11978 | arg4 = wxString_in_helper(obj3); | |
11979 | if (arg4 == NULL) SWIG_fail; | |
11980 | temp4 = True; | |
11981 | } | |
d55e5bfc RD |
11982 | } |
11983 | if (obj4) { | |
11984 | { | |
11985 | arg5 = &temp5; | |
11986 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11987 | } | |
11988 | } | |
11989 | if (obj5) { | |
11990 | { | |
11991 | arg6 = &temp6; | |
11992 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11993 | } | |
11994 | } | |
11995 | if (obj6) { | |
11996 | { | |
11997 | if (! PySequence_Check(obj6)) { | |
11998 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11999 | SWIG_fail; | |
12000 | } | |
12001 | arg7 = new wxArrayString; | |
12002 | temp7 = True; | |
12003 | int i, len=PySequence_Length(obj6); | |
12004 | for (i=0; i<len; i++) { | |
12005 | PyObject* item = PySequence_GetItem(obj6, i); | |
12006 | #if wxUSE_UNICODE | |
12007 | PyObject* str = PyObject_Unicode(item); | |
12008 | #else | |
12009 | PyObject* str = PyObject_Str(item); | |
12010 | #endif | |
12011 | if (PyErr_Occurred()) SWIG_fail; | |
12012 | arg7->Add(Py2wxString(str)); | |
12013 | Py_DECREF(item); | |
12014 | Py_DECREF(str); | |
12015 | } | |
12016 | } | |
12017 | } | |
12018 | if (obj7) { | |
c370783e | 12019 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
12020 | if (PyErr_Occurred()) SWIG_fail; |
12021 | } | |
12022 | if (obj8) { | |
c370783e | 12023 | arg9 = (long)SWIG_As_long(obj8); |
d55e5bfc RD |
12024 | if (PyErr_Occurred()) SWIG_fail; |
12025 | } | |
12026 | if (obj9) { | |
12027 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
12028 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12029 | SWIG_fail; | |
12030 | if (arg10 == NULL) { | |
12031 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12032 | SWIG_fail; | |
12033 | } | |
12034 | } | |
12035 | if (obj10) { | |
12036 | { | |
12037 | arg11 = wxString_in_helper(obj10); | |
12038 | if (arg11 == NULL) SWIG_fail; | |
12039 | temp11 = True; | |
12040 | } | |
12041 | } | |
12042 | { | |
12043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12044 | 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); | |
12045 | ||
12046 | wxPyEndAllowThreads(__tstate); | |
12047 | if (PyErr_Occurred()) SWIG_fail; | |
12048 | } | |
12049 | { | |
12050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12051 | } | |
12052 | { | |
12053 | if (temp4) | |
12054 | delete arg4; | |
12055 | } | |
12056 | { | |
12057 | if (temp7) delete arg7; | |
12058 | } | |
12059 | { | |
12060 | if (temp11) | |
12061 | delete arg11; | |
12062 | } | |
12063 | return resultobj; | |
12064 | fail: | |
12065 | { | |
12066 | if (temp4) | |
12067 | delete arg4; | |
12068 | } | |
12069 | { | |
12070 | if (temp7) delete arg7; | |
12071 | } | |
12072 | { | |
12073 | if (temp11) | |
12074 | delete arg11; | |
12075 | } | |
12076 | return NULL; | |
12077 | } | |
12078 | ||
12079 | ||
c370783e | 12080 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12081 | PyObject *resultobj; |
12082 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12083 | int arg2 ; | |
12084 | PyObject * obj0 = 0 ; | |
12085 | PyObject * obj1 = 0 ; | |
12086 | char *kwnames[] = { | |
12087 | (char *) "self",(char *) "n", NULL | |
12088 | }; | |
12089 | ||
12090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12093 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12094 | if (PyErr_Occurred()) SWIG_fail; |
12095 | { | |
12096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12097 | (arg1)->SetSelection(arg2); | |
12098 | ||
12099 | wxPyEndAllowThreads(__tstate); | |
12100 | if (PyErr_Occurred()) SWIG_fail; | |
12101 | } | |
12102 | Py_INCREF(Py_None); resultobj = Py_None; | |
12103 | return resultobj; | |
12104 | fail: | |
12105 | return NULL; | |
12106 | } | |
12107 | ||
12108 | ||
c370783e | 12109 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12110 | PyObject *resultobj; |
12111 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12112 | int result; | |
12113 | PyObject * obj0 = 0 ; | |
12114 | char *kwnames[] = { | |
12115 | (char *) "self", NULL | |
12116 | }; | |
12117 | ||
12118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
12119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12121 | { | |
12122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12123 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
12124 | ||
12125 | wxPyEndAllowThreads(__tstate); | |
12126 | if (PyErr_Occurred()) SWIG_fail; | |
12127 | } | |
c370783e | 12128 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12129 | return resultobj; |
12130 | fail: | |
12131 | return NULL; | |
12132 | } | |
12133 | ||
12134 | ||
c370783e | 12135 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12136 | PyObject *resultobj; |
12137 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12138 | wxString result; | |
12139 | PyObject * obj0 = 0 ; | |
12140 | char *kwnames[] = { | |
12141 | (char *) "self", NULL | |
12142 | }; | |
12143 | ||
12144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
12145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12147 | { | |
12148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12149 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
12150 | ||
12151 | wxPyEndAllowThreads(__tstate); | |
12152 | if (PyErr_Occurred()) SWIG_fail; | |
12153 | } | |
12154 | { | |
12155 | #if wxUSE_UNICODE | |
12156 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12157 | #else | |
12158 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12159 | #endif | |
12160 | } | |
12161 | return resultobj; | |
12162 | fail: | |
12163 | return NULL; | |
12164 | } | |
12165 | ||
12166 | ||
c370783e | 12167 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12168 | PyObject *resultobj; |
12169 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12170 | wxString *arg2 = 0 ; | |
12171 | bool result; | |
12172 | bool temp2 = False ; | |
12173 | PyObject * obj0 = 0 ; | |
12174 | PyObject * obj1 = 0 ; | |
12175 | char *kwnames[] = { | |
12176 | (char *) "self",(char *) "s", NULL | |
12177 | }; | |
12178 | ||
12179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
12180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12182 | { | |
12183 | arg2 = wxString_in_helper(obj1); | |
12184 | if (arg2 == NULL) SWIG_fail; | |
12185 | temp2 = True; | |
12186 | } | |
12187 | { | |
12188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12189 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
12190 | ||
12191 | wxPyEndAllowThreads(__tstate); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
12194 | { | |
12195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12196 | } | |
12197 | { | |
12198 | if (temp2) | |
12199 | delete arg2; | |
12200 | } | |
12201 | return resultobj; | |
12202 | fail: | |
12203 | { | |
12204 | if (temp2) | |
12205 | delete arg2; | |
12206 | } | |
12207 | return NULL; | |
12208 | } | |
12209 | ||
12210 | ||
c370783e | 12211 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12212 | PyObject *resultobj; |
12213 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12214 | int result; | |
12215 | PyObject * obj0 = 0 ; | |
12216 | char *kwnames[] = { | |
12217 | (char *) "self", NULL | |
12218 | }; | |
12219 | ||
12220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
12221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12223 | { | |
12224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12225 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12226 | ||
12227 | wxPyEndAllowThreads(__tstate); | |
12228 | if (PyErr_Occurred()) SWIG_fail; | |
12229 | } | |
c370783e | 12230 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12231 | return resultobj; |
12232 | fail: | |
12233 | return NULL; | |
12234 | } | |
12235 | ||
12236 | ||
c370783e | 12237 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12238 | PyObject *resultobj; |
12239 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12240 | wxString *arg2 = 0 ; | |
12241 | int result; | |
12242 | bool temp2 = False ; | |
12243 | PyObject * obj0 = 0 ; | |
12244 | PyObject * obj1 = 0 ; | |
12245 | char *kwnames[] = { | |
12246 | (char *) "self",(char *) "s", NULL | |
12247 | }; | |
12248 | ||
12249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
12250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12252 | { | |
12253 | arg2 = wxString_in_helper(obj1); | |
12254 | if (arg2 == NULL) SWIG_fail; | |
12255 | temp2 = True; | |
12256 | } | |
12257 | { | |
12258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12259 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12260 | ||
12261 | wxPyEndAllowThreads(__tstate); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
c370783e | 12264 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12265 | { |
12266 | if (temp2) | |
12267 | delete arg2; | |
12268 | } | |
12269 | return resultobj; | |
12270 | fail: | |
12271 | { | |
12272 | if (temp2) | |
12273 | delete arg2; | |
12274 | } | |
12275 | return NULL; | |
12276 | } | |
12277 | ||
12278 | ||
c370783e | 12279 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12280 | PyObject *resultobj; |
12281 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12282 | int arg2 ; | |
12283 | wxString result; | |
12284 | PyObject * obj0 = 0 ; | |
12285 | PyObject * obj1 = 0 ; | |
12286 | char *kwnames[] = { | |
12287 | (char *) "self",(char *) "n", NULL | |
12288 | }; | |
12289 | ||
12290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
12291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12293 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12294 | if (PyErr_Occurred()) SWIG_fail; |
12295 | { | |
12296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12297 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12298 | ||
12299 | wxPyEndAllowThreads(__tstate); | |
12300 | if (PyErr_Occurred()) SWIG_fail; | |
12301 | } | |
12302 | { | |
12303 | #if wxUSE_UNICODE | |
12304 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12305 | #else | |
12306 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12307 | #endif | |
12308 | } | |
12309 | return resultobj; | |
12310 | fail: | |
12311 | return NULL; | |
12312 | } | |
12313 | ||
12314 | ||
c370783e | 12315 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12316 | PyObject *resultobj; |
12317 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12318 | int arg2 ; | |
12319 | wxString *arg3 = 0 ; | |
12320 | bool temp3 = False ; | |
12321 | PyObject * obj0 = 0 ; | |
12322 | PyObject * obj1 = 0 ; | |
12323 | PyObject * obj2 = 0 ; | |
12324 | char *kwnames[] = { | |
12325 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12326 | }; | |
12327 | ||
12328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12331 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12332 | if (PyErr_Occurred()) SWIG_fail; |
12333 | { | |
12334 | arg3 = wxString_in_helper(obj2); | |
12335 | if (arg3 == NULL) SWIG_fail; | |
12336 | temp3 = True; | |
12337 | } | |
12338 | { | |
12339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12340 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12341 | ||
12342 | wxPyEndAllowThreads(__tstate); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
12344 | } | |
12345 | Py_INCREF(Py_None); resultobj = Py_None; | |
12346 | { | |
12347 | if (temp3) | |
12348 | delete arg3; | |
12349 | } | |
12350 | return resultobj; | |
12351 | fail: | |
12352 | { | |
12353 | if (temp3) | |
12354 | delete arg3; | |
12355 | } | |
12356 | return NULL; | |
12357 | } | |
12358 | ||
12359 | ||
c370783e | 12360 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12361 | PyObject *resultobj; |
12362 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12363 | int arg2 ; | |
12364 | bool arg3 = (bool) True ; | |
12365 | PyObject * obj0 = 0 ; | |
12366 | PyObject * obj1 = 0 ; | |
12367 | PyObject * obj2 = 0 ; | |
12368 | char *kwnames[] = { | |
12369 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12370 | }; | |
12371 | ||
12372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12375 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12376 | if (PyErr_Occurred()) SWIG_fail; |
12377 | if (obj2) { | |
c370783e | 12378 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
12379 | if (PyErr_Occurred()) SWIG_fail; |
12380 | } | |
12381 | { | |
12382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12383 | (arg1)->Enable(arg2,arg3); | |
12384 | ||
12385 | wxPyEndAllowThreads(__tstate); | |
12386 | if (PyErr_Occurred()) SWIG_fail; | |
12387 | } | |
12388 | Py_INCREF(Py_None); resultobj = Py_None; | |
12389 | return resultobj; | |
12390 | fail: | |
12391 | return NULL; | |
12392 | } | |
12393 | ||
12394 | ||
c370783e | 12395 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12396 | PyObject *resultobj; |
12397 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12398 | int arg2 ; | |
12399 | bool arg3 = (bool) True ; | |
12400 | PyObject * obj0 = 0 ; | |
12401 | PyObject * obj1 = 0 ; | |
12402 | PyObject * obj2 = 0 ; | |
12403 | char *kwnames[] = { | |
12404 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12405 | }; | |
12406 | ||
12407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12410 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12411 | if (PyErr_Occurred()) SWIG_fail; |
12412 | if (obj2) { | |
c370783e | 12413 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
12414 | if (PyErr_Occurred()) SWIG_fail; |
12415 | } | |
12416 | { | |
12417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12418 | (arg1)->Show(arg2,arg3); | |
12419 | ||
12420 | wxPyEndAllowThreads(__tstate); | |
12421 | if (PyErr_Occurred()) SWIG_fail; | |
12422 | } | |
12423 | Py_INCREF(Py_None); resultobj = Py_None; | |
12424 | return resultobj; | |
12425 | fail: | |
12426 | return NULL; | |
12427 | } | |
12428 | ||
12429 | ||
c370783e | 12430 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12431 | PyObject *resultobj; |
12432 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12433 | int result; | |
12434 | PyObject * obj0 = 0 ; | |
12435 | char *kwnames[] = { | |
12436 | (char *) "self", NULL | |
12437 | }; | |
12438 | ||
12439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
12440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12442 | { | |
12443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12444 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
12445 | ||
12446 | wxPyEndAllowThreads(__tstate); | |
12447 | if (PyErr_Occurred()) SWIG_fail; | |
12448 | } | |
c370783e | 12449 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12450 | return resultobj; |
12451 | fail: | |
12452 | return NULL; | |
12453 | } | |
12454 | ||
12455 | ||
c370783e | 12456 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12457 | PyObject *resultobj; |
12458 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12459 | int result; | |
12460 | PyObject * obj0 = 0 ; | |
12461 | char *kwnames[] = { | |
12462 | (char *) "self", NULL | |
12463 | }; | |
12464 | ||
12465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
12466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12468 | { | |
12469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12470 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
12471 | ||
12472 | wxPyEndAllowThreads(__tstate); | |
12473 | if (PyErr_Occurred()) SWIG_fail; | |
12474 | } | |
c370783e | 12475 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12476 | return resultobj; |
12477 | fail: | |
12478 | return NULL; | |
12479 | } | |
12480 | ||
12481 | ||
c370783e | 12482 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12483 | PyObject *resultobj; |
12484 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12485 | int arg2 ; | |
12486 | int arg3 ; | |
12487 | long arg4 ; | |
12488 | int result; | |
12489 | PyObject * obj0 = 0 ; | |
12490 | PyObject * obj1 = 0 ; | |
12491 | PyObject * obj2 = 0 ; | |
12492 | PyObject * obj3 = 0 ; | |
12493 | char *kwnames[] = { | |
12494 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12495 | }; | |
12496 | ||
12497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12500 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12501 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12502 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12503 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12504 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
12505 | if (PyErr_Occurred()) SWIG_fail; |
12506 | { | |
12507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12508 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
12509 | ||
12510 | wxPyEndAllowThreads(__tstate); | |
12511 | if (PyErr_Occurred()) SWIG_fail; | |
12512 | } | |
c370783e | 12513 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12514 | return resultobj; |
12515 | fail: | |
12516 | return NULL; | |
12517 | } | |
12518 | ||
12519 | ||
c370783e | 12520 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
12521 | PyObject *resultobj; |
12522 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12523 | wxVisualAttributes result; | |
12524 | PyObject * obj0 = 0 ; | |
12525 | char *kwnames[] = { | |
12526 | (char *) "variant", NULL | |
12527 | }; | |
12528 | ||
12529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12530 | if (obj0) { | |
c370783e | 12531 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
12532 | if (PyErr_Occurred()) SWIG_fail; |
12533 | } | |
12534 | { | |
0439c23b | 12535 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
12536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12537 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12538 | ||
12539 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12540 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12541 | } |
12542 | { | |
12543 | wxVisualAttributes * resultptr; | |
12544 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12545 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12546 | } | |
12547 | return resultobj; | |
12548 | fail: | |
12549 | return NULL; | |
12550 | } | |
12551 | ||
12552 | ||
c370783e | 12553 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12554 | PyObject *obj; |
12555 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12556 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12557 | Py_INCREF(obj); | |
12558 | return Py_BuildValue((char *)""); | |
12559 | } | |
c370783e | 12560 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12561 | PyObject *resultobj; |
12562 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
12563 | int arg2 = (int) -1 ; |
12564 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12565 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
12566 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12567 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12568 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12569 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12570 | long arg6 = (long) 0 ; | |
12571 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12572 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12573 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12574 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12575 | wxRadioButton *result; | |
12576 | bool temp3 = False ; | |
12577 | wxPoint temp4 ; | |
12578 | wxSize temp5 ; | |
12579 | bool temp8 = False ; | |
12580 | PyObject * obj0 = 0 ; | |
12581 | PyObject * obj1 = 0 ; | |
12582 | PyObject * obj2 = 0 ; | |
12583 | PyObject * obj3 = 0 ; | |
12584 | PyObject * obj4 = 0 ; | |
12585 | PyObject * obj5 = 0 ; | |
12586 | PyObject * obj6 = 0 ; | |
12587 | PyObject * obj7 = 0 ; | |
12588 | char *kwnames[] = { | |
12589 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12590 | }; | |
12591 | ||
bfddbb17 | 12592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
12593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 12595 | if (obj1) { |
c370783e | 12596 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
12597 | if (PyErr_Occurred()) SWIG_fail; |
12598 | } | |
12599 | if (obj2) { | |
12600 | { | |
12601 | arg3 = wxString_in_helper(obj2); | |
12602 | if (arg3 == NULL) SWIG_fail; | |
12603 | temp3 = True; | |
12604 | } | |
d55e5bfc RD |
12605 | } |
12606 | if (obj3) { | |
12607 | { | |
12608 | arg4 = &temp4; | |
12609 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12610 | } | |
12611 | } | |
12612 | if (obj4) { | |
12613 | { | |
12614 | arg5 = &temp5; | |
12615 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12616 | } | |
12617 | } | |
12618 | if (obj5) { | |
c370783e | 12619 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
12620 | if (PyErr_Occurred()) SWIG_fail; |
12621 | } | |
12622 | if (obj6) { | |
12623 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
12624 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12625 | SWIG_fail; | |
12626 | if (arg7 == NULL) { | |
12627 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12628 | SWIG_fail; | |
12629 | } | |
12630 | } | |
12631 | if (obj7) { | |
12632 | { | |
12633 | arg8 = wxString_in_helper(obj7); | |
12634 | if (arg8 == NULL) SWIG_fail; | |
12635 | temp8 = True; | |
12636 | } | |
12637 | } | |
12638 | { | |
0439c23b | 12639 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12641 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12642 | ||
12643 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12644 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12645 | } |
12646 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
12647 | { | |
12648 | if (temp3) | |
12649 | delete arg3; | |
12650 | } | |
12651 | { | |
12652 | if (temp8) | |
12653 | delete arg8; | |
12654 | } | |
12655 | return resultobj; | |
12656 | fail: | |
12657 | { | |
12658 | if (temp3) | |
12659 | delete arg3; | |
12660 | } | |
12661 | { | |
12662 | if (temp8) | |
12663 | delete arg8; | |
12664 | } | |
12665 | return NULL; | |
12666 | } | |
12667 | ||
12668 | ||
c370783e | 12669 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12670 | PyObject *resultobj; |
12671 | wxRadioButton *result; | |
12672 | char *kwnames[] = { | |
12673 | NULL | |
12674 | }; | |
12675 | ||
12676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12677 | { | |
0439c23b | 12678 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12680 | result = (wxRadioButton *)new wxRadioButton(); | |
12681 | ||
12682 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12683 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12684 | } |
12685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
12686 | return resultobj; | |
12687 | fail: | |
12688 | return NULL; | |
12689 | } | |
12690 | ||
12691 | ||
c370783e | 12692 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12693 | PyObject *resultobj; |
12694 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12695 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
12696 | int arg3 = (int) -1 ; |
12697 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12698 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
12699 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12700 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12701 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12702 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12703 | long arg7 = (long) 0 ; | |
12704 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12705 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12706 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12707 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12708 | bool result; | |
12709 | bool temp4 = False ; | |
12710 | wxPoint temp5 ; | |
12711 | wxSize temp6 ; | |
12712 | bool temp9 = False ; | |
12713 | PyObject * obj0 = 0 ; | |
12714 | PyObject * obj1 = 0 ; | |
12715 | PyObject * obj2 = 0 ; | |
12716 | PyObject * obj3 = 0 ; | |
12717 | PyObject * obj4 = 0 ; | |
12718 | PyObject * obj5 = 0 ; | |
12719 | PyObject * obj6 = 0 ; | |
12720 | PyObject * obj7 = 0 ; | |
12721 | PyObject * obj8 = 0 ; | |
12722 | char *kwnames[] = { | |
12723 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12724 | }; | |
12725 | ||
bfddbb17 | 12726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
12727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12729 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 12731 | if (obj2) { |
c370783e | 12732 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
12733 | if (PyErr_Occurred()) SWIG_fail; |
12734 | } | |
12735 | if (obj3) { | |
12736 | { | |
12737 | arg4 = wxString_in_helper(obj3); | |
12738 | if (arg4 == NULL) SWIG_fail; | |
12739 | temp4 = True; | |
12740 | } | |
d55e5bfc RD |
12741 | } |
12742 | if (obj4) { | |
12743 | { | |
12744 | arg5 = &temp5; | |
12745 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12746 | } | |
12747 | } | |
12748 | if (obj5) { | |
12749 | { | |
12750 | arg6 = &temp6; | |
12751 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12752 | } | |
12753 | } | |
12754 | if (obj6) { | |
c370783e | 12755 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
12756 | if (PyErr_Occurred()) SWIG_fail; |
12757 | } | |
12758 | if (obj7) { | |
12759 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
12760 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12761 | SWIG_fail; | |
12762 | if (arg8 == NULL) { | |
12763 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12764 | SWIG_fail; | |
12765 | } | |
12766 | } | |
12767 | if (obj8) { | |
12768 | { | |
12769 | arg9 = wxString_in_helper(obj8); | |
12770 | if (arg9 == NULL) SWIG_fail; | |
12771 | temp9 = True; | |
12772 | } | |
12773 | } | |
12774 | { | |
12775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12776 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12777 | ||
12778 | wxPyEndAllowThreads(__tstate); | |
12779 | if (PyErr_Occurred()) SWIG_fail; | |
12780 | } | |
12781 | { | |
12782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12783 | } | |
12784 | { | |
12785 | if (temp4) | |
12786 | delete arg4; | |
12787 | } | |
12788 | { | |
12789 | if (temp9) | |
12790 | delete arg9; | |
12791 | } | |
12792 | return resultobj; | |
12793 | fail: | |
12794 | { | |
12795 | if (temp4) | |
12796 | delete arg4; | |
12797 | } | |
12798 | { | |
12799 | if (temp9) | |
12800 | delete arg9; | |
12801 | } | |
12802 | return NULL; | |
12803 | } | |
12804 | ||
12805 | ||
c370783e | 12806 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12807 | PyObject *resultobj; |
12808 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12809 | bool result; | |
12810 | PyObject * obj0 = 0 ; | |
12811 | char *kwnames[] = { | |
12812 | (char *) "self", NULL | |
12813 | }; | |
12814 | ||
12815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
12816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12818 | { | |
12819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12820 | result = (bool)(arg1)->GetValue(); | |
12821 | ||
12822 | wxPyEndAllowThreads(__tstate); | |
12823 | if (PyErr_Occurred()) SWIG_fail; | |
12824 | } | |
12825 | { | |
12826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12827 | } | |
12828 | return resultobj; | |
12829 | fail: | |
12830 | return NULL; | |
12831 | } | |
12832 | ||
12833 | ||
c370783e | 12834 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12835 | PyObject *resultobj; |
12836 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12837 | bool arg2 ; | |
12838 | PyObject * obj0 = 0 ; | |
12839 | PyObject * obj1 = 0 ; | |
12840 | char *kwnames[] = { | |
12841 | (char *) "self",(char *) "value", NULL | |
12842 | }; | |
12843 | ||
12844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12847 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12848 | if (PyErr_Occurred()) SWIG_fail; |
12849 | { | |
12850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12851 | (arg1)->SetValue(arg2); | |
12852 | ||
12853 | wxPyEndAllowThreads(__tstate); | |
12854 | if (PyErr_Occurred()) SWIG_fail; | |
12855 | } | |
12856 | Py_INCREF(Py_None); resultobj = Py_None; | |
12857 | return resultobj; | |
12858 | fail: | |
12859 | return NULL; | |
12860 | } | |
12861 | ||
12862 | ||
c370783e | 12863 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
12864 | PyObject *resultobj; |
12865 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12866 | wxVisualAttributes result; | |
12867 | PyObject * obj0 = 0 ; | |
12868 | char *kwnames[] = { | |
12869 | (char *) "variant", NULL | |
12870 | }; | |
12871 | ||
12872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12873 | if (obj0) { | |
c370783e | 12874 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
12875 | if (PyErr_Occurred()) SWIG_fail; |
12876 | } | |
12877 | { | |
0439c23b | 12878 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
12879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12880 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12881 | ||
12882 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12883 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12884 | } |
12885 | { | |
12886 | wxVisualAttributes * resultptr; | |
12887 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12888 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12889 | } | |
12890 | return resultobj; | |
12891 | fail: | |
12892 | return NULL; | |
12893 | } | |
12894 | ||
12895 | ||
c370783e | 12896 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12897 | PyObject *obj; |
12898 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12899 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12900 | Py_INCREF(obj); | |
12901 | return Py_BuildValue((char *)""); | |
12902 | } | |
c370783e | 12903 | static int _wrap_SliderNameStr_set(PyObject *) { |
d55e5bfc RD |
12904 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
12905 | return 1; | |
12906 | } | |
12907 | ||
12908 | ||
12909 | static PyObject *_wrap_SliderNameStr_get() { | |
12910 | PyObject *pyobj; | |
12911 | ||
12912 | { | |
12913 | #if wxUSE_UNICODE | |
12914 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12915 | #else | |
12916 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12917 | #endif | |
12918 | } | |
12919 | return pyobj; | |
12920 | } | |
12921 | ||
12922 | ||
c370783e | 12923 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12924 | PyObject *resultobj; |
12925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
12926 | int arg2 = (int) -1 ; |
12927 | int arg3 = (int) 0 ; | |
12928 | int arg4 = (int) 0 ; | |
12929 | int arg5 = (int) 100 ; | |
d55e5bfc RD |
12930 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
12931 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12932 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12933 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12934 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12935 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12936 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12937 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12938 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12939 | wxSlider *result; | |
12940 | wxPoint temp6 ; | |
12941 | wxSize temp7 ; | |
12942 | bool temp10 = False ; | |
12943 | PyObject * obj0 = 0 ; | |
12944 | PyObject * obj1 = 0 ; | |
12945 | PyObject * obj2 = 0 ; | |
12946 | PyObject * obj3 = 0 ; | |
12947 | PyObject * obj4 = 0 ; | |
12948 | PyObject * obj5 = 0 ; | |
12949 | PyObject * obj6 = 0 ; | |
12950 | PyObject * obj7 = 0 ; | |
12951 | PyObject * obj8 = 0 ; | |
12952 | PyObject * obj9 = 0 ; | |
12953 | char *kwnames[] = { | |
12954 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12955 | }; | |
12956 | ||
bfddbb17 | 12957 | 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 |
12958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 12960 | if (obj1) { |
c370783e | 12961 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
12962 | if (PyErr_Occurred()) SWIG_fail; |
12963 | } | |
12964 | if (obj2) { | |
c370783e | 12965 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
12966 | if (PyErr_Occurred()) SWIG_fail; |
12967 | } | |
12968 | if (obj3) { | |
c370783e | 12969 | arg4 = (int)SWIG_As_int(obj3); |
bfddbb17 RD |
12970 | if (PyErr_Occurred()) SWIG_fail; |
12971 | } | |
12972 | if (obj4) { | |
c370783e | 12973 | arg5 = (int)SWIG_As_int(obj4); |
bfddbb17 RD |
12974 | if (PyErr_Occurred()) SWIG_fail; |
12975 | } | |
d55e5bfc RD |
12976 | if (obj5) { |
12977 | { | |
12978 | arg6 = &temp6; | |
12979 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12980 | } | |
12981 | } | |
12982 | if (obj6) { | |
12983 | { | |
12984 | arg7 = &temp7; | |
12985 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12986 | } | |
12987 | } | |
12988 | if (obj7) { | |
c370783e | 12989 | arg8 = (long)SWIG_As_long(obj7); |
d55e5bfc RD |
12990 | if (PyErr_Occurred()) SWIG_fail; |
12991 | } | |
12992 | if (obj8) { | |
12993 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
12994 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12995 | SWIG_fail; | |
12996 | if (arg9 == NULL) { | |
12997 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12998 | SWIG_fail; | |
12999 | } | |
13000 | } | |
13001 | if (obj9) { | |
13002 | { | |
13003 | arg10 = wxString_in_helper(obj9); | |
13004 | if (arg10 == NULL) SWIG_fail; | |
13005 | temp10 = True; | |
13006 | } | |
13007 | } | |
13008 | { | |
0439c23b | 13009 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13011 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
13012 | ||
13013 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13014 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13015 | } |
13016 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
13017 | { | |
13018 | if (temp10) | |
13019 | delete arg10; | |
13020 | } | |
13021 | return resultobj; | |
13022 | fail: | |
13023 | { | |
13024 | if (temp10) | |
13025 | delete arg10; | |
13026 | } | |
13027 | return NULL; | |
13028 | } | |
13029 | ||
13030 | ||
c370783e | 13031 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13032 | PyObject *resultobj; |
13033 | wxSlider *result; | |
13034 | char *kwnames[] = { | |
13035 | NULL | |
13036 | }; | |
13037 | ||
13038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
13039 | { | |
0439c23b | 13040 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13042 | result = (wxSlider *)new wxSlider(); | |
13043 | ||
13044 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13045 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13046 | } |
13047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
13048 | return resultobj; | |
13049 | fail: | |
13050 | return NULL; | |
13051 | } | |
13052 | ||
13053 | ||
c370783e | 13054 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13055 | PyObject *resultobj; |
13056 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13057 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
13058 | int arg3 = (int) -1 ; |
13059 | int arg4 = (int) 0 ; | |
13060 | int arg5 = (int) 0 ; | |
13061 | int arg6 = (int) 100 ; | |
d55e5bfc RD |
13062 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
13063 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
13064 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
13065 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
13066 | long arg9 = (long) wxSL_HORIZONTAL ; | |
13067 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13068 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13069 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
13070 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13071 | bool result; | |
13072 | wxPoint temp7 ; | |
13073 | wxSize temp8 ; | |
13074 | bool temp11 = False ; | |
13075 | PyObject * obj0 = 0 ; | |
13076 | PyObject * obj1 = 0 ; | |
13077 | PyObject * obj2 = 0 ; | |
13078 | PyObject * obj3 = 0 ; | |
13079 | PyObject * obj4 = 0 ; | |
13080 | PyObject * obj5 = 0 ; | |
13081 | PyObject * obj6 = 0 ; | |
13082 | PyObject * obj7 = 0 ; | |
13083 | PyObject * obj8 = 0 ; | |
13084 | PyObject * obj9 = 0 ; | |
13085 | PyObject * obj10 = 0 ; | |
13086 | char *kwnames[] = { | |
13087 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13088 | }; | |
13089 | ||
bfddbb17 | 13090 | 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 |
13091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 13095 | if (obj2) { |
c370783e | 13096 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
13097 | if (PyErr_Occurred()) SWIG_fail; |
13098 | } | |
13099 | if (obj3) { | |
c370783e | 13100 | arg4 = (int)SWIG_As_int(obj3); |
bfddbb17 RD |
13101 | if (PyErr_Occurred()) SWIG_fail; |
13102 | } | |
13103 | if (obj4) { | |
c370783e | 13104 | arg5 = (int)SWIG_As_int(obj4); |
bfddbb17 RD |
13105 | if (PyErr_Occurred()) SWIG_fail; |
13106 | } | |
13107 | if (obj5) { | |
c370783e | 13108 | arg6 = (int)SWIG_As_int(obj5); |
bfddbb17 RD |
13109 | if (PyErr_Occurred()) SWIG_fail; |
13110 | } | |
d55e5bfc RD |
13111 | if (obj6) { |
13112 | { | |
13113 | arg7 = &temp7; | |
13114 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
13115 | } | |
13116 | } | |
13117 | if (obj7) { | |
13118 | { | |
13119 | arg8 = &temp8; | |
13120 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
13121 | } | |
13122 | } | |
13123 | if (obj8) { | |
c370783e | 13124 | arg9 = (long)SWIG_As_long(obj8); |
d55e5bfc RD |
13125 | if (PyErr_Occurred()) SWIG_fail; |
13126 | } | |
13127 | if (obj9) { | |
13128 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
13129 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13130 | SWIG_fail; | |
13131 | if (arg10 == NULL) { | |
13132 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13133 | SWIG_fail; | |
13134 | } | |
13135 | } | |
13136 | if (obj10) { | |
13137 | { | |
13138 | arg11 = wxString_in_helper(obj10); | |
13139 | if (arg11 == NULL) SWIG_fail; | |
13140 | temp11 = True; | |
13141 | } | |
13142 | } | |
13143 | { | |
13144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13145 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
13146 | ||
13147 | wxPyEndAllowThreads(__tstate); | |
13148 | if (PyErr_Occurred()) SWIG_fail; | |
13149 | } | |
13150 | { | |
13151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13152 | } | |
13153 | { | |
13154 | if (temp11) | |
13155 | delete arg11; | |
13156 | } | |
13157 | return resultobj; | |
13158 | fail: | |
13159 | { | |
13160 | if (temp11) | |
13161 | delete arg11; | |
13162 | } | |
13163 | return NULL; | |
13164 | } | |
13165 | ||
13166 | ||
c370783e | 13167 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13168 | PyObject *resultobj; |
13169 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13170 | int result; | |
13171 | PyObject * obj0 = 0 ; | |
13172 | char *kwnames[] = { | |
13173 | (char *) "self", NULL | |
13174 | }; | |
13175 | ||
13176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
13177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13179 | { | |
13180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13181 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
13182 | ||
13183 | wxPyEndAllowThreads(__tstate); | |
13184 | if (PyErr_Occurred()) SWIG_fail; | |
13185 | } | |
c370783e | 13186 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13187 | return resultobj; |
13188 | fail: | |
13189 | return NULL; | |
13190 | } | |
13191 | ||
13192 | ||
c370783e | 13193 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13194 | PyObject *resultobj; |
13195 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13196 | int arg2 ; | |
13197 | PyObject * obj0 = 0 ; | |
13198 | PyObject * obj1 = 0 ; | |
13199 | char *kwnames[] = { | |
13200 | (char *) "self",(char *) "value", NULL | |
13201 | }; | |
13202 | ||
13203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13206 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13207 | if (PyErr_Occurred()) SWIG_fail; |
13208 | { | |
13209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13210 | (arg1)->SetValue(arg2); | |
13211 | ||
13212 | wxPyEndAllowThreads(__tstate); | |
13213 | if (PyErr_Occurred()) SWIG_fail; | |
13214 | } | |
13215 | Py_INCREF(Py_None); resultobj = Py_None; | |
13216 | return resultobj; | |
13217 | fail: | |
13218 | return NULL; | |
13219 | } | |
13220 | ||
13221 | ||
c370783e | 13222 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13223 | PyObject *resultobj; |
13224 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13225 | int arg2 ; | |
13226 | int arg3 ; | |
13227 | PyObject * obj0 = 0 ; | |
13228 | PyObject * obj1 = 0 ; | |
13229 | PyObject * obj2 = 0 ; | |
13230 | char *kwnames[] = { | |
13231 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13232 | }; | |
13233 | ||
13234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13237 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 13238 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13239 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13240 | if (PyErr_Occurred()) SWIG_fail; |
13241 | { | |
13242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13243 | (arg1)->SetRange(arg2,arg3); | |
13244 | ||
13245 | wxPyEndAllowThreads(__tstate); | |
13246 | if (PyErr_Occurred()) SWIG_fail; | |
13247 | } | |
13248 | Py_INCREF(Py_None); resultobj = Py_None; | |
13249 | return resultobj; | |
13250 | fail: | |
13251 | return NULL; | |
13252 | } | |
13253 | ||
13254 | ||
c370783e | 13255 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13256 | PyObject *resultobj; |
13257 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13258 | int result; | |
13259 | PyObject * obj0 = 0 ; | |
13260 | char *kwnames[] = { | |
13261 | (char *) "self", NULL | |
13262 | }; | |
13263 | ||
13264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
13265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13267 | { | |
13268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13269 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13270 | ||
13271 | wxPyEndAllowThreads(__tstate); | |
13272 | if (PyErr_Occurred()) SWIG_fail; | |
13273 | } | |
c370783e | 13274 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13275 | return resultobj; |
13276 | fail: | |
13277 | return NULL; | |
13278 | } | |
13279 | ||
13280 | ||
c370783e | 13281 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13282 | PyObject *resultobj; |
13283 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13284 | int result; | |
13285 | PyObject * obj0 = 0 ; | |
13286 | char *kwnames[] = { | |
13287 | (char *) "self", NULL | |
13288 | }; | |
13289 | ||
13290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
13291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13293 | { | |
13294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13295 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13296 | ||
13297 | wxPyEndAllowThreads(__tstate); | |
13298 | if (PyErr_Occurred()) SWIG_fail; | |
13299 | } | |
c370783e | 13300 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13301 | return resultobj; |
13302 | fail: | |
13303 | return NULL; | |
13304 | } | |
13305 | ||
13306 | ||
c370783e | 13307 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13308 | PyObject *resultobj; |
13309 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13310 | int arg2 ; | |
13311 | PyObject * obj0 = 0 ; | |
13312 | PyObject * obj1 = 0 ; | |
13313 | char *kwnames[] = { | |
13314 | (char *) "self",(char *) "minValue", NULL | |
13315 | }; | |
13316 | ||
13317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
13318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13320 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13321 | if (PyErr_Occurred()) SWIG_fail; |
13322 | { | |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | (arg1)->SetMin(arg2); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
13329 | Py_INCREF(Py_None); resultobj = Py_None; | |
13330 | return resultobj; | |
13331 | fail: | |
13332 | return NULL; | |
13333 | } | |
13334 | ||
13335 | ||
c370783e | 13336 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13337 | PyObject *resultobj; |
13338 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13339 | int arg2 ; | |
13340 | PyObject * obj0 = 0 ; | |
13341 | PyObject * obj1 = 0 ; | |
13342 | char *kwnames[] = { | |
13343 | (char *) "self",(char *) "maxValue", NULL | |
13344 | }; | |
13345 | ||
13346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
13347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13349 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13350 | if (PyErr_Occurred()) SWIG_fail; |
13351 | { | |
13352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13353 | (arg1)->SetMax(arg2); | |
13354 | ||
13355 | wxPyEndAllowThreads(__tstate); | |
13356 | if (PyErr_Occurred()) SWIG_fail; | |
13357 | } | |
13358 | Py_INCREF(Py_None); resultobj = Py_None; | |
13359 | return resultobj; | |
13360 | fail: | |
13361 | return NULL; | |
13362 | } | |
13363 | ||
13364 | ||
c370783e | 13365 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13366 | PyObject *resultobj; |
13367 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13368 | int arg2 ; | |
13369 | PyObject * obj0 = 0 ; | |
13370 | PyObject * obj1 = 0 ; | |
13371 | char *kwnames[] = { | |
13372 | (char *) "self",(char *) "lineSize", NULL | |
13373 | }; | |
13374 | ||
13375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
13376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13378 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13379 | if (PyErr_Occurred()) SWIG_fail; |
13380 | { | |
13381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13382 | (arg1)->SetLineSize(arg2); | |
13383 | ||
13384 | wxPyEndAllowThreads(__tstate); | |
13385 | if (PyErr_Occurred()) SWIG_fail; | |
13386 | } | |
13387 | Py_INCREF(Py_None); resultobj = Py_None; | |
13388 | return resultobj; | |
13389 | fail: | |
13390 | return NULL; | |
13391 | } | |
13392 | ||
13393 | ||
c370783e | 13394 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13395 | PyObject *resultobj; |
13396 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13397 | int arg2 ; | |
13398 | PyObject * obj0 = 0 ; | |
13399 | PyObject * obj1 = 0 ; | |
13400 | char *kwnames[] = { | |
13401 | (char *) "self",(char *) "pageSize", NULL | |
13402 | }; | |
13403 | ||
13404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13407 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13408 | if (PyErr_Occurred()) SWIG_fail; |
13409 | { | |
13410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13411 | (arg1)->SetPageSize(arg2); | |
13412 | ||
13413 | wxPyEndAllowThreads(__tstate); | |
13414 | if (PyErr_Occurred()) SWIG_fail; | |
13415 | } | |
13416 | Py_INCREF(Py_None); resultobj = Py_None; | |
13417 | return resultobj; | |
13418 | fail: | |
13419 | return NULL; | |
13420 | } | |
13421 | ||
13422 | ||
c370783e | 13423 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13424 | PyObject *resultobj; |
13425 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13426 | int result; | |
13427 | PyObject * obj0 = 0 ; | |
13428 | char *kwnames[] = { | |
13429 | (char *) "self", NULL | |
13430 | }; | |
13431 | ||
13432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
13433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13435 | { | |
13436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13437 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13438 | ||
13439 | wxPyEndAllowThreads(__tstate); | |
13440 | if (PyErr_Occurred()) SWIG_fail; | |
13441 | } | |
c370783e | 13442 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13443 | return resultobj; |
13444 | fail: | |
13445 | return NULL; | |
13446 | } | |
13447 | ||
13448 | ||
c370783e | 13449 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13450 | PyObject *resultobj; |
13451 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13452 | int result; | |
13453 | PyObject * obj0 = 0 ; | |
13454 | char *kwnames[] = { | |
13455 | (char *) "self", NULL | |
13456 | }; | |
13457 | ||
13458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
13459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13461 | { | |
13462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13463 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13464 | ||
13465 | wxPyEndAllowThreads(__tstate); | |
13466 | if (PyErr_Occurred()) SWIG_fail; | |
13467 | } | |
c370783e | 13468 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13469 | return resultobj; |
13470 | fail: | |
13471 | return NULL; | |
13472 | } | |
13473 | ||
13474 | ||
c370783e | 13475 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13476 | PyObject *resultobj; |
13477 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13478 | int arg2 ; | |
13479 | PyObject * obj0 = 0 ; | |
13480 | PyObject * obj1 = 0 ; | |
13481 | char *kwnames[] = { | |
13482 | (char *) "self",(char *) "lenPixels", NULL | |
13483 | }; | |
13484 | ||
13485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
13486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13488 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13489 | if (PyErr_Occurred()) SWIG_fail; |
13490 | { | |
13491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13492 | (arg1)->SetThumbLength(arg2); | |
13493 | ||
13494 | wxPyEndAllowThreads(__tstate); | |
13495 | if (PyErr_Occurred()) SWIG_fail; | |
13496 | } | |
13497 | Py_INCREF(Py_None); resultobj = Py_None; | |
13498 | return resultobj; | |
13499 | fail: | |
13500 | return NULL; | |
13501 | } | |
13502 | ||
13503 | ||
c370783e | 13504 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13505 | PyObject *resultobj; |
13506 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13507 | int result; | |
13508 | PyObject * obj0 = 0 ; | |
13509 | char *kwnames[] = { | |
13510 | (char *) "self", NULL | |
13511 | }; | |
13512 | ||
13513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
13514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13516 | { | |
13517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13518 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13519 | ||
13520 | wxPyEndAllowThreads(__tstate); | |
13521 | if (PyErr_Occurred()) SWIG_fail; | |
13522 | } | |
c370783e | 13523 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13524 | return resultobj; |
13525 | fail: | |
13526 | return NULL; | |
13527 | } | |
13528 | ||
13529 | ||
c370783e | 13530 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13531 | PyObject *resultobj; |
13532 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13533 | int arg2 ; | |
13534 | int arg3 = (int) 1 ; | |
13535 | PyObject * obj0 = 0 ; | |
13536 | PyObject * obj1 = 0 ; | |
13537 | PyObject * obj2 = 0 ; | |
13538 | char *kwnames[] = { | |
13539 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13540 | }; | |
13541 | ||
13542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13545 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13546 | if (PyErr_Occurred()) SWIG_fail; |
13547 | if (obj2) { | |
c370783e | 13548 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13549 | if (PyErr_Occurred()) SWIG_fail; |
13550 | } | |
13551 | { | |
13552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13553 | (arg1)->SetTickFreq(arg2,arg3); | |
13554 | ||
13555 | wxPyEndAllowThreads(__tstate); | |
13556 | if (PyErr_Occurred()) SWIG_fail; | |
13557 | } | |
13558 | Py_INCREF(Py_None); resultobj = Py_None; | |
13559 | return resultobj; | |
13560 | fail: | |
13561 | return NULL; | |
13562 | } | |
13563 | ||
13564 | ||
c370783e | 13565 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13566 | PyObject *resultobj; |
13567 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13568 | int result; | |
13569 | PyObject * obj0 = 0 ; | |
13570 | char *kwnames[] = { | |
13571 | (char *) "self", NULL | |
13572 | }; | |
13573 | ||
13574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
13575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13577 | { | |
13578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13579 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13580 | ||
13581 | wxPyEndAllowThreads(__tstate); | |
13582 | if (PyErr_Occurred()) SWIG_fail; | |
13583 | } | |
c370783e | 13584 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13585 | return resultobj; |
13586 | fail: | |
13587 | return NULL; | |
13588 | } | |
13589 | ||
13590 | ||
c370783e | 13591 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13592 | PyObject *resultobj; |
13593 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13594 | PyObject * obj0 = 0 ; | |
13595 | char *kwnames[] = { | |
13596 | (char *) "self", NULL | |
13597 | }; | |
13598 | ||
13599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
13600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13602 | { | |
13603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13604 | (arg1)->ClearTicks(); | |
13605 | ||
13606 | wxPyEndAllowThreads(__tstate); | |
13607 | if (PyErr_Occurred()) SWIG_fail; | |
13608 | } | |
13609 | Py_INCREF(Py_None); resultobj = Py_None; | |
13610 | return resultobj; | |
13611 | fail: | |
13612 | return NULL; | |
13613 | } | |
13614 | ||
13615 | ||
c370783e | 13616 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13617 | PyObject *resultobj; |
13618 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13619 | int arg2 ; | |
13620 | PyObject * obj0 = 0 ; | |
13621 | PyObject * obj1 = 0 ; | |
13622 | char *kwnames[] = { | |
13623 | (char *) "self",(char *) "tickPos", NULL | |
13624 | }; | |
13625 | ||
13626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
13627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13629 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13630 | if (PyErr_Occurred()) SWIG_fail; |
13631 | { | |
13632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13633 | (arg1)->SetTick(arg2); | |
13634 | ||
13635 | wxPyEndAllowThreads(__tstate); | |
13636 | if (PyErr_Occurred()) SWIG_fail; | |
13637 | } | |
13638 | Py_INCREF(Py_None); resultobj = Py_None; | |
13639 | return resultobj; | |
13640 | fail: | |
13641 | return NULL; | |
13642 | } | |
13643 | ||
13644 | ||
c370783e | 13645 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13646 | PyObject *resultobj; |
13647 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13648 | PyObject * obj0 = 0 ; | |
13649 | char *kwnames[] = { | |
13650 | (char *) "self", NULL | |
13651 | }; | |
13652 | ||
13653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
13654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13656 | { | |
13657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13658 | (arg1)->ClearSel(); | |
13659 | ||
13660 | wxPyEndAllowThreads(__tstate); | |
13661 | if (PyErr_Occurred()) SWIG_fail; | |
13662 | } | |
13663 | Py_INCREF(Py_None); resultobj = Py_None; | |
13664 | return resultobj; | |
13665 | fail: | |
13666 | return NULL; | |
13667 | } | |
13668 | ||
13669 | ||
c370783e | 13670 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13671 | PyObject *resultobj; |
13672 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13673 | int result; | |
13674 | PyObject * obj0 = 0 ; | |
13675 | char *kwnames[] = { | |
13676 | (char *) "self", NULL | |
13677 | }; | |
13678 | ||
13679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
13680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13682 | { | |
13683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13684 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
13685 | ||
13686 | wxPyEndAllowThreads(__tstate); | |
13687 | if (PyErr_Occurred()) SWIG_fail; | |
13688 | } | |
c370783e | 13689 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13690 | return resultobj; |
13691 | fail: | |
13692 | return NULL; | |
13693 | } | |
13694 | ||
13695 | ||
c370783e | 13696 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13697 | PyObject *resultobj; |
13698 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13699 | int result; | |
13700 | PyObject * obj0 = 0 ; | |
13701 | char *kwnames[] = { | |
13702 | (char *) "self", NULL | |
13703 | }; | |
13704 | ||
13705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
13706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13708 | { | |
13709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13710 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13711 | ||
13712 | wxPyEndAllowThreads(__tstate); | |
13713 | if (PyErr_Occurred()) SWIG_fail; | |
13714 | } | |
c370783e | 13715 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13716 | return resultobj; |
13717 | fail: | |
13718 | return NULL; | |
13719 | } | |
13720 | ||
13721 | ||
c370783e | 13722 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13723 | PyObject *resultobj; |
13724 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13725 | int arg2 ; | |
13726 | int arg3 ; | |
13727 | PyObject * obj0 = 0 ; | |
13728 | PyObject * obj1 = 0 ; | |
13729 | PyObject * obj2 = 0 ; | |
13730 | char *kwnames[] = { | |
13731 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13732 | }; | |
13733 | ||
13734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13737 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 13738 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13739 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13740 | if (PyErr_Occurred()) SWIG_fail; |
13741 | { | |
13742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13743 | (arg1)->SetSelection(arg2,arg3); | |
13744 | ||
13745 | wxPyEndAllowThreads(__tstate); | |
13746 | if (PyErr_Occurred()) SWIG_fail; | |
13747 | } | |
13748 | Py_INCREF(Py_None); resultobj = Py_None; | |
13749 | return resultobj; | |
13750 | fail: | |
13751 | return NULL; | |
13752 | } | |
13753 | ||
13754 | ||
c370783e | 13755 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
13756 | PyObject *resultobj; |
13757 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13758 | wxVisualAttributes result; | |
13759 | PyObject * obj0 = 0 ; | |
13760 | char *kwnames[] = { | |
13761 | (char *) "variant", NULL | |
13762 | }; | |
13763 | ||
13764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13765 | if (obj0) { | |
c370783e | 13766 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
13767 | if (PyErr_Occurred()) SWIG_fail; |
13768 | } | |
13769 | { | |
0439c23b | 13770 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
13771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13772 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13773 | ||
13774 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13775 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
13776 | } |
13777 | { | |
13778 | wxVisualAttributes * resultptr; | |
13779 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13780 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13781 | } | |
13782 | return resultobj; | |
13783 | fail: | |
13784 | return NULL; | |
13785 | } | |
13786 | ||
13787 | ||
c370783e | 13788 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13789 | PyObject *obj; |
13790 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13791 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13792 | Py_INCREF(obj); | |
13793 | return Py_BuildValue((char *)""); | |
13794 | } | |
c370783e | 13795 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
13796 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
13797 | return 1; | |
13798 | } | |
13799 | ||
13800 | ||
13801 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13802 | PyObject *pyobj; | |
13803 | ||
13804 | { | |
13805 | #if wxUSE_UNICODE | |
13806 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13807 | #else | |
13808 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13809 | #endif | |
13810 | } | |
13811 | return pyobj; | |
13812 | } | |
13813 | ||
13814 | ||
c370783e | 13815 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13816 | PyObject *resultobj; |
13817 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
13818 | int arg2 = (int) -1 ; |
13819 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13820 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
13821 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13822 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13823 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13824 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13825 | long arg6 = (long) 0 ; | |
13826 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13827 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13828 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13829 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13830 | wxToggleButton *result; | |
13831 | bool temp3 = False ; | |
13832 | wxPoint temp4 ; | |
13833 | wxSize temp5 ; | |
13834 | bool temp8 = False ; | |
13835 | PyObject * obj0 = 0 ; | |
13836 | PyObject * obj1 = 0 ; | |
13837 | PyObject * obj2 = 0 ; | |
13838 | PyObject * obj3 = 0 ; | |
13839 | PyObject * obj4 = 0 ; | |
13840 | PyObject * obj5 = 0 ; | |
13841 | PyObject * obj6 = 0 ; | |
13842 | PyObject * obj7 = 0 ; | |
13843 | char *kwnames[] = { | |
13844 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13845 | }; | |
13846 | ||
bfddbb17 | 13847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
13848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 13850 | if (obj1) { |
c370783e | 13851 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
13852 | if (PyErr_Occurred()) SWIG_fail; |
13853 | } | |
13854 | if (obj2) { | |
13855 | { | |
13856 | arg3 = wxString_in_helper(obj2); | |
13857 | if (arg3 == NULL) SWIG_fail; | |
13858 | temp3 = True; | |
13859 | } | |
d55e5bfc RD |
13860 | } |
13861 | if (obj3) { | |
13862 | { | |
13863 | arg4 = &temp4; | |
13864 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13865 | } | |
13866 | } | |
13867 | if (obj4) { | |
13868 | { | |
13869 | arg5 = &temp5; | |
13870 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13871 | } | |
13872 | } | |
13873 | if (obj5) { | |
c370783e | 13874 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
13875 | if (PyErr_Occurred()) SWIG_fail; |
13876 | } | |
13877 | if (obj6) { | |
13878 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
13879 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13880 | SWIG_fail; | |
13881 | if (arg7 == NULL) { | |
13882 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13883 | SWIG_fail; | |
13884 | } | |
13885 | } | |
13886 | if (obj7) { | |
13887 | { | |
13888 | arg8 = wxString_in_helper(obj7); | |
13889 | if (arg8 == NULL) SWIG_fail; | |
13890 | temp8 = True; | |
13891 | } | |
13892 | } | |
13893 | { | |
0439c23b | 13894 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13896 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13897 | ||
13898 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13899 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13900 | } |
13901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13902 | { | |
13903 | if (temp3) | |
13904 | delete arg3; | |
13905 | } | |
13906 | { | |
13907 | if (temp8) | |
13908 | delete arg8; | |
13909 | } | |
13910 | return resultobj; | |
13911 | fail: | |
13912 | { | |
13913 | if (temp3) | |
13914 | delete arg3; | |
13915 | } | |
13916 | { | |
13917 | if (temp8) | |
13918 | delete arg8; | |
13919 | } | |
13920 | return NULL; | |
13921 | } | |
13922 | ||
13923 | ||
c370783e | 13924 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13925 | PyObject *resultobj; |
13926 | wxToggleButton *result; | |
13927 | char *kwnames[] = { | |
13928 | NULL | |
13929 | }; | |
13930 | ||
13931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13932 | { | |
0439c23b | 13933 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13935 | result = (wxToggleButton *)new wxToggleButton(); | |
13936 | ||
13937 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13938 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13939 | } |
13940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13941 | return resultobj; | |
13942 | fail: | |
13943 | return NULL; | |
13944 | } | |
13945 | ||
13946 | ||
c370783e | 13947 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
13948 | PyObject *resultobj; |
13949 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13950 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
13951 | int arg3 = (int) -1 ; |
13952 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13953 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
121b9a67 RD |
13954 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13955 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13956 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13957 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13958 | long arg7 = (long) 0 ; | |
13959 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13960 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13961 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13962 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13963 | bool result; | |
13964 | bool temp4 = False ; | |
13965 | wxPoint temp5 ; | |
13966 | wxSize temp6 ; | |
13967 | bool temp9 = False ; | |
13968 | PyObject * obj0 = 0 ; | |
13969 | PyObject * obj1 = 0 ; | |
13970 | PyObject * obj2 = 0 ; | |
13971 | PyObject * obj3 = 0 ; | |
13972 | PyObject * obj4 = 0 ; | |
13973 | PyObject * obj5 = 0 ; | |
13974 | PyObject * obj6 = 0 ; | |
13975 | PyObject * obj7 = 0 ; | |
13976 | PyObject * obj8 = 0 ; | |
13977 | char *kwnames[] = { | |
13978 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13979 | }; | |
13980 | ||
bfddbb17 | 13981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
121b9a67 RD |
13982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13984 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 13986 | if (obj2) { |
c370783e | 13987 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
13988 | if (PyErr_Occurred()) SWIG_fail; |
13989 | } | |
13990 | if (obj3) { | |
13991 | { | |
13992 | arg4 = wxString_in_helper(obj3); | |
13993 | if (arg4 == NULL) SWIG_fail; | |
13994 | temp4 = True; | |
13995 | } | |
121b9a67 RD |
13996 | } |
13997 | if (obj4) { | |
13998 | { | |
13999 | arg5 = &temp5; | |
14000 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14001 | } | |
14002 | } | |
14003 | if (obj5) { | |
14004 | { | |
14005 | arg6 = &temp6; | |
14006 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14007 | } | |
14008 | } | |
14009 | if (obj6) { | |
c370783e | 14010 | arg7 = (long)SWIG_As_long(obj6); |
121b9a67 RD |
14011 | if (PyErr_Occurred()) SWIG_fail; |
14012 | } | |
14013 | if (obj7) { | |
14014 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
14015 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14016 | SWIG_fail; | |
14017 | if (arg8 == NULL) { | |
14018 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14019 | SWIG_fail; | |
14020 | } | |
14021 | } | |
14022 | if (obj8) { | |
14023 | { | |
14024 | arg9 = wxString_in_helper(obj8); | |
14025 | if (arg9 == NULL) SWIG_fail; | |
14026 | temp9 = True; | |
14027 | } | |
14028 | } | |
14029 | { | |
14030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14031 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14032 | ||
14033 | wxPyEndAllowThreads(__tstate); | |
14034 | if (PyErr_Occurred()) SWIG_fail; | |
14035 | } | |
14036 | { | |
14037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14038 | } | |
14039 | { | |
14040 | if (temp4) | |
14041 | delete arg4; | |
14042 | } | |
14043 | { | |
14044 | if (temp9) | |
14045 | delete arg9; | |
14046 | } | |
14047 | return resultobj; | |
14048 | fail: | |
14049 | { | |
14050 | if (temp4) | |
14051 | delete arg4; | |
14052 | } | |
14053 | { | |
14054 | if (temp9) | |
14055 | delete arg9; | |
14056 | } | |
14057 | return NULL; | |
14058 | } | |
14059 | ||
14060 | ||
c370783e | 14061 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
14062 | PyObject *resultobj; |
14063 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14064 | bool arg2 ; | |
14065 | PyObject * obj0 = 0 ; | |
14066 | PyObject * obj1 = 0 ; | |
14067 | char *kwnames[] = { | |
14068 | (char *) "self",(char *) "value", NULL | |
14069 | }; | |
14070 | ||
14071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
14072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
14073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14074 | arg2 = (bool)SWIG_As_bool(obj1); |
121b9a67 RD |
14075 | if (PyErr_Occurred()) SWIG_fail; |
14076 | { | |
14077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14078 | (arg1)->SetValue(arg2); | |
14079 | ||
14080 | wxPyEndAllowThreads(__tstate); | |
14081 | if (PyErr_Occurred()) SWIG_fail; | |
14082 | } | |
14083 | Py_INCREF(Py_None); resultobj = Py_None; | |
14084 | return resultobj; | |
14085 | fail: | |
14086 | return NULL; | |
14087 | } | |
14088 | ||
14089 | ||
c370783e | 14090 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
14091 | PyObject *resultobj; |
14092 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14093 | bool result; | |
14094 | PyObject * obj0 = 0 ; | |
14095 | char *kwnames[] = { | |
14096 | (char *) "self", NULL | |
14097 | }; | |
14098 | ||
14099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
14100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
14101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14102 | { | |
14103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14104 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
14105 | ||
14106 | wxPyEndAllowThreads(__tstate); | |
14107 | if (PyErr_Occurred()) SWIG_fail; | |
14108 | } | |
14109 | { | |
14110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14111 | } | |
14112 | return resultobj; | |
14113 | fail: | |
14114 | return NULL; | |
14115 | } | |
14116 | ||
14117 | ||
c370783e | 14118 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
14119 | PyObject *resultobj; |
14120 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14121 | wxString *arg2 = 0 ; | |
14122 | bool temp2 = False ; | |
14123 | PyObject * obj0 = 0 ; | |
14124 | PyObject * obj1 = 0 ; | |
14125 | char *kwnames[] = { | |
14126 | (char *) "self",(char *) "label", NULL | |
14127 | }; | |
14128 | ||
14129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
14130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
14131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14132 | { | |
14133 | arg2 = wxString_in_helper(obj1); | |
14134 | if (arg2 == NULL) SWIG_fail; | |
14135 | temp2 = True; | |
14136 | } | |
14137 | { | |
14138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14139 | (arg1)->SetLabel((wxString const &)*arg2); | |
14140 | ||
14141 | wxPyEndAllowThreads(__tstate); | |
14142 | if (PyErr_Occurred()) SWIG_fail; | |
14143 | } | |
14144 | Py_INCREF(Py_None); resultobj = Py_None; | |
14145 | { | |
14146 | if (temp2) | |
14147 | delete arg2; | |
14148 | } | |
14149 | return resultobj; | |
14150 | fail: | |
14151 | { | |
14152 | if (temp2) | |
14153 | delete arg2; | |
14154 | } | |
14155 | return NULL; | |
14156 | } | |
14157 | ||
14158 | ||
c370783e | 14159 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
14160 | PyObject *resultobj; |
14161 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14162 | wxVisualAttributes result; | |
14163 | PyObject * obj0 = 0 ; | |
14164 | char *kwnames[] = { | |
14165 | (char *) "variant", NULL | |
14166 | }; | |
14167 | ||
14168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14169 | if (obj0) { | |
c370783e | 14170 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
14171 | if (PyErr_Occurred()) SWIG_fail; |
14172 | } | |
14173 | { | |
0439c23b | 14174 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14176 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14177 | ||
14178 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14179 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14180 | } |
14181 | { | |
14182 | wxVisualAttributes * resultptr; | |
14183 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14184 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14185 | } | |
14186 | return resultobj; | |
14187 | fail: | |
14188 | return NULL; | |
14189 | } | |
14190 | ||
14191 | ||
c370783e | 14192 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14193 | PyObject *obj; |
14194 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14195 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
14196 | Py_INCREF(obj); | |
14197 | return Py_BuildValue((char *)""); | |
14198 | } | |
c370783e | 14199 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
d55e5bfc RD |
14200 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
14201 | return 1; | |
14202 | } | |
14203 | ||
14204 | ||
14205 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
14206 | PyObject *pyobj; | |
14207 | ||
14208 | { | |
14209 | #if wxUSE_UNICODE | |
14210 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14211 | #else | |
14212 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14213 | #endif | |
14214 | } | |
14215 | return pyobj; | |
14216 | } | |
14217 | ||
14218 | ||
c370783e | 14219 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14220 | PyObject *resultobj; |
14221 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14222 | size_t result; | |
14223 | PyObject * obj0 = 0 ; | |
14224 | char *kwnames[] = { | |
14225 | (char *) "self", NULL | |
14226 | }; | |
14227 | ||
14228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
14229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14231 | { | |
14232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14233 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
14234 | ||
14235 | wxPyEndAllowThreads(__tstate); | |
14236 | if (PyErr_Occurred()) SWIG_fail; | |
14237 | } | |
c370783e | 14238 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
14239 | return resultobj; |
14240 | fail: | |
14241 | return NULL; | |
14242 | } | |
14243 | ||
14244 | ||
c370783e | 14245 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14246 | PyObject *resultobj; |
14247 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14248 | size_t arg2 ; | |
14249 | wxWindow *result; | |
14250 | PyObject * obj0 = 0 ; | |
14251 | PyObject * obj1 = 0 ; | |
14252 | char *kwnames[] = { | |
14253 | (char *) "self",(char *) "n", NULL | |
14254 | }; | |
14255 | ||
14256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
14257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14259 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14260 | if (PyErr_Occurred()) SWIG_fail; |
14261 | { | |
14262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14263 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14264 | ||
14265 | wxPyEndAllowThreads(__tstate); | |
14266 | if (PyErr_Occurred()) SWIG_fail; | |
14267 | } | |
14268 | { | |
412d302d | 14269 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14270 | } |
14271 | return resultobj; | |
14272 | fail: | |
14273 | return NULL; | |
14274 | } | |
14275 | ||
14276 | ||
c370783e | 14277 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14278 | PyObject *resultobj; |
14279 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14280 | int result; | |
14281 | PyObject * obj0 = 0 ; | |
14282 | char *kwnames[] = { | |
14283 | (char *) "self", NULL | |
14284 | }; | |
14285 | ||
14286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
14287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14289 | { | |
14290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14291 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
14292 | ||
14293 | wxPyEndAllowThreads(__tstate); | |
14294 | if (PyErr_Occurred()) SWIG_fail; | |
14295 | } | |
c370783e | 14296 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14297 | return resultobj; |
14298 | fail: | |
14299 | return NULL; | |
14300 | } | |
14301 | ||
14302 | ||
c370783e | 14303 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14304 | PyObject *resultobj; |
14305 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14306 | size_t arg2 ; | |
14307 | wxString *arg3 = 0 ; | |
14308 | bool result; | |
14309 | bool temp3 = False ; | |
14310 | PyObject * obj0 = 0 ; | |
14311 | PyObject * obj1 = 0 ; | |
14312 | PyObject * obj2 = 0 ; | |
14313 | char *kwnames[] = { | |
14314 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14315 | }; | |
14316 | ||
14317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14320 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14321 | if (PyErr_Occurred()) SWIG_fail; |
14322 | { | |
14323 | arg3 = wxString_in_helper(obj2); | |
14324 | if (arg3 == NULL) SWIG_fail; | |
14325 | temp3 = True; | |
14326 | } | |
14327 | { | |
14328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14329 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14330 | ||
14331 | wxPyEndAllowThreads(__tstate); | |
14332 | if (PyErr_Occurred()) SWIG_fail; | |
14333 | } | |
14334 | { | |
14335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14336 | } | |
14337 | { | |
14338 | if (temp3) | |
14339 | delete arg3; | |
14340 | } | |
14341 | return resultobj; | |
14342 | fail: | |
14343 | { | |
14344 | if (temp3) | |
14345 | delete arg3; | |
14346 | } | |
14347 | return NULL; | |
14348 | } | |
14349 | ||
14350 | ||
c370783e | 14351 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14352 | PyObject *resultobj; |
14353 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14354 | size_t arg2 ; | |
14355 | wxString result; | |
14356 | PyObject * obj0 = 0 ; | |
14357 | PyObject * obj1 = 0 ; | |
14358 | char *kwnames[] = { | |
14359 | (char *) "self",(char *) "n", NULL | |
14360 | }; | |
14361 | ||
14362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
14363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14365 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14366 | if (PyErr_Occurred()) SWIG_fail; |
14367 | { | |
14368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14369 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
14370 | ||
14371 | wxPyEndAllowThreads(__tstate); | |
14372 | if (PyErr_Occurred()) SWIG_fail; | |
14373 | } | |
14374 | { | |
14375 | #if wxUSE_UNICODE | |
14376 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14377 | #else | |
14378 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14379 | #endif | |
14380 | } | |
14381 | return resultobj; | |
14382 | fail: | |
14383 | return NULL; | |
14384 | } | |
14385 | ||
14386 | ||
c370783e | 14387 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14388 | PyObject *resultobj; |
14389 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14390 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14391 | PyObject * obj0 = 0 ; | |
14392 | PyObject * obj1 = 0 ; | |
14393 | char *kwnames[] = { | |
14394 | (char *) "self",(char *) "imageList", NULL | |
14395 | }; | |
14396 | ||
14397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
14398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14400 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14402 | { | |
14403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14404 | (arg1)->SetImageList(arg2); | |
14405 | ||
14406 | wxPyEndAllowThreads(__tstate); | |
14407 | if (PyErr_Occurred()) SWIG_fail; | |
14408 | } | |
14409 | Py_INCREF(Py_None); resultobj = Py_None; | |
14410 | return resultobj; | |
14411 | fail: | |
14412 | return NULL; | |
14413 | } | |
14414 | ||
14415 | ||
c370783e | 14416 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14417 | PyObject *resultobj; |
14418 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14419 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14420 | PyObject * obj0 = 0 ; | |
14421 | PyObject * obj1 = 0 ; | |
14422 | char *kwnames[] = { | |
14423 | (char *) "self",(char *) "imageList", NULL | |
14424 | }; | |
14425 | ||
14426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
14427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14430 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
14431 | { | |
14432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14433 | (arg1)->AssignImageList(arg2); | |
14434 | ||
14435 | wxPyEndAllowThreads(__tstate); | |
14436 | if (PyErr_Occurred()) SWIG_fail; | |
14437 | } | |
14438 | Py_INCREF(Py_None); resultobj = Py_None; | |
14439 | return resultobj; | |
14440 | fail: | |
14441 | return NULL; | |
14442 | } | |
14443 | ||
14444 | ||
c370783e | 14445 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14446 | PyObject *resultobj; |
14447 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14448 | wxImageList *result; | |
14449 | PyObject * obj0 = 0 ; | |
14450 | char *kwnames[] = { | |
14451 | (char *) "self", NULL | |
14452 | }; | |
14453 | ||
14454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
14455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14457 | { | |
14458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14459 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
14460 | ||
14461 | wxPyEndAllowThreads(__tstate); | |
14462 | if (PyErr_Occurred()) SWIG_fail; | |
14463 | } | |
14464 | { | |
412d302d | 14465 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14466 | } |
14467 | return resultobj; | |
14468 | fail: | |
14469 | return NULL; | |
14470 | } | |
14471 | ||
14472 | ||
c370783e | 14473 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14474 | PyObject *resultobj; |
14475 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14476 | size_t arg2 ; | |
14477 | int result; | |
14478 | PyObject * obj0 = 0 ; | |
14479 | PyObject * obj1 = 0 ; | |
14480 | char *kwnames[] = { | |
14481 | (char *) "self",(char *) "n", NULL | |
14482 | }; | |
14483 | ||
14484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
14485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14487 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14488 | if (PyErr_Occurred()) SWIG_fail; |
14489 | { | |
14490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14491 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
14492 | ||
14493 | wxPyEndAllowThreads(__tstate); | |
14494 | if (PyErr_Occurred()) SWIG_fail; | |
14495 | } | |
c370783e | 14496 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14497 | return resultobj; |
14498 | fail: | |
14499 | return NULL; | |
14500 | } | |
14501 | ||
14502 | ||
c370783e | 14503 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14504 | PyObject *resultobj; |
14505 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14506 | size_t arg2 ; | |
14507 | int arg3 ; | |
14508 | bool result; | |
14509 | PyObject * obj0 = 0 ; | |
14510 | PyObject * obj1 = 0 ; | |
14511 | PyObject * obj2 = 0 ; | |
14512 | char *kwnames[] = { | |
14513 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14514 | }; | |
14515 | ||
14516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14519 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 14520 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14521 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
14522 | if (PyErr_Occurred()) SWIG_fail; |
14523 | { | |
14524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14525 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14526 | ||
14527 | wxPyEndAllowThreads(__tstate); | |
14528 | if (PyErr_Occurred()) SWIG_fail; | |
14529 | } | |
14530 | { | |
14531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14532 | } | |
14533 | return resultobj; | |
14534 | fail: | |
14535 | return NULL; | |
14536 | } | |
14537 | ||
14538 | ||
c370783e | 14539 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14540 | PyObject *resultobj; |
14541 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14542 | wxSize *arg2 = 0 ; | |
14543 | wxSize temp2 ; | |
14544 | PyObject * obj0 = 0 ; | |
14545 | PyObject * obj1 = 0 ; | |
14546 | char *kwnames[] = { | |
14547 | (char *) "self",(char *) "size", NULL | |
14548 | }; | |
14549 | ||
14550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
14551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14553 | { | |
14554 | arg2 = &temp2; | |
14555 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14556 | } | |
14557 | { | |
14558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14559 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14560 | ||
14561 | wxPyEndAllowThreads(__tstate); | |
14562 | if (PyErr_Occurred()) SWIG_fail; | |
14563 | } | |
14564 | Py_INCREF(Py_None); resultobj = Py_None; | |
14565 | return resultobj; | |
14566 | fail: | |
14567 | return NULL; | |
14568 | } | |
14569 | ||
14570 | ||
c370783e | 14571 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14572 | PyObject *resultobj; |
14573 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14574 | wxSize *arg2 = 0 ; | |
14575 | wxSize result; | |
14576 | wxSize temp2 ; | |
14577 | PyObject * obj0 = 0 ; | |
14578 | PyObject * obj1 = 0 ; | |
14579 | char *kwnames[] = { | |
14580 | (char *) "self",(char *) "sizePage", NULL | |
14581 | }; | |
14582 | ||
14583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
14584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14586 | { | |
14587 | arg2 = &temp2; | |
14588 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14589 | } | |
14590 | { | |
14591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14592 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14593 | ||
14594 | wxPyEndAllowThreads(__tstate); | |
14595 | if (PyErr_Occurred()) SWIG_fail; | |
14596 | } | |
14597 | { | |
14598 | wxSize * resultptr; | |
14599 | resultptr = new wxSize((wxSize &) result); | |
14600 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14601 | } | |
14602 | return resultobj; | |
14603 | fail: | |
14604 | return NULL; | |
14605 | } | |
14606 | ||
14607 | ||
c370783e | 14608 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14609 | PyObject *resultobj; |
14610 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14611 | size_t arg2 ; | |
14612 | bool result; | |
14613 | PyObject * obj0 = 0 ; | |
14614 | PyObject * obj1 = 0 ; | |
14615 | char *kwnames[] = { | |
14616 | (char *) "self",(char *) "n", NULL | |
14617 | }; | |
14618 | ||
14619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
14620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14622 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14623 | if (PyErr_Occurred()) SWIG_fail; |
14624 | { | |
14625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14626 | result = (bool)(arg1)->DeletePage(arg2); | |
14627 | ||
14628 | wxPyEndAllowThreads(__tstate); | |
14629 | if (PyErr_Occurred()) SWIG_fail; | |
14630 | } | |
14631 | { | |
14632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14633 | } | |
14634 | return resultobj; | |
14635 | fail: | |
14636 | return NULL; | |
14637 | } | |
14638 | ||
14639 | ||
c370783e | 14640 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14641 | PyObject *resultobj; |
14642 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14643 | size_t arg2 ; | |
14644 | bool result; | |
14645 | PyObject * obj0 = 0 ; | |
14646 | PyObject * obj1 = 0 ; | |
14647 | char *kwnames[] = { | |
14648 | (char *) "self",(char *) "n", NULL | |
14649 | }; | |
14650 | ||
14651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
14652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14654 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14655 | if (PyErr_Occurred()) SWIG_fail; |
14656 | { | |
14657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14658 | result = (bool)(arg1)->RemovePage(arg2); | |
14659 | ||
14660 | wxPyEndAllowThreads(__tstate); | |
14661 | if (PyErr_Occurred()) SWIG_fail; | |
14662 | } | |
14663 | { | |
14664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14665 | } | |
14666 | return resultobj; | |
14667 | fail: | |
14668 | return NULL; | |
14669 | } | |
14670 | ||
14671 | ||
c370783e | 14672 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14673 | PyObject *resultobj; |
14674 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14675 | bool result; | |
14676 | PyObject * obj0 = 0 ; | |
14677 | char *kwnames[] = { | |
14678 | (char *) "self", NULL | |
14679 | }; | |
14680 | ||
14681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
14682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14684 | { | |
14685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14686 | result = (bool)(arg1)->DeleteAllPages(); | |
14687 | ||
14688 | wxPyEndAllowThreads(__tstate); | |
14689 | if (PyErr_Occurred()) SWIG_fail; | |
14690 | } | |
14691 | { | |
14692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14693 | } | |
14694 | return resultobj; | |
14695 | fail: | |
14696 | return NULL; | |
14697 | } | |
14698 | ||
14699 | ||
c370783e | 14700 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14701 | PyObject *resultobj; |
14702 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14703 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14704 | wxString *arg3 = 0 ; | |
14705 | bool arg4 = (bool) False ; | |
14706 | int arg5 = (int) -1 ; | |
14707 | bool result; | |
14708 | bool temp3 = False ; | |
14709 | PyObject * obj0 = 0 ; | |
14710 | PyObject * obj1 = 0 ; | |
14711 | PyObject * obj2 = 0 ; | |
14712 | PyObject * obj3 = 0 ; | |
14713 | PyObject * obj4 = 0 ; | |
14714 | char *kwnames[] = { | |
14715 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14716 | }; | |
14717 | ||
14718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14721 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14723 | { | |
14724 | arg3 = wxString_in_helper(obj2); | |
14725 | if (arg3 == NULL) SWIG_fail; | |
14726 | temp3 = True; | |
14727 | } | |
14728 | if (obj3) { | |
c370783e | 14729 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
14730 | if (PyErr_Occurred()) SWIG_fail; |
14731 | } | |
14732 | if (obj4) { | |
c370783e | 14733 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
14734 | if (PyErr_Occurred()) SWIG_fail; |
14735 | } | |
14736 | { | |
14737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14738 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
14739 | ||
14740 | wxPyEndAllowThreads(__tstate); | |
14741 | if (PyErr_Occurred()) SWIG_fail; | |
14742 | } | |
14743 | { | |
14744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14745 | } | |
14746 | { | |
14747 | if (temp3) | |
14748 | delete arg3; | |
14749 | } | |
14750 | return resultobj; | |
14751 | fail: | |
14752 | { | |
14753 | if (temp3) | |
14754 | delete arg3; | |
14755 | } | |
14756 | return NULL; | |
14757 | } | |
14758 | ||
14759 | ||
c370783e | 14760 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14761 | PyObject *resultobj; |
14762 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14763 | size_t arg2 ; | |
14764 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14765 | wxString *arg4 = 0 ; | |
14766 | bool arg5 = (bool) False ; | |
14767 | int arg6 = (int) -1 ; | |
14768 | bool result; | |
14769 | bool temp4 = False ; | |
14770 | PyObject * obj0 = 0 ; | |
14771 | PyObject * obj1 = 0 ; | |
14772 | PyObject * obj2 = 0 ; | |
14773 | PyObject * obj3 = 0 ; | |
14774 | PyObject * obj4 = 0 ; | |
14775 | PyObject * obj5 = 0 ; | |
14776 | char *kwnames[] = { | |
14777 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14778 | }; | |
14779 | ||
14780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14783 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14784 | if (PyErr_Occurred()) SWIG_fail; |
14785 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14787 | { | |
14788 | arg4 = wxString_in_helper(obj3); | |
14789 | if (arg4 == NULL) SWIG_fail; | |
14790 | temp4 = True; | |
14791 | } | |
14792 | if (obj4) { | |
c370783e | 14793 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
14794 | if (PyErr_Occurred()) SWIG_fail; |
14795 | } | |
14796 | if (obj5) { | |
c370783e | 14797 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
14798 | if (PyErr_Occurred()) SWIG_fail; |
14799 | } | |
14800 | { | |
14801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14802 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14803 | ||
14804 | wxPyEndAllowThreads(__tstate); | |
14805 | if (PyErr_Occurred()) SWIG_fail; | |
14806 | } | |
14807 | { | |
14808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14809 | } | |
14810 | { | |
14811 | if (temp4) | |
14812 | delete arg4; | |
14813 | } | |
14814 | return resultobj; | |
14815 | fail: | |
14816 | { | |
14817 | if (temp4) | |
14818 | delete arg4; | |
14819 | } | |
14820 | return NULL; | |
14821 | } | |
14822 | ||
14823 | ||
c370783e | 14824 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14825 | PyObject *resultobj; |
14826 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14827 | size_t arg2 ; | |
14828 | int result; | |
14829 | PyObject * obj0 = 0 ; | |
14830 | PyObject * obj1 = 0 ; | |
14831 | char *kwnames[] = { | |
14832 | (char *) "self",(char *) "n", NULL | |
14833 | }; | |
14834 | ||
14835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
14836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14838 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14839 | if (PyErr_Occurred()) SWIG_fail; |
14840 | { | |
14841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14842 | result = (int)(arg1)->SetSelection(arg2); | |
14843 | ||
14844 | wxPyEndAllowThreads(__tstate); | |
14845 | if (PyErr_Occurred()) SWIG_fail; | |
14846 | } | |
c370783e | 14847 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14848 | return resultobj; |
14849 | fail: | |
14850 | return NULL; | |
14851 | } | |
14852 | ||
14853 | ||
c370783e | 14854 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14855 | PyObject *resultobj; |
14856 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14857 | bool arg2 = (bool) True ; | |
14858 | PyObject * obj0 = 0 ; | |
14859 | PyObject * obj1 = 0 ; | |
14860 | char *kwnames[] = { | |
14861 | (char *) "self",(char *) "forward", NULL | |
14862 | }; | |
14863 | ||
14864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
14865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14867 | if (obj1) { | |
c370783e | 14868 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
14869 | if (PyErr_Occurred()) SWIG_fail; |
14870 | } | |
14871 | { | |
14872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14873 | (arg1)->AdvanceSelection(arg2); | |
14874 | ||
14875 | wxPyEndAllowThreads(__tstate); | |
14876 | if (PyErr_Occurred()) SWIG_fail; | |
14877 | } | |
14878 | Py_INCREF(Py_None); resultobj = Py_None; | |
14879 | return resultobj; | |
14880 | fail: | |
14881 | return NULL; | |
14882 | } | |
14883 | ||
14884 | ||
c370783e | 14885 | static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
14886 | PyObject *resultobj; |
14887 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14888 | wxVisualAttributes result; | |
14889 | PyObject * obj0 = 0 ; | |
14890 | char *kwnames[] = { | |
14891 | (char *) "variant", NULL | |
14892 | }; | |
14893 | ||
14894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14895 | if (obj0) { | |
c370783e | 14896 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
14897 | if (PyErr_Occurred()) SWIG_fail; |
14898 | } | |
14899 | { | |
0439c23b | 14900 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14902 | result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14903 | ||
14904 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14905 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14906 | } |
14907 | { | |
14908 | wxVisualAttributes * resultptr; | |
14909 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14910 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14911 | } | |
14912 | return resultobj; | |
14913 | fail: | |
14914 | return NULL; | |
14915 | } | |
14916 | ||
14917 | ||
c370783e | 14918 | static PyObject * BookCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14919 | PyObject *obj; |
14920 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14921 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14922 | Py_INCREF(obj); | |
14923 | return Py_BuildValue((char *)""); | |
14924 | } | |
c370783e | 14925 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14926 | PyObject *resultobj; |
14927 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14928 | int arg2 = (int) 0 ; | |
14929 | int arg3 = (int) -1 ; | |
14930 | int arg4 = (int) -1 ; | |
14931 | wxBookCtrlEvent *result; | |
14932 | PyObject * obj0 = 0 ; | |
14933 | PyObject * obj1 = 0 ; | |
14934 | PyObject * obj2 = 0 ; | |
14935 | PyObject * obj3 = 0 ; | |
14936 | char *kwnames[] = { | |
14937 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14938 | }; | |
14939 | ||
14940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14941 | if (obj0) { | |
c370783e | 14942 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
14943 | if (PyErr_Occurred()) SWIG_fail; |
14944 | } | |
14945 | if (obj1) { | |
c370783e | 14946 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14947 | if (PyErr_Occurred()) SWIG_fail; |
14948 | } | |
14949 | if (obj2) { | |
c370783e | 14950 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
14951 | if (PyErr_Occurred()) SWIG_fail; |
14952 | } | |
14953 | if (obj3) { | |
c370783e | 14954 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
14955 | if (PyErr_Occurred()) SWIG_fail; |
14956 | } | |
14957 | { | |
14958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14959 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14960 | ||
14961 | wxPyEndAllowThreads(__tstate); | |
14962 | if (PyErr_Occurred()) SWIG_fail; | |
14963 | } | |
14964 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); | |
14965 | return resultobj; | |
14966 | fail: | |
14967 | return NULL; | |
14968 | } | |
14969 | ||
14970 | ||
c370783e | 14971 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14972 | PyObject *resultobj; |
14973 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14974 | int result; | |
14975 | PyObject * obj0 = 0 ; | |
14976 | char *kwnames[] = { | |
14977 | (char *) "self", NULL | |
14978 | }; | |
14979 | ||
14980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
14981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14983 | { | |
14984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14985 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14986 | ||
14987 | wxPyEndAllowThreads(__tstate); | |
14988 | if (PyErr_Occurred()) SWIG_fail; | |
14989 | } | |
c370783e | 14990 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14991 | return resultobj; |
14992 | fail: | |
14993 | return NULL; | |
14994 | } | |
14995 | ||
14996 | ||
c370783e | 14997 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14998 | PyObject *resultobj; |
14999 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15000 | int arg2 ; | |
15001 | PyObject * obj0 = 0 ; | |
15002 | PyObject * obj1 = 0 ; | |
15003 | char *kwnames[] = { | |
15004 | (char *) "self",(char *) "nSel", NULL | |
15005 | }; | |
15006 | ||
15007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
15008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
15009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15010 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15011 | if (PyErr_Occurred()) SWIG_fail; |
15012 | { | |
15013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15014 | (arg1)->SetSelection(arg2); | |
15015 | ||
15016 | wxPyEndAllowThreads(__tstate); | |
15017 | if (PyErr_Occurred()) SWIG_fail; | |
15018 | } | |
15019 | Py_INCREF(Py_None); resultobj = Py_None; | |
15020 | return resultobj; | |
15021 | fail: | |
15022 | return NULL; | |
15023 | } | |
15024 | ||
15025 | ||
c370783e | 15026 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15027 | PyObject *resultobj; |
15028 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15029 | int result; | |
15030 | PyObject * obj0 = 0 ; | |
15031 | char *kwnames[] = { | |
15032 | (char *) "self", NULL | |
15033 | }; | |
15034 | ||
15035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
15036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
15037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15038 | { | |
15039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15040 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
15041 | ||
15042 | wxPyEndAllowThreads(__tstate); | |
15043 | if (PyErr_Occurred()) SWIG_fail; | |
15044 | } | |
c370783e | 15045 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15046 | return resultobj; |
15047 | fail: | |
15048 | return NULL; | |
15049 | } | |
15050 | ||
15051 | ||
c370783e | 15052 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15053 | PyObject *resultobj; |
15054 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15055 | int arg2 ; | |
15056 | PyObject * obj0 = 0 ; | |
15057 | PyObject * obj1 = 0 ; | |
15058 | char *kwnames[] = { | |
15059 | (char *) "self",(char *) "nOldSel", NULL | |
15060 | }; | |
15061 | ||
15062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; | |
15063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
15064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15065 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15066 | if (PyErr_Occurred()) SWIG_fail; |
15067 | { | |
15068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15069 | (arg1)->SetOldSelection(arg2); | |
15070 | ||
15071 | wxPyEndAllowThreads(__tstate); | |
15072 | if (PyErr_Occurred()) SWIG_fail; | |
15073 | } | |
15074 | Py_INCREF(Py_None); resultobj = Py_None; | |
15075 | return resultobj; | |
15076 | fail: | |
15077 | return NULL; | |
15078 | } | |
15079 | ||
15080 | ||
c370783e | 15081 | static PyObject * BookCtrlEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15082 | PyObject *obj; |
15083 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15084 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
15085 | Py_INCREF(obj); | |
15086 | return Py_BuildValue((char *)""); | |
15087 | } | |
c370783e | 15088 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15089 | PyObject *resultobj; |
15090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15091 | int arg2 = (int) -1 ; | |
15092 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15093 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15094 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15095 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15096 | long arg5 = (long) 0 ; | |
15097 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
15098 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15099 | wxNotebook *result; | |
15100 | wxPoint temp3 ; | |
15101 | wxSize temp4 ; | |
15102 | bool temp6 = False ; | |
15103 | PyObject * obj0 = 0 ; | |
15104 | PyObject * obj1 = 0 ; | |
15105 | PyObject * obj2 = 0 ; | |
15106 | PyObject * obj3 = 0 ; | |
15107 | PyObject * obj4 = 0 ; | |
15108 | PyObject * obj5 = 0 ; | |
15109 | char *kwnames[] = { | |
15110 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15111 | }; | |
15112 | ||
15113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15116 | if (obj1) { | |
c370783e | 15117 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15118 | if (PyErr_Occurred()) SWIG_fail; |
15119 | } | |
15120 | if (obj2) { | |
15121 | { | |
15122 | arg3 = &temp3; | |
15123 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15124 | } | |
15125 | } | |
15126 | if (obj3) { | |
15127 | { | |
15128 | arg4 = &temp4; | |
15129 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15130 | } | |
15131 | } | |
15132 | if (obj4) { | |
c370783e | 15133 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
15134 | if (PyErr_Occurred()) SWIG_fail; |
15135 | } | |
15136 | if (obj5) { | |
15137 | { | |
15138 | arg6 = wxString_in_helper(obj5); | |
15139 | if (arg6 == NULL) SWIG_fail; | |
15140 | temp6 = True; | |
15141 | } | |
15142 | } | |
15143 | { | |
0439c23b | 15144 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15146 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15147 | ||
15148 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15149 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15150 | } |
b0f7404b | 15151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d55e5bfc RD |
15152 | { |
15153 | if (temp6) | |
15154 | delete arg6; | |
15155 | } | |
15156 | return resultobj; | |
15157 | fail: | |
15158 | { | |
15159 | if (temp6) | |
15160 | delete arg6; | |
15161 | } | |
15162 | return NULL; | |
15163 | } | |
15164 | ||
15165 | ||
c370783e | 15166 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15167 | PyObject *resultobj; |
15168 | wxNotebook *result; | |
15169 | char *kwnames[] = { | |
15170 | NULL | |
15171 | }; | |
15172 | ||
15173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
15174 | { | |
0439c23b | 15175 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15177 | result = (wxNotebook *)new wxNotebook(); | |
15178 | ||
15179 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15180 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15181 | } |
b0f7404b | 15182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d55e5bfc RD |
15183 | return resultobj; |
15184 | fail: | |
15185 | return NULL; | |
15186 | } | |
15187 | ||
15188 | ||
c370783e | 15189 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15190 | PyObject *resultobj; |
15191 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15192 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 15193 | int arg3 = (int) -1 ; |
d55e5bfc RD |
15194 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15195 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15196 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15197 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15198 | long arg6 = (long) 0 ; | |
15199 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
15200 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15201 | bool result; | |
15202 | wxPoint temp4 ; | |
15203 | wxSize temp5 ; | |
15204 | bool temp7 = False ; | |
15205 | PyObject * obj0 = 0 ; | |
15206 | PyObject * obj1 = 0 ; | |
15207 | PyObject * obj2 = 0 ; | |
15208 | PyObject * obj3 = 0 ; | |
15209 | PyObject * obj4 = 0 ; | |
15210 | PyObject * obj5 = 0 ; | |
15211 | PyObject * obj6 = 0 ; | |
15212 | char *kwnames[] = { | |
15213 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15214 | }; | |
15215 | ||
bfddbb17 | 15216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15219 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 15221 | if (obj2) { |
c370783e | 15222 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
15223 | if (PyErr_Occurred()) SWIG_fail; |
15224 | } | |
d55e5bfc RD |
15225 | if (obj3) { |
15226 | { | |
15227 | arg4 = &temp4; | |
15228 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15229 | } | |
15230 | } | |
15231 | if (obj4) { | |
15232 | { | |
15233 | arg5 = &temp5; | |
15234 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15235 | } | |
15236 | } | |
15237 | if (obj5) { | |
c370783e | 15238 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
15239 | if (PyErr_Occurred()) SWIG_fail; |
15240 | } | |
15241 | if (obj6) { | |
15242 | { | |
15243 | arg7 = wxString_in_helper(obj6); | |
15244 | if (arg7 == NULL) SWIG_fail; | |
15245 | temp7 = True; | |
15246 | } | |
15247 | } | |
15248 | { | |
15249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15250 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15251 | ||
15252 | wxPyEndAllowThreads(__tstate); | |
15253 | if (PyErr_Occurred()) SWIG_fail; | |
15254 | } | |
15255 | { | |
15256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15257 | } | |
15258 | { | |
15259 | if (temp7) | |
15260 | delete arg7; | |
15261 | } | |
15262 | return resultobj; | |
15263 | fail: | |
15264 | { | |
15265 | if (temp7) | |
15266 | delete arg7; | |
15267 | } | |
15268 | return NULL; | |
15269 | } | |
15270 | ||
15271 | ||
c370783e | 15272 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15273 | PyObject *resultobj; |
15274 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15275 | int result; | |
15276 | PyObject * obj0 = 0 ; | |
15277 | char *kwnames[] = { | |
15278 | (char *) "self", NULL | |
15279 | }; | |
15280 | ||
15281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15284 | { | |
15285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15286 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15287 | ||
15288 | wxPyEndAllowThreads(__tstate); | |
15289 | if (PyErr_Occurred()) SWIG_fail; | |
15290 | } | |
c370783e | 15291 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15292 | return resultobj; |
15293 | fail: | |
15294 | return NULL; | |
15295 | } | |
15296 | ||
15297 | ||
c370783e | 15298 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15299 | PyObject *resultobj; |
15300 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15301 | wxSize *arg2 = 0 ; | |
15302 | wxSize temp2 ; | |
15303 | PyObject * obj0 = 0 ; | |
15304 | PyObject * obj1 = 0 ; | |
15305 | char *kwnames[] = { | |
15306 | (char *) "self",(char *) "padding", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15312 | { | |
15313 | arg2 = &temp2; | |
15314 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15315 | } | |
15316 | { | |
15317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15318 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15319 | ||
15320 | wxPyEndAllowThreads(__tstate); | |
15321 | if (PyErr_Occurred()) SWIG_fail; | |
15322 | } | |
15323 | Py_INCREF(Py_None); resultobj = Py_None; | |
15324 | return resultobj; | |
15325 | fail: | |
15326 | return NULL; | |
15327 | } | |
15328 | ||
15329 | ||
c370783e | 15330 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15331 | PyObject *resultobj; |
15332 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15333 | wxSize *arg2 = 0 ; | |
15334 | wxSize temp2 ; | |
15335 | PyObject * obj0 = 0 ; | |
15336 | PyObject * obj1 = 0 ; | |
15337 | char *kwnames[] = { | |
15338 | (char *) "self",(char *) "sz", NULL | |
15339 | }; | |
15340 | ||
15341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15344 | { | |
15345 | arg2 = &temp2; | |
15346 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15347 | } | |
15348 | { | |
15349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15350 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15351 | ||
15352 | wxPyEndAllowThreads(__tstate); | |
15353 | if (PyErr_Occurred()) SWIG_fail; | |
15354 | } | |
15355 | Py_INCREF(Py_None); resultobj = Py_None; | |
15356 | return resultobj; | |
15357 | fail: | |
15358 | return NULL; | |
15359 | } | |
15360 | ||
15361 | ||
c370783e | 15362 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15363 | PyObject *resultobj; |
15364 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15365 | wxPoint *arg2 = 0 ; | |
15366 | long *arg3 = (long *) 0 ; | |
15367 | int result; | |
15368 | wxPoint temp2 ; | |
15369 | long temp3 ; | |
c370783e | 15370 | int res3 = 0 ; |
d55e5bfc RD |
15371 | PyObject * obj0 = 0 ; |
15372 | PyObject * obj1 = 0 ; | |
15373 | char *kwnames[] = { | |
15374 | (char *) "self",(char *) "pt", NULL | |
15375 | }; | |
15376 | ||
c370783e | 15377 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
15378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15381 | { | |
15382 | arg2 = &temp2; | |
15383 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15384 | } | |
15385 | { | |
15386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15387 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15388 | ||
15389 | wxPyEndAllowThreads(__tstate); | |
15390 | if (PyErr_Occurred()) SWIG_fail; | |
15391 | } | |
c370783e RD |
15392 | resultobj = SWIG_From_int((int)result); |
15393 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15394 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
15395 | return resultobj; |
15396 | fail: | |
15397 | return NULL; | |
15398 | } | |
15399 | ||
15400 | ||
c370783e | 15401 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15402 | PyObject *resultobj; |
15403 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15404 | wxSize *arg2 = 0 ; | |
15405 | wxSize result; | |
15406 | wxSize temp2 ; | |
15407 | PyObject * obj0 = 0 ; | |
15408 | PyObject * obj1 = 0 ; | |
15409 | char *kwnames[] = { | |
15410 | (char *) "self",(char *) "sizePage", NULL | |
15411 | }; | |
15412 | ||
15413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15416 | { | |
15417 | arg2 = &temp2; | |
15418 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15419 | } | |
15420 | { | |
15421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15422 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15423 | ||
15424 | wxPyEndAllowThreads(__tstate); | |
15425 | if (PyErr_Occurred()) SWIG_fail; | |
15426 | } | |
15427 | { | |
15428 | wxSize * resultptr; | |
15429 | resultptr = new wxSize((wxSize &) result); | |
15430 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15431 | } | |
15432 | return resultobj; | |
15433 | fail: | |
15434 | return NULL; | |
15435 | } | |
15436 | ||
15437 | ||
c370783e | 15438 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
15439 | PyObject *resultobj; |
15440 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15441 | wxVisualAttributes result; | |
15442 | PyObject * obj0 = 0 ; | |
15443 | char *kwnames[] = { | |
15444 | (char *) "variant", NULL | |
15445 | }; | |
15446 | ||
15447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15448 | if (obj0) { | |
c370783e | 15449 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
15450 | if (PyErr_Occurred()) SWIG_fail; |
15451 | } | |
15452 | { | |
0439c23b | 15453 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
15454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15455 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15456 | ||
15457 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15458 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
15459 | } |
15460 | { | |
15461 | wxVisualAttributes * resultptr; | |
15462 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15463 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15464 | } | |
15465 | return resultobj; | |
15466 | fail: | |
15467 | return NULL; | |
15468 | } | |
15469 | ||
15470 | ||
c370783e | 15471 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15472 | PyObject *obj; |
15473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15474 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15475 | Py_INCREF(obj); | |
15476 | return Py_BuildValue((char *)""); | |
15477 | } | |
c370783e | 15478 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15479 | PyObject *resultobj; |
15480 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15481 | int arg2 = (int) 0 ; | |
15482 | int arg3 = (int) -1 ; | |
15483 | int arg4 = (int) -1 ; | |
15484 | wxNotebookEvent *result; | |
15485 | PyObject * obj0 = 0 ; | |
15486 | PyObject * obj1 = 0 ; | |
15487 | PyObject * obj2 = 0 ; | |
15488 | PyObject * obj3 = 0 ; | |
15489 | char *kwnames[] = { | |
15490 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15491 | }; | |
15492 | ||
15493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15494 | if (obj0) { | |
c370783e | 15495 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
15496 | if (PyErr_Occurred()) SWIG_fail; |
15497 | } | |
15498 | if (obj1) { | |
c370783e | 15499 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15500 | if (PyErr_Occurred()) SWIG_fail; |
15501 | } | |
15502 | if (obj2) { | |
c370783e | 15503 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
15504 | if (PyErr_Occurred()) SWIG_fail; |
15505 | } | |
15506 | if (obj3) { | |
c370783e | 15507 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
15508 | if (PyErr_Occurred()) SWIG_fail; |
15509 | } | |
15510 | { | |
15511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15512 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15513 | ||
15514 | wxPyEndAllowThreads(__tstate); | |
15515 | if (PyErr_Occurred()) SWIG_fail; | |
15516 | } | |
15517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); | |
15518 | return resultobj; | |
15519 | fail: | |
15520 | return NULL; | |
15521 | } | |
15522 | ||
15523 | ||
c370783e | 15524 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15525 | PyObject *obj; |
15526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15527 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15528 | Py_INCREF(obj); | |
15529 | return Py_BuildValue((char *)""); | |
15530 | } | |
c370783e | 15531 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15532 | PyObject *resultobj; |
15533 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15534 | int arg2 = (int) -1 ; | |
15535 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15536 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15537 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15538 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15539 | long arg5 = (long) 0 ; | |
15540 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15541 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15542 | wxListbook *result; | |
15543 | wxPoint temp3 ; | |
15544 | wxSize temp4 ; | |
15545 | bool temp6 = False ; | |
15546 | PyObject * obj0 = 0 ; | |
15547 | PyObject * obj1 = 0 ; | |
15548 | PyObject * obj2 = 0 ; | |
15549 | PyObject * obj3 = 0 ; | |
15550 | PyObject * obj4 = 0 ; | |
15551 | PyObject * obj5 = 0 ; | |
15552 | char *kwnames[] = { | |
15553 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15554 | }; | |
15555 | ||
15556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15559 | if (obj1) { | |
c370783e | 15560 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15561 | if (PyErr_Occurred()) SWIG_fail; |
15562 | } | |
15563 | if (obj2) { | |
15564 | { | |
15565 | arg3 = &temp3; | |
15566 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15567 | } | |
15568 | } | |
15569 | if (obj3) { | |
15570 | { | |
15571 | arg4 = &temp4; | |
15572 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15573 | } | |
15574 | } | |
15575 | if (obj4) { | |
c370783e | 15576 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
15577 | if (PyErr_Occurred()) SWIG_fail; |
15578 | } | |
15579 | if (obj5) { | |
15580 | { | |
15581 | arg6 = wxString_in_helper(obj5); | |
15582 | if (arg6 == NULL) SWIG_fail; | |
15583 | temp6 = True; | |
15584 | } | |
15585 | } | |
15586 | { | |
0439c23b | 15587 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15589 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15590 | ||
15591 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15592 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15593 | } |
15594 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
15595 | { | |
15596 | if (temp6) | |
15597 | delete arg6; | |
15598 | } | |
15599 | return resultobj; | |
15600 | fail: | |
15601 | { | |
15602 | if (temp6) | |
15603 | delete arg6; | |
15604 | } | |
15605 | return NULL; | |
15606 | } | |
15607 | ||
15608 | ||
c370783e | 15609 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15610 | PyObject *resultobj; |
15611 | wxListbook *result; | |
15612 | char *kwnames[] = { | |
15613 | NULL | |
15614 | }; | |
15615 | ||
15616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15617 | { | |
0439c23b | 15618 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15620 | result = (wxListbook *)new wxListbook(); | |
15621 | ||
15622 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15623 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15624 | } |
15625 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
15626 | return resultobj; | |
15627 | fail: | |
15628 | return NULL; | |
15629 | } | |
15630 | ||
15631 | ||
c370783e | 15632 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15633 | PyObject *resultobj; |
15634 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15635 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 15636 | int arg3 = (int) -1 ; |
d55e5bfc RD |
15637 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15638 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15639 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15640 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15641 | long arg6 = (long) 0 ; | |
15642 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15643 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15644 | bool result; | |
15645 | wxPoint temp4 ; | |
15646 | wxSize temp5 ; | |
15647 | bool temp7 = False ; | |
15648 | PyObject * obj0 = 0 ; | |
15649 | PyObject * obj1 = 0 ; | |
15650 | PyObject * obj2 = 0 ; | |
15651 | PyObject * obj3 = 0 ; | |
15652 | PyObject * obj4 = 0 ; | |
15653 | PyObject * obj5 = 0 ; | |
15654 | PyObject * obj6 = 0 ; | |
15655 | char *kwnames[] = { | |
15656 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15657 | }; | |
15658 | ||
bfddbb17 | 15659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15662 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 15664 | if (obj2) { |
c370783e | 15665 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
15666 | if (PyErr_Occurred()) SWIG_fail; |
15667 | } | |
d55e5bfc RD |
15668 | if (obj3) { |
15669 | { | |
15670 | arg4 = &temp4; | |
15671 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15672 | } | |
15673 | } | |
15674 | if (obj4) { | |
15675 | { | |
15676 | arg5 = &temp5; | |
15677 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15678 | } | |
15679 | } | |
15680 | if (obj5) { | |
c370783e | 15681 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
15682 | if (PyErr_Occurred()) SWIG_fail; |
15683 | } | |
15684 | if (obj6) { | |
15685 | { | |
15686 | arg7 = wxString_in_helper(obj6); | |
15687 | if (arg7 == NULL) SWIG_fail; | |
15688 | temp7 = True; | |
15689 | } | |
15690 | } | |
15691 | { | |
15692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15693 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15694 | ||
15695 | wxPyEndAllowThreads(__tstate); | |
15696 | if (PyErr_Occurred()) SWIG_fail; | |
15697 | } | |
15698 | { | |
15699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15700 | } | |
15701 | { | |
15702 | if (temp7) | |
15703 | delete arg7; | |
15704 | } | |
15705 | return resultobj; | |
15706 | fail: | |
15707 | { | |
15708 | if (temp7) | |
15709 | delete arg7; | |
15710 | } | |
15711 | return NULL; | |
15712 | } | |
15713 | ||
15714 | ||
c370783e | 15715 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15716 | PyObject *resultobj; |
15717 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15718 | bool result; | |
15719 | PyObject * obj0 = 0 ; | |
15720 | char *kwnames[] = { | |
15721 | (char *) "self", NULL | |
15722 | }; | |
15723 | ||
15724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
15726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15727 | { | |
15728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15729 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
15730 | ||
15731 | wxPyEndAllowThreads(__tstate); | |
15732 | if (PyErr_Occurred()) SWIG_fail; | |
15733 | } | |
15734 | { | |
15735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15736 | } | |
15737 | return resultobj; | |
15738 | fail: | |
15739 | return NULL; | |
15740 | } | |
15741 | ||
15742 | ||
44bf767a RD |
15743 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { |
15744 | PyObject *resultobj; | |
15745 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15746 | wxListView *result; | |
15747 | PyObject * obj0 = 0 ; | |
15748 | char *kwnames[] = { | |
15749 | (char *) "self", NULL | |
15750 | }; | |
15751 | ||
15752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
15753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
15754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15755 | { | |
15756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15757 | result = (wxListView *)(arg1)->GetListView(); | |
15758 | ||
15759 | wxPyEndAllowThreads(__tstate); | |
15760 | if (PyErr_Occurred()) SWIG_fail; | |
15761 | } | |
15762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
15763 | return resultobj; | |
15764 | fail: | |
15765 | return NULL; | |
15766 | } | |
15767 | ||
15768 | ||
c370783e | 15769 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15770 | PyObject *obj; |
15771 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15772 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
15773 | Py_INCREF(obj); | |
15774 | return Py_BuildValue((char *)""); | |
15775 | } | |
c370783e | 15776 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15777 | PyObject *resultobj; |
15778 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15779 | int arg2 = (int) 0 ; | |
15780 | int arg3 = (int) -1 ; | |
15781 | int arg4 = (int) -1 ; | |
15782 | wxListbookEvent *result; | |
15783 | PyObject * obj0 = 0 ; | |
15784 | PyObject * obj1 = 0 ; | |
15785 | PyObject * obj2 = 0 ; | |
15786 | PyObject * obj3 = 0 ; | |
15787 | char *kwnames[] = { | |
15788 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15789 | }; | |
15790 | ||
15791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15792 | if (obj0) { | |
c370783e | 15793 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
15794 | if (PyErr_Occurred()) SWIG_fail; |
15795 | } | |
15796 | if (obj1) { | |
c370783e | 15797 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15798 | if (PyErr_Occurred()) SWIG_fail; |
15799 | } | |
15800 | if (obj2) { | |
c370783e | 15801 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
15802 | if (PyErr_Occurred()) SWIG_fail; |
15803 | } | |
15804 | if (obj3) { | |
c370783e | 15805 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
15806 | if (PyErr_Occurred()) SWIG_fail; |
15807 | } | |
15808 | { | |
15809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15810 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
15811 | ||
15812 | wxPyEndAllowThreads(__tstate); | |
15813 | if (PyErr_Occurred()) SWIG_fail; | |
15814 | } | |
15815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
15816 | return resultobj; | |
15817 | fail: | |
15818 | return NULL; | |
15819 | } | |
15820 | ||
15821 | ||
c370783e | 15822 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15823 | PyObject *obj; |
15824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15825 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15826 | Py_INCREF(obj); | |
15827 | return Py_BuildValue((char *)""); | |
15828 | } | |
c370783e | 15829 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15830 | PyObject *resultobj; |
15831 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
15832 | wxBookCtrlSizer *result; | |
15833 | PyObject * obj0 = 0 ; | |
15834 | char *kwnames[] = { | |
15835 | (char *) "nb", NULL | |
15836 | }; | |
15837 | ||
15838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
15840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15841 | { | |
15842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15843 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
15844 | ||
15845 | wxPyEndAllowThreads(__tstate); | |
15846 | if (PyErr_Occurred()) SWIG_fail; | |
15847 | } | |
15848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); | |
15849 | return resultobj; | |
15850 | fail: | |
15851 | return NULL; | |
15852 | } | |
15853 | ||
15854 | ||
c370783e | 15855 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15856 | PyObject *resultobj; |
15857 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15858 | PyObject * obj0 = 0 ; | |
15859 | char *kwnames[] = { | |
15860 | (char *) "self", NULL | |
15861 | }; | |
15862 | ||
15863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15866 | { | |
15867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15868 | (arg1)->RecalcSizes(); | |
15869 | ||
15870 | wxPyEndAllowThreads(__tstate); | |
15871 | if (PyErr_Occurred()) SWIG_fail; | |
15872 | } | |
15873 | Py_INCREF(Py_None); resultobj = Py_None; | |
15874 | return resultobj; | |
15875 | fail: | |
15876 | return NULL; | |
15877 | } | |
15878 | ||
15879 | ||
c370783e | 15880 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15881 | PyObject *resultobj; |
15882 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15883 | wxSize result; | |
15884 | PyObject * obj0 = 0 ; | |
15885 | char *kwnames[] = { | |
15886 | (char *) "self", NULL | |
15887 | }; | |
15888 | ||
15889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15892 | { | |
15893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15894 | result = (arg1)->CalcMin(); | |
15895 | ||
15896 | wxPyEndAllowThreads(__tstate); | |
15897 | if (PyErr_Occurred()) SWIG_fail; | |
15898 | } | |
15899 | { | |
15900 | wxSize * resultptr; | |
15901 | resultptr = new wxSize((wxSize &) result); | |
15902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15903 | } | |
15904 | return resultobj; | |
15905 | fail: | |
15906 | return NULL; | |
15907 | } | |
15908 | ||
15909 | ||
c370783e | 15910 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15911 | PyObject *resultobj; |
15912 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15913 | wxBookCtrl *result; | |
15914 | PyObject * obj0 = 0 ; | |
15915 | char *kwnames[] = { | |
15916 | (char *) "self", NULL | |
15917 | }; | |
15918 | ||
15919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15922 | { | |
15923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15924 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15925 | ||
15926 | wxPyEndAllowThreads(__tstate); | |
15927 | if (PyErr_Occurred()) SWIG_fail; | |
15928 | } | |
15929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); | |
15930 | return resultobj; | |
15931 | fail: | |
15932 | return NULL; | |
15933 | } | |
15934 | ||
15935 | ||
c370783e | 15936 | static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15937 | PyObject *obj; |
15938 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15939 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15940 | Py_INCREF(obj); | |
15941 | return Py_BuildValue((char *)""); | |
15942 | } | |
c370783e | 15943 | static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15944 | PyObject *resultobj; |
15945 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15946 | wxNotebookSizer *result; | |
15947 | PyObject * obj0 = 0 ; | |
15948 | char *kwnames[] = { | |
15949 | (char *) "nb", NULL | |
15950 | }; | |
15951 | ||
15952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15955 | { | |
15956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15957 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15958 | ||
15959 | wxPyEndAllowThreads(__tstate); | |
15960 | if (PyErr_Occurred()) SWIG_fail; | |
15961 | } | |
15962 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); | |
15963 | return resultobj; | |
15964 | fail: | |
15965 | return NULL; | |
15966 | } | |
15967 | ||
15968 | ||
c370783e | 15969 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15970 | PyObject *resultobj; |
15971 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15972 | PyObject * obj0 = 0 ; | |
15973 | char *kwnames[] = { | |
15974 | (char *) "self", NULL | |
15975 | }; | |
15976 | ||
15977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15980 | { | |
15981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15982 | (arg1)->RecalcSizes(); | |
15983 | ||
15984 | wxPyEndAllowThreads(__tstate); | |
15985 | if (PyErr_Occurred()) SWIG_fail; | |
15986 | } | |
15987 | Py_INCREF(Py_None); resultobj = Py_None; | |
15988 | return resultobj; | |
15989 | fail: | |
15990 | return NULL; | |
15991 | } | |
15992 | ||
15993 | ||
c370783e | 15994 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15995 | PyObject *resultobj; |
15996 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15997 | wxSize result; | |
15998 | PyObject * obj0 = 0 ; | |
15999 | char *kwnames[] = { | |
16000 | (char *) "self", NULL | |
16001 | }; | |
16002 | ||
16003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
16004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
16005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16006 | { | |
16007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16008 | result = (arg1)->CalcMin(); | |
16009 | ||
16010 | wxPyEndAllowThreads(__tstate); | |
16011 | if (PyErr_Occurred()) SWIG_fail; | |
16012 | } | |
16013 | { | |
16014 | wxSize * resultptr; | |
16015 | resultptr = new wxSize((wxSize &) result); | |
16016 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16017 | } | |
16018 | return resultobj; | |
16019 | fail: | |
16020 | return NULL; | |
16021 | } | |
16022 | ||
16023 | ||
c370783e | 16024 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16025 | PyObject *resultobj; |
16026 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16027 | wxNotebook *result; | |
16028 | PyObject * obj0 = 0 ; | |
16029 | char *kwnames[] = { | |
16030 | (char *) "self", NULL | |
16031 | }; | |
16032 | ||
16033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
16034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
16035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16036 | { | |
16037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16038 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
16039 | ||
16040 | wxPyEndAllowThreads(__tstate); | |
16041 | if (PyErr_Occurred()) SWIG_fail; | |
16042 | } | |
16043 | { | |
412d302d | 16044 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16045 | } |
16046 | return resultobj; | |
16047 | fail: | |
16048 | return NULL; | |
16049 | } | |
16050 | ||
16051 | ||
c370783e | 16052 | static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16053 | PyObject *obj; |
16054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16055 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
16056 | Py_INCREF(obj); | |
16057 | return Py_BuildValue((char *)""); | |
16058 | } | |
c370783e | 16059 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16060 | PyObject *resultobj; |
16061 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16062 | int result; | |
16063 | PyObject * obj0 = 0 ; | |
16064 | char *kwnames[] = { | |
16065 | (char *) "self", NULL | |
16066 | }; | |
16067 | ||
16068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
16069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16071 | { | |
16072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16073 | result = (int)(arg1)->GetId(); | |
16074 | ||
16075 | wxPyEndAllowThreads(__tstate); | |
16076 | if (PyErr_Occurred()) SWIG_fail; | |
16077 | } | |
c370783e | 16078 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16079 | return resultobj; |
16080 | fail: | |
16081 | return NULL; | |
16082 | } | |
16083 | ||
16084 | ||
c370783e | 16085 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16086 | PyObject *resultobj; |
16087 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16088 | wxControl *result; | |
16089 | PyObject * obj0 = 0 ; | |
16090 | char *kwnames[] = { | |
16091 | (char *) "self", NULL | |
16092 | }; | |
16093 | ||
16094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
16095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16097 | { | |
16098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16099 | result = (wxControl *)(arg1)->GetControl(); | |
16100 | ||
16101 | wxPyEndAllowThreads(__tstate); | |
16102 | if (PyErr_Occurred()) SWIG_fail; | |
16103 | } | |
16104 | { | |
412d302d | 16105 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16106 | } |
16107 | return resultobj; | |
16108 | fail: | |
16109 | return NULL; | |
16110 | } | |
16111 | ||
16112 | ||
c370783e | 16113 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16114 | PyObject *resultobj; |
16115 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16116 | wxToolBarBase *result; | |
16117 | PyObject * obj0 = 0 ; | |
16118 | char *kwnames[] = { | |
16119 | (char *) "self", NULL | |
16120 | }; | |
16121 | ||
16122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
16123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16125 | { | |
16126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16127 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
16128 | ||
16129 | wxPyEndAllowThreads(__tstate); | |
16130 | if (PyErr_Occurred()) SWIG_fail; | |
16131 | } | |
16132 | { | |
412d302d | 16133 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16134 | } |
16135 | return resultobj; | |
16136 | fail: | |
16137 | return NULL; | |
16138 | } | |
16139 | ||
16140 | ||
c370783e | 16141 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16142 | PyObject *resultobj; |
16143 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16144 | int result; | |
16145 | PyObject * obj0 = 0 ; | |
16146 | char *kwnames[] = { | |
16147 | (char *) "self", NULL | |
16148 | }; | |
16149 | ||
16150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
16151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16153 | { | |
16154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16155 | result = (int)(arg1)->IsButton(); | |
16156 | ||
16157 | wxPyEndAllowThreads(__tstate); | |
16158 | if (PyErr_Occurred()) SWIG_fail; | |
16159 | } | |
c370783e | 16160 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16161 | return resultobj; |
16162 | fail: | |
16163 | return NULL; | |
16164 | } | |
16165 | ||
16166 | ||
c370783e | 16167 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16168 | PyObject *resultobj; |
16169 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16170 | int result; | |
16171 | PyObject * obj0 = 0 ; | |
16172 | char *kwnames[] = { | |
16173 | (char *) "self", NULL | |
16174 | }; | |
16175 | ||
16176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
16177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16179 | { | |
16180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16181 | result = (int)(arg1)->IsControl(); | |
16182 | ||
16183 | wxPyEndAllowThreads(__tstate); | |
16184 | if (PyErr_Occurred()) SWIG_fail; | |
16185 | } | |
c370783e | 16186 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16187 | return resultobj; |
16188 | fail: | |
16189 | return NULL; | |
16190 | } | |
16191 | ||
16192 | ||
c370783e | 16193 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16194 | PyObject *resultobj; |
16195 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16196 | int result; | |
16197 | PyObject * obj0 = 0 ; | |
16198 | char *kwnames[] = { | |
16199 | (char *) "self", NULL | |
16200 | }; | |
16201 | ||
16202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
16203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16205 | { | |
16206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16207 | result = (int)(arg1)->IsSeparator(); | |
16208 | ||
16209 | wxPyEndAllowThreads(__tstate); | |
16210 | if (PyErr_Occurred()) SWIG_fail; | |
16211 | } | |
c370783e | 16212 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16213 | return resultobj; |
16214 | fail: | |
16215 | return NULL; | |
16216 | } | |
16217 | ||
16218 | ||
c370783e | 16219 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16220 | PyObject *resultobj; |
16221 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16222 | int result; | |
16223 | PyObject * obj0 = 0 ; | |
16224 | char *kwnames[] = { | |
16225 | (char *) "self", NULL | |
16226 | }; | |
16227 | ||
16228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
16229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16231 | { | |
16232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16233 | result = (int)(arg1)->GetStyle(); | |
16234 | ||
16235 | wxPyEndAllowThreads(__tstate); | |
16236 | if (PyErr_Occurred()) SWIG_fail; | |
16237 | } | |
c370783e | 16238 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16239 | return resultobj; |
16240 | fail: | |
16241 | return NULL; | |
16242 | } | |
16243 | ||
16244 | ||
c370783e | 16245 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16246 | PyObject *resultobj; |
16247 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16248 | int result; | |
16249 | PyObject * obj0 = 0 ; | |
16250 | char *kwnames[] = { | |
16251 | (char *) "self", NULL | |
16252 | }; | |
16253 | ||
16254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",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 = (int)(arg1)->GetKind(); | |
16260 | ||
16261 | wxPyEndAllowThreads(__tstate); | |
16262 | if (PyErr_Occurred()) SWIG_fail; | |
16263 | } | |
c370783e | 16264 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16265 | return resultobj; |
16266 | fail: | |
16267 | return NULL; | |
16268 | } | |
16269 | ||
16270 | ||
c370783e | 16271 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16272 | PyObject *resultobj; |
16273 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16274 | bool result; | |
16275 | PyObject * obj0 = 0 ; | |
16276 | char *kwnames[] = { | |
16277 | (char *) "self", NULL | |
16278 | }; | |
16279 | ||
16280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
16281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16283 | { | |
16284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16285 | result = (bool)(arg1)->IsEnabled(); | |
16286 | ||
16287 | wxPyEndAllowThreads(__tstate); | |
16288 | if (PyErr_Occurred()) SWIG_fail; | |
16289 | } | |
16290 | { | |
16291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16292 | } | |
16293 | return resultobj; | |
16294 | fail: | |
16295 | return NULL; | |
16296 | } | |
16297 | ||
16298 | ||
c370783e | 16299 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16300 | PyObject *resultobj; |
16301 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16302 | bool result; | |
16303 | PyObject * obj0 = 0 ; | |
16304 | char *kwnames[] = { | |
16305 | (char *) "self", NULL | |
16306 | }; | |
16307 | ||
16308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
16309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16311 | { | |
16312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16313 | result = (bool)(arg1)->IsToggled(); | |
16314 | ||
16315 | wxPyEndAllowThreads(__tstate); | |
16316 | if (PyErr_Occurred()) SWIG_fail; | |
16317 | } | |
16318 | { | |
16319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16320 | } | |
16321 | return resultobj; | |
16322 | fail: | |
16323 | return NULL; | |
16324 | } | |
16325 | ||
16326 | ||
c370783e | 16327 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16328 | PyObject *resultobj; |
16329 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16330 | bool result; | |
16331 | PyObject * obj0 = 0 ; | |
16332 | char *kwnames[] = { | |
16333 | (char *) "self", NULL | |
16334 | }; | |
16335 | ||
16336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
16337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16339 | { | |
16340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16341 | result = (bool)(arg1)->CanBeToggled(); | |
16342 | ||
16343 | wxPyEndAllowThreads(__tstate); | |
16344 | if (PyErr_Occurred()) SWIG_fail; | |
16345 | } | |
16346 | { | |
16347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16348 | } | |
16349 | return resultobj; | |
16350 | fail: | |
16351 | return NULL; | |
16352 | } | |
16353 | ||
16354 | ||
c370783e | 16355 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16356 | PyObject *resultobj; |
16357 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16358 | wxBitmap *result; | |
16359 | PyObject * obj0 = 0 ; | |
16360 | char *kwnames[] = { | |
16361 | (char *) "self", NULL | |
16362 | }; | |
16363 | ||
16364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
16365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16367 | { | |
16368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16369 | { | |
16370 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16371 | result = (wxBitmap *) &_result_ref; | |
16372 | } | |
16373 | ||
16374 | wxPyEndAllowThreads(__tstate); | |
16375 | if (PyErr_Occurred()) SWIG_fail; | |
16376 | } | |
16377 | { | |
16378 | wxBitmap* resultptr = new wxBitmap(*result); | |
16379 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16380 | } | |
16381 | return resultobj; | |
16382 | fail: | |
16383 | return NULL; | |
16384 | } | |
16385 | ||
16386 | ||
c370783e | 16387 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16388 | PyObject *resultobj; |
16389 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16390 | wxBitmap *result; | |
16391 | PyObject * obj0 = 0 ; | |
16392 | char *kwnames[] = { | |
16393 | (char *) "self", NULL | |
16394 | }; | |
16395 | ||
16396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
16397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16399 | { | |
16400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16401 | { | |
16402 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
16403 | result = (wxBitmap *) &_result_ref; | |
16404 | } | |
16405 | ||
16406 | wxPyEndAllowThreads(__tstate); | |
16407 | if (PyErr_Occurred()) SWIG_fail; | |
16408 | } | |
16409 | { | |
16410 | wxBitmap* resultptr = new wxBitmap(*result); | |
16411 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16412 | } | |
16413 | return resultobj; | |
16414 | fail: | |
16415 | return NULL; | |
16416 | } | |
16417 | ||
16418 | ||
c370783e | 16419 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16420 | PyObject *resultobj; |
16421 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16422 | wxBitmap result; | |
16423 | PyObject * obj0 = 0 ; | |
16424 | char *kwnames[] = { | |
16425 | (char *) "self", NULL | |
16426 | }; | |
16427 | ||
16428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
16429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16431 | { | |
16432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16433 | result = (arg1)->GetBitmap(); | |
16434 | ||
16435 | wxPyEndAllowThreads(__tstate); | |
16436 | if (PyErr_Occurred()) SWIG_fail; | |
16437 | } | |
16438 | { | |
16439 | wxBitmap * resultptr; | |
16440 | resultptr = new wxBitmap((wxBitmap &) result); | |
16441 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16442 | } | |
16443 | return resultobj; | |
16444 | fail: | |
16445 | return NULL; | |
16446 | } | |
16447 | ||
16448 | ||
c370783e | 16449 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16450 | PyObject *resultobj; |
16451 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16452 | wxString result; | |
16453 | PyObject * obj0 = 0 ; | |
16454 | char *kwnames[] = { | |
16455 | (char *) "self", NULL | |
16456 | }; | |
16457 | ||
16458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
16459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16461 | { | |
16462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16463 | result = (arg1)->GetLabel(); | |
16464 | ||
16465 | wxPyEndAllowThreads(__tstate); | |
16466 | if (PyErr_Occurred()) SWIG_fail; | |
16467 | } | |
16468 | { | |
16469 | #if wxUSE_UNICODE | |
16470 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16471 | #else | |
16472 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16473 | #endif | |
16474 | } | |
16475 | return resultobj; | |
16476 | fail: | |
16477 | return NULL; | |
16478 | } | |
16479 | ||
16480 | ||
c370783e | 16481 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16482 | PyObject *resultobj; |
16483 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16484 | wxString result; | |
16485 | PyObject * obj0 = 0 ; | |
16486 | char *kwnames[] = { | |
16487 | (char *) "self", NULL | |
16488 | }; | |
16489 | ||
16490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
16491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16493 | { | |
16494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16495 | result = (arg1)->GetShortHelp(); | |
16496 | ||
16497 | wxPyEndAllowThreads(__tstate); | |
16498 | if (PyErr_Occurred()) SWIG_fail; | |
16499 | } | |
16500 | { | |
16501 | #if wxUSE_UNICODE | |
16502 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16503 | #else | |
16504 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16505 | #endif | |
16506 | } | |
16507 | return resultobj; | |
16508 | fail: | |
16509 | return NULL; | |
16510 | } | |
16511 | ||
16512 | ||
c370783e | 16513 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16514 | PyObject *resultobj; |
16515 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16516 | wxString result; | |
16517 | PyObject * obj0 = 0 ; | |
16518 | char *kwnames[] = { | |
16519 | (char *) "self", NULL | |
16520 | }; | |
16521 | ||
16522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
16523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16525 | { | |
16526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16527 | result = (arg1)->GetLongHelp(); | |
16528 | ||
16529 | wxPyEndAllowThreads(__tstate); | |
16530 | if (PyErr_Occurred()) SWIG_fail; | |
16531 | } | |
16532 | { | |
16533 | #if wxUSE_UNICODE | |
16534 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16535 | #else | |
16536 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16537 | #endif | |
16538 | } | |
16539 | return resultobj; | |
16540 | fail: | |
16541 | return NULL; | |
16542 | } | |
16543 | ||
16544 | ||
c370783e | 16545 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16546 | PyObject *resultobj; |
16547 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16548 | bool arg2 ; | |
16549 | bool result; | |
16550 | PyObject * obj0 = 0 ; | |
16551 | PyObject * obj1 = 0 ; | |
16552 | char *kwnames[] = { | |
16553 | (char *) "self",(char *) "enable", NULL | |
16554 | }; | |
16555 | ||
16556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
16557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16559 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16560 | if (PyErr_Occurred()) SWIG_fail; |
16561 | { | |
16562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16563 | result = (bool)(arg1)->Enable(arg2); | |
16564 | ||
16565 | wxPyEndAllowThreads(__tstate); | |
16566 | if (PyErr_Occurred()) SWIG_fail; | |
16567 | } | |
16568 | { | |
16569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16570 | } | |
16571 | return resultobj; | |
16572 | fail: | |
16573 | return NULL; | |
16574 | } | |
16575 | ||
16576 | ||
c370783e | 16577 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16578 | PyObject *resultobj; |
16579 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16580 | PyObject * obj0 = 0 ; | |
16581 | char *kwnames[] = { | |
16582 | (char *) "self", NULL | |
16583 | }; | |
16584 | ||
16585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
16586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16588 | { | |
16589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16590 | (arg1)->Toggle(); | |
16591 | ||
16592 | wxPyEndAllowThreads(__tstate); | |
16593 | if (PyErr_Occurred()) SWIG_fail; | |
16594 | } | |
16595 | Py_INCREF(Py_None); resultobj = Py_None; | |
16596 | return resultobj; | |
16597 | fail: | |
16598 | return NULL; | |
16599 | } | |
16600 | ||
16601 | ||
c370783e | 16602 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16603 | PyObject *resultobj; |
16604 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16605 | bool arg2 ; | |
16606 | bool result; | |
16607 | PyObject * obj0 = 0 ; | |
16608 | PyObject * obj1 = 0 ; | |
16609 | char *kwnames[] = { | |
16610 | (char *) "self",(char *) "toggle", NULL | |
16611 | }; | |
16612 | ||
16613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
16614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16616 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16617 | if (PyErr_Occurred()) SWIG_fail; |
16618 | { | |
16619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16620 | result = (bool)(arg1)->SetToggle(arg2); | |
16621 | ||
16622 | wxPyEndAllowThreads(__tstate); | |
16623 | if (PyErr_Occurred()) SWIG_fail; | |
16624 | } | |
16625 | { | |
16626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16627 | } | |
16628 | return resultobj; | |
16629 | fail: | |
16630 | return NULL; | |
16631 | } | |
16632 | ||
16633 | ||
c370783e | 16634 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16635 | PyObject *resultobj; |
16636 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16637 | wxString *arg2 = 0 ; | |
16638 | bool result; | |
16639 | bool temp2 = False ; | |
16640 | PyObject * obj0 = 0 ; | |
16641 | PyObject * obj1 = 0 ; | |
16642 | char *kwnames[] = { | |
16643 | (char *) "self",(char *) "help", NULL | |
16644 | }; | |
16645 | ||
16646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
16647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16649 | { | |
16650 | arg2 = wxString_in_helper(obj1); | |
16651 | if (arg2 == NULL) SWIG_fail; | |
16652 | temp2 = True; | |
16653 | } | |
16654 | { | |
16655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16656 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
16657 | ||
16658 | wxPyEndAllowThreads(__tstate); | |
16659 | if (PyErr_Occurred()) SWIG_fail; | |
16660 | } | |
16661 | { | |
16662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16663 | } | |
16664 | { | |
16665 | if (temp2) | |
16666 | delete arg2; | |
16667 | } | |
16668 | return resultobj; | |
16669 | fail: | |
16670 | { | |
16671 | if (temp2) | |
16672 | delete arg2; | |
16673 | } | |
16674 | return NULL; | |
16675 | } | |
16676 | ||
16677 | ||
c370783e | 16678 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16679 | PyObject *resultobj; |
16680 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16681 | wxString *arg2 = 0 ; | |
16682 | bool result; | |
16683 | bool temp2 = False ; | |
16684 | PyObject * obj0 = 0 ; | |
16685 | PyObject * obj1 = 0 ; | |
16686 | char *kwnames[] = { | |
16687 | (char *) "self",(char *) "help", NULL | |
16688 | }; | |
16689 | ||
16690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
16691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16693 | { | |
16694 | arg2 = wxString_in_helper(obj1); | |
16695 | if (arg2 == NULL) SWIG_fail; | |
16696 | temp2 = True; | |
16697 | } | |
16698 | { | |
16699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16700 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
16701 | ||
16702 | wxPyEndAllowThreads(__tstate); | |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
16704 | } | |
16705 | { | |
16706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16707 | } | |
16708 | { | |
16709 | if (temp2) | |
16710 | delete arg2; | |
16711 | } | |
16712 | return resultobj; | |
16713 | fail: | |
16714 | { | |
16715 | if (temp2) | |
16716 | delete arg2; | |
16717 | } | |
16718 | return NULL; | |
16719 | } | |
16720 | ||
16721 | ||
c370783e | 16722 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16723 | PyObject *resultobj; |
16724 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16725 | wxBitmap *arg2 = 0 ; | |
16726 | PyObject * obj0 = 0 ; | |
16727 | PyObject * obj1 = 0 ; | |
16728 | char *kwnames[] = { | |
16729 | (char *) "self",(char *) "bmp", NULL | |
16730 | }; | |
16731 | ||
16732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
16733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16735 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16736 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16737 | SWIG_fail; | |
16738 | if (arg2 == NULL) { | |
16739 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16740 | SWIG_fail; | |
16741 | } | |
16742 | { | |
16743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16744 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
16745 | ||
16746 | wxPyEndAllowThreads(__tstate); | |
16747 | if (PyErr_Occurred()) SWIG_fail; | |
16748 | } | |
16749 | Py_INCREF(Py_None); resultobj = Py_None; | |
16750 | return resultobj; | |
16751 | fail: | |
16752 | return NULL; | |
16753 | } | |
16754 | ||
16755 | ||
c370783e | 16756 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16757 | PyObject *resultobj; |
16758 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16759 | wxBitmap *arg2 = 0 ; | |
16760 | PyObject * obj0 = 0 ; | |
16761 | PyObject * obj1 = 0 ; | |
16762 | char *kwnames[] = { | |
16763 | (char *) "self",(char *) "bmp", NULL | |
16764 | }; | |
16765 | ||
16766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
16767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16769 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16770 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16771 | SWIG_fail; | |
16772 | if (arg2 == NULL) { | |
16773 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16774 | SWIG_fail; | |
16775 | } | |
16776 | { | |
16777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16778 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
16779 | ||
16780 | wxPyEndAllowThreads(__tstate); | |
16781 | if (PyErr_Occurred()) SWIG_fail; | |
16782 | } | |
16783 | Py_INCREF(Py_None); resultobj = Py_None; | |
16784 | return resultobj; | |
16785 | fail: | |
16786 | return NULL; | |
16787 | } | |
16788 | ||
16789 | ||
c370783e | 16790 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16791 | PyObject *resultobj; |
16792 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16793 | wxString *arg2 = 0 ; | |
16794 | bool temp2 = False ; | |
16795 | PyObject * obj0 = 0 ; | |
16796 | PyObject * obj1 = 0 ; | |
16797 | char *kwnames[] = { | |
16798 | (char *) "self",(char *) "label", NULL | |
16799 | }; | |
16800 | ||
16801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
16802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16804 | { | |
16805 | arg2 = wxString_in_helper(obj1); | |
16806 | if (arg2 == NULL) SWIG_fail; | |
16807 | temp2 = True; | |
16808 | } | |
16809 | { | |
16810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16811 | (arg1)->SetLabel((wxString const &)*arg2); | |
16812 | ||
16813 | wxPyEndAllowThreads(__tstate); | |
16814 | if (PyErr_Occurred()) SWIG_fail; | |
16815 | } | |
16816 | Py_INCREF(Py_None); resultobj = Py_None; | |
16817 | { | |
16818 | if (temp2) | |
16819 | delete arg2; | |
16820 | } | |
16821 | return resultobj; | |
16822 | fail: | |
16823 | { | |
16824 | if (temp2) | |
16825 | delete arg2; | |
16826 | } | |
16827 | return NULL; | |
16828 | } | |
16829 | ||
16830 | ||
c370783e | 16831 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16832 | PyObject *resultobj; |
16833 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16834 | PyObject * obj0 = 0 ; | |
16835 | char *kwnames[] = { | |
16836 | (char *) "self", NULL | |
16837 | }; | |
16838 | ||
16839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
16840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16842 | { | |
16843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16844 | (arg1)->Detach(); | |
16845 | ||
16846 | wxPyEndAllowThreads(__tstate); | |
16847 | if (PyErr_Occurred()) SWIG_fail; | |
16848 | } | |
16849 | Py_INCREF(Py_None); resultobj = Py_None; | |
16850 | return resultobj; | |
16851 | fail: | |
16852 | return NULL; | |
16853 | } | |
16854 | ||
16855 | ||
c370783e | 16856 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16857 | PyObject *resultobj; |
16858 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16859 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
16860 | PyObject * obj0 = 0 ; | |
16861 | PyObject * obj1 = 0 ; | |
16862 | char *kwnames[] = { | |
16863 | (char *) "self",(char *) "tbar", NULL | |
16864 | }; | |
16865 | ||
16866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
16867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16869 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
16870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16871 | { | |
16872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16873 | (arg1)->Attach(arg2); | |
16874 | ||
16875 | wxPyEndAllowThreads(__tstate); | |
16876 | if (PyErr_Occurred()) SWIG_fail; | |
16877 | } | |
16878 | Py_INCREF(Py_None); resultobj = Py_None; | |
16879 | return resultobj; | |
16880 | fail: | |
16881 | return NULL; | |
16882 | } | |
16883 | ||
16884 | ||
c370783e | 16885 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16886 | PyObject *resultobj; |
16887 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16888 | PyObject *result; | |
16889 | PyObject * obj0 = 0 ; | |
16890 | char *kwnames[] = { | |
16891 | (char *) "self", NULL | |
16892 | }; | |
16893 | ||
16894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
16895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16897 | { | |
16898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16899 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
16900 | ||
16901 | wxPyEndAllowThreads(__tstate); | |
16902 | if (PyErr_Occurred()) SWIG_fail; | |
16903 | } | |
16904 | resultobj = result; | |
16905 | return resultobj; | |
16906 | fail: | |
16907 | return NULL; | |
16908 | } | |
16909 | ||
16910 | ||
c370783e | 16911 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16912 | PyObject *resultobj; |
16913 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16914 | PyObject *arg2 = (PyObject *) 0 ; | |
16915 | PyObject * obj0 = 0 ; | |
16916 | PyObject * obj1 = 0 ; | |
16917 | char *kwnames[] = { | |
16918 | (char *) "self",(char *) "clientData", NULL | |
16919 | }; | |
16920 | ||
16921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
16922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16924 | arg2 = obj1; | |
16925 | { | |
16926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16927 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16928 | ||
16929 | wxPyEndAllowThreads(__tstate); | |
16930 | if (PyErr_Occurred()) SWIG_fail; | |
16931 | } | |
16932 | Py_INCREF(Py_None); resultobj = Py_None; | |
16933 | return resultobj; | |
16934 | fail: | |
16935 | return NULL; | |
16936 | } | |
16937 | ||
16938 | ||
c370783e | 16939 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16940 | PyObject *obj; |
16941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16942 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16943 | Py_INCREF(obj); | |
16944 | return Py_BuildValue((char *)""); | |
16945 | } | |
c370783e | 16946 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16947 | PyObject *resultobj; |
16948 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16949 | int arg2 ; | |
16950 | wxString *arg3 = 0 ; | |
16951 | wxBitmap *arg4 = 0 ; | |
16952 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16953 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16954 | int arg6 = (int) wxITEM_NORMAL ; | |
16955 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16956 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16957 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16958 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16959 | PyObject *arg9 = (PyObject *) NULL ; | |
16960 | wxToolBarToolBase *result; | |
16961 | bool temp3 = False ; | |
16962 | bool temp7 = False ; | |
16963 | bool temp8 = False ; | |
16964 | PyObject * obj0 = 0 ; | |
16965 | PyObject * obj1 = 0 ; | |
16966 | PyObject * obj2 = 0 ; | |
16967 | PyObject * obj3 = 0 ; | |
16968 | PyObject * obj4 = 0 ; | |
16969 | PyObject * obj5 = 0 ; | |
16970 | PyObject * obj6 = 0 ; | |
16971 | PyObject * obj7 = 0 ; | |
16972 | PyObject * obj8 = 0 ; | |
16973 | char *kwnames[] = { | |
16974 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16975 | }; | |
16976 | ||
16977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
16978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16980 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16981 | if (PyErr_Occurred()) SWIG_fail; |
16982 | { | |
16983 | arg3 = wxString_in_helper(obj2); | |
16984 | if (arg3 == NULL) SWIG_fail; | |
16985 | temp3 = True; | |
16986 | } | |
16987 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
16988 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16989 | SWIG_fail; | |
16990 | if (arg4 == NULL) { | |
16991 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16992 | SWIG_fail; | |
16993 | } | |
16994 | if (obj4) { | |
16995 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
16996 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16997 | SWIG_fail; | |
16998 | if (arg5 == NULL) { | |
16999 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17000 | SWIG_fail; | |
17001 | } | |
17002 | } | |
17003 | if (obj5) { | |
c370783e | 17004 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
17005 | if (PyErr_Occurred()) SWIG_fail; |
17006 | } | |
17007 | if (obj6) { | |
17008 | { | |
17009 | arg7 = wxString_in_helper(obj6); | |
17010 | if (arg7 == NULL) SWIG_fail; | |
17011 | temp7 = True; | |
17012 | } | |
17013 | } | |
17014 | if (obj7) { | |
17015 | { | |
17016 | arg8 = wxString_in_helper(obj7); | |
17017 | if (arg8 == NULL) SWIG_fail; | |
17018 | temp8 = True; | |
17019 | } | |
17020 | } | |
17021 | if (obj8) { | |
17022 | arg9 = obj8; | |
17023 | } | |
17024 | { | |
17025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17026 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
17027 | ||
17028 | wxPyEndAllowThreads(__tstate); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | } | |
17031 | { | |
412d302d | 17032 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17033 | } |
17034 | { | |
17035 | if (temp3) | |
17036 | delete arg3; | |
17037 | } | |
17038 | { | |
17039 | if (temp7) | |
17040 | delete arg7; | |
17041 | } | |
17042 | { | |
17043 | if (temp8) | |
17044 | delete arg8; | |
17045 | } | |
17046 | return resultobj; | |
17047 | fail: | |
17048 | { | |
17049 | if (temp3) | |
17050 | delete arg3; | |
17051 | } | |
17052 | { | |
17053 | if (temp7) | |
17054 | delete arg7; | |
17055 | } | |
17056 | { | |
17057 | if (temp8) | |
17058 | delete arg8; | |
17059 | } | |
17060 | return NULL; | |
17061 | } | |
17062 | ||
17063 | ||
c370783e | 17064 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17065 | PyObject *resultobj; |
17066 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17067 | size_t arg2 ; | |
17068 | int arg3 ; | |
17069 | wxString *arg4 = 0 ; | |
17070 | wxBitmap *arg5 = 0 ; | |
17071 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
17072 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
17073 | int arg7 = (int) wxITEM_NORMAL ; | |
17074 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
17075 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17076 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
17077 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17078 | PyObject *arg10 = (PyObject *) NULL ; | |
17079 | wxToolBarToolBase *result; | |
17080 | bool temp4 = False ; | |
17081 | bool temp8 = False ; | |
17082 | bool temp9 = False ; | |
17083 | PyObject * obj0 = 0 ; | |
17084 | PyObject * obj1 = 0 ; | |
17085 | PyObject * obj2 = 0 ; | |
17086 | PyObject * obj3 = 0 ; | |
17087 | PyObject * obj4 = 0 ; | |
17088 | PyObject * obj5 = 0 ; | |
17089 | PyObject * obj6 = 0 ; | |
17090 | PyObject * obj7 = 0 ; | |
17091 | PyObject * obj8 = 0 ; | |
17092 | PyObject * obj9 = 0 ; | |
17093 | char *kwnames[] = { | |
17094 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
17095 | }; | |
17096 | ||
17097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
17098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17100 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 17101 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17102 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17103 | if (PyErr_Occurred()) SWIG_fail; |
17104 | { | |
17105 | arg4 = wxString_in_helper(obj3); | |
17106 | if (arg4 == NULL) SWIG_fail; | |
17107 | temp4 = True; | |
17108 | } | |
17109 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
17110 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17111 | SWIG_fail; | |
17112 | if (arg5 == NULL) { | |
17113 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17114 | SWIG_fail; | |
17115 | } | |
17116 | if (obj5) { | |
17117 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, | |
17118 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17119 | SWIG_fail; | |
17120 | if (arg6 == NULL) { | |
17121 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17122 | SWIG_fail; | |
17123 | } | |
17124 | } | |
17125 | if (obj6) { | |
c370783e | 17126 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
17127 | if (PyErr_Occurred()) SWIG_fail; |
17128 | } | |
17129 | if (obj7) { | |
17130 | { | |
17131 | arg8 = wxString_in_helper(obj7); | |
17132 | if (arg8 == NULL) SWIG_fail; | |
17133 | temp8 = True; | |
17134 | } | |
17135 | } | |
17136 | if (obj8) { | |
17137 | { | |
17138 | arg9 = wxString_in_helper(obj8); | |
17139 | if (arg9 == NULL) SWIG_fail; | |
17140 | temp9 = True; | |
17141 | } | |
17142 | } | |
17143 | if (obj9) { | |
17144 | arg10 = obj9; | |
17145 | } | |
17146 | { | |
17147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17148 | 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); | |
17149 | ||
17150 | wxPyEndAllowThreads(__tstate); | |
17151 | if (PyErr_Occurred()) SWIG_fail; | |
17152 | } | |
17153 | { | |
412d302d | 17154 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17155 | } |
17156 | { | |
17157 | if (temp4) | |
17158 | delete arg4; | |
17159 | } | |
17160 | { | |
17161 | if (temp8) | |
17162 | delete arg8; | |
17163 | } | |
17164 | { | |
17165 | if (temp9) | |
17166 | delete arg9; | |
17167 | } | |
17168 | return resultobj; | |
17169 | fail: | |
17170 | { | |
17171 | if (temp4) | |
17172 | delete arg4; | |
17173 | } | |
17174 | { | |
17175 | if (temp8) | |
17176 | delete arg8; | |
17177 | } | |
17178 | { | |
17179 | if (temp9) | |
17180 | delete arg9; | |
17181 | } | |
17182 | return NULL; | |
17183 | } | |
17184 | ||
17185 | ||
c370783e | 17186 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17187 | PyObject *resultobj; |
17188 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17189 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
17190 | wxToolBarToolBase *result; | |
17191 | PyObject * obj0 = 0 ; | |
17192 | PyObject * obj1 = 0 ; | |
17193 | char *kwnames[] = { | |
17194 | (char *) "self",(char *) "tool", NULL | |
17195 | }; | |
17196 | ||
17197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
17198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
17201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17202 | { | |
17203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17204 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
17205 | ||
17206 | wxPyEndAllowThreads(__tstate); | |
17207 | if (PyErr_Occurred()) SWIG_fail; | |
17208 | } | |
17209 | { | |
412d302d | 17210 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17211 | } |
17212 | return resultobj; | |
17213 | fail: | |
17214 | return NULL; | |
17215 | } | |
17216 | ||
17217 | ||
c370783e | 17218 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17219 | PyObject *resultobj; |
17220 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17221 | size_t arg2 ; | |
17222 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
17223 | wxToolBarToolBase *result; | |
17224 | PyObject * obj0 = 0 ; | |
17225 | PyObject * obj1 = 0 ; | |
17226 | PyObject * obj2 = 0 ; | |
17227 | char *kwnames[] = { | |
17228 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
17229 | }; | |
17230 | ||
17231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17234 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
17235 | if (PyErr_Occurred()) SWIG_fail; |
17236 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
17237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17238 | { | |
17239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17240 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
17241 | ||
17242 | wxPyEndAllowThreads(__tstate); | |
17243 | if (PyErr_Occurred()) SWIG_fail; | |
17244 | } | |
17245 | { | |
412d302d | 17246 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17247 | } |
17248 | return resultobj; | |
17249 | fail: | |
17250 | return NULL; | |
17251 | } | |
17252 | ||
17253 | ||
c370783e | 17254 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17255 | PyObject *resultobj; |
17256 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17257 | wxControl *arg2 = (wxControl *) 0 ; | |
17258 | wxToolBarToolBase *result; | |
17259 | PyObject * obj0 = 0 ; | |
17260 | PyObject * obj1 = 0 ; | |
17261 | char *kwnames[] = { | |
17262 | (char *) "self",(char *) "control", NULL | |
17263 | }; | |
17264 | ||
17265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
17266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17268 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
17269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17270 | { | |
17271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17272 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
17273 | ||
17274 | wxPyEndAllowThreads(__tstate); | |
17275 | if (PyErr_Occurred()) SWIG_fail; | |
17276 | } | |
17277 | { | |
412d302d | 17278 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17279 | } |
17280 | return resultobj; | |
17281 | fail: | |
17282 | return NULL; | |
17283 | } | |
17284 | ||
17285 | ||
c370783e | 17286 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17287 | PyObject *resultobj; |
17288 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17289 | size_t arg2 ; | |
17290 | wxControl *arg3 = (wxControl *) 0 ; | |
17291 | wxToolBarToolBase *result; | |
17292 | PyObject * obj0 = 0 ; | |
17293 | PyObject * obj1 = 0 ; | |
17294 | PyObject * obj2 = 0 ; | |
17295 | char *kwnames[] = { | |
17296 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17297 | }; | |
17298 | ||
17299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17302 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
17303 | if (PyErr_Occurred()) SWIG_fail; |
17304 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
17305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17306 | { | |
17307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17308 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17309 | ||
17310 | wxPyEndAllowThreads(__tstate); | |
17311 | if (PyErr_Occurred()) SWIG_fail; | |
17312 | } | |
17313 | { | |
412d302d | 17314 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17315 | } |
17316 | return resultobj; | |
17317 | fail: | |
17318 | return NULL; | |
17319 | } | |
17320 | ||
17321 | ||
c370783e | 17322 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17323 | PyObject *resultobj; |
17324 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17325 | int arg2 ; | |
17326 | wxControl *result; | |
17327 | PyObject * obj0 = 0 ; | |
17328 | PyObject * obj1 = 0 ; | |
17329 | char *kwnames[] = { | |
17330 | (char *) "self",(char *) "id", NULL | |
17331 | }; | |
17332 | ||
17333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
17334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17336 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17337 | if (PyErr_Occurred()) SWIG_fail; |
17338 | { | |
17339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17340 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17341 | ||
17342 | wxPyEndAllowThreads(__tstate); | |
17343 | if (PyErr_Occurred()) SWIG_fail; | |
17344 | } | |
17345 | { | |
412d302d | 17346 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17347 | } |
17348 | return resultobj; | |
17349 | fail: | |
17350 | return NULL; | |
17351 | } | |
17352 | ||
17353 | ||
c370783e | 17354 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17355 | PyObject *resultobj; |
17356 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17357 | wxToolBarToolBase *result; | |
17358 | PyObject * obj0 = 0 ; | |
17359 | char *kwnames[] = { | |
17360 | (char *) "self", NULL | |
17361 | }; | |
17362 | ||
17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
17364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17366 | { | |
17367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17368 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17369 | ||
17370 | wxPyEndAllowThreads(__tstate); | |
17371 | if (PyErr_Occurred()) SWIG_fail; | |
17372 | } | |
17373 | { | |
412d302d | 17374 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17375 | } |
17376 | return resultobj; | |
17377 | fail: | |
17378 | return NULL; | |
17379 | } | |
17380 | ||
17381 | ||
c370783e | 17382 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17383 | PyObject *resultobj; |
17384 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17385 | size_t arg2 ; | |
17386 | wxToolBarToolBase *result; | |
17387 | PyObject * obj0 = 0 ; | |
17388 | PyObject * obj1 = 0 ; | |
17389 | char *kwnames[] = { | |
17390 | (char *) "self",(char *) "pos", NULL | |
17391 | }; | |
17392 | ||
17393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
17394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17396 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
17397 | if (PyErr_Occurred()) SWIG_fail; |
17398 | { | |
17399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17400 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
17401 | ||
17402 | wxPyEndAllowThreads(__tstate); | |
17403 | if (PyErr_Occurred()) SWIG_fail; | |
17404 | } | |
17405 | { | |
412d302d | 17406 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17407 | } |
17408 | return resultobj; | |
17409 | fail: | |
17410 | return NULL; | |
17411 | } | |
17412 | ||
17413 | ||
c370783e | 17414 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17415 | PyObject *resultobj; |
17416 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17417 | int arg2 ; | |
17418 | wxToolBarToolBase *result; | |
17419 | PyObject * obj0 = 0 ; | |
17420 | PyObject * obj1 = 0 ; | |
17421 | char *kwnames[] = { | |
17422 | (char *) "self",(char *) "id", NULL | |
17423 | }; | |
17424 | ||
17425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
17426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17428 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17429 | if (PyErr_Occurred()) SWIG_fail; |
17430 | { | |
17431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17432 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
17433 | ||
17434 | wxPyEndAllowThreads(__tstate); | |
17435 | if (PyErr_Occurred()) SWIG_fail; | |
17436 | } | |
17437 | { | |
412d302d | 17438 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17439 | } |
17440 | return resultobj; | |
17441 | fail: | |
17442 | return NULL; | |
17443 | } | |
17444 | ||
17445 | ||
c370783e | 17446 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17447 | PyObject *resultobj; |
17448 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17449 | size_t arg2 ; | |
17450 | bool result; | |
17451 | PyObject * obj0 = 0 ; | |
17452 | PyObject * obj1 = 0 ; | |
17453 | char *kwnames[] = { | |
17454 | (char *) "self",(char *) "pos", NULL | |
17455 | }; | |
17456 | ||
17457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
17458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17460 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
17461 | if (PyErr_Occurred()) SWIG_fail; |
17462 | { | |
17463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17464 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
17465 | ||
17466 | wxPyEndAllowThreads(__tstate); | |
17467 | if (PyErr_Occurred()) SWIG_fail; | |
17468 | } | |
17469 | { | |
17470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17471 | } | |
17472 | return resultobj; | |
17473 | fail: | |
17474 | return NULL; | |
17475 | } | |
17476 | ||
17477 | ||
c370783e | 17478 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17479 | PyObject *resultobj; |
17480 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17481 | int arg2 ; | |
17482 | bool result; | |
17483 | PyObject * obj0 = 0 ; | |
17484 | PyObject * obj1 = 0 ; | |
17485 | char *kwnames[] = { | |
17486 | (char *) "self",(char *) "id", NULL | |
17487 | }; | |
17488 | ||
17489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
17490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17492 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17493 | if (PyErr_Occurred()) SWIG_fail; |
17494 | { | |
17495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17496 | result = (bool)(arg1)->DeleteTool(arg2); | |
17497 | ||
17498 | wxPyEndAllowThreads(__tstate); | |
17499 | if (PyErr_Occurred()) SWIG_fail; | |
17500 | } | |
17501 | { | |
17502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17503 | } | |
17504 | return resultobj; | |
17505 | fail: | |
17506 | return NULL; | |
17507 | } | |
17508 | ||
17509 | ||
c370783e | 17510 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17511 | PyObject *resultobj; |
17512 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17513 | PyObject * obj0 = 0 ; | |
17514 | char *kwnames[] = { | |
17515 | (char *) "self", NULL | |
17516 | }; | |
17517 | ||
17518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
17519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17521 | { | |
17522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17523 | (arg1)->ClearTools(); | |
17524 | ||
17525 | wxPyEndAllowThreads(__tstate); | |
17526 | if (PyErr_Occurred()) SWIG_fail; | |
17527 | } | |
17528 | Py_INCREF(Py_None); resultobj = Py_None; | |
17529 | return resultobj; | |
17530 | fail: | |
17531 | return NULL; | |
17532 | } | |
17533 | ||
17534 | ||
c370783e | 17535 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17536 | PyObject *resultobj; |
17537 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17538 | bool result; | |
17539 | PyObject * obj0 = 0 ; | |
17540 | char *kwnames[] = { | |
17541 | (char *) "self", NULL | |
17542 | }; | |
17543 | ||
17544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
17545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17547 | { | |
17548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17549 | result = (bool)(arg1)->Realize(); | |
17550 | ||
17551 | wxPyEndAllowThreads(__tstate); | |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
17553 | } | |
17554 | { | |
17555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17556 | } | |
17557 | return resultobj; | |
17558 | fail: | |
17559 | return NULL; | |
17560 | } | |
17561 | ||
17562 | ||
c370783e | 17563 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17564 | PyObject *resultobj; |
17565 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17566 | int arg2 ; | |
17567 | bool arg3 ; | |
17568 | PyObject * obj0 = 0 ; | |
17569 | PyObject * obj1 = 0 ; | |
17570 | PyObject * obj2 = 0 ; | |
17571 | char *kwnames[] = { | |
17572 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
17573 | }; | |
17574 | ||
17575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17578 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 17579 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17580 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
17581 | if (PyErr_Occurred()) SWIG_fail; |
17582 | { | |
17583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17584 | (arg1)->EnableTool(arg2,arg3); | |
17585 | ||
17586 | wxPyEndAllowThreads(__tstate); | |
17587 | if (PyErr_Occurred()) SWIG_fail; | |
17588 | } | |
17589 | Py_INCREF(Py_None); resultobj = Py_None; | |
17590 | return resultobj; | |
17591 | fail: | |
17592 | return NULL; | |
17593 | } | |
17594 | ||
17595 | ||
c370783e | 17596 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17597 | PyObject *resultobj; |
17598 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17599 | int arg2 ; | |
17600 | bool arg3 ; | |
17601 | PyObject * obj0 = 0 ; | |
17602 | PyObject * obj1 = 0 ; | |
17603 | PyObject * obj2 = 0 ; | |
17604 | char *kwnames[] = { | |
17605 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17606 | }; | |
17607 | ||
17608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17611 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 17612 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17613 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
17614 | if (PyErr_Occurred()) SWIG_fail; |
17615 | { | |
17616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17617 | (arg1)->ToggleTool(arg2,arg3); | |
17618 | ||
17619 | wxPyEndAllowThreads(__tstate); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | } | |
17622 | Py_INCREF(Py_None); resultobj = Py_None; | |
17623 | return resultobj; | |
17624 | fail: | |
17625 | return NULL; | |
17626 | } | |
17627 | ||
17628 | ||
c370783e | 17629 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17630 | PyObject *resultobj; |
17631 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17632 | int arg2 ; | |
17633 | bool arg3 ; | |
17634 | PyObject * obj0 = 0 ; | |
17635 | PyObject * obj1 = 0 ; | |
17636 | PyObject * obj2 = 0 ; | |
17637 | char *kwnames[] = { | |
17638 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17639 | }; | |
17640 | ||
17641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17644 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 17645 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17646 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
17647 | if (PyErr_Occurred()) SWIG_fail; |
17648 | { | |
17649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17650 | (arg1)->SetToggle(arg2,arg3); | |
17651 | ||
17652 | wxPyEndAllowThreads(__tstate); | |
17653 | if (PyErr_Occurred()) SWIG_fail; | |
17654 | } | |
17655 | Py_INCREF(Py_None); resultobj = Py_None; | |
17656 | return resultobj; | |
17657 | fail: | |
17658 | return NULL; | |
17659 | } | |
17660 | ||
17661 | ||
c370783e | 17662 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17663 | PyObject *resultobj; |
17664 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17665 | int arg2 ; | |
17666 | PyObject *result; | |
17667 | PyObject * obj0 = 0 ; | |
17668 | PyObject * obj1 = 0 ; | |
17669 | char *kwnames[] = { | |
17670 | (char *) "self",(char *) "id", NULL | |
17671 | }; | |
17672 | ||
17673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
17674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17676 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17677 | if (PyErr_Occurred()) SWIG_fail; |
17678 | { | |
17679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17680 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
17681 | ||
17682 | wxPyEndAllowThreads(__tstate); | |
17683 | if (PyErr_Occurred()) SWIG_fail; | |
17684 | } | |
17685 | resultobj = result; | |
17686 | return resultobj; | |
17687 | fail: | |
17688 | return NULL; | |
17689 | } | |
17690 | ||
17691 | ||
c370783e | 17692 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17693 | PyObject *resultobj; |
17694 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17695 | int arg2 ; | |
17696 | PyObject *arg3 = (PyObject *) 0 ; | |
17697 | PyObject * obj0 = 0 ; | |
17698 | PyObject * obj1 = 0 ; | |
17699 | PyObject * obj2 = 0 ; | |
17700 | char *kwnames[] = { | |
17701 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
17702 | }; | |
17703 | ||
17704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17707 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17708 | if (PyErr_Occurred()) SWIG_fail; |
17709 | arg3 = obj2; | |
17710 | { | |
17711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17712 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
17713 | ||
17714 | wxPyEndAllowThreads(__tstate); | |
17715 | if (PyErr_Occurred()) SWIG_fail; | |
17716 | } | |
17717 | Py_INCREF(Py_None); resultobj = Py_None; | |
17718 | return resultobj; | |
17719 | fail: | |
17720 | return NULL; | |
17721 | } | |
17722 | ||
17723 | ||
c370783e | 17724 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17725 | PyObject *resultobj; |
17726 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17727 | int arg2 ; | |
17728 | int result; | |
17729 | PyObject * obj0 = 0 ; | |
17730 | PyObject * obj1 = 0 ; | |
17731 | char *kwnames[] = { | |
17732 | (char *) "self",(char *) "id", NULL | |
17733 | }; | |
17734 | ||
17735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
17736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17738 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17739 | if (PyErr_Occurred()) SWIG_fail; |
17740 | { | |
17741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17742 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
17743 | ||
17744 | wxPyEndAllowThreads(__tstate); | |
17745 | if (PyErr_Occurred()) SWIG_fail; | |
17746 | } | |
c370783e | 17747 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17748 | return resultobj; |
17749 | fail: | |
17750 | return NULL; | |
17751 | } | |
17752 | ||
17753 | ||
c370783e | 17754 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17755 | PyObject *resultobj; |
17756 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17757 | int arg2 ; | |
17758 | bool result; | |
17759 | PyObject * obj0 = 0 ; | |
17760 | PyObject * obj1 = 0 ; | |
17761 | char *kwnames[] = { | |
17762 | (char *) "self",(char *) "id", NULL | |
17763 | }; | |
17764 | ||
17765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
17766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17768 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17769 | if (PyErr_Occurred()) SWIG_fail; |
17770 | { | |
17771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17772 | result = (bool)(arg1)->GetToolState(arg2); | |
17773 | ||
17774 | wxPyEndAllowThreads(__tstate); | |
17775 | if (PyErr_Occurred()) SWIG_fail; | |
17776 | } | |
17777 | { | |
17778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17779 | } | |
17780 | return resultobj; | |
17781 | fail: | |
17782 | return NULL; | |
17783 | } | |
17784 | ||
17785 | ||
c370783e | 17786 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17787 | PyObject *resultobj; |
17788 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17789 | int arg2 ; | |
17790 | bool result; | |
17791 | PyObject * obj0 = 0 ; | |
17792 | PyObject * obj1 = 0 ; | |
17793 | char *kwnames[] = { | |
17794 | (char *) "self",(char *) "id", NULL | |
17795 | }; | |
17796 | ||
17797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
17798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17800 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17801 | if (PyErr_Occurred()) SWIG_fail; |
17802 | { | |
17803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17804 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
17805 | ||
17806 | wxPyEndAllowThreads(__tstate); | |
17807 | if (PyErr_Occurred()) SWIG_fail; | |
17808 | } | |
17809 | { | |
17810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17811 | } | |
17812 | return resultobj; | |
17813 | fail: | |
17814 | return NULL; | |
17815 | } | |
17816 | ||
17817 | ||
c370783e | 17818 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17819 | PyObject *resultobj; |
17820 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17821 | int arg2 ; | |
17822 | wxString *arg3 = 0 ; | |
17823 | bool temp3 = False ; | |
17824 | PyObject * obj0 = 0 ; | |
17825 | PyObject * obj1 = 0 ; | |
17826 | PyObject * obj2 = 0 ; | |
17827 | char *kwnames[] = { | |
17828 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17829 | }; | |
17830 | ||
17831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17834 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17835 | if (PyErr_Occurred()) SWIG_fail; |
17836 | { | |
17837 | arg3 = wxString_in_helper(obj2); | |
17838 | if (arg3 == NULL) SWIG_fail; | |
17839 | temp3 = True; | |
17840 | } | |
17841 | { | |
17842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17843 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
17844 | ||
17845 | wxPyEndAllowThreads(__tstate); | |
17846 | if (PyErr_Occurred()) SWIG_fail; | |
17847 | } | |
17848 | Py_INCREF(Py_None); resultobj = Py_None; | |
17849 | { | |
17850 | if (temp3) | |
17851 | delete arg3; | |
17852 | } | |
17853 | return resultobj; | |
17854 | fail: | |
17855 | { | |
17856 | if (temp3) | |
17857 | delete arg3; | |
17858 | } | |
17859 | return NULL; | |
17860 | } | |
17861 | ||
17862 | ||
c370783e | 17863 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17864 | PyObject *resultobj; |
17865 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17866 | int arg2 ; | |
17867 | wxString result; | |
17868 | PyObject * obj0 = 0 ; | |
17869 | PyObject * obj1 = 0 ; | |
17870 | char *kwnames[] = { | |
17871 | (char *) "self",(char *) "id", NULL | |
17872 | }; | |
17873 | ||
17874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
17875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17877 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17878 | if (PyErr_Occurred()) SWIG_fail; |
17879 | { | |
17880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17881 | result = (arg1)->GetToolShortHelp(arg2); | |
17882 | ||
17883 | wxPyEndAllowThreads(__tstate); | |
17884 | if (PyErr_Occurred()) SWIG_fail; | |
17885 | } | |
17886 | { | |
17887 | #if wxUSE_UNICODE | |
17888 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17889 | #else | |
17890 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17891 | #endif | |
17892 | } | |
17893 | return resultobj; | |
17894 | fail: | |
17895 | return NULL; | |
17896 | } | |
17897 | ||
17898 | ||
c370783e | 17899 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17900 | PyObject *resultobj; |
17901 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17902 | int arg2 ; | |
17903 | wxString *arg3 = 0 ; | |
17904 | bool temp3 = False ; | |
17905 | PyObject * obj0 = 0 ; | |
17906 | PyObject * obj1 = 0 ; | |
17907 | PyObject * obj2 = 0 ; | |
17908 | char *kwnames[] = { | |
17909 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17910 | }; | |
17911 | ||
17912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17915 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17916 | if (PyErr_Occurred()) SWIG_fail; |
17917 | { | |
17918 | arg3 = wxString_in_helper(obj2); | |
17919 | if (arg3 == NULL) SWIG_fail; | |
17920 | temp3 = True; | |
17921 | } | |
17922 | { | |
17923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17924 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17925 | ||
17926 | wxPyEndAllowThreads(__tstate); | |
17927 | if (PyErr_Occurred()) SWIG_fail; | |
17928 | } | |
17929 | Py_INCREF(Py_None); resultobj = Py_None; | |
17930 | { | |
17931 | if (temp3) | |
17932 | delete arg3; | |
17933 | } | |
17934 | return resultobj; | |
17935 | fail: | |
17936 | { | |
17937 | if (temp3) | |
17938 | delete arg3; | |
17939 | } | |
17940 | return NULL; | |
17941 | } | |
17942 | ||
17943 | ||
c370783e | 17944 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17945 | PyObject *resultobj; |
17946 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17947 | int arg2 ; | |
17948 | wxString result; | |
17949 | PyObject * obj0 = 0 ; | |
17950 | PyObject * obj1 = 0 ; | |
17951 | char *kwnames[] = { | |
17952 | (char *) "self",(char *) "id", NULL | |
17953 | }; | |
17954 | ||
17955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
17956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17958 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17959 | if (PyErr_Occurred()) SWIG_fail; |
17960 | { | |
17961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17962 | result = (arg1)->GetToolLongHelp(arg2); | |
17963 | ||
17964 | wxPyEndAllowThreads(__tstate); | |
17965 | if (PyErr_Occurred()) SWIG_fail; | |
17966 | } | |
17967 | { | |
17968 | #if wxUSE_UNICODE | |
17969 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17970 | #else | |
17971 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17972 | #endif | |
17973 | } | |
17974 | return resultobj; | |
17975 | fail: | |
17976 | return NULL; | |
17977 | } | |
17978 | ||
17979 | ||
c370783e | 17980 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17981 | PyObject *resultobj; |
17982 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17983 | int arg2 ; | |
17984 | int arg3 ; | |
17985 | PyObject * obj0 = 0 ; | |
17986 | PyObject * obj1 = 0 ; | |
17987 | PyObject * obj2 = 0 ; | |
17988 | char *kwnames[] = { | |
17989 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17990 | }; | |
17991 | ||
17992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17995 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 17996 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17997 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17998 | if (PyErr_Occurred()) SWIG_fail; |
17999 | { | |
18000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18001 | (arg1)->SetMargins(arg2,arg3); | |
18002 | ||
18003 | wxPyEndAllowThreads(__tstate); | |
18004 | if (PyErr_Occurred()) SWIG_fail; | |
18005 | } | |
18006 | Py_INCREF(Py_None); resultobj = Py_None; | |
18007 | return resultobj; | |
18008 | fail: | |
18009 | return NULL; | |
18010 | } | |
18011 | ||
18012 | ||
c370783e | 18013 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18014 | PyObject *resultobj; |
18015 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18016 | wxSize *arg2 = 0 ; | |
18017 | wxSize temp2 ; | |
18018 | PyObject * obj0 = 0 ; | |
18019 | PyObject * obj1 = 0 ; | |
18020 | char *kwnames[] = { | |
18021 | (char *) "self",(char *) "size", NULL | |
18022 | }; | |
18023 | ||
18024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
18025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18027 | { | |
18028 | arg2 = &temp2; | |
18029 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18030 | } | |
18031 | { | |
18032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18033 | (arg1)->SetMargins((wxSize const &)*arg2); | |
18034 | ||
18035 | wxPyEndAllowThreads(__tstate); | |
18036 | if (PyErr_Occurred()) SWIG_fail; | |
18037 | } | |
18038 | Py_INCREF(Py_None); resultobj = Py_None; | |
18039 | return resultobj; | |
18040 | fail: | |
18041 | return NULL; | |
18042 | } | |
18043 | ||
18044 | ||
c370783e | 18045 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18046 | PyObject *resultobj; |
18047 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18048 | int arg2 ; | |
18049 | PyObject * obj0 = 0 ; | |
18050 | PyObject * obj1 = 0 ; | |
18051 | char *kwnames[] = { | |
18052 | (char *) "self",(char *) "packing", NULL | |
18053 | }; | |
18054 | ||
18055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
18056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18058 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18059 | if (PyErr_Occurred()) SWIG_fail; |
18060 | { | |
18061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18062 | (arg1)->SetToolPacking(arg2); | |
18063 | ||
18064 | wxPyEndAllowThreads(__tstate); | |
18065 | if (PyErr_Occurred()) SWIG_fail; | |
18066 | } | |
18067 | Py_INCREF(Py_None); resultobj = Py_None; | |
18068 | return resultobj; | |
18069 | fail: | |
18070 | return NULL; | |
18071 | } | |
18072 | ||
18073 | ||
c370783e | 18074 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18075 | PyObject *resultobj; |
18076 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18077 | int arg2 ; | |
18078 | PyObject * obj0 = 0 ; | |
18079 | PyObject * obj1 = 0 ; | |
18080 | char *kwnames[] = { | |
18081 | (char *) "self",(char *) "separation", NULL | |
18082 | }; | |
18083 | ||
18084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
18085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18087 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18088 | if (PyErr_Occurred()) SWIG_fail; |
18089 | { | |
18090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18091 | (arg1)->SetToolSeparation(arg2); | |
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 | ||
c370783e | 18103 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18104 | PyObject *resultobj; |
18105 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18106 | wxSize result; | |
18107 | PyObject * obj0 = 0 ; | |
18108 | char *kwnames[] = { | |
18109 | (char *) "self", NULL | |
18110 | }; | |
18111 | ||
18112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",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 = (arg1)->GetToolMargins(); | |
18118 | ||
18119 | wxPyEndAllowThreads(__tstate); | |
18120 | if (PyErr_Occurred()) SWIG_fail; | |
18121 | } | |
18122 | { | |
18123 | wxSize * resultptr; | |
18124 | resultptr = new wxSize((wxSize &) result); | |
18125 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18126 | } | |
18127 | return resultobj; | |
18128 | fail: | |
18129 | return NULL; | |
18130 | } | |
18131 | ||
18132 | ||
c370783e | 18133 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18134 | PyObject *resultobj; |
18135 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18136 | wxSize result; | |
18137 | PyObject * obj0 = 0 ; | |
18138 | char *kwnames[] = { | |
18139 | (char *) "self", NULL | |
18140 | }; | |
18141 | ||
18142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
18143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18145 | { | |
18146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18147 | result = (arg1)->GetMargins(); | |
18148 | ||
18149 | wxPyEndAllowThreads(__tstate); | |
18150 | if (PyErr_Occurred()) SWIG_fail; | |
18151 | } | |
18152 | { | |
18153 | wxSize * resultptr; | |
18154 | resultptr = new wxSize((wxSize &) result); | |
18155 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18156 | } | |
18157 | return resultobj; | |
18158 | fail: | |
18159 | return NULL; | |
18160 | } | |
18161 | ||
18162 | ||
c370783e | 18163 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18164 | PyObject *resultobj; |
18165 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18166 | int result; | |
18167 | PyObject * obj0 = 0 ; | |
18168 | char *kwnames[] = { | |
18169 | (char *) "self", NULL | |
18170 | }; | |
18171 | ||
18172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
18173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18175 | { | |
18176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18177 | result = (int)(arg1)->GetToolPacking(); | |
18178 | ||
18179 | wxPyEndAllowThreads(__tstate); | |
18180 | if (PyErr_Occurred()) SWIG_fail; | |
18181 | } | |
c370783e | 18182 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18183 | return resultobj; |
18184 | fail: | |
18185 | return NULL; | |
18186 | } | |
18187 | ||
18188 | ||
c370783e | 18189 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18190 | PyObject *resultobj; |
18191 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18192 | int result; | |
18193 | PyObject * obj0 = 0 ; | |
18194 | char *kwnames[] = { | |
18195 | (char *) "self", NULL | |
18196 | }; | |
18197 | ||
18198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
18199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18201 | { | |
18202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18203 | result = (int)(arg1)->GetToolSeparation(); | |
18204 | ||
18205 | wxPyEndAllowThreads(__tstate); | |
18206 | if (PyErr_Occurred()) SWIG_fail; | |
18207 | } | |
c370783e | 18208 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18209 | return resultobj; |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
c370783e | 18215 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18216 | PyObject *resultobj; |
18217 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18218 | int arg2 ; | |
18219 | PyObject * obj0 = 0 ; | |
18220 | PyObject * obj1 = 0 ; | |
18221 | char *kwnames[] = { | |
18222 | (char *) "self",(char *) "nRows", NULL | |
18223 | }; | |
18224 | ||
18225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
18226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18228 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18229 | if (PyErr_Occurred()) SWIG_fail; |
18230 | { | |
18231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18232 | (arg1)->SetRows(arg2); | |
18233 | ||
18234 | wxPyEndAllowThreads(__tstate); | |
18235 | if (PyErr_Occurred()) SWIG_fail; | |
18236 | } | |
18237 | Py_INCREF(Py_None); resultobj = Py_None; | |
18238 | return resultobj; | |
18239 | fail: | |
18240 | return NULL; | |
18241 | } | |
18242 | ||
18243 | ||
c370783e | 18244 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18245 | PyObject *resultobj; |
18246 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18247 | int arg2 ; | |
18248 | int arg3 ; | |
18249 | PyObject * obj0 = 0 ; | |
18250 | PyObject * obj1 = 0 ; | |
18251 | PyObject * obj2 = 0 ; | |
18252 | char *kwnames[] = { | |
18253 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
18254 | }; | |
18255 | ||
18256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18259 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18260 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18261 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18262 | if (PyErr_Occurred()) SWIG_fail; |
18263 | { | |
18264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18265 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
18266 | ||
18267 | wxPyEndAllowThreads(__tstate); | |
18268 | if (PyErr_Occurred()) SWIG_fail; | |
18269 | } | |
18270 | Py_INCREF(Py_None); resultobj = Py_None; | |
18271 | return resultobj; | |
18272 | fail: | |
18273 | return NULL; | |
18274 | } | |
18275 | ||
18276 | ||
c370783e | 18277 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18278 | PyObject *resultobj; |
18279 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18280 | int result; | |
18281 | PyObject * obj0 = 0 ; | |
18282 | char *kwnames[] = { | |
18283 | (char *) "self", NULL | |
18284 | }; | |
18285 | ||
18286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
18287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18289 | { | |
18290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18291 | result = (int)(arg1)->GetMaxRows(); | |
18292 | ||
18293 | wxPyEndAllowThreads(__tstate); | |
18294 | if (PyErr_Occurred()) SWIG_fail; | |
18295 | } | |
c370783e | 18296 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18297 | return resultobj; |
18298 | fail: | |
18299 | return NULL; | |
18300 | } | |
18301 | ||
18302 | ||
c370783e | 18303 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18304 | PyObject *resultobj; |
18305 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18306 | int result; | |
18307 | PyObject * obj0 = 0 ; | |
18308 | char *kwnames[] = { | |
18309 | (char *) "self", NULL | |
18310 | }; | |
18311 | ||
18312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
18313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18315 | { | |
18316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18317 | result = (int)(arg1)->GetMaxCols(); | |
18318 | ||
18319 | wxPyEndAllowThreads(__tstate); | |
18320 | if (PyErr_Occurred()) SWIG_fail; | |
18321 | } | |
c370783e | 18322 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18323 | return resultobj; |
18324 | fail: | |
18325 | return NULL; | |
18326 | } | |
18327 | ||
18328 | ||
c370783e | 18329 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18330 | PyObject *resultobj; |
18331 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18332 | wxSize *arg2 = 0 ; | |
18333 | wxSize temp2 ; | |
18334 | PyObject * obj0 = 0 ; | |
18335 | PyObject * obj1 = 0 ; | |
18336 | char *kwnames[] = { | |
18337 | (char *) "self",(char *) "size", NULL | |
18338 | }; | |
18339 | ||
18340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
18341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18343 | { | |
18344 | arg2 = &temp2; | |
18345 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18346 | } | |
18347 | { | |
18348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18349 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18350 | ||
18351 | wxPyEndAllowThreads(__tstate); | |
18352 | if (PyErr_Occurred()) SWIG_fail; | |
18353 | } | |
18354 | Py_INCREF(Py_None); resultobj = Py_None; | |
18355 | return resultobj; | |
18356 | fail: | |
18357 | return NULL; | |
18358 | } | |
18359 | ||
18360 | ||
c370783e | 18361 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18362 | PyObject *resultobj; |
18363 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18364 | wxSize result; | |
18365 | PyObject * obj0 = 0 ; | |
18366 | char *kwnames[] = { | |
18367 | (char *) "self", NULL | |
18368 | }; | |
18369 | ||
18370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
18371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18373 | { | |
18374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18375 | result = (arg1)->GetToolBitmapSize(); | |
18376 | ||
18377 | wxPyEndAllowThreads(__tstate); | |
18378 | if (PyErr_Occurred()) SWIG_fail; | |
18379 | } | |
18380 | { | |
18381 | wxSize * resultptr; | |
18382 | resultptr = new wxSize((wxSize &) result); | |
18383 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18384 | } | |
18385 | return resultobj; | |
18386 | fail: | |
18387 | return NULL; | |
18388 | } | |
18389 | ||
18390 | ||
c370783e | 18391 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18392 | PyObject *resultobj; |
18393 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18394 | wxSize result; | |
18395 | PyObject * obj0 = 0 ; | |
18396 | char *kwnames[] = { | |
18397 | (char *) "self", NULL | |
18398 | }; | |
18399 | ||
18400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
18401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18403 | { | |
18404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18405 | result = (arg1)->GetToolSize(); | |
18406 | ||
18407 | wxPyEndAllowThreads(__tstate); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
18409 | } | |
18410 | { | |
18411 | wxSize * resultptr; | |
18412 | resultptr = new wxSize((wxSize &) result); | |
18413 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18414 | } | |
18415 | return resultobj; | |
18416 | fail: | |
18417 | return NULL; | |
18418 | } | |
18419 | ||
18420 | ||
c370783e | 18421 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18422 | PyObject *resultobj; |
18423 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18424 | int arg2 ; | |
18425 | int arg3 ; | |
18426 | wxToolBarToolBase *result; | |
18427 | PyObject * obj0 = 0 ; | |
18428 | PyObject * obj1 = 0 ; | |
18429 | PyObject * obj2 = 0 ; | |
18430 | char *kwnames[] = { | |
18431 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18432 | }; | |
18433 | ||
18434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18437 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18438 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18439 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18440 | if (PyErr_Occurred()) SWIG_fail; |
18441 | { | |
18442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18443 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18444 | ||
18445 | wxPyEndAllowThreads(__tstate); | |
18446 | if (PyErr_Occurred()) SWIG_fail; | |
18447 | } | |
18448 | { | |
412d302d | 18449 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18450 | } |
18451 | return resultobj; | |
18452 | fail: | |
18453 | return NULL; | |
18454 | } | |
18455 | ||
18456 | ||
c370783e | 18457 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18458 | PyObject *resultobj; |
18459 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18460 | int arg2 ; | |
18461 | wxToolBarToolBase *result; | |
18462 | PyObject * obj0 = 0 ; | |
18463 | PyObject * obj1 = 0 ; | |
18464 | char *kwnames[] = { | |
18465 | (char *) "self",(char *) "toolid", NULL | |
18466 | }; | |
18467 | ||
18468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
18469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18471 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18472 | if (PyErr_Occurred()) SWIG_fail; |
18473 | { | |
18474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18475 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
18476 | ||
18477 | wxPyEndAllowThreads(__tstate); | |
18478 | if (PyErr_Occurred()) SWIG_fail; | |
18479 | } | |
18480 | { | |
412d302d | 18481 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18482 | } |
18483 | return resultobj; | |
18484 | fail: | |
18485 | return NULL; | |
18486 | } | |
18487 | ||
18488 | ||
c370783e | 18489 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18490 | PyObject *resultobj; |
18491 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18492 | bool result; | |
18493 | PyObject * obj0 = 0 ; | |
18494 | char *kwnames[] = { | |
18495 | (char *) "self", NULL | |
18496 | }; | |
18497 | ||
18498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
18499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18501 | { | |
18502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18503 | result = (bool)(arg1)->IsVertical(); | |
18504 | ||
18505 | wxPyEndAllowThreads(__tstate); | |
18506 | if (PyErr_Occurred()) SWIG_fail; | |
18507 | } | |
18508 | { | |
18509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18510 | } | |
18511 | return resultobj; | |
18512 | fail: | |
18513 | return NULL; | |
18514 | } | |
18515 | ||
18516 | ||
c370783e | 18517 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18518 | PyObject *obj; |
18519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18520 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
18521 | Py_INCREF(obj); | |
18522 | return Py_BuildValue((char *)""); | |
18523 | } | |
c370783e | 18524 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18525 | PyObject *resultobj; |
18526 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 18527 | int arg2 = (int) -1 ; |
d55e5bfc RD |
18528 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18529 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18530 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18531 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18532 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18533 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
18534 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18535 | wxToolBar *result; | |
18536 | wxPoint temp3 ; | |
18537 | wxSize temp4 ; | |
18538 | bool temp6 = False ; | |
18539 | PyObject * obj0 = 0 ; | |
18540 | PyObject * obj1 = 0 ; | |
18541 | PyObject * obj2 = 0 ; | |
18542 | PyObject * obj3 = 0 ; | |
18543 | PyObject * obj4 = 0 ; | |
18544 | PyObject * obj5 = 0 ; | |
18545 | char *kwnames[] = { | |
18546 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18547 | }; | |
18548 | ||
bfddbb17 | 18549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
18550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 18552 | if (obj1) { |
c370783e | 18553 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
18554 | if (PyErr_Occurred()) SWIG_fail; |
18555 | } | |
d55e5bfc RD |
18556 | if (obj2) { |
18557 | { | |
18558 | arg3 = &temp3; | |
18559 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18560 | } | |
18561 | } | |
18562 | if (obj3) { | |
18563 | { | |
18564 | arg4 = &temp4; | |
18565 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18566 | } | |
18567 | } | |
18568 | if (obj4) { | |
c370783e | 18569 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
18570 | if (PyErr_Occurred()) SWIG_fail; |
18571 | } | |
18572 | if (obj5) { | |
18573 | { | |
18574 | arg6 = wxString_in_helper(obj5); | |
18575 | if (arg6 == NULL) SWIG_fail; | |
18576 | temp6 = True; | |
18577 | } | |
18578 | } | |
18579 | { | |
0439c23b | 18580 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18582 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18583 | ||
18584 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18585 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 18586 | } |
b0f7404b | 18587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d55e5bfc RD |
18588 | { |
18589 | if (temp6) | |
18590 | delete arg6; | |
18591 | } | |
18592 | return resultobj; | |
18593 | fail: | |
18594 | { | |
18595 | if (temp6) | |
18596 | delete arg6; | |
18597 | } | |
18598 | return NULL; | |
18599 | } | |
18600 | ||
18601 | ||
c370783e | 18602 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18603 | PyObject *resultobj; |
18604 | wxToolBar *result; | |
18605 | char *kwnames[] = { | |
18606 | NULL | |
18607 | }; | |
18608 | ||
18609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
18610 | { | |
0439c23b | 18611 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18613 | result = (wxToolBar *)new wxToolBar(); | |
18614 | ||
18615 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18616 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 18617 | } |
b0f7404b | 18618 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d55e5bfc RD |
18619 | return resultobj; |
18620 | fail: | |
18621 | return NULL; | |
18622 | } | |
18623 | ||
18624 | ||
c370783e | 18625 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18626 | PyObject *resultobj; |
18627 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18628 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 18629 | int arg3 = (int) -1 ; |
d55e5bfc RD |
18630 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18631 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18632 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18633 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18634 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18635 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
18636 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18637 | bool result; | |
18638 | wxPoint temp4 ; | |
18639 | wxSize temp5 ; | |
18640 | bool temp7 = False ; | |
18641 | PyObject * obj0 = 0 ; | |
18642 | PyObject * obj1 = 0 ; | |
18643 | PyObject * obj2 = 0 ; | |
18644 | PyObject * obj3 = 0 ; | |
18645 | PyObject * obj4 = 0 ; | |
18646 | PyObject * obj5 = 0 ; | |
18647 | PyObject * obj6 = 0 ; | |
18648 | char *kwnames[] = { | |
18649 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18650 | }; | |
18651 | ||
bfddbb17 | 18652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
18653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18655 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 18657 | if (obj2) { |
c370783e | 18658 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
18659 | if (PyErr_Occurred()) SWIG_fail; |
18660 | } | |
d55e5bfc RD |
18661 | if (obj3) { |
18662 | { | |
18663 | arg4 = &temp4; | |
18664 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18665 | } | |
18666 | } | |
18667 | if (obj4) { | |
18668 | { | |
18669 | arg5 = &temp5; | |
18670 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18671 | } | |
18672 | } | |
18673 | if (obj5) { | |
c370783e | 18674 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
18675 | if (PyErr_Occurred()) SWIG_fail; |
18676 | } | |
18677 | if (obj6) { | |
18678 | { | |
18679 | arg7 = wxString_in_helper(obj6); | |
18680 | if (arg7 == NULL) SWIG_fail; | |
18681 | temp7 = True; | |
18682 | } | |
18683 | } | |
18684 | { | |
18685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18686 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18687 | ||
18688 | wxPyEndAllowThreads(__tstate); | |
18689 | if (PyErr_Occurred()) SWIG_fail; | |
18690 | } | |
18691 | { | |
18692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18693 | } | |
18694 | { | |
18695 | if (temp7) | |
18696 | delete arg7; | |
18697 | } | |
18698 | return resultobj; | |
18699 | fail: | |
18700 | { | |
18701 | if (temp7) | |
18702 | delete arg7; | |
18703 | } | |
18704 | return NULL; | |
18705 | } | |
18706 | ||
18707 | ||
c370783e | 18708 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18709 | PyObject *resultobj; |
18710 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18711 | int arg2 ; | |
18712 | int arg3 ; | |
18713 | wxToolBarToolBase *result; | |
18714 | PyObject * obj0 = 0 ; | |
18715 | PyObject * obj1 = 0 ; | |
18716 | PyObject * obj2 = 0 ; | |
18717 | char *kwnames[] = { | |
18718 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18719 | }; | |
18720 | ||
18721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, | |
18723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18724 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18725 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18726 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18727 | if (PyErr_Occurred()) SWIG_fail; |
18728 | { | |
18729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18730 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18731 | ||
18732 | wxPyEndAllowThreads(__tstate); | |
18733 | if (PyErr_Occurred()) SWIG_fail; | |
18734 | } | |
18735 | { | |
412d302d | 18736 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18737 | } |
18738 | return resultobj; | |
18739 | fail: | |
18740 | return NULL; | |
18741 | } | |
18742 | ||
18743 | ||
c370783e | 18744 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
18745 | PyObject *resultobj; |
18746 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
18747 | wxVisualAttributes result; | |
18748 | PyObject * obj0 = 0 ; | |
18749 | char *kwnames[] = { | |
18750 | (char *) "variant", NULL | |
18751 | }; | |
18752 | ||
18753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
18754 | if (obj0) { | |
c370783e | 18755 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
18756 | if (PyErr_Occurred()) SWIG_fail; |
18757 | } | |
18758 | { | |
0439c23b | 18759 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
18760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18761 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
18762 | ||
18763 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18764 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
18765 | } |
18766 | { | |
18767 | wxVisualAttributes * resultptr; | |
18768 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18769 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18770 | } | |
18771 | return resultobj; | |
18772 | fail: | |
18773 | return NULL; | |
18774 | } | |
18775 | ||
18776 | ||
c370783e | 18777 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18778 | PyObject *obj; |
18779 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18780 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
18781 | Py_INCREF(obj); | |
18782 | return Py_BuildValue((char *)""); | |
18783 | } | |
c370783e | 18784 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
18785 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
18786 | return 1; | |
18787 | } | |
18788 | ||
18789 | ||
18790 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
18791 | PyObject *pyobj; | |
18792 | ||
18793 | { | |
18794 | #if wxUSE_UNICODE | |
18795 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18796 | #else | |
18797 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18798 | #endif | |
18799 | } | |
18800 | return pyobj; | |
18801 | } | |
18802 | ||
18803 | ||
c370783e | 18804 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18805 | PyObject *resultobj; |
18806 | wxColour const &arg1_defvalue = wxNullColour ; | |
18807 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
18808 | wxColour const &arg2_defvalue = wxNullColour ; | |
18809 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
18810 | wxFont const &arg3_defvalue = wxNullFont ; | |
18811 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
18812 | wxListItemAttr *result; | |
18813 | wxColour temp1 ; | |
18814 | wxColour temp2 ; | |
18815 | PyObject * obj0 = 0 ; | |
18816 | PyObject * obj1 = 0 ; | |
18817 | PyObject * obj2 = 0 ; | |
18818 | char *kwnames[] = { | |
18819 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
18820 | }; | |
18821 | ||
18822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18823 | if (obj0) { | |
18824 | { | |
18825 | arg1 = &temp1; | |
18826 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
18827 | } | |
18828 | } | |
18829 | if (obj1) { | |
18830 | { | |
18831 | arg2 = &temp2; | |
18832 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18833 | } | |
18834 | } | |
18835 | if (obj2) { | |
18836 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
18837 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18838 | SWIG_fail; | |
18839 | if (arg3 == NULL) { | |
18840 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18841 | SWIG_fail; | |
18842 | } | |
18843 | } | |
18844 | { | |
18845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18846 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
18847 | ||
18848 | wxPyEndAllowThreads(__tstate); | |
18849 | if (PyErr_Occurred()) SWIG_fail; | |
18850 | } | |
18851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); | |
18852 | return resultobj; | |
18853 | fail: | |
18854 | return NULL; | |
18855 | } | |
18856 | ||
18857 | ||
c370783e | 18858 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18859 | PyObject *resultobj; |
18860 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18861 | wxColour *arg2 = 0 ; | |
18862 | wxColour temp2 ; | |
18863 | PyObject * obj0 = 0 ; | |
18864 | PyObject * obj1 = 0 ; | |
18865 | char *kwnames[] = { | |
18866 | (char *) "self",(char *) "colText", NULL | |
18867 | }; | |
18868 | ||
18869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18872 | { | |
18873 | arg2 = &temp2; | |
18874 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18875 | } | |
18876 | { | |
18877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18878 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18879 | ||
18880 | wxPyEndAllowThreads(__tstate); | |
18881 | if (PyErr_Occurred()) SWIG_fail; | |
18882 | } | |
18883 | Py_INCREF(Py_None); resultobj = Py_None; | |
18884 | return resultobj; | |
18885 | fail: | |
18886 | return NULL; | |
18887 | } | |
18888 | ||
18889 | ||
c370783e | 18890 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18891 | PyObject *resultobj; |
18892 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18893 | wxColour *arg2 = 0 ; | |
18894 | wxColour temp2 ; | |
18895 | PyObject * obj0 = 0 ; | |
18896 | PyObject * obj1 = 0 ; | |
18897 | char *kwnames[] = { | |
18898 | (char *) "self",(char *) "colBack", NULL | |
18899 | }; | |
18900 | ||
18901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18904 | { | |
18905 | arg2 = &temp2; | |
18906 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18907 | } | |
18908 | { | |
18909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18910 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18911 | ||
18912 | wxPyEndAllowThreads(__tstate); | |
18913 | if (PyErr_Occurred()) SWIG_fail; | |
18914 | } | |
18915 | Py_INCREF(Py_None); resultobj = Py_None; | |
18916 | return resultobj; | |
18917 | fail: | |
18918 | return NULL; | |
18919 | } | |
18920 | ||
18921 | ||
c370783e | 18922 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18923 | PyObject *resultobj; |
18924 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18925 | wxFont *arg2 = 0 ; | |
18926 | PyObject * obj0 = 0 ; | |
18927 | PyObject * obj1 = 0 ; | |
18928 | char *kwnames[] = { | |
18929 | (char *) "self",(char *) "font", NULL | |
18930 | }; | |
18931 | ||
18932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18935 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18936 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18937 | SWIG_fail; | |
18938 | if (arg2 == NULL) { | |
18939 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18940 | SWIG_fail; | |
18941 | } | |
18942 | { | |
18943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18944 | (arg1)->SetFont((wxFont const &)*arg2); | |
18945 | ||
18946 | wxPyEndAllowThreads(__tstate); | |
18947 | if (PyErr_Occurred()) SWIG_fail; | |
18948 | } | |
18949 | Py_INCREF(Py_None); resultobj = Py_None; | |
18950 | return resultobj; | |
18951 | fail: | |
18952 | return NULL; | |
18953 | } | |
18954 | ||
18955 | ||
c370783e | 18956 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18957 | PyObject *resultobj; |
18958 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18959 | bool result; | |
18960 | PyObject * obj0 = 0 ; | |
18961 | char *kwnames[] = { | |
18962 | (char *) "self", NULL | |
18963 | }; | |
18964 | ||
18965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
18966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18968 | { | |
18969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18970 | result = (bool)(arg1)->HasTextColour(); | |
18971 | ||
18972 | wxPyEndAllowThreads(__tstate); | |
18973 | if (PyErr_Occurred()) SWIG_fail; | |
18974 | } | |
18975 | { | |
18976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18977 | } | |
18978 | return resultobj; | |
18979 | fail: | |
18980 | return NULL; | |
18981 | } | |
18982 | ||
18983 | ||
c370783e | 18984 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18985 | PyObject *resultobj; |
18986 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18987 | bool result; | |
18988 | PyObject * obj0 = 0 ; | |
18989 | char *kwnames[] = { | |
18990 | (char *) "self", NULL | |
18991 | }; | |
18992 | ||
18993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
18994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18996 | { | |
18997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18998 | result = (bool)(arg1)->HasBackgroundColour(); | |
18999 | ||
19000 | wxPyEndAllowThreads(__tstate); | |
19001 | if (PyErr_Occurred()) SWIG_fail; | |
19002 | } | |
19003 | { | |
19004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19005 | } | |
19006 | return resultobj; | |
19007 | fail: | |
19008 | return NULL; | |
19009 | } | |
19010 | ||
19011 | ||
c370783e | 19012 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19013 | PyObject *resultobj; |
19014 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19015 | bool result; | |
19016 | PyObject * obj0 = 0 ; | |
19017 | char *kwnames[] = { | |
19018 | (char *) "self", NULL | |
19019 | }; | |
19020 | ||
19021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
19022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19024 | { | |
19025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19026 | result = (bool)(arg1)->HasFont(); | |
19027 | ||
19028 | wxPyEndAllowThreads(__tstate); | |
19029 | if (PyErr_Occurred()) SWIG_fail; | |
19030 | } | |
19031 | { | |
19032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19033 | } | |
19034 | return resultobj; | |
19035 | fail: | |
19036 | return NULL; | |
19037 | } | |
19038 | ||
19039 | ||
c370783e | 19040 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19041 | PyObject *resultobj; |
19042 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19043 | wxColour result; | |
19044 | PyObject * obj0 = 0 ; | |
19045 | char *kwnames[] = { | |
19046 | (char *) "self", NULL | |
19047 | }; | |
19048 | ||
19049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
19050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19052 | { | |
19053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19054 | result = (arg1)->GetTextColour(); | |
19055 | ||
19056 | wxPyEndAllowThreads(__tstate); | |
19057 | if (PyErr_Occurred()) SWIG_fail; | |
19058 | } | |
19059 | { | |
19060 | wxColour * resultptr; | |
19061 | resultptr = new wxColour((wxColour &) result); | |
19062 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19063 | } | |
19064 | return resultobj; | |
19065 | fail: | |
19066 | return NULL; | |
19067 | } | |
19068 | ||
19069 | ||
c370783e | 19070 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19071 | PyObject *resultobj; |
19072 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19073 | wxColour result; | |
19074 | PyObject * obj0 = 0 ; | |
19075 | char *kwnames[] = { | |
19076 | (char *) "self", NULL | |
19077 | }; | |
19078 | ||
19079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
19080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19082 | { | |
19083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19084 | result = (arg1)->GetBackgroundColour(); | |
19085 | ||
19086 | wxPyEndAllowThreads(__tstate); | |
19087 | if (PyErr_Occurred()) SWIG_fail; | |
19088 | } | |
19089 | { | |
19090 | wxColour * resultptr; | |
19091 | resultptr = new wxColour((wxColour &) result); | |
19092 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19093 | } | |
19094 | return resultobj; | |
19095 | fail: | |
19096 | return NULL; | |
19097 | } | |
19098 | ||
19099 | ||
c370783e | 19100 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19101 | PyObject *resultobj; |
19102 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19103 | wxFont result; | |
19104 | PyObject * obj0 = 0 ; | |
19105 | char *kwnames[] = { | |
19106 | (char *) "self", NULL | |
19107 | }; | |
19108 | ||
19109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
19110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19112 | { | |
19113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19114 | result = (arg1)->GetFont(); | |
19115 | ||
19116 | wxPyEndAllowThreads(__tstate); | |
19117 | if (PyErr_Occurred()) SWIG_fail; | |
19118 | } | |
19119 | { | |
19120 | wxFont * resultptr; | |
19121 | resultptr = new wxFont((wxFont &) result); | |
19122 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
19123 | } | |
19124 | return resultobj; | |
19125 | fail: | |
19126 | return NULL; | |
19127 | } | |
19128 | ||
19129 | ||
c370783e | 19130 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19131 | PyObject *resultobj; |
19132 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19133 | PyObject * obj0 = 0 ; | |
19134 | char *kwnames[] = { | |
19135 | (char *) "self", NULL | |
19136 | }; | |
19137 | ||
19138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
19139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19141 | { | |
19142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19143 | wxListItemAttr_Destroy(arg1); | |
19144 | ||
19145 | wxPyEndAllowThreads(__tstate); | |
19146 | if (PyErr_Occurred()) SWIG_fail; | |
19147 | } | |
19148 | Py_INCREF(Py_None); resultobj = Py_None; | |
19149 | return resultobj; | |
19150 | fail: | |
19151 | return NULL; | |
19152 | } | |
19153 | ||
19154 | ||
c370783e | 19155 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19156 | PyObject *obj; |
19157 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19158 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
19159 | Py_INCREF(obj); | |
19160 | return Py_BuildValue((char *)""); | |
19161 | } | |
c370783e | 19162 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19163 | PyObject *resultobj; |
19164 | wxListItem *result; | |
19165 | char *kwnames[] = { | |
19166 | NULL | |
19167 | }; | |
19168 | ||
19169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
19170 | { | |
19171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19172 | result = (wxListItem *)new wxListItem(); | |
19173 | ||
19174 | wxPyEndAllowThreads(__tstate); | |
19175 | if (PyErr_Occurred()) SWIG_fail; | |
19176 | } | |
19177 | { | |
412d302d | 19178 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
19179 | } |
19180 | return resultobj; | |
19181 | fail: | |
19182 | return NULL; | |
19183 | } | |
19184 | ||
19185 | ||
c370783e | 19186 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19187 | PyObject *resultobj; |
19188 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19189 | PyObject * obj0 = 0 ; | |
19190 | char *kwnames[] = { | |
19191 | (char *) "self", NULL | |
19192 | }; | |
19193 | ||
19194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
19195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19197 | { | |
19198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19199 | delete arg1; | |
19200 | ||
19201 | wxPyEndAllowThreads(__tstate); | |
19202 | if (PyErr_Occurred()) SWIG_fail; | |
19203 | } | |
19204 | Py_INCREF(Py_None); resultobj = Py_None; | |
19205 | return resultobj; | |
19206 | fail: | |
19207 | return NULL; | |
19208 | } | |
19209 | ||
19210 | ||
c370783e | 19211 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19212 | PyObject *resultobj; |
19213 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19214 | PyObject * obj0 = 0 ; | |
19215 | char *kwnames[] = { | |
19216 | (char *) "self", NULL | |
19217 | }; | |
19218 | ||
19219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
19220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19222 | { | |
19223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19224 | (arg1)->Clear(); | |
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 | ||
c370783e | 19236 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19237 | PyObject *resultobj; |
19238 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19239 | PyObject * obj0 = 0 ; | |
19240 | char *kwnames[] = { | |
19241 | (char *) "self", NULL | |
19242 | }; | |
19243 | ||
19244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
19245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19247 | { | |
19248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19249 | (arg1)->ClearAttributes(); | |
19250 | ||
19251 | wxPyEndAllowThreads(__tstate); | |
19252 | if (PyErr_Occurred()) SWIG_fail; | |
19253 | } | |
19254 | Py_INCREF(Py_None); resultobj = Py_None; | |
19255 | return resultobj; | |
19256 | fail: | |
19257 | return NULL; | |
19258 | } | |
19259 | ||
19260 | ||
c370783e | 19261 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19262 | PyObject *resultobj; |
19263 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19264 | long arg2 ; | |
19265 | PyObject * obj0 = 0 ; | |
19266 | PyObject * obj1 = 0 ; | |
19267 | char *kwnames[] = { | |
19268 | (char *) "self",(char *) "mask", NULL | |
19269 | }; | |
19270 | ||
19271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
19272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19274 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
19275 | if (PyErr_Occurred()) SWIG_fail; |
19276 | { | |
19277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19278 | (arg1)->SetMask(arg2); | |
19279 | ||
19280 | wxPyEndAllowThreads(__tstate); | |
19281 | if (PyErr_Occurred()) SWIG_fail; | |
19282 | } | |
19283 | Py_INCREF(Py_None); resultobj = Py_None; | |
19284 | return resultobj; | |
19285 | fail: | |
19286 | return NULL; | |
19287 | } | |
19288 | ||
19289 | ||
c370783e | 19290 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19291 | PyObject *resultobj; |
19292 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19293 | long arg2 ; | |
19294 | PyObject * obj0 = 0 ; | |
19295 | PyObject * obj1 = 0 ; | |
19296 | char *kwnames[] = { | |
19297 | (char *) "self",(char *) "id", NULL | |
19298 | }; | |
19299 | ||
19300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
19301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19303 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
19304 | if (PyErr_Occurred()) SWIG_fail; |
19305 | { | |
19306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19307 | (arg1)->SetId(arg2); | |
19308 | ||
19309 | wxPyEndAllowThreads(__tstate); | |
19310 | if (PyErr_Occurred()) SWIG_fail; | |
19311 | } | |
19312 | Py_INCREF(Py_None); resultobj = Py_None; | |
19313 | return resultobj; | |
19314 | fail: | |
19315 | return NULL; | |
19316 | } | |
19317 | ||
19318 | ||
c370783e | 19319 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19320 | PyObject *resultobj; |
19321 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19322 | int arg2 ; | |
19323 | PyObject * obj0 = 0 ; | |
19324 | PyObject * obj1 = 0 ; | |
19325 | char *kwnames[] = { | |
19326 | (char *) "self",(char *) "col", NULL | |
19327 | }; | |
19328 | ||
19329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
19330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19332 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19333 | if (PyErr_Occurred()) SWIG_fail; |
19334 | { | |
19335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19336 | (arg1)->SetColumn(arg2); | |
19337 | ||
19338 | wxPyEndAllowThreads(__tstate); | |
19339 | if (PyErr_Occurred()) SWIG_fail; | |
19340 | } | |
19341 | Py_INCREF(Py_None); resultobj = Py_None; | |
19342 | return resultobj; | |
19343 | fail: | |
19344 | return NULL; | |
19345 | } | |
19346 | ||
19347 | ||
c370783e | 19348 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19349 | PyObject *resultobj; |
19350 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19351 | long arg2 ; | |
19352 | PyObject * obj0 = 0 ; | |
19353 | PyObject * obj1 = 0 ; | |
19354 | char *kwnames[] = { | |
19355 | (char *) "self",(char *) "state", NULL | |
19356 | }; | |
19357 | ||
19358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
19359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19361 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
19362 | if (PyErr_Occurred()) SWIG_fail; |
19363 | { | |
19364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19365 | (arg1)->SetState(arg2); | |
19366 | ||
19367 | wxPyEndAllowThreads(__tstate); | |
19368 | if (PyErr_Occurred()) SWIG_fail; | |
19369 | } | |
19370 | Py_INCREF(Py_None); resultobj = Py_None; | |
19371 | return resultobj; | |
19372 | fail: | |
19373 | return NULL; | |
19374 | } | |
19375 | ||
19376 | ||
c370783e | 19377 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19378 | PyObject *resultobj; |
19379 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19380 | long arg2 ; | |
19381 | PyObject * obj0 = 0 ; | |
19382 | PyObject * obj1 = 0 ; | |
19383 | char *kwnames[] = { | |
19384 | (char *) "self",(char *) "stateMask", NULL | |
19385 | }; | |
19386 | ||
19387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
19388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19390 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
19391 | if (PyErr_Occurred()) SWIG_fail; |
19392 | { | |
19393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19394 | (arg1)->SetStateMask(arg2); | |
19395 | ||
19396 | wxPyEndAllowThreads(__tstate); | |
19397 | if (PyErr_Occurred()) SWIG_fail; | |
19398 | } | |
19399 | Py_INCREF(Py_None); resultobj = Py_None; | |
19400 | return resultobj; | |
19401 | fail: | |
19402 | return NULL; | |
19403 | } | |
19404 | ||
19405 | ||
c370783e | 19406 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19407 | PyObject *resultobj; |
19408 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19409 | wxString *arg2 = 0 ; | |
19410 | bool temp2 = False ; | |
19411 | PyObject * obj0 = 0 ; | |
19412 | PyObject * obj1 = 0 ; | |
19413 | char *kwnames[] = { | |
19414 | (char *) "self",(char *) "text", NULL | |
19415 | }; | |
19416 | ||
19417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
19418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19420 | { | |
19421 | arg2 = wxString_in_helper(obj1); | |
19422 | if (arg2 == NULL) SWIG_fail; | |
19423 | temp2 = True; | |
19424 | } | |
19425 | { | |
19426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19427 | (arg1)->SetText((wxString const &)*arg2); | |
19428 | ||
19429 | wxPyEndAllowThreads(__tstate); | |
19430 | if (PyErr_Occurred()) SWIG_fail; | |
19431 | } | |
19432 | Py_INCREF(Py_None); resultobj = Py_None; | |
19433 | { | |
19434 | if (temp2) | |
19435 | delete arg2; | |
19436 | } | |
19437 | return resultobj; | |
19438 | fail: | |
19439 | { | |
19440 | if (temp2) | |
19441 | delete arg2; | |
19442 | } | |
19443 | return NULL; | |
19444 | } | |
19445 | ||
19446 | ||
c370783e | 19447 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19448 | PyObject *resultobj; |
19449 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19450 | int arg2 ; | |
19451 | PyObject * obj0 = 0 ; | |
19452 | PyObject * obj1 = 0 ; | |
19453 | char *kwnames[] = { | |
19454 | (char *) "self",(char *) "image", NULL | |
19455 | }; | |
19456 | ||
19457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
19458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19460 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19461 | if (PyErr_Occurred()) SWIG_fail; |
19462 | { | |
19463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19464 | (arg1)->SetImage(arg2); | |
19465 | ||
19466 | wxPyEndAllowThreads(__tstate); | |
19467 | if (PyErr_Occurred()) SWIG_fail; | |
19468 | } | |
19469 | Py_INCREF(Py_None); resultobj = Py_None; | |
19470 | return resultobj; | |
19471 | fail: | |
19472 | return NULL; | |
19473 | } | |
19474 | ||
19475 | ||
c370783e | 19476 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19477 | PyObject *resultobj; |
19478 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19479 | long arg2 ; | |
19480 | PyObject * obj0 = 0 ; | |
19481 | PyObject * obj1 = 0 ; | |
19482 | char *kwnames[] = { | |
19483 | (char *) "self",(char *) "data", NULL | |
19484 | }; | |
19485 | ||
19486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
19487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19489 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
19490 | if (PyErr_Occurred()) SWIG_fail; |
19491 | { | |
19492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19493 | (arg1)->SetData(arg2); | |
19494 | ||
19495 | wxPyEndAllowThreads(__tstate); | |
19496 | if (PyErr_Occurred()) SWIG_fail; | |
19497 | } | |
19498 | Py_INCREF(Py_None); resultobj = Py_None; | |
19499 | return resultobj; | |
19500 | fail: | |
19501 | return NULL; | |
19502 | } | |
19503 | ||
19504 | ||
c370783e | 19505 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19506 | PyObject *resultobj; |
19507 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19508 | int arg2 ; | |
19509 | PyObject * obj0 = 0 ; | |
19510 | PyObject * obj1 = 0 ; | |
19511 | char *kwnames[] = { | |
19512 | (char *) "self",(char *) "width", NULL | |
19513 | }; | |
19514 | ||
19515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
19516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19518 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19519 | if (PyErr_Occurred()) SWIG_fail; |
19520 | { | |
19521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19522 | (arg1)->SetWidth(arg2); | |
19523 | ||
19524 | wxPyEndAllowThreads(__tstate); | |
19525 | if (PyErr_Occurred()) SWIG_fail; | |
19526 | } | |
19527 | Py_INCREF(Py_None); resultobj = Py_None; | |
19528 | return resultobj; | |
19529 | fail: | |
19530 | return NULL; | |
19531 | } | |
19532 | ||
19533 | ||
c370783e | 19534 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19535 | PyObject *resultobj; |
19536 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19537 | int arg2 ; | |
19538 | PyObject * obj0 = 0 ; | |
19539 | PyObject * obj1 = 0 ; | |
19540 | char *kwnames[] = { | |
19541 | (char *) "self",(char *) "align", NULL | |
19542 | }; | |
19543 | ||
19544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
19545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19547 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19548 | if (PyErr_Occurred()) SWIG_fail; |
19549 | { | |
19550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19551 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
19552 | ||
19553 | wxPyEndAllowThreads(__tstate); | |
19554 | if (PyErr_Occurred()) SWIG_fail; | |
19555 | } | |
19556 | Py_INCREF(Py_None); resultobj = Py_None; | |
19557 | return resultobj; | |
19558 | fail: | |
19559 | return NULL; | |
19560 | } | |
19561 | ||
19562 | ||
c370783e | 19563 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19564 | PyObject *resultobj; |
19565 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19566 | wxColour *arg2 = 0 ; | |
19567 | wxColour temp2 ; | |
19568 | PyObject * obj0 = 0 ; | |
19569 | PyObject * obj1 = 0 ; | |
19570 | char *kwnames[] = { | |
19571 | (char *) "self",(char *) "colText", NULL | |
19572 | }; | |
19573 | ||
19574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
19575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19577 | { | |
19578 | arg2 = &temp2; | |
19579 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19580 | } | |
19581 | { | |
19582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19583 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19584 | ||
19585 | wxPyEndAllowThreads(__tstate); | |
19586 | if (PyErr_Occurred()) SWIG_fail; | |
19587 | } | |
19588 | Py_INCREF(Py_None); resultobj = Py_None; | |
19589 | return resultobj; | |
19590 | fail: | |
19591 | return NULL; | |
19592 | } | |
19593 | ||
19594 | ||
c370783e | 19595 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19596 | PyObject *resultobj; |
19597 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19598 | wxColour *arg2 = 0 ; | |
19599 | wxColour temp2 ; | |
19600 | PyObject * obj0 = 0 ; | |
19601 | PyObject * obj1 = 0 ; | |
19602 | char *kwnames[] = { | |
19603 | (char *) "self",(char *) "colBack", NULL | |
19604 | }; | |
19605 | ||
19606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19609 | { | |
19610 | arg2 = &temp2; | |
19611 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19612 | } | |
19613 | { | |
19614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19615 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19616 | ||
19617 | wxPyEndAllowThreads(__tstate); | |
19618 | if (PyErr_Occurred()) SWIG_fail; | |
19619 | } | |
19620 | Py_INCREF(Py_None); resultobj = Py_None; | |
19621 | return resultobj; | |
19622 | fail: | |
19623 | return NULL; | |
19624 | } | |
19625 | ||
19626 | ||
c370783e | 19627 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19628 | PyObject *resultobj; |
19629 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19630 | wxFont *arg2 = 0 ; | |
19631 | PyObject * obj0 = 0 ; | |
19632 | PyObject * obj1 = 0 ; | |
19633 | char *kwnames[] = { | |
19634 | (char *) "self",(char *) "font", NULL | |
19635 | }; | |
19636 | ||
19637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
19638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19641 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19642 | SWIG_fail; | |
19643 | if (arg2 == NULL) { | |
19644 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19645 | SWIG_fail; | |
19646 | } | |
19647 | { | |
19648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19649 | (arg1)->SetFont((wxFont const &)*arg2); | |
19650 | ||
19651 | wxPyEndAllowThreads(__tstate); | |
19652 | if (PyErr_Occurred()) SWIG_fail; | |
19653 | } | |
19654 | Py_INCREF(Py_None); resultobj = Py_None; | |
19655 | return resultobj; | |
19656 | fail: | |
19657 | return NULL; | |
19658 | } | |
19659 | ||
19660 | ||
c370783e | 19661 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19662 | PyObject *resultobj; |
19663 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19664 | long result; | |
19665 | PyObject * obj0 = 0 ; | |
19666 | char *kwnames[] = { | |
19667 | (char *) "self", NULL | |
19668 | }; | |
19669 | ||
19670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
19671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19673 | { | |
19674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19675 | result = (long)(arg1)->GetMask(); | |
19676 | ||
19677 | wxPyEndAllowThreads(__tstate); | |
19678 | if (PyErr_Occurred()) SWIG_fail; | |
19679 | } | |
c370783e | 19680 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
19681 | return resultobj; |
19682 | fail: | |
19683 | return NULL; | |
19684 | } | |
19685 | ||
19686 | ||
c370783e | 19687 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19688 | PyObject *resultobj; |
19689 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19690 | long result; | |
19691 | PyObject * obj0 = 0 ; | |
19692 | char *kwnames[] = { | |
19693 | (char *) "self", NULL | |
19694 | }; | |
19695 | ||
19696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
19697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19699 | { | |
19700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19701 | result = (long)(arg1)->GetId(); | |
19702 | ||
19703 | wxPyEndAllowThreads(__tstate); | |
19704 | if (PyErr_Occurred()) SWIG_fail; | |
19705 | } | |
c370783e | 19706 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
19707 | return resultobj; |
19708 | fail: | |
19709 | return NULL; | |
19710 | } | |
19711 | ||
19712 | ||
c370783e | 19713 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19714 | PyObject *resultobj; |
19715 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19716 | int result; | |
19717 | PyObject * obj0 = 0 ; | |
19718 | char *kwnames[] = { | |
19719 | (char *) "self", NULL | |
19720 | }; | |
19721 | ||
19722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
19723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19725 | { | |
19726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19727 | result = (int)(arg1)->GetColumn(); | |
19728 | ||
19729 | wxPyEndAllowThreads(__tstate); | |
19730 | if (PyErr_Occurred()) SWIG_fail; | |
19731 | } | |
c370783e | 19732 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19733 | return resultobj; |
19734 | fail: | |
19735 | return NULL; | |
19736 | } | |
19737 | ||
19738 | ||
c370783e | 19739 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19740 | PyObject *resultobj; |
19741 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19742 | long result; | |
19743 | PyObject * obj0 = 0 ; | |
19744 | char *kwnames[] = { | |
19745 | (char *) "self", NULL | |
19746 | }; | |
19747 | ||
19748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
19749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19751 | { | |
19752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19753 | result = (long)(arg1)->GetState(); | |
19754 | ||
19755 | wxPyEndAllowThreads(__tstate); | |
19756 | if (PyErr_Occurred()) SWIG_fail; | |
19757 | } | |
c370783e | 19758 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
19759 | return resultobj; |
19760 | fail: | |
19761 | return NULL; | |
19762 | } | |
19763 | ||
19764 | ||
c370783e | 19765 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19766 | PyObject *resultobj; |
19767 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19768 | wxString *result; | |
19769 | PyObject * obj0 = 0 ; | |
19770 | char *kwnames[] = { | |
19771 | (char *) "self", NULL | |
19772 | }; | |
19773 | ||
19774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
19775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19777 | { | |
19778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19779 | { | |
19780 | wxString const &_result_ref = (arg1)->GetText(); | |
19781 | result = (wxString *) &_result_ref; | |
19782 | } | |
19783 | ||
19784 | wxPyEndAllowThreads(__tstate); | |
19785 | if (PyErr_Occurred()) SWIG_fail; | |
19786 | } | |
19787 | { | |
19788 | #if wxUSE_UNICODE | |
19789 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19790 | #else | |
19791 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19792 | #endif | |
19793 | } | |
19794 | return resultobj; | |
19795 | fail: | |
19796 | return NULL; | |
19797 | } | |
19798 | ||
19799 | ||
c370783e | 19800 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19801 | PyObject *resultobj; |
19802 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19803 | int result; | |
19804 | PyObject * obj0 = 0 ; | |
19805 | char *kwnames[] = { | |
19806 | (char *) "self", NULL | |
19807 | }; | |
19808 | ||
19809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
19810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19812 | { | |
19813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19814 | result = (int)(arg1)->GetImage(); | |
19815 | ||
19816 | wxPyEndAllowThreads(__tstate); | |
19817 | if (PyErr_Occurred()) SWIG_fail; | |
19818 | } | |
c370783e | 19819 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19820 | return resultobj; |
19821 | fail: | |
19822 | return NULL; | |
19823 | } | |
19824 | ||
19825 | ||
c370783e | 19826 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19827 | PyObject *resultobj; |
19828 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19829 | long result; | |
19830 | PyObject * obj0 = 0 ; | |
19831 | char *kwnames[] = { | |
19832 | (char *) "self", NULL | |
19833 | }; | |
19834 | ||
19835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
19836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19838 | { | |
19839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19840 | result = (long)(arg1)->GetData(); | |
19841 | ||
19842 | wxPyEndAllowThreads(__tstate); | |
19843 | if (PyErr_Occurred()) SWIG_fail; | |
19844 | } | |
c370783e | 19845 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
19846 | return resultobj; |
19847 | fail: | |
19848 | return NULL; | |
19849 | } | |
19850 | ||
19851 | ||
c370783e | 19852 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19853 | PyObject *resultobj; |
19854 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19855 | int result; | |
19856 | PyObject * obj0 = 0 ; | |
19857 | char *kwnames[] = { | |
19858 | (char *) "self", NULL | |
19859 | }; | |
19860 | ||
19861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
19862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19864 | { | |
19865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19866 | result = (int)(arg1)->GetWidth(); | |
19867 | ||
19868 | wxPyEndAllowThreads(__tstate); | |
19869 | if (PyErr_Occurred()) SWIG_fail; | |
19870 | } | |
c370783e | 19871 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19872 | return resultobj; |
19873 | fail: | |
19874 | return NULL; | |
19875 | } | |
19876 | ||
19877 | ||
c370783e | 19878 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19879 | PyObject *resultobj; |
19880 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19881 | int result; | |
19882 | PyObject * obj0 = 0 ; | |
19883 | char *kwnames[] = { | |
19884 | (char *) "self", NULL | |
19885 | }; | |
19886 | ||
19887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
19888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19890 | { | |
19891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19892 | result = (int)(arg1)->GetAlign(); | |
19893 | ||
19894 | wxPyEndAllowThreads(__tstate); | |
19895 | if (PyErr_Occurred()) SWIG_fail; | |
19896 | } | |
c370783e | 19897 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19898 | return resultobj; |
19899 | fail: | |
19900 | return NULL; | |
19901 | } | |
19902 | ||
19903 | ||
c370783e | 19904 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19905 | PyObject *resultobj; |
19906 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19907 | wxListItemAttr *result; | |
19908 | PyObject * obj0 = 0 ; | |
19909 | char *kwnames[] = { | |
19910 | (char *) "self", NULL | |
19911 | }; | |
19912 | ||
19913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
19914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19916 | { | |
19917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19918 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
19919 | ||
19920 | wxPyEndAllowThreads(__tstate); | |
19921 | if (PyErr_Occurred()) SWIG_fail; | |
19922 | } | |
19923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); | |
19924 | return resultobj; | |
19925 | fail: | |
19926 | return NULL; | |
19927 | } | |
19928 | ||
19929 | ||
c370783e | 19930 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19931 | PyObject *resultobj; |
19932 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19933 | bool result; | |
19934 | PyObject * obj0 = 0 ; | |
19935 | char *kwnames[] = { | |
19936 | (char *) "self", NULL | |
19937 | }; | |
19938 | ||
19939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
19940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19942 | { | |
19943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19944 | result = (bool)(arg1)->HasAttributes(); | |
19945 | ||
19946 | wxPyEndAllowThreads(__tstate); | |
19947 | if (PyErr_Occurred()) SWIG_fail; | |
19948 | } | |
19949 | { | |
19950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19951 | } | |
19952 | return resultobj; | |
19953 | fail: | |
19954 | return NULL; | |
19955 | } | |
19956 | ||
19957 | ||
c370783e | 19958 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19959 | PyObject *resultobj; |
19960 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19961 | wxColour result; | |
19962 | PyObject * obj0 = 0 ; | |
19963 | char *kwnames[] = { | |
19964 | (char *) "self", NULL | |
19965 | }; | |
19966 | ||
19967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
19968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19970 | { | |
19971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19972 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19973 | ||
19974 | wxPyEndAllowThreads(__tstate); | |
19975 | if (PyErr_Occurred()) SWIG_fail; | |
19976 | } | |
19977 | { | |
19978 | wxColour * resultptr; | |
19979 | resultptr = new wxColour((wxColour &) result); | |
19980 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19981 | } | |
19982 | return resultobj; | |
19983 | fail: | |
19984 | return NULL; | |
19985 | } | |
19986 | ||
19987 | ||
c370783e | 19988 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19989 | PyObject *resultobj; |
19990 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19991 | wxColour result; | |
19992 | PyObject * obj0 = 0 ; | |
19993 | char *kwnames[] = { | |
19994 | (char *) "self", NULL | |
19995 | }; | |
19996 | ||
19997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
19998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20000 | { | |
20001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20002 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
20003 | ||
20004 | wxPyEndAllowThreads(__tstate); | |
20005 | if (PyErr_Occurred()) SWIG_fail; | |
20006 | } | |
20007 | { | |
20008 | wxColour * resultptr; | |
20009 | resultptr = new wxColour((wxColour &) result); | |
20010 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
20011 | } | |
20012 | return resultobj; | |
20013 | fail: | |
20014 | return NULL; | |
20015 | } | |
20016 | ||
20017 | ||
c370783e | 20018 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20019 | PyObject *resultobj; |
20020 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20021 | wxFont result; | |
20022 | PyObject * obj0 = 0 ; | |
20023 | char *kwnames[] = { | |
20024 | (char *) "self", NULL | |
20025 | }; | |
20026 | ||
20027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
20028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20030 | { | |
20031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20032 | result = ((wxListItem const *)arg1)->GetFont(); | |
20033 | ||
20034 | wxPyEndAllowThreads(__tstate); | |
20035 | if (PyErr_Occurred()) SWIG_fail; | |
20036 | } | |
20037 | { | |
20038 | wxFont * resultptr; | |
20039 | resultptr = new wxFont((wxFont &) result); | |
20040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
20041 | } | |
20042 | return resultobj; | |
20043 | fail: | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
c370783e | 20048 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20049 | PyObject *resultobj; |
20050 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20051 | long arg2 ; | |
20052 | PyObject * obj0 = 0 ; | |
20053 | PyObject * obj1 = 0 ; | |
20054 | char *kwnames[] = { | |
20055 | (char *) "self",(char *) "m_mask", NULL | |
20056 | }; | |
20057 | ||
20058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
20059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20061 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20062 | if (PyErr_Occurred()) SWIG_fail; |
20063 | if (arg1) (arg1)->m_mask = arg2; | |
20064 | ||
20065 | Py_INCREF(Py_None); resultobj = Py_None; | |
20066 | return resultobj; | |
20067 | fail: | |
20068 | return NULL; | |
20069 | } | |
20070 | ||
20071 | ||
c370783e | 20072 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20073 | PyObject *resultobj; |
20074 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20075 | long result; | |
20076 | PyObject * obj0 = 0 ; | |
20077 | char *kwnames[] = { | |
20078 | (char *) "self", NULL | |
20079 | }; | |
20080 | ||
20081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
20082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20084 | result = (long) ((arg1)->m_mask); | |
20085 | ||
c370783e | 20086 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20087 | return resultobj; |
20088 | fail: | |
20089 | return NULL; | |
20090 | } | |
20091 | ||
20092 | ||
c370783e | 20093 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20094 | PyObject *resultobj; |
20095 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20096 | long arg2 ; | |
20097 | PyObject * obj0 = 0 ; | |
20098 | PyObject * obj1 = 0 ; | |
20099 | char *kwnames[] = { | |
20100 | (char *) "self",(char *) "m_itemId", NULL | |
20101 | }; | |
20102 | ||
20103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
20104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20106 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20107 | if (PyErr_Occurred()) SWIG_fail; |
20108 | if (arg1) (arg1)->m_itemId = arg2; | |
20109 | ||
20110 | Py_INCREF(Py_None); resultobj = Py_None; | |
20111 | return resultobj; | |
20112 | fail: | |
20113 | return NULL; | |
20114 | } | |
20115 | ||
20116 | ||
c370783e | 20117 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20118 | PyObject *resultobj; |
20119 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20120 | long result; | |
20121 | PyObject * obj0 = 0 ; | |
20122 | char *kwnames[] = { | |
20123 | (char *) "self", NULL | |
20124 | }; | |
20125 | ||
20126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
20127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20129 | result = (long) ((arg1)->m_itemId); | |
20130 | ||
c370783e | 20131 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20132 | return resultobj; |
20133 | fail: | |
20134 | return NULL; | |
20135 | } | |
20136 | ||
20137 | ||
c370783e | 20138 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20139 | PyObject *resultobj; |
20140 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20141 | int arg2 ; | |
20142 | PyObject * obj0 = 0 ; | |
20143 | PyObject * obj1 = 0 ; | |
20144 | char *kwnames[] = { | |
20145 | (char *) "self",(char *) "m_col", NULL | |
20146 | }; | |
20147 | ||
20148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
20149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20151 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20152 | if (PyErr_Occurred()) SWIG_fail; |
20153 | if (arg1) (arg1)->m_col = arg2; | |
20154 | ||
20155 | Py_INCREF(Py_None); resultobj = Py_None; | |
20156 | return resultobj; | |
20157 | fail: | |
20158 | return NULL; | |
20159 | } | |
20160 | ||
20161 | ||
c370783e | 20162 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20163 | PyObject *resultobj; |
20164 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20165 | int result; | |
20166 | PyObject * obj0 = 0 ; | |
20167 | char *kwnames[] = { | |
20168 | (char *) "self", NULL | |
20169 | }; | |
20170 | ||
20171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
20172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20174 | result = (int) ((arg1)->m_col); | |
20175 | ||
c370783e | 20176 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20177 | return resultobj; |
20178 | fail: | |
20179 | return NULL; | |
20180 | } | |
20181 | ||
20182 | ||
c370783e | 20183 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20184 | PyObject *resultobj; |
20185 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20186 | long arg2 ; | |
20187 | PyObject * obj0 = 0 ; | |
20188 | PyObject * obj1 = 0 ; | |
20189 | char *kwnames[] = { | |
20190 | (char *) "self",(char *) "m_state", NULL | |
20191 | }; | |
20192 | ||
20193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
20194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20196 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20197 | if (PyErr_Occurred()) SWIG_fail; |
20198 | if (arg1) (arg1)->m_state = arg2; | |
20199 | ||
20200 | Py_INCREF(Py_None); resultobj = Py_None; | |
20201 | return resultobj; | |
20202 | fail: | |
20203 | return NULL; | |
20204 | } | |
20205 | ||
20206 | ||
c370783e | 20207 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20208 | PyObject *resultobj; |
20209 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20210 | long result; | |
20211 | PyObject * obj0 = 0 ; | |
20212 | char *kwnames[] = { | |
20213 | (char *) "self", NULL | |
20214 | }; | |
20215 | ||
20216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
20217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20219 | result = (long) ((arg1)->m_state); | |
20220 | ||
c370783e | 20221 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20222 | return resultobj; |
20223 | fail: | |
20224 | return NULL; | |
20225 | } | |
20226 | ||
20227 | ||
c370783e | 20228 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20229 | PyObject *resultobj; |
20230 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20231 | long arg2 ; | |
20232 | PyObject * obj0 = 0 ; | |
20233 | PyObject * obj1 = 0 ; | |
20234 | char *kwnames[] = { | |
20235 | (char *) "self",(char *) "m_stateMask", NULL | |
20236 | }; | |
20237 | ||
20238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
20239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20241 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20242 | if (PyErr_Occurred()) SWIG_fail; |
20243 | if (arg1) (arg1)->m_stateMask = arg2; | |
20244 | ||
20245 | Py_INCREF(Py_None); resultobj = Py_None; | |
20246 | return resultobj; | |
20247 | fail: | |
20248 | return NULL; | |
20249 | } | |
20250 | ||
20251 | ||
c370783e | 20252 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20253 | PyObject *resultobj; |
20254 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20255 | long result; | |
20256 | PyObject * obj0 = 0 ; | |
20257 | char *kwnames[] = { | |
20258 | (char *) "self", NULL | |
20259 | }; | |
20260 | ||
20261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
20262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20264 | result = (long) ((arg1)->m_stateMask); | |
20265 | ||
c370783e | 20266 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20267 | return resultobj; |
20268 | fail: | |
20269 | return NULL; | |
20270 | } | |
20271 | ||
20272 | ||
c370783e | 20273 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20274 | PyObject *resultobj; |
20275 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20276 | wxString *arg2 = (wxString *) 0 ; | |
20277 | bool temp2 = False ; | |
20278 | PyObject * obj0 = 0 ; | |
20279 | PyObject * obj1 = 0 ; | |
20280 | char *kwnames[] = { | |
20281 | (char *) "self",(char *) "m_text", NULL | |
20282 | }; | |
20283 | ||
20284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
20285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20287 | { | |
20288 | arg2 = wxString_in_helper(obj1); | |
20289 | if (arg2 == NULL) SWIG_fail; | |
20290 | temp2 = True; | |
20291 | } | |
20292 | if (arg1) (arg1)->m_text = *arg2; | |
20293 | ||
20294 | Py_INCREF(Py_None); resultobj = Py_None; | |
20295 | { | |
20296 | if (temp2) | |
20297 | delete arg2; | |
20298 | } | |
20299 | return resultobj; | |
20300 | fail: | |
20301 | { | |
20302 | if (temp2) | |
20303 | delete arg2; | |
20304 | } | |
20305 | return NULL; | |
20306 | } | |
20307 | ||
20308 | ||
c370783e | 20309 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20310 | PyObject *resultobj; |
20311 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20312 | wxString *result; | |
20313 | PyObject * obj0 = 0 ; | |
20314 | char *kwnames[] = { | |
20315 | (char *) "self", NULL | |
20316 | }; | |
20317 | ||
20318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
20319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20321 | result = (wxString *)& ((arg1)->m_text); | |
20322 | ||
20323 | { | |
20324 | #if wxUSE_UNICODE | |
20325 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20326 | #else | |
20327 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20328 | #endif | |
20329 | } | |
20330 | return resultobj; | |
20331 | fail: | |
20332 | return NULL; | |
20333 | } | |
20334 | ||
20335 | ||
c370783e | 20336 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20337 | PyObject *resultobj; |
20338 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20339 | int arg2 ; | |
20340 | PyObject * obj0 = 0 ; | |
20341 | PyObject * obj1 = 0 ; | |
20342 | char *kwnames[] = { | |
20343 | (char *) "self",(char *) "m_image", NULL | |
20344 | }; | |
20345 | ||
20346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
20347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20349 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20350 | if (PyErr_Occurred()) SWIG_fail; |
20351 | if (arg1) (arg1)->m_image = arg2; | |
20352 | ||
20353 | Py_INCREF(Py_None); resultobj = Py_None; | |
20354 | return resultobj; | |
20355 | fail: | |
20356 | return NULL; | |
20357 | } | |
20358 | ||
20359 | ||
c370783e | 20360 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20361 | PyObject *resultobj; |
20362 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20363 | int result; | |
20364 | PyObject * obj0 = 0 ; | |
20365 | char *kwnames[] = { | |
20366 | (char *) "self", NULL | |
20367 | }; | |
20368 | ||
20369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
20370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20372 | result = (int) ((arg1)->m_image); | |
20373 | ||
c370783e | 20374 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20375 | return resultobj; |
20376 | fail: | |
20377 | return NULL; | |
20378 | } | |
20379 | ||
20380 | ||
c370783e | 20381 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20382 | PyObject *resultobj; |
20383 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20384 | long arg2 ; | |
20385 | PyObject * obj0 = 0 ; | |
20386 | PyObject * obj1 = 0 ; | |
20387 | char *kwnames[] = { | |
20388 | (char *) "self",(char *) "m_data", NULL | |
20389 | }; | |
20390 | ||
20391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
20392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20394 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20395 | if (PyErr_Occurred()) SWIG_fail; |
20396 | if (arg1) (arg1)->m_data = arg2; | |
20397 | ||
20398 | Py_INCREF(Py_None); resultobj = Py_None; | |
20399 | return resultobj; | |
20400 | fail: | |
20401 | return NULL; | |
20402 | } | |
20403 | ||
20404 | ||
c370783e | 20405 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20406 | PyObject *resultobj; |
20407 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20408 | long result; | |
20409 | PyObject * obj0 = 0 ; | |
20410 | char *kwnames[] = { | |
20411 | (char *) "self", NULL | |
20412 | }; | |
20413 | ||
20414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
20415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20417 | result = (long) ((arg1)->m_data); | |
20418 | ||
c370783e | 20419 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20420 | return resultobj; |
20421 | fail: | |
20422 | return NULL; | |
20423 | } | |
20424 | ||
20425 | ||
c370783e | 20426 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20427 | PyObject *resultobj; |
20428 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20429 | int arg2 ; | |
20430 | PyObject * obj0 = 0 ; | |
20431 | PyObject * obj1 = 0 ; | |
20432 | char *kwnames[] = { | |
20433 | (char *) "self",(char *) "m_format", NULL | |
20434 | }; | |
20435 | ||
20436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
20437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20439 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20440 | if (PyErr_Occurred()) SWIG_fail; |
20441 | if (arg1) (arg1)->m_format = arg2; | |
20442 | ||
20443 | Py_INCREF(Py_None); resultobj = Py_None; | |
20444 | return resultobj; | |
20445 | fail: | |
20446 | return NULL; | |
20447 | } | |
20448 | ||
20449 | ||
c370783e | 20450 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20451 | PyObject *resultobj; |
20452 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20453 | int result; | |
20454 | PyObject * obj0 = 0 ; | |
20455 | char *kwnames[] = { | |
20456 | (char *) "self", NULL | |
20457 | }; | |
20458 | ||
20459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
20460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20462 | result = (int) ((arg1)->m_format); | |
20463 | ||
c370783e | 20464 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20465 | return resultobj; |
20466 | fail: | |
20467 | return NULL; | |
20468 | } | |
20469 | ||
20470 | ||
c370783e | 20471 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20472 | PyObject *resultobj; |
20473 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20474 | int arg2 ; | |
20475 | PyObject * obj0 = 0 ; | |
20476 | PyObject * obj1 = 0 ; | |
20477 | char *kwnames[] = { | |
20478 | (char *) "self",(char *) "m_width", NULL | |
20479 | }; | |
20480 | ||
20481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
20482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20484 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20485 | if (PyErr_Occurred()) SWIG_fail; |
20486 | if (arg1) (arg1)->m_width = arg2; | |
20487 | ||
20488 | Py_INCREF(Py_None); resultobj = Py_None; | |
20489 | return resultobj; | |
20490 | fail: | |
20491 | return NULL; | |
20492 | } | |
20493 | ||
20494 | ||
c370783e | 20495 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20496 | PyObject *resultobj; |
20497 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20498 | int result; | |
20499 | PyObject * obj0 = 0 ; | |
20500 | char *kwnames[] = { | |
20501 | (char *) "self", NULL | |
20502 | }; | |
20503 | ||
20504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
20505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20507 | result = (int) ((arg1)->m_width); | |
20508 | ||
c370783e | 20509 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20510 | return resultobj; |
20511 | fail: | |
20512 | return NULL; | |
20513 | } | |
20514 | ||
20515 | ||
c370783e | 20516 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20517 | PyObject *obj; |
20518 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20519 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
20520 | Py_INCREF(obj); | |
20521 | return Py_BuildValue((char *)""); | |
20522 | } | |
c370783e | 20523 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20524 | PyObject *resultobj; |
20525 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20526 | int arg2 = (int) 0 ; | |
20527 | wxListEvent *result; | |
20528 | PyObject * obj0 = 0 ; | |
20529 | PyObject * obj1 = 0 ; | |
20530 | char *kwnames[] = { | |
20531 | (char *) "commandType",(char *) "id", NULL | |
20532 | }; | |
20533 | ||
20534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
20535 | if (obj0) { | |
c370783e | 20536 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
20537 | if (PyErr_Occurred()) SWIG_fail; |
20538 | } | |
20539 | if (obj1) { | |
c370783e | 20540 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20541 | if (PyErr_Occurred()) SWIG_fail; |
20542 | } | |
20543 | { | |
20544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20545 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
20546 | ||
20547 | wxPyEndAllowThreads(__tstate); | |
20548 | if (PyErr_Occurred()) SWIG_fail; | |
20549 | } | |
20550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); | |
20551 | return resultobj; | |
20552 | fail: | |
20553 | return NULL; | |
20554 | } | |
20555 | ||
20556 | ||
c370783e | 20557 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20558 | PyObject *resultobj; |
20559 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20560 | int arg2 ; | |
20561 | PyObject * obj0 = 0 ; | |
20562 | PyObject * obj1 = 0 ; | |
20563 | char *kwnames[] = { | |
20564 | (char *) "self",(char *) "m_code", NULL | |
20565 | }; | |
20566 | ||
20567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
20568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20570 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20571 | if (PyErr_Occurred()) SWIG_fail; |
20572 | if (arg1) (arg1)->m_code = arg2; | |
20573 | ||
20574 | Py_INCREF(Py_None); resultobj = Py_None; | |
20575 | return resultobj; | |
20576 | fail: | |
20577 | return NULL; | |
20578 | } | |
20579 | ||
20580 | ||
c370783e | 20581 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20582 | PyObject *resultobj; |
20583 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20584 | int result; | |
20585 | PyObject * obj0 = 0 ; | |
20586 | char *kwnames[] = { | |
20587 | (char *) "self", NULL | |
20588 | }; | |
20589 | ||
20590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
20591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20593 | result = (int) ((arg1)->m_code); | |
20594 | ||
c370783e | 20595 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20596 | return resultobj; |
20597 | fail: | |
20598 | return NULL; | |
20599 | } | |
20600 | ||
20601 | ||
c370783e | 20602 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20603 | PyObject *resultobj; |
20604 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20605 | long arg2 ; | |
20606 | PyObject * obj0 = 0 ; | |
20607 | PyObject * obj1 = 0 ; | |
20608 | char *kwnames[] = { | |
20609 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
20610 | }; | |
20611 | ||
20612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
20613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20615 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20616 | if (PyErr_Occurred()) SWIG_fail; |
20617 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
20618 | ||
20619 | Py_INCREF(Py_None); resultobj = Py_None; | |
20620 | return resultobj; | |
20621 | fail: | |
20622 | return NULL; | |
20623 | } | |
20624 | ||
20625 | ||
c370783e | 20626 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20627 | PyObject *resultobj; |
20628 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20629 | long result; | |
20630 | PyObject * obj0 = 0 ; | |
20631 | char *kwnames[] = { | |
20632 | (char *) "self", NULL | |
20633 | }; | |
20634 | ||
20635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
20636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20638 | result = (long) ((arg1)->m_oldItemIndex); | |
20639 | ||
c370783e | 20640 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20641 | return resultobj; |
20642 | fail: | |
20643 | return NULL; | |
20644 | } | |
20645 | ||
20646 | ||
c370783e | 20647 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20648 | PyObject *resultobj; |
20649 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20650 | long arg2 ; | |
20651 | PyObject * obj0 = 0 ; | |
20652 | PyObject * obj1 = 0 ; | |
20653 | char *kwnames[] = { | |
20654 | (char *) "self",(char *) "m_itemIndex", NULL | |
20655 | }; | |
20656 | ||
20657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
20658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20660 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20661 | if (PyErr_Occurred()) SWIG_fail; |
20662 | if (arg1) (arg1)->m_itemIndex = arg2; | |
20663 | ||
20664 | Py_INCREF(Py_None); resultobj = Py_None; | |
20665 | return resultobj; | |
20666 | fail: | |
20667 | return NULL; | |
20668 | } | |
20669 | ||
20670 | ||
c370783e | 20671 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20672 | PyObject *resultobj; |
20673 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20674 | long result; | |
20675 | PyObject * obj0 = 0 ; | |
20676 | char *kwnames[] = { | |
20677 | (char *) "self", NULL | |
20678 | }; | |
20679 | ||
20680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
20681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20683 | result = (long) ((arg1)->m_itemIndex); | |
20684 | ||
c370783e | 20685 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20686 | return resultobj; |
20687 | fail: | |
20688 | return NULL; | |
20689 | } | |
20690 | ||
20691 | ||
c370783e | 20692 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20693 | PyObject *resultobj; |
20694 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20695 | int arg2 ; | |
20696 | PyObject * obj0 = 0 ; | |
20697 | PyObject * obj1 = 0 ; | |
20698 | char *kwnames[] = { | |
20699 | (char *) "self",(char *) "m_col", NULL | |
20700 | }; | |
20701 | ||
20702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
20703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20705 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20706 | if (PyErr_Occurred()) SWIG_fail; |
20707 | if (arg1) (arg1)->m_col = arg2; | |
20708 | ||
20709 | Py_INCREF(Py_None); resultobj = Py_None; | |
20710 | return resultobj; | |
20711 | fail: | |
20712 | return NULL; | |
20713 | } | |
20714 | ||
20715 | ||
c370783e | 20716 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20717 | PyObject *resultobj; |
20718 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20719 | int result; | |
20720 | PyObject * obj0 = 0 ; | |
20721 | char *kwnames[] = { | |
20722 | (char *) "self", NULL | |
20723 | }; | |
20724 | ||
20725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
20726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20728 | result = (int) ((arg1)->m_col); | |
20729 | ||
c370783e | 20730 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20731 | return resultobj; |
20732 | fail: | |
20733 | return NULL; | |
20734 | } | |
20735 | ||
20736 | ||
c370783e | 20737 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20738 | PyObject *resultobj; |
20739 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20740 | wxPoint *arg2 = (wxPoint *) 0 ; | |
20741 | PyObject * obj0 = 0 ; | |
20742 | PyObject * obj1 = 0 ; | |
20743 | char *kwnames[] = { | |
20744 | (char *) "self",(char *) "m_pointDrag", NULL | |
20745 | }; | |
20746 | ||
20747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
20748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
20751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20752 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
20753 | ||
20754 | Py_INCREF(Py_None); resultobj = Py_None; | |
20755 | return resultobj; | |
20756 | fail: | |
20757 | return NULL; | |
20758 | } | |
20759 | ||
20760 | ||
c370783e | 20761 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20762 | PyObject *resultobj; |
20763 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20764 | wxPoint *result; | |
20765 | PyObject * obj0 = 0 ; | |
20766 | char *kwnames[] = { | |
20767 | (char *) "self", NULL | |
20768 | }; | |
20769 | ||
20770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
20771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20773 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
20774 | ||
20775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
20776 | return resultobj; | |
20777 | fail: | |
20778 | return NULL; | |
20779 | } | |
20780 | ||
20781 | ||
c370783e | 20782 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20783 | PyObject *resultobj; |
20784 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20785 | wxListItem *result; | |
20786 | PyObject * obj0 = 0 ; | |
20787 | char *kwnames[] = { | |
20788 | (char *) "self", NULL | |
20789 | }; | |
20790 | ||
20791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
20792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20794 | result = (wxListItem *)& ((arg1)->m_item); | |
20795 | ||
20796 | { | |
412d302d | 20797 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20798 | } |
20799 | return resultobj; | |
20800 | fail: | |
20801 | return NULL; | |
20802 | } | |
20803 | ||
20804 | ||
c370783e | 20805 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20806 | PyObject *resultobj; |
20807 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20808 | int result; | |
20809 | PyObject * obj0 = 0 ; | |
20810 | char *kwnames[] = { | |
20811 | (char *) "self", NULL | |
20812 | }; | |
20813 | ||
20814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
20815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20817 | { | |
20818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20819 | result = (int)(arg1)->GetKeyCode(); | |
20820 | ||
20821 | wxPyEndAllowThreads(__tstate); | |
20822 | if (PyErr_Occurred()) SWIG_fail; | |
20823 | } | |
c370783e | 20824 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20825 | return resultobj; |
20826 | fail: | |
20827 | return NULL; | |
20828 | } | |
20829 | ||
20830 | ||
c370783e | 20831 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20832 | PyObject *resultobj; |
20833 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20834 | long result; | |
20835 | PyObject * obj0 = 0 ; | |
20836 | char *kwnames[] = { | |
20837 | (char *) "self", NULL | |
20838 | }; | |
20839 | ||
20840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
20841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20843 | { | |
20844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20845 | result = (long)(arg1)->GetIndex(); | |
20846 | ||
20847 | wxPyEndAllowThreads(__tstate); | |
20848 | if (PyErr_Occurred()) SWIG_fail; | |
20849 | } | |
c370783e | 20850 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20851 | return resultobj; |
20852 | fail: | |
20853 | return NULL; | |
20854 | } | |
20855 | ||
20856 | ||
c370783e | 20857 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20858 | PyObject *resultobj; |
20859 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20860 | int result; | |
20861 | PyObject * obj0 = 0 ; | |
20862 | char *kwnames[] = { | |
20863 | (char *) "self", NULL | |
20864 | }; | |
20865 | ||
20866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
20867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20869 | { | |
20870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20871 | result = (int)(arg1)->GetColumn(); | |
20872 | ||
20873 | wxPyEndAllowThreads(__tstate); | |
20874 | if (PyErr_Occurred()) SWIG_fail; | |
20875 | } | |
c370783e | 20876 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20877 | return resultobj; |
20878 | fail: | |
20879 | return NULL; | |
20880 | } | |
20881 | ||
20882 | ||
c370783e | 20883 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20884 | PyObject *resultobj; |
20885 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20886 | wxPoint result; | |
20887 | PyObject * obj0 = 0 ; | |
20888 | char *kwnames[] = { | |
20889 | (char *) "self", NULL | |
20890 | }; | |
20891 | ||
20892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
20893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20895 | { | |
20896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20897 | result = (arg1)->GetPoint(); | |
20898 | ||
20899 | wxPyEndAllowThreads(__tstate); | |
20900 | if (PyErr_Occurred()) SWIG_fail; | |
20901 | } | |
20902 | { | |
20903 | wxPoint * resultptr; | |
20904 | resultptr = new wxPoint((wxPoint &) result); | |
20905 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20906 | } | |
20907 | return resultobj; | |
20908 | fail: | |
20909 | return NULL; | |
20910 | } | |
20911 | ||
20912 | ||
c370783e | 20913 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20914 | PyObject *resultobj; |
20915 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20916 | wxString *result; | |
20917 | PyObject * obj0 = 0 ; | |
20918 | char *kwnames[] = { | |
20919 | (char *) "self", NULL | |
20920 | }; | |
20921 | ||
20922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
20923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20925 | { | |
20926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20927 | { | |
20928 | wxString const &_result_ref = (arg1)->GetLabel(); | |
20929 | result = (wxString *) &_result_ref; | |
20930 | } | |
20931 | ||
20932 | wxPyEndAllowThreads(__tstate); | |
20933 | if (PyErr_Occurred()) SWIG_fail; | |
20934 | } | |
20935 | { | |
20936 | #if wxUSE_UNICODE | |
20937 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20938 | #else | |
20939 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20940 | #endif | |
20941 | } | |
20942 | return resultobj; | |
20943 | fail: | |
20944 | return NULL; | |
20945 | } | |
20946 | ||
20947 | ||
c370783e | 20948 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20949 | PyObject *resultobj; |
20950 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20951 | wxString *result; | |
20952 | PyObject * obj0 = 0 ; | |
20953 | char *kwnames[] = { | |
20954 | (char *) "self", NULL | |
20955 | }; | |
20956 | ||
20957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
20958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20960 | { | |
20961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20962 | { | |
20963 | wxString const &_result_ref = (arg1)->GetText(); | |
20964 | result = (wxString *) &_result_ref; | |
20965 | } | |
20966 | ||
20967 | wxPyEndAllowThreads(__tstate); | |
20968 | if (PyErr_Occurred()) SWIG_fail; | |
20969 | } | |
20970 | { | |
20971 | #if wxUSE_UNICODE | |
20972 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20973 | #else | |
20974 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20975 | #endif | |
20976 | } | |
20977 | return resultobj; | |
20978 | fail: | |
20979 | return NULL; | |
20980 | } | |
20981 | ||
20982 | ||
c370783e | 20983 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20984 | PyObject *resultobj; |
20985 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20986 | int result; | |
20987 | PyObject * obj0 = 0 ; | |
20988 | char *kwnames[] = { | |
20989 | (char *) "self", NULL | |
20990 | }; | |
20991 | ||
20992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
20993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20995 | { | |
20996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20997 | result = (int)(arg1)->GetImage(); | |
20998 | ||
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
c370783e | 21002 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21003 | return resultobj; |
21004 | fail: | |
21005 | return NULL; | |
21006 | } | |
21007 | ||
21008 | ||
c370783e | 21009 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21010 | PyObject *resultobj; |
21011 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21012 | long result; | |
21013 | PyObject * obj0 = 0 ; | |
21014 | char *kwnames[] = { | |
21015 | (char *) "self", NULL | |
21016 | }; | |
21017 | ||
21018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
21019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21021 | { | |
21022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21023 | result = (long)(arg1)->GetData(); | |
21024 | ||
21025 | wxPyEndAllowThreads(__tstate); | |
21026 | if (PyErr_Occurred()) SWIG_fail; | |
21027 | } | |
c370783e | 21028 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21029 | return resultobj; |
21030 | fail: | |
21031 | return NULL; | |
21032 | } | |
21033 | ||
21034 | ||
c370783e | 21035 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21036 | PyObject *resultobj; |
21037 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21038 | long result; | |
21039 | PyObject * obj0 = 0 ; | |
21040 | char *kwnames[] = { | |
21041 | (char *) "self", NULL | |
21042 | }; | |
21043 | ||
21044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
21045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21047 | { | |
21048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21049 | result = (long)(arg1)->GetMask(); | |
21050 | ||
21051 | wxPyEndAllowThreads(__tstate); | |
21052 | if (PyErr_Occurred()) SWIG_fail; | |
21053 | } | |
c370783e | 21054 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21055 | return resultobj; |
21056 | fail: | |
21057 | return NULL; | |
21058 | } | |
21059 | ||
21060 | ||
c370783e | 21061 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21062 | PyObject *resultobj; |
21063 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21064 | wxListItem *result; | |
21065 | PyObject * obj0 = 0 ; | |
21066 | char *kwnames[] = { | |
21067 | (char *) "self", NULL | |
21068 | }; | |
21069 | ||
21070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
21071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21073 | { | |
21074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21075 | { | |
21076 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
21077 | result = (wxListItem *) &_result_ref; | |
21078 | } | |
21079 | ||
21080 | wxPyEndAllowThreads(__tstate); | |
21081 | if (PyErr_Occurred()) SWIG_fail; | |
21082 | } | |
21083 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); | |
21084 | return resultobj; | |
21085 | fail: | |
21086 | return NULL; | |
21087 | } | |
21088 | ||
21089 | ||
c370783e | 21090 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21091 | PyObject *resultobj; |
21092 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21093 | long result; | |
21094 | PyObject * obj0 = 0 ; | |
21095 | char *kwnames[] = { | |
21096 | (char *) "self", NULL | |
21097 | }; | |
21098 | ||
21099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
21100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21102 | { | |
21103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21104 | result = (long)(arg1)->GetCacheFrom(); | |
21105 | ||
21106 | wxPyEndAllowThreads(__tstate); | |
21107 | if (PyErr_Occurred()) SWIG_fail; | |
21108 | } | |
c370783e | 21109 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21110 | return resultobj; |
21111 | fail: | |
21112 | return NULL; | |
21113 | } | |
21114 | ||
21115 | ||
c370783e | 21116 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21117 | PyObject *resultobj; |
21118 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21119 | long result; | |
21120 | PyObject * obj0 = 0 ; | |
21121 | char *kwnames[] = { | |
21122 | (char *) "self", NULL | |
21123 | }; | |
21124 | ||
21125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
21126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21128 | { | |
21129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21130 | result = (long)(arg1)->GetCacheTo(); | |
21131 | ||
21132 | wxPyEndAllowThreads(__tstate); | |
21133 | if (PyErr_Occurred()) SWIG_fail; | |
21134 | } | |
c370783e | 21135 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21136 | return resultobj; |
21137 | fail: | |
21138 | return NULL; | |
21139 | } | |
21140 | ||
21141 | ||
c370783e | 21142 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21143 | PyObject *resultobj; |
21144 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21145 | bool result; | |
21146 | PyObject * obj0 = 0 ; | |
21147 | char *kwnames[] = { | |
21148 | (char *) "self", NULL | |
21149 | }; | |
21150 | ||
21151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
21152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21154 | { | |
21155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21156 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
21157 | ||
21158 | wxPyEndAllowThreads(__tstate); | |
21159 | if (PyErr_Occurred()) SWIG_fail; | |
21160 | } | |
21161 | { | |
21162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21163 | } | |
21164 | return resultobj; | |
21165 | fail: | |
21166 | return NULL; | |
21167 | } | |
21168 | ||
21169 | ||
c370783e | 21170 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21171 | PyObject *resultobj; |
21172 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21173 | bool arg2 ; | |
21174 | PyObject * obj0 = 0 ; | |
21175 | PyObject * obj1 = 0 ; | |
21176 | char *kwnames[] = { | |
21177 | (char *) "self",(char *) "editCancelled", NULL | |
21178 | }; | |
21179 | ||
21180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
21181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21183 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
21184 | if (PyErr_Occurred()) SWIG_fail; |
21185 | { | |
21186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21187 | (arg1)->SetEditCanceled(arg2); | |
21188 | ||
21189 | wxPyEndAllowThreads(__tstate); | |
21190 | if (PyErr_Occurred()) SWIG_fail; | |
21191 | } | |
21192 | Py_INCREF(Py_None); resultobj = Py_None; | |
21193 | return resultobj; | |
21194 | fail: | |
21195 | return NULL; | |
21196 | } | |
21197 | ||
21198 | ||
c370783e | 21199 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21200 | PyObject *obj; |
21201 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21202 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
21203 | Py_INCREF(obj); | |
21204 | return Py_BuildValue((char *)""); | |
21205 | } | |
c370783e | 21206 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21207 | PyObject *resultobj; |
21208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21209 | int arg2 = (int) -1 ; | |
21210 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21211 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21212 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21213 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21214 | long arg5 = (long) wxLC_ICON ; | |
21215 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21216 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21217 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21218 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21219 | wxPyListCtrl *result; | |
21220 | wxPoint temp3 ; | |
21221 | wxSize temp4 ; | |
21222 | bool temp7 = False ; | |
21223 | PyObject * obj0 = 0 ; | |
21224 | PyObject * obj1 = 0 ; | |
21225 | PyObject * obj2 = 0 ; | |
21226 | PyObject * obj3 = 0 ; | |
21227 | PyObject * obj4 = 0 ; | |
21228 | PyObject * obj5 = 0 ; | |
21229 | PyObject * obj6 = 0 ; | |
21230 | char *kwnames[] = { | |
21231 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21232 | }; | |
21233 | ||
21234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21237 | if (obj1) { | |
c370783e | 21238 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21239 | if (PyErr_Occurred()) SWIG_fail; |
21240 | } | |
21241 | if (obj2) { | |
21242 | { | |
21243 | arg3 = &temp3; | |
21244 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21245 | } | |
21246 | } | |
21247 | if (obj3) { | |
21248 | { | |
21249 | arg4 = &temp4; | |
21250 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21251 | } | |
21252 | } | |
21253 | if (obj4) { | |
c370783e | 21254 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
21255 | if (PyErr_Occurred()) SWIG_fail; |
21256 | } | |
21257 | if (obj5) { | |
21258 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
21259 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21260 | SWIG_fail; | |
21261 | if (arg6 == NULL) { | |
21262 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21263 | SWIG_fail; | |
21264 | } | |
21265 | } | |
21266 | if (obj6) { | |
21267 | { | |
21268 | arg7 = wxString_in_helper(obj6); | |
21269 | if (arg7 == NULL) SWIG_fail; | |
21270 | temp7 = True; | |
21271 | } | |
21272 | } | |
21273 | { | |
0439c23b | 21274 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21276 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21277 | ||
21278 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21279 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21280 | } |
21281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
21282 | { | |
21283 | if (temp7) | |
21284 | delete arg7; | |
21285 | } | |
21286 | return resultobj; | |
21287 | fail: | |
21288 | { | |
21289 | if (temp7) | |
21290 | delete arg7; | |
21291 | } | |
21292 | return NULL; | |
21293 | } | |
21294 | ||
21295 | ||
c370783e | 21296 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21297 | PyObject *resultobj; |
21298 | wxPyListCtrl *result; | |
21299 | char *kwnames[] = { | |
21300 | NULL | |
21301 | }; | |
21302 | ||
21303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
21304 | { | |
0439c23b | 21305 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21307 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
21308 | ||
21309 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21310 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21311 | } |
21312 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
21313 | return resultobj; | |
21314 | fail: | |
21315 | return NULL; | |
21316 | } | |
21317 | ||
21318 | ||
c370783e | 21319 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21320 | PyObject *resultobj; |
21321 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21322 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21323 | int arg3 = (int) -1 ; | |
21324 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21325 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21326 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21327 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21328 | long arg6 = (long) wxLC_ICON ; | |
21329 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21330 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21331 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21332 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21333 | bool result; | |
21334 | wxPoint temp4 ; | |
21335 | wxSize temp5 ; | |
21336 | bool temp8 = False ; | |
21337 | PyObject * obj0 = 0 ; | |
21338 | PyObject * obj1 = 0 ; | |
21339 | PyObject * obj2 = 0 ; | |
21340 | PyObject * obj3 = 0 ; | |
21341 | PyObject * obj4 = 0 ; | |
21342 | PyObject * obj5 = 0 ; | |
21343 | PyObject * obj6 = 0 ; | |
21344 | PyObject * obj7 = 0 ; | |
21345 | char *kwnames[] = { | |
21346 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21347 | }; | |
21348 | ||
21349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
21350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21354 | if (obj2) { | |
c370783e | 21355 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21356 | if (PyErr_Occurred()) SWIG_fail; |
21357 | } | |
21358 | if (obj3) { | |
21359 | { | |
21360 | arg4 = &temp4; | |
21361 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21362 | } | |
21363 | } | |
21364 | if (obj4) { | |
21365 | { | |
21366 | arg5 = &temp5; | |
21367 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21368 | } | |
21369 | } | |
21370 | if (obj5) { | |
c370783e | 21371 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
21372 | if (PyErr_Occurred()) SWIG_fail; |
21373 | } | |
21374 | if (obj6) { | |
21375 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
21376 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21377 | SWIG_fail; | |
21378 | if (arg7 == NULL) { | |
21379 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21380 | SWIG_fail; | |
21381 | } | |
21382 | } | |
21383 | if (obj7) { | |
21384 | { | |
21385 | arg8 = wxString_in_helper(obj7); | |
21386 | if (arg8 == NULL) SWIG_fail; | |
21387 | temp8 = True; | |
21388 | } | |
21389 | } | |
21390 | { | |
21391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21392 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21393 | ||
21394 | wxPyEndAllowThreads(__tstate); | |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
21396 | } | |
21397 | { | |
21398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21399 | } | |
21400 | { | |
21401 | if (temp8) | |
21402 | delete arg8; | |
21403 | } | |
21404 | return resultobj; | |
21405 | fail: | |
21406 | { | |
21407 | if (temp8) | |
21408 | delete arg8; | |
21409 | } | |
21410 | return NULL; | |
21411 | } | |
21412 | ||
21413 | ||
c370783e | 21414 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21415 | PyObject *resultobj; |
21416 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21417 | PyObject *arg2 = (PyObject *) 0 ; | |
21418 | PyObject *arg3 = (PyObject *) 0 ; | |
21419 | PyObject * obj0 = 0 ; | |
21420 | PyObject * obj1 = 0 ; | |
21421 | PyObject * obj2 = 0 ; | |
21422 | char *kwnames[] = { | |
21423 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21424 | }; | |
21425 | ||
21426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21429 | arg2 = obj1; | |
21430 | arg3 = obj2; | |
21431 | { | |
21432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21433 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21434 | ||
21435 | wxPyEndAllowThreads(__tstate); | |
21436 | if (PyErr_Occurred()) SWIG_fail; | |
21437 | } | |
21438 | Py_INCREF(Py_None); resultobj = Py_None; | |
21439 | return resultobj; | |
21440 | fail: | |
21441 | return NULL; | |
21442 | } | |
21443 | ||
21444 | ||
c370783e | 21445 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21446 | PyObject *resultobj; |
21447 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21448 | wxColour *arg2 = 0 ; | |
21449 | bool result; | |
21450 | wxColour temp2 ; | |
21451 | PyObject * obj0 = 0 ; | |
21452 | PyObject * obj1 = 0 ; | |
21453 | char *kwnames[] = { | |
21454 | (char *) "self",(char *) "col", NULL | |
21455 | }; | |
21456 | ||
21457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21460 | { | |
21461 | arg2 = &temp2; | |
21462 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21463 | } | |
21464 | { | |
21465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21466 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
21467 | ||
21468 | wxPyEndAllowThreads(__tstate); | |
21469 | if (PyErr_Occurred()) SWIG_fail; | |
21470 | } | |
21471 | { | |
21472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21473 | } | |
21474 | return resultobj; | |
21475 | fail: | |
21476 | return NULL; | |
21477 | } | |
21478 | ||
21479 | ||
c370783e | 21480 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21481 | PyObject *resultobj; |
21482 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21483 | wxColour *arg2 = 0 ; | |
21484 | bool result; | |
21485 | wxColour temp2 ; | |
21486 | PyObject * obj0 = 0 ; | |
21487 | PyObject * obj1 = 0 ; | |
21488 | char *kwnames[] = { | |
21489 | (char *) "self",(char *) "col", NULL | |
21490 | }; | |
21491 | ||
21492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21495 | { | |
21496 | arg2 = &temp2; | |
21497 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21498 | } | |
21499 | { | |
21500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21501 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21502 | ||
21503 | wxPyEndAllowThreads(__tstate); | |
21504 | if (PyErr_Occurred()) SWIG_fail; | |
21505 | } | |
21506 | { | |
21507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21508 | } | |
21509 | return resultobj; | |
21510 | fail: | |
21511 | return NULL; | |
21512 | } | |
21513 | ||
21514 | ||
c370783e | 21515 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21516 | PyObject *resultobj; |
21517 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21518 | int arg2 ; | |
21519 | wxListItem *result; | |
21520 | PyObject * obj0 = 0 ; | |
21521 | PyObject * obj1 = 0 ; | |
21522 | char *kwnames[] = { | |
21523 | (char *) "self",(char *) "col", NULL | |
21524 | }; | |
21525 | ||
21526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
21527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21529 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21530 | if (PyErr_Occurred()) SWIG_fail; |
21531 | { | |
21532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21533 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
21534 | ||
21535 | wxPyEndAllowThreads(__tstate); | |
21536 | if (PyErr_Occurred()) SWIG_fail; | |
21537 | } | |
21538 | { | |
412d302d | 21539 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21540 | } |
21541 | return resultobj; | |
21542 | fail: | |
21543 | return NULL; | |
21544 | } | |
21545 | ||
21546 | ||
c370783e | 21547 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21548 | PyObject *resultobj; |
21549 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21550 | int arg2 ; | |
21551 | wxListItem *arg3 = 0 ; | |
21552 | bool result; | |
21553 | PyObject * obj0 = 0 ; | |
21554 | PyObject * obj1 = 0 ; | |
21555 | PyObject * obj2 = 0 ; | |
21556 | char *kwnames[] = { | |
21557 | (char *) "self",(char *) "col",(char *) "item", NULL | |
21558 | }; | |
21559 | ||
21560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21563 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21564 | if (PyErr_Occurred()) SWIG_fail; |
21565 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
21566 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21567 | SWIG_fail; | |
21568 | if (arg3 == NULL) { | |
21569 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21570 | SWIG_fail; | |
21571 | } | |
21572 | { | |
21573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21574 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
21575 | ||
21576 | wxPyEndAllowThreads(__tstate); | |
21577 | if (PyErr_Occurred()) SWIG_fail; | |
21578 | } | |
21579 | { | |
21580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21581 | } | |
21582 | return resultobj; | |
21583 | fail: | |
21584 | return NULL; | |
21585 | } | |
21586 | ||
21587 | ||
c370783e | 21588 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21589 | PyObject *resultobj; |
21590 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21591 | int arg2 ; | |
21592 | int result; | |
21593 | PyObject * obj0 = 0 ; | |
21594 | PyObject * obj1 = 0 ; | |
21595 | char *kwnames[] = { | |
21596 | (char *) "self",(char *) "col", NULL | |
21597 | }; | |
21598 | ||
21599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
21600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21602 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21603 | if (PyErr_Occurred()) SWIG_fail; |
21604 | { | |
21605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21606 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
21607 | ||
21608 | wxPyEndAllowThreads(__tstate); | |
21609 | if (PyErr_Occurred()) SWIG_fail; | |
21610 | } | |
c370783e | 21611 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21612 | return resultobj; |
21613 | fail: | |
21614 | return NULL; | |
21615 | } | |
21616 | ||
21617 | ||
c370783e | 21618 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21619 | PyObject *resultobj; |
21620 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21621 | int arg2 ; | |
21622 | int arg3 ; | |
21623 | bool result; | |
21624 | PyObject * obj0 = 0 ; | |
21625 | PyObject * obj1 = 0 ; | |
21626 | PyObject * obj2 = 0 ; | |
21627 | char *kwnames[] = { | |
21628 | (char *) "self",(char *) "col",(char *) "width", NULL | |
21629 | }; | |
21630 | ||
21631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21634 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 21635 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21636 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21637 | if (PyErr_Occurred()) SWIG_fail; |
21638 | { | |
21639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21640 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
21641 | ||
21642 | wxPyEndAllowThreads(__tstate); | |
21643 | if (PyErr_Occurred()) SWIG_fail; | |
21644 | } | |
21645 | { | |
21646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21647 | } | |
21648 | return resultobj; | |
21649 | fail: | |
21650 | return NULL; | |
21651 | } | |
21652 | ||
21653 | ||
c370783e | 21654 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21655 | PyObject *resultobj; |
21656 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21657 | int result; | |
21658 | PyObject * obj0 = 0 ; | |
21659 | char *kwnames[] = { | |
21660 | (char *) "self", NULL | |
21661 | }; | |
21662 | ||
21663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
21664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21666 | { | |
21667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21668 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
21669 | ||
21670 | wxPyEndAllowThreads(__tstate); | |
21671 | if (PyErr_Occurred()) SWIG_fail; | |
21672 | } | |
c370783e | 21673 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21674 | return resultobj; |
21675 | fail: | |
21676 | return NULL; | |
21677 | } | |
21678 | ||
21679 | ||
c370783e | 21680 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21681 | PyObject *resultobj; |
21682 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21683 | wxRect result; | |
21684 | PyObject * obj0 = 0 ; | |
21685 | char *kwnames[] = { | |
21686 | (char *) "self", NULL | |
21687 | }; | |
21688 | ||
21689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
21690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21692 | { | |
21693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21694 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
21695 | ||
21696 | wxPyEndAllowThreads(__tstate); | |
21697 | if (PyErr_Occurred()) SWIG_fail; | |
21698 | } | |
21699 | { | |
21700 | wxRect * resultptr; | |
21701 | resultptr = new wxRect((wxRect &) result); | |
21702 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
21703 | } | |
21704 | return resultobj; | |
21705 | fail: | |
21706 | return NULL; | |
21707 | } | |
21708 | ||
21709 | ||
c370783e | 21710 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21711 | PyObject *resultobj; |
21712 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21713 | long arg2 ; | |
21714 | int arg3 = (int) 0 ; | |
21715 | wxListItem *result; | |
21716 | PyObject * obj0 = 0 ; | |
21717 | PyObject * obj1 = 0 ; | |
21718 | PyObject * obj2 = 0 ; | |
21719 | char *kwnames[] = { | |
21720 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
21721 | }; | |
21722 | ||
21723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21726 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
21727 | if (PyErr_Occurred()) SWIG_fail; |
21728 | if (obj2) { | |
c370783e | 21729 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21730 | if (PyErr_Occurred()) SWIG_fail; |
21731 | } | |
21732 | { | |
21733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21734 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
21735 | ||
21736 | wxPyEndAllowThreads(__tstate); | |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | } | |
21739 | { | |
412d302d | 21740 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21741 | } |
21742 | return resultobj; | |
21743 | fail: | |
21744 | return NULL; | |
21745 | } | |
21746 | ||
21747 | ||
c370783e | 21748 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21749 | PyObject *resultobj; |
21750 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21751 | wxListItem *arg2 = 0 ; | |
21752 | bool result; | |
21753 | PyObject * obj0 = 0 ; | |
21754 | PyObject * obj1 = 0 ; | |
21755 | char *kwnames[] = { | |
21756 | (char *) "self",(char *) "info", NULL | |
21757 | }; | |
21758 | ||
21759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
21760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21762 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
21763 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21764 | SWIG_fail; | |
21765 | if (arg2 == NULL) { | |
21766 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21767 | SWIG_fail; | |
21768 | } | |
21769 | { | |
21770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21771 | result = (bool)(arg1)->SetItem(*arg2); | |
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 | ||
c370783e | 21785 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21786 | PyObject *resultobj; |
21787 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21788 | long arg2 ; | |
21789 | int arg3 ; | |
21790 | wxString *arg4 = 0 ; | |
21791 | int arg5 = (int) -1 ; | |
21792 | long result; | |
21793 | bool temp4 = False ; | |
21794 | PyObject * obj0 = 0 ; | |
21795 | PyObject * obj1 = 0 ; | |
21796 | PyObject * obj2 = 0 ; | |
21797 | PyObject * obj3 = 0 ; | |
21798 | PyObject * obj4 = 0 ; | |
21799 | char *kwnames[] = { | |
21800 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
21801 | }; | |
21802 | ||
21803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21806 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 21807 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21808 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21809 | if (PyErr_Occurred()) SWIG_fail; |
21810 | { | |
21811 | arg4 = wxString_in_helper(obj3); | |
21812 | if (arg4 == NULL) SWIG_fail; | |
21813 | temp4 = True; | |
21814 | } | |
21815 | if (obj4) { | |
c370783e | 21816 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
21817 | if (PyErr_Occurred()) SWIG_fail; |
21818 | } | |
21819 | { | |
21820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21821 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
21822 | ||
21823 | wxPyEndAllowThreads(__tstate); | |
21824 | if (PyErr_Occurred()) SWIG_fail; | |
21825 | } | |
c370783e | 21826 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21827 | { |
21828 | if (temp4) | |
21829 | delete arg4; | |
21830 | } | |
21831 | return resultobj; | |
21832 | fail: | |
21833 | { | |
21834 | if (temp4) | |
21835 | delete arg4; | |
21836 | } | |
21837 | return NULL; | |
21838 | } | |
21839 | ||
21840 | ||
c370783e | 21841 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21842 | PyObject *resultobj; |
21843 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21844 | long arg2 ; | |
21845 | long arg3 ; | |
21846 | int result; | |
21847 | PyObject * obj0 = 0 ; | |
21848 | PyObject * obj1 = 0 ; | |
21849 | PyObject * obj2 = 0 ; | |
21850 | char *kwnames[] = { | |
21851 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
21852 | }; | |
21853 | ||
21854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21857 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 21858 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21859 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
21860 | if (PyErr_Occurred()) SWIG_fail; |
21861 | { | |
21862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21863 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
21864 | ||
21865 | wxPyEndAllowThreads(__tstate); | |
21866 | if (PyErr_Occurred()) SWIG_fail; | |
21867 | } | |
c370783e | 21868 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21869 | return resultobj; |
21870 | fail: | |
21871 | return NULL; | |
21872 | } | |
21873 | ||
21874 | ||
c370783e | 21875 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21876 | PyObject *resultobj; |
21877 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21878 | long arg2 ; | |
21879 | long arg3 ; | |
21880 | long arg4 ; | |
21881 | bool result; | |
21882 | PyObject * obj0 = 0 ; | |
21883 | PyObject * obj1 = 0 ; | |
21884 | PyObject * obj2 = 0 ; | |
21885 | PyObject * obj3 = 0 ; | |
21886 | char *kwnames[] = { | |
21887 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
21888 | }; | |
21889 | ||
21890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21893 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 21894 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21895 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc | 21896 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21897 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
21898 | if (PyErr_Occurred()) SWIG_fail; |
21899 | { | |
21900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21901 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
21902 | ||
21903 | wxPyEndAllowThreads(__tstate); | |
21904 | if (PyErr_Occurred()) SWIG_fail; | |
21905 | } | |
21906 | { | |
21907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21908 | } | |
21909 | return resultobj; | |
21910 | fail: | |
21911 | return NULL; | |
21912 | } | |
21913 | ||
21914 | ||
c370783e | 21915 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21916 | PyObject *resultobj; |
21917 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21918 | long arg2 ; | |
21919 | int arg3 ; | |
21920 | int arg4 ; | |
21921 | bool result; | |
21922 | PyObject * obj0 = 0 ; | |
21923 | PyObject * obj1 = 0 ; | |
21924 | PyObject * obj2 = 0 ; | |
21925 | PyObject * obj3 = 0 ; | |
21926 | char *kwnames[] = { | |
21927 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
21928 | }; | |
21929 | ||
21930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21933 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 21934 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21935 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 21936 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21937 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
21938 | if (PyErr_Occurred()) SWIG_fail; |
21939 | { | |
21940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21941 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21942 | ||
21943 | wxPyEndAllowThreads(__tstate); | |
21944 | if (PyErr_Occurred()) SWIG_fail; | |
21945 | } | |
21946 | { | |
21947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21948 | } | |
21949 | return resultobj; | |
21950 | fail: | |
21951 | return NULL; | |
21952 | } | |
21953 | ||
21954 | ||
c370783e | 21955 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21956 | PyObject *resultobj; |
21957 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21958 | long arg2 ; | |
21959 | wxString result; | |
21960 | PyObject * obj0 = 0 ; | |
21961 | PyObject * obj1 = 0 ; | |
21962 | char *kwnames[] = { | |
21963 | (char *) "self",(char *) "item", NULL | |
21964 | }; | |
21965 | ||
21966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
21967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21969 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
21970 | if (PyErr_Occurred()) SWIG_fail; |
21971 | { | |
21972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21973 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21974 | ||
21975 | wxPyEndAllowThreads(__tstate); | |
21976 | if (PyErr_Occurred()) SWIG_fail; | |
21977 | } | |
21978 | { | |
21979 | #if wxUSE_UNICODE | |
21980 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21981 | #else | |
21982 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21983 | #endif | |
21984 | } | |
21985 | return resultobj; | |
21986 | fail: | |
21987 | return NULL; | |
21988 | } | |
21989 | ||
21990 | ||
c370783e | 21991 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21992 | PyObject *resultobj; |
21993 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21994 | long arg2 ; | |
21995 | wxString *arg3 = 0 ; | |
21996 | bool temp3 = False ; | |
21997 | PyObject * obj0 = 0 ; | |
21998 | PyObject * obj1 = 0 ; | |
21999 | PyObject * obj2 = 0 ; | |
22000 | char *kwnames[] = { | |
22001 | (char *) "self",(char *) "item",(char *) "str", NULL | |
22002 | }; | |
22003 | ||
22004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22007 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22008 | if (PyErr_Occurred()) SWIG_fail; |
22009 | { | |
22010 | arg3 = wxString_in_helper(obj2); | |
22011 | if (arg3 == NULL) SWIG_fail; | |
22012 | temp3 = True; | |
22013 | } | |
22014 | { | |
22015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22016 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
22017 | ||
22018 | wxPyEndAllowThreads(__tstate); | |
22019 | if (PyErr_Occurred()) SWIG_fail; | |
22020 | } | |
22021 | Py_INCREF(Py_None); resultobj = Py_None; | |
22022 | { | |
22023 | if (temp3) | |
22024 | delete arg3; | |
22025 | } | |
22026 | return resultobj; | |
22027 | fail: | |
22028 | { | |
22029 | if (temp3) | |
22030 | delete arg3; | |
22031 | } | |
22032 | return NULL; | |
22033 | } | |
22034 | ||
22035 | ||
c370783e | 22036 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22037 | PyObject *resultobj; |
22038 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22039 | long arg2 ; | |
22040 | long result; | |
22041 | PyObject * obj0 = 0 ; | |
22042 | PyObject * obj1 = 0 ; | |
22043 | char *kwnames[] = { | |
22044 | (char *) "self",(char *) "item", NULL | |
22045 | }; | |
22046 | ||
22047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
22048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22050 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22051 | if (PyErr_Occurred()) SWIG_fail; |
22052 | { | |
22053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22054 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
22055 | ||
22056 | wxPyEndAllowThreads(__tstate); | |
22057 | if (PyErr_Occurred()) SWIG_fail; | |
22058 | } | |
c370783e | 22059 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
22060 | return resultobj; |
22061 | fail: | |
22062 | return NULL; | |
22063 | } | |
22064 | ||
22065 | ||
c370783e | 22066 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22067 | PyObject *resultobj; |
22068 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22069 | long arg2 ; | |
22070 | long arg3 ; | |
22071 | bool result; | |
22072 | PyObject * obj0 = 0 ; | |
22073 | PyObject * obj1 = 0 ; | |
22074 | PyObject * obj2 = 0 ; | |
22075 | char *kwnames[] = { | |
22076 | (char *) "self",(char *) "item",(char *) "data", NULL | |
22077 | }; | |
22078 | ||
22079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22082 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 22083 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22084 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
22085 | if (PyErr_Occurred()) SWIG_fail; |
22086 | { | |
22087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22088 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
22089 | ||
22090 | wxPyEndAllowThreads(__tstate); | |
22091 | if (PyErr_Occurred()) SWIG_fail; | |
22092 | } | |
22093 | { | |
22094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22095 | } | |
22096 | return resultobj; | |
22097 | fail: | |
22098 | return NULL; | |
22099 | } | |
22100 | ||
22101 | ||
c370783e | 22102 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22103 | PyObject *resultobj; |
22104 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22105 | long arg2 ; | |
22106 | wxPoint result; | |
22107 | PyObject * obj0 = 0 ; | |
22108 | PyObject * obj1 = 0 ; | |
22109 | char *kwnames[] = { | |
22110 | (char *) "self",(char *) "item", NULL | |
22111 | }; | |
22112 | ||
22113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
22114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22116 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22117 | if (PyErr_Occurred()) SWIG_fail; |
22118 | { | |
22119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22120 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
22121 | ||
22122 | wxPyEndAllowThreads(__tstate); | |
22123 | if (PyErr_Occurred()) SWIG_fail; | |
22124 | } | |
22125 | { | |
22126 | wxPoint * resultptr; | |
22127 | resultptr = new wxPoint((wxPoint &) result); | |
22128 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
22129 | } | |
22130 | return resultobj; | |
22131 | fail: | |
22132 | return NULL; | |
22133 | } | |
22134 | ||
22135 | ||
c370783e | 22136 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22137 | PyObject *resultobj; |
22138 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22139 | long arg2 ; | |
22140 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
22141 | wxRect result; | |
22142 | PyObject * obj0 = 0 ; | |
22143 | PyObject * obj1 = 0 ; | |
22144 | PyObject * obj2 = 0 ; | |
22145 | char *kwnames[] = { | |
22146 | (char *) "self",(char *) "item",(char *) "code", NULL | |
22147 | }; | |
22148 | ||
22149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22152 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22153 | if (PyErr_Occurred()) SWIG_fail; |
22154 | if (obj2) { | |
c370783e | 22155 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22156 | if (PyErr_Occurred()) SWIG_fail; |
22157 | } | |
22158 | { | |
22159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22160 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
22161 | ||
22162 | wxPyEndAllowThreads(__tstate); | |
22163 | if (PyErr_Occurred()) SWIG_fail; | |
22164 | } | |
22165 | { | |
22166 | wxRect * resultptr; | |
22167 | resultptr = new wxRect((wxRect &) result); | |
22168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22169 | } | |
22170 | return resultobj; | |
22171 | fail: | |
22172 | return NULL; | |
22173 | } | |
22174 | ||
22175 | ||
c370783e | 22176 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22177 | PyObject *resultobj; |
22178 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22179 | long arg2 ; | |
22180 | wxPoint *arg3 = 0 ; | |
22181 | bool result; | |
22182 | wxPoint temp3 ; | |
22183 | PyObject * obj0 = 0 ; | |
22184 | PyObject * obj1 = 0 ; | |
22185 | PyObject * obj2 = 0 ; | |
22186 | char *kwnames[] = { | |
22187 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
22188 | }; | |
22189 | ||
22190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22193 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22194 | if (PyErr_Occurred()) SWIG_fail; |
22195 | { | |
22196 | arg3 = &temp3; | |
22197 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22198 | } | |
22199 | { | |
22200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22201 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
22202 | ||
22203 | wxPyEndAllowThreads(__tstate); | |
22204 | if (PyErr_Occurred()) SWIG_fail; | |
22205 | } | |
22206 | { | |
22207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22208 | } | |
22209 | return resultobj; | |
22210 | fail: | |
22211 | return NULL; | |
22212 | } | |
22213 | ||
22214 | ||
c370783e | 22215 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22216 | PyObject *resultobj; |
22217 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22218 | int result; | |
22219 | PyObject * obj0 = 0 ; | |
22220 | char *kwnames[] = { | |
22221 | (char *) "self", NULL | |
22222 | }; | |
22223 | ||
22224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
22225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22227 | { | |
22228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22229 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
22230 | ||
22231 | wxPyEndAllowThreads(__tstate); | |
22232 | if (PyErr_Occurred()) SWIG_fail; | |
22233 | } | |
c370783e | 22234 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22235 | return resultobj; |
22236 | fail: | |
22237 | return NULL; | |
22238 | } | |
22239 | ||
22240 | ||
c370783e | 22241 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22242 | PyObject *resultobj; |
22243 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22244 | int result; | |
22245 | PyObject * obj0 = 0 ; | |
22246 | char *kwnames[] = { | |
22247 | (char *) "self", NULL | |
22248 | }; | |
22249 | ||
22250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
22251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22253 | { | |
22254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22255 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
22256 | ||
22257 | wxPyEndAllowThreads(__tstate); | |
22258 | if (PyErr_Occurred()) SWIG_fail; | |
22259 | } | |
c370783e | 22260 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22261 | return resultobj; |
22262 | fail: | |
22263 | return NULL; | |
22264 | } | |
22265 | ||
22266 | ||
c370783e | 22267 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22268 | PyObject *resultobj; |
22269 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22270 | wxSize result; | |
22271 | PyObject * obj0 = 0 ; | |
22272 | char *kwnames[] = { | |
22273 | (char *) "self", NULL | |
22274 | }; | |
22275 | ||
22276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
22277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22279 | { | |
22280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22281 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
22282 | ||
22283 | wxPyEndAllowThreads(__tstate); | |
22284 | if (PyErr_Occurred()) SWIG_fail; | |
22285 | } | |
22286 | { | |
22287 | wxSize * resultptr; | |
22288 | resultptr = new wxSize((wxSize &) result); | |
22289 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22290 | } | |
22291 | return resultobj; | |
22292 | fail: | |
22293 | return NULL; | |
22294 | } | |
22295 | ||
22296 | ||
c370783e | 22297 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22298 | PyObject *resultobj; |
22299 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22300 | int arg2 ; | |
22301 | bool arg3 = (bool) False ; | |
22302 | PyObject * obj0 = 0 ; | |
22303 | PyObject * obj1 = 0 ; | |
22304 | PyObject * obj2 = 0 ; | |
22305 | char *kwnames[] = { | |
22306 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
22307 | }; | |
22308 | ||
22309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22312 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22313 | if (PyErr_Occurred()) SWIG_fail; |
22314 | if (obj2) { | |
c370783e | 22315 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
22316 | if (PyErr_Occurred()) SWIG_fail; |
22317 | } | |
22318 | { | |
22319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22320 | (arg1)->SetItemSpacing(arg2,arg3); | |
22321 | ||
22322 | wxPyEndAllowThreads(__tstate); | |
22323 | if (PyErr_Occurred()) SWIG_fail; | |
22324 | } | |
22325 | Py_INCREF(Py_None); resultobj = Py_None; | |
22326 | return resultobj; | |
22327 | fail: | |
22328 | return NULL; | |
22329 | } | |
22330 | ||
22331 | ||
c370783e | 22332 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22333 | PyObject *resultobj; |
22334 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22335 | int result; | |
22336 | PyObject * obj0 = 0 ; | |
22337 | char *kwnames[] = { | |
22338 | (char *) "self", NULL | |
22339 | }; | |
22340 | ||
22341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
22342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22344 | { | |
22345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22346 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22347 | ||
22348 | wxPyEndAllowThreads(__tstate); | |
22349 | if (PyErr_Occurred()) SWIG_fail; | |
22350 | } | |
c370783e | 22351 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22352 | return resultobj; |
22353 | fail: | |
22354 | return NULL; | |
22355 | } | |
22356 | ||
22357 | ||
c370783e | 22358 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22359 | PyObject *resultobj; |
22360 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22361 | wxColour result; | |
22362 | PyObject * obj0 = 0 ; | |
22363 | char *kwnames[] = { | |
22364 | (char *) "self", NULL | |
22365 | }; | |
22366 | ||
22367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
22368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22370 | { | |
22371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22372 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22373 | ||
22374 | wxPyEndAllowThreads(__tstate); | |
22375 | if (PyErr_Occurred()) SWIG_fail; | |
22376 | } | |
22377 | { | |
22378 | wxColour * resultptr; | |
22379 | resultptr = new wxColour((wxColour &) result); | |
22380 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
22381 | } | |
22382 | return resultobj; | |
22383 | fail: | |
22384 | return NULL; | |
22385 | } | |
22386 | ||
22387 | ||
c370783e | 22388 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22389 | PyObject *resultobj; |
22390 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22391 | wxColour *arg2 = 0 ; | |
22392 | wxColour temp2 ; | |
22393 | PyObject * obj0 = 0 ; | |
22394 | PyObject * obj1 = 0 ; | |
22395 | char *kwnames[] = { | |
22396 | (char *) "self",(char *) "col", NULL | |
22397 | }; | |
22398 | ||
22399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
22400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22402 | { | |
22403 | arg2 = &temp2; | |
22404 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22405 | } | |
22406 | { | |
22407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22408 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22409 | ||
22410 | wxPyEndAllowThreads(__tstate); | |
22411 | if (PyErr_Occurred()) SWIG_fail; | |
22412 | } | |
22413 | Py_INCREF(Py_None); resultobj = Py_None; | |
22414 | return resultobj; | |
22415 | fail: | |
22416 | return NULL; | |
22417 | } | |
22418 | ||
22419 | ||
c370783e | 22420 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22421 | PyObject *resultobj; |
22422 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22423 | long result; | |
22424 | PyObject * obj0 = 0 ; | |
22425 | char *kwnames[] = { | |
22426 | (char *) "self", NULL | |
22427 | }; | |
22428 | ||
22429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
22430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22432 | { | |
22433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22434 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
22435 | ||
22436 | wxPyEndAllowThreads(__tstate); | |
22437 | if (PyErr_Occurred()) SWIG_fail; | |
22438 | } | |
c370783e | 22439 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
22440 | return resultobj; |
22441 | fail: | |
22442 | return NULL; | |
22443 | } | |
22444 | ||
22445 | ||
c370783e | 22446 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22447 | PyObject *resultobj; |
22448 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22449 | long arg2 ; | |
22450 | bool arg3 = (bool) True ; | |
22451 | PyObject * obj0 = 0 ; | |
22452 | PyObject * obj1 = 0 ; | |
22453 | PyObject * obj2 = 0 ; | |
22454 | char *kwnames[] = { | |
22455 | (char *) "self",(char *) "style",(char *) "add", NULL | |
22456 | }; | |
22457 | ||
22458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22461 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22462 | if (PyErr_Occurred()) SWIG_fail; |
22463 | if (obj2) { | |
c370783e | 22464 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
22465 | if (PyErr_Occurred()) SWIG_fail; |
22466 | } | |
22467 | { | |
22468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22469 | (arg1)->SetSingleStyle(arg2,arg3); | |
22470 | ||
22471 | wxPyEndAllowThreads(__tstate); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | } | |
22474 | Py_INCREF(Py_None); resultobj = Py_None; | |
22475 | return resultobj; | |
22476 | fail: | |
22477 | return NULL; | |
22478 | } | |
22479 | ||
22480 | ||
c370783e | 22481 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22482 | PyObject *resultobj; |
22483 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22484 | long arg2 ; | |
22485 | PyObject * obj0 = 0 ; | |
22486 | PyObject * obj1 = 0 ; | |
22487 | char *kwnames[] = { | |
22488 | (char *) "self",(char *) "style", NULL | |
22489 | }; | |
22490 | ||
22491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
22492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22494 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22495 | if (PyErr_Occurred()) SWIG_fail; |
22496 | { | |
22497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22498 | (arg1)->SetWindowStyleFlag(arg2); | |
22499 | ||
22500 | wxPyEndAllowThreads(__tstate); | |
22501 | if (PyErr_Occurred()) SWIG_fail; | |
22502 | } | |
22503 | Py_INCREF(Py_None); resultobj = Py_None; | |
22504 | return resultobj; | |
22505 | fail: | |
22506 | return NULL; | |
22507 | } | |
22508 | ||
22509 | ||
c370783e | 22510 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22511 | PyObject *resultobj; |
22512 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22513 | long arg2 ; | |
22514 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
22515 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
22516 | long result; | |
22517 | PyObject * obj0 = 0 ; | |
22518 | PyObject * obj1 = 0 ; | |
22519 | PyObject * obj2 = 0 ; | |
22520 | PyObject * obj3 = 0 ; | |
22521 | char *kwnames[] = { | |
22522 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
22523 | }; | |
22524 | ||
22525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22528 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22529 | if (PyErr_Occurred()) SWIG_fail; |
22530 | if (obj2) { | |
c370783e | 22531 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22532 | if (PyErr_Occurred()) SWIG_fail; |
22533 | } | |
22534 | if (obj3) { | |
c370783e | 22535 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
22536 | if (PyErr_Occurred()) SWIG_fail; |
22537 | } | |
22538 | { | |
22539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22540 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
22541 | ||
22542 | wxPyEndAllowThreads(__tstate); | |
22543 | if (PyErr_Occurred()) SWIG_fail; | |
22544 | } | |
c370783e | 22545 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
22546 | return resultobj; |
22547 | fail: | |
22548 | return NULL; | |
22549 | } | |
22550 | ||
22551 | ||
c370783e | 22552 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22553 | PyObject *resultobj; |
22554 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22555 | int arg2 ; | |
22556 | wxImageList *result; | |
22557 | PyObject * obj0 = 0 ; | |
22558 | PyObject * obj1 = 0 ; | |
22559 | char *kwnames[] = { | |
22560 | (char *) "self",(char *) "which", NULL | |
22561 | }; | |
22562 | ||
22563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
22564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22566 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22567 | if (PyErr_Occurred()) SWIG_fail; |
22568 | { | |
22569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22570 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
22571 | ||
22572 | wxPyEndAllowThreads(__tstate); | |
22573 | if (PyErr_Occurred()) SWIG_fail; | |
22574 | } | |
22575 | { | |
412d302d | 22576 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22577 | } |
22578 | return resultobj; | |
22579 | fail: | |
22580 | return NULL; | |
22581 | } | |
22582 | ||
22583 | ||
c370783e | 22584 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22585 | PyObject *resultobj; |
22586 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22587 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22588 | int arg3 ; | |
22589 | PyObject * obj0 = 0 ; | |
22590 | PyObject * obj1 = 0 ; | |
22591 | PyObject * obj2 = 0 ; | |
22592 | char *kwnames[] = { | |
22593 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22594 | }; | |
22595 | ||
22596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22599 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22601 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22602 | if (PyErr_Occurred()) SWIG_fail; |
22603 | { | |
22604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22605 | (arg1)->SetImageList(arg2,arg3); | |
22606 | ||
22607 | wxPyEndAllowThreads(__tstate); | |
22608 | if (PyErr_Occurred()) SWIG_fail; | |
22609 | } | |
22610 | Py_INCREF(Py_None); resultobj = Py_None; | |
22611 | return resultobj; | |
22612 | fail: | |
22613 | return NULL; | |
22614 | } | |
22615 | ||
22616 | ||
c370783e | 22617 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22618 | PyObject *resultobj; |
22619 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22620 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22621 | int arg3 ; | |
22622 | PyObject * obj0 = 0 ; | |
22623 | PyObject * obj1 = 0 ; | |
22624 | PyObject * obj2 = 0 ; | |
22625 | char *kwnames[] = { | |
22626 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22627 | }; | |
22628 | ||
22629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22633 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
c370783e | 22634 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22635 | if (PyErr_Occurred()) SWIG_fail; |
22636 | { | |
22637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22638 | (arg1)->AssignImageList(arg2,arg3); | |
22639 | ||
22640 | wxPyEndAllowThreads(__tstate); | |
22641 | if (PyErr_Occurred()) SWIG_fail; | |
22642 | } | |
22643 | Py_INCREF(Py_None); resultobj = Py_None; | |
22644 | return resultobj; | |
22645 | fail: | |
22646 | return NULL; | |
22647 | } | |
22648 | ||
22649 | ||
c370783e | 22650 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22651 | PyObject *resultobj; |
22652 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22653 | bool result; | |
22654 | PyObject * obj0 = 0 ; | |
22655 | char *kwnames[] = { | |
22656 | (char *) "self", NULL | |
22657 | }; | |
22658 | ||
22659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
22660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22662 | { | |
22663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22664 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
22665 | ||
22666 | wxPyEndAllowThreads(__tstate); | |
22667 | if (PyErr_Occurred()) SWIG_fail; | |
22668 | } | |
22669 | { | |
22670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22671 | } | |
22672 | return resultobj; | |
22673 | fail: | |
22674 | return NULL; | |
22675 | } | |
22676 | ||
22677 | ||
c370783e | 22678 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22679 | PyObject *resultobj; |
22680 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22681 | bool result; | |
22682 | PyObject * obj0 = 0 ; | |
22683 | char *kwnames[] = { | |
22684 | (char *) "self", NULL | |
22685 | }; | |
22686 | ||
22687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
22688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22690 | { | |
22691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22692 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
22693 | ||
22694 | wxPyEndAllowThreads(__tstate); | |
22695 | if (PyErr_Occurred()) SWIG_fail; | |
22696 | } | |
22697 | { | |
22698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22699 | } | |
22700 | return resultobj; | |
22701 | fail: | |
22702 | return NULL; | |
22703 | } | |
22704 | ||
22705 | ||
c370783e | 22706 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22707 | PyObject *resultobj; |
22708 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22709 | long arg2 ; | |
22710 | PyObject * obj0 = 0 ; | |
22711 | PyObject * obj1 = 0 ; | |
22712 | char *kwnames[] = { | |
22713 | (char *) "self",(char *) "item", NULL | |
22714 | }; | |
22715 | ||
22716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
22717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22719 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22720 | if (PyErr_Occurred()) SWIG_fail; |
22721 | { | |
22722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22723 | (arg1)->RefreshItem(arg2); | |
22724 | ||
22725 | wxPyEndAllowThreads(__tstate); | |
22726 | if (PyErr_Occurred()) SWIG_fail; | |
22727 | } | |
22728 | Py_INCREF(Py_None); resultobj = Py_None; | |
22729 | return resultobj; | |
22730 | fail: | |
22731 | return NULL; | |
22732 | } | |
22733 | ||
22734 | ||
c370783e | 22735 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22736 | PyObject *resultobj; |
22737 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22738 | long arg2 ; | |
22739 | long arg3 ; | |
22740 | PyObject * obj0 = 0 ; | |
22741 | PyObject * obj1 = 0 ; | |
22742 | PyObject * obj2 = 0 ; | |
22743 | char *kwnames[] = { | |
22744 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
22745 | }; | |
22746 | ||
22747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22750 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 22751 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22752 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
22753 | if (PyErr_Occurred()) SWIG_fail; |
22754 | { | |
22755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22756 | (arg1)->RefreshItems(arg2,arg3); | |
22757 | ||
22758 | wxPyEndAllowThreads(__tstate); | |
22759 | if (PyErr_Occurred()) SWIG_fail; | |
22760 | } | |
22761 | Py_INCREF(Py_None); resultobj = Py_None; | |
22762 | return resultobj; | |
22763 | fail: | |
22764 | return NULL; | |
22765 | } | |
22766 | ||
22767 | ||
c370783e | 22768 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22769 | PyObject *resultobj; |
22770 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22771 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
22772 | bool result; | |
22773 | PyObject * obj0 = 0 ; | |
22774 | PyObject * obj1 = 0 ; | |
22775 | char *kwnames[] = { | |
22776 | (char *) "self",(char *) "flag", NULL | |
22777 | }; | |
22778 | ||
22779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
22780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22782 | if (obj1) { | |
c370783e | 22783 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22784 | if (PyErr_Occurred()) SWIG_fail; |
22785 | } | |
22786 | { | |
22787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22788 | result = (bool)(arg1)->Arrange(arg2); | |
22789 | ||
22790 | wxPyEndAllowThreads(__tstate); | |
22791 | if (PyErr_Occurred()) SWIG_fail; | |
22792 | } | |
22793 | { | |
22794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22795 | } | |
22796 | return resultobj; | |
22797 | fail: | |
22798 | return NULL; | |
22799 | } | |
22800 | ||
22801 | ||
c370783e | 22802 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22803 | PyObject *resultobj; |
22804 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22805 | long arg2 ; | |
22806 | bool result; | |
22807 | PyObject * obj0 = 0 ; | |
22808 | PyObject * obj1 = 0 ; | |
22809 | char *kwnames[] = { | |
22810 | (char *) "self",(char *) "item", NULL | |
22811 | }; | |
22812 | ||
22813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
22814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22816 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22817 | if (PyErr_Occurred()) SWIG_fail; |
22818 | { | |
22819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22820 | result = (bool)(arg1)->DeleteItem(arg2); | |
22821 | ||
22822 | wxPyEndAllowThreads(__tstate); | |
22823 | if (PyErr_Occurred()) SWIG_fail; | |
22824 | } | |
22825 | { | |
22826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22827 | } | |
22828 | return resultobj; | |
22829 | fail: | |
22830 | return NULL; | |
22831 | } | |
22832 | ||
22833 | ||
c370783e | 22834 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22835 | PyObject *resultobj; |
22836 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22837 | bool result; | |
22838 | PyObject * obj0 = 0 ; | |
22839 | char *kwnames[] = { | |
22840 | (char *) "self", NULL | |
22841 | }; | |
22842 | ||
22843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
22844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22846 | { | |
22847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22848 | result = (bool)(arg1)->DeleteAllItems(); | |
22849 | ||
22850 | wxPyEndAllowThreads(__tstate); | |
22851 | if (PyErr_Occurred()) SWIG_fail; | |
22852 | } | |
22853 | { | |
22854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22855 | } | |
22856 | return resultobj; | |
22857 | fail: | |
22858 | return NULL; | |
22859 | } | |
22860 | ||
22861 | ||
c370783e | 22862 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22863 | PyObject *resultobj; |
22864 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22865 | int arg2 ; | |
22866 | bool result; | |
22867 | PyObject * obj0 = 0 ; | |
22868 | PyObject * obj1 = 0 ; | |
22869 | char *kwnames[] = { | |
22870 | (char *) "self",(char *) "col", NULL | |
22871 | }; | |
22872 | ||
22873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
22874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22876 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22877 | if (PyErr_Occurred()) SWIG_fail; |
22878 | { | |
22879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22880 | result = (bool)(arg1)->DeleteColumn(arg2); | |
22881 | ||
22882 | wxPyEndAllowThreads(__tstate); | |
22883 | if (PyErr_Occurred()) SWIG_fail; | |
22884 | } | |
22885 | { | |
22886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22887 | } | |
22888 | return resultobj; | |
22889 | fail: | |
22890 | return NULL; | |
22891 | } | |
22892 | ||
22893 | ||
c370783e | 22894 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22895 | PyObject *resultobj; |
22896 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22897 | bool result; | |
22898 | PyObject * obj0 = 0 ; | |
22899 | char *kwnames[] = { | |
22900 | (char *) "self", NULL | |
22901 | }; | |
22902 | ||
22903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
22904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22906 | { | |
22907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22908 | result = (bool)(arg1)->DeleteAllColumns(); | |
22909 | ||
22910 | wxPyEndAllowThreads(__tstate); | |
22911 | if (PyErr_Occurred()) SWIG_fail; | |
22912 | } | |
22913 | { | |
22914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22915 | } | |
22916 | return resultobj; | |
22917 | fail: | |
22918 | return NULL; | |
22919 | } | |
22920 | ||
22921 | ||
c370783e | 22922 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22923 | PyObject *resultobj; |
22924 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22925 | PyObject * obj0 = 0 ; | |
22926 | char *kwnames[] = { | |
22927 | (char *) "self", NULL | |
22928 | }; | |
22929 | ||
22930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
22931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22933 | { | |
22934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22935 | (arg1)->ClearAll(); | |
22936 | ||
22937 | wxPyEndAllowThreads(__tstate); | |
22938 | if (PyErr_Occurred()) SWIG_fail; | |
22939 | } | |
22940 | Py_INCREF(Py_None); resultobj = Py_None; | |
22941 | return resultobj; | |
22942 | fail: | |
22943 | return NULL; | |
22944 | } | |
22945 | ||
22946 | ||
c370783e | 22947 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22948 | PyObject *resultobj; |
22949 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22950 | long arg2 ; | |
22951 | PyObject * obj0 = 0 ; | |
22952 | PyObject * obj1 = 0 ; | |
22953 | char *kwnames[] = { | |
22954 | (char *) "self",(char *) "item", NULL | |
22955 | }; | |
22956 | ||
22957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
22958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22960 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22961 | if (PyErr_Occurred()) SWIG_fail; |
22962 | { | |
22963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22964 | (arg1)->EditLabel(arg2); | |
22965 | ||
22966 | wxPyEndAllowThreads(__tstate); | |
22967 | if (PyErr_Occurred()) SWIG_fail; | |
22968 | } | |
22969 | Py_INCREF(Py_None); resultobj = Py_None; | |
22970 | return resultobj; | |
22971 | fail: | |
22972 | return NULL; | |
22973 | } | |
22974 | ||
22975 | ||
c370783e | 22976 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22977 | PyObject *resultobj; |
22978 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22979 | long arg2 ; | |
22980 | bool result; | |
22981 | PyObject * obj0 = 0 ; | |
22982 | PyObject * obj1 = 0 ; | |
22983 | char *kwnames[] = { | |
22984 | (char *) "self",(char *) "item", NULL | |
22985 | }; | |
22986 | ||
22987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
22988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22990 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22991 | if (PyErr_Occurred()) SWIG_fail; |
22992 | { | |
22993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22994 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22995 | ||
22996 | wxPyEndAllowThreads(__tstate); | |
22997 | if (PyErr_Occurred()) SWIG_fail; | |
22998 | } | |
22999 | { | |
23000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23001 | } | |
23002 | return resultobj; | |
23003 | fail: | |
23004 | return NULL; | |
23005 | } | |
23006 | ||
23007 | ||
c370783e | 23008 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23009 | PyObject *resultobj; |
23010 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23011 | long arg2 ; | |
23012 | wxString *arg3 = 0 ; | |
23013 | bool arg4 = (bool) False ; | |
23014 | long result; | |
23015 | bool temp3 = False ; | |
23016 | PyObject * obj0 = 0 ; | |
23017 | PyObject * obj1 = 0 ; | |
23018 | PyObject * obj2 = 0 ; | |
23019 | PyObject * obj3 = 0 ; | |
23020 | char *kwnames[] = { | |
23021 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
23022 | }; | |
23023 | ||
23024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23027 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23028 | if (PyErr_Occurred()) SWIG_fail; |
23029 | { | |
23030 | arg3 = wxString_in_helper(obj2); | |
23031 | if (arg3 == NULL) SWIG_fail; | |
23032 | temp3 = True; | |
23033 | } | |
23034 | if (obj3) { | |
c370783e | 23035 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
23036 | if (PyErr_Occurred()) SWIG_fail; |
23037 | } | |
23038 | { | |
23039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23040 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
23041 | ||
23042 | wxPyEndAllowThreads(__tstate); | |
23043 | if (PyErr_Occurred()) SWIG_fail; | |
23044 | } | |
c370783e | 23045 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23046 | { |
23047 | if (temp3) | |
23048 | delete arg3; | |
23049 | } | |
23050 | return resultobj; | |
23051 | fail: | |
23052 | { | |
23053 | if (temp3) | |
23054 | delete arg3; | |
23055 | } | |
23056 | return NULL; | |
23057 | } | |
23058 | ||
23059 | ||
c370783e | 23060 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23061 | PyObject *resultobj; |
23062 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23063 | long arg2 ; | |
23064 | long arg3 ; | |
23065 | long result; | |
23066 | PyObject * obj0 = 0 ; | |
23067 | PyObject * obj1 = 0 ; | |
23068 | PyObject * obj2 = 0 ; | |
23069 | char *kwnames[] = { | |
23070 | (char *) "self",(char *) "start",(char *) "data", NULL | |
23071 | }; | |
23072 | ||
23073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23076 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 23077 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23078 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
23079 | if (PyErr_Occurred()) SWIG_fail; |
23080 | { | |
23081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23082 | result = (long)(arg1)->FindItem(arg2,arg3); | |
23083 | ||
23084 | wxPyEndAllowThreads(__tstate); | |
23085 | if (PyErr_Occurred()) SWIG_fail; | |
23086 | } | |
c370783e | 23087 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23088 | return resultobj; |
23089 | fail: | |
23090 | return NULL; | |
23091 | } | |
23092 | ||
23093 | ||
c370783e | 23094 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23095 | PyObject *resultobj; |
23096 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23097 | long arg2 ; | |
23098 | wxPoint *arg3 = 0 ; | |
23099 | int arg4 ; | |
23100 | long result; | |
23101 | wxPoint temp3 ; | |
23102 | PyObject * obj0 = 0 ; | |
23103 | PyObject * obj1 = 0 ; | |
23104 | PyObject * obj2 = 0 ; | |
23105 | PyObject * obj3 = 0 ; | |
23106 | char *kwnames[] = { | |
23107 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
23108 | }; | |
23109 | ||
23110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23113 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23114 | if (PyErr_Occurred()) SWIG_fail; |
23115 | { | |
23116 | arg3 = &temp3; | |
23117 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23118 | } | |
c370783e | 23119 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23120 | if (PyErr_Occurred()) SWIG_fail; |
23121 | { | |
23122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23123 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
23124 | ||
23125 | wxPyEndAllowThreads(__tstate); | |
23126 | if (PyErr_Occurred()) SWIG_fail; | |
23127 | } | |
c370783e | 23128 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23129 | return resultobj; |
23130 | fail: | |
23131 | return NULL; | |
23132 | } | |
23133 | ||
23134 | ||
c370783e | 23135 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23136 | PyObject *resultobj; |
23137 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23138 | wxPoint *arg2 = 0 ; | |
23139 | int *arg3 = 0 ; | |
23140 | long result; | |
23141 | wxPoint temp2 ; | |
23142 | int temp3 ; | |
c370783e | 23143 | int res3 = 0 ; |
d55e5bfc RD |
23144 | PyObject * obj0 = 0 ; |
23145 | PyObject * obj1 = 0 ; | |
23146 | char *kwnames[] = { | |
23147 | (char *) "self",(char *) "point", NULL | |
23148 | }; | |
23149 | ||
c370783e | 23150 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
23151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
23152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23154 | { | |
23155 | arg2 = &temp2; | |
23156 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23157 | } | |
23158 | { | |
23159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23160 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23161 | ||
23162 | wxPyEndAllowThreads(__tstate); | |
23163 | if (PyErr_Occurred()) SWIG_fail; | |
23164 | } | |
c370783e RD |
23165 | resultobj = SWIG_From_long((long)result); |
23166 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23167 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23168 | return resultobj; |
23169 | fail: | |
23170 | return NULL; | |
23171 | } | |
23172 | ||
23173 | ||
c370783e | 23174 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23175 | PyObject *resultobj; |
23176 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23177 | wxListItem *arg2 = 0 ; | |
23178 | long result; | |
23179 | PyObject * obj0 = 0 ; | |
23180 | PyObject * obj1 = 0 ; | |
23181 | char *kwnames[] = { | |
23182 | (char *) "self",(char *) "info", NULL | |
23183 | }; | |
23184 | ||
23185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
23186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23188 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
23189 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23190 | SWIG_fail; | |
23191 | if (arg2 == NULL) { | |
23192 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23193 | SWIG_fail; | |
23194 | } | |
23195 | { | |
23196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23197 | result = (long)(arg1)->InsertItem(*arg2); | |
23198 | ||
23199 | wxPyEndAllowThreads(__tstate); | |
23200 | if (PyErr_Occurred()) SWIG_fail; | |
23201 | } | |
c370783e | 23202 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23203 | return resultobj; |
23204 | fail: | |
23205 | return NULL; | |
23206 | } | |
23207 | ||
23208 | ||
c370783e | 23209 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23210 | PyObject *resultobj; |
23211 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23212 | long arg2 ; | |
23213 | wxString *arg3 = 0 ; | |
23214 | long result; | |
23215 | bool temp3 = False ; | |
23216 | PyObject * obj0 = 0 ; | |
23217 | PyObject * obj1 = 0 ; | |
23218 | PyObject * obj2 = 0 ; | |
23219 | char *kwnames[] = { | |
23220 | (char *) "self",(char *) "index",(char *) "label", NULL | |
23221 | }; | |
23222 | ||
23223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23226 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23227 | if (PyErr_Occurred()) SWIG_fail; |
23228 | { | |
23229 | arg3 = wxString_in_helper(obj2); | |
23230 | if (arg3 == NULL) SWIG_fail; | |
23231 | temp3 = True; | |
23232 | } | |
23233 | { | |
23234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23235 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
23236 | ||
23237 | wxPyEndAllowThreads(__tstate); | |
23238 | if (PyErr_Occurred()) SWIG_fail; | |
23239 | } | |
c370783e | 23240 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23241 | { |
23242 | if (temp3) | |
23243 | delete arg3; | |
23244 | } | |
23245 | return resultobj; | |
23246 | fail: | |
23247 | { | |
23248 | if (temp3) | |
23249 | delete arg3; | |
23250 | } | |
23251 | return NULL; | |
23252 | } | |
23253 | ||
23254 | ||
c370783e | 23255 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23256 | PyObject *resultobj; |
23257 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23258 | long arg2 ; | |
23259 | int arg3 ; | |
23260 | long result; | |
23261 | PyObject * obj0 = 0 ; | |
23262 | PyObject * obj1 = 0 ; | |
23263 | PyObject * obj2 = 0 ; | |
23264 | char *kwnames[] = { | |
23265 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
23266 | }; | |
23267 | ||
23268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23271 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 23272 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23273 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23274 | if (PyErr_Occurred()) SWIG_fail; |
23275 | { | |
23276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23277 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
23278 | ||
23279 | wxPyEndAllowThreads(__tstate); | |
23280 | if (PyErr_Occurred()) SWIG_fail; | |
23281 | } | |
c370783e | 23282 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23283 | return resultobj; |
23284 | fail: | |
23285 | return NULL; | |
23286 | } | |
23287 | ||
23288 | ||
c370783e | 23289 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23290 | PyObject *resultobj; |
23291 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23292 | long arg2 ; | |
23293 | wxString *arg3 = 0 ; | |
23294 | int arg4 ; | |
23295 | long result; | |
23296 | bool temp3 = False ; | |
23297 | PyObject * obj0 = 0 ; | |
23298 | PyObject * obj1 = 0 ; | |
23299 | PyObject * obj2 = 0 ; | |
23300 | PyObject * obj3 = 0 ; | |
23301 | char *kwnames[] = { | |
23302 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
23303 | }; | |
23304 | ||
23305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23308 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23309 | if (PyErr_Occurred()) SWIG_fail; |
23310 | { | |
23311 | arg3 = wxString_in_helper(obj2); | |
23312 | if (arg3 == NULL) SWIG_fail; | |
23313 | temp3 = True; | |
23314 | } | |
c370783e | 23315 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23316 | if (PyErr_Occurred()) SWIG_fail; |
23317 | { | |
23318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23319 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23320 | ||
23321 | wxPyEndAllowThreads(__tstate); | |
23322 | if (PyErr_Occurred()) SWIG_fail; | |
23323 | } | |
c370783e | 23324 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23325 | { |
23326 | if (temp3) | |
23327 | delete arg3; | |
23328 | } | |
23329 | return resultobj; | |
23330 | fail: | |
23331 | { | |
23332 | if (temp3) | |
23333 | delete arg3; | |
23334 | } | |
23335 | return NULL; | |
23336 | } | |
23337 | ||
23338 | ||
c370783e | 23339 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23340 | PyObject *resultobj; |
23341 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23342 | long arg2 ; | |
23343 | wxListItem *arg3 = 0 ; | |
23344 | long result; | |
23345 | PyObject * obj0 = 0 ; | |
23346 | PyObject * obj1 = 0 ; | |
23347 | PyObject * obj2 = 0 ; | |
23348 | char *kwnames[] = { | |
23349 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23350 | }; | |
23351 | ||
23352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23355 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23356 | if (PyErr_Occurred()) SWIG_fail; |
23357 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23358 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23359 | SWIG_fail; | |
23360 | if (arg3 == NULL) { | |
23361 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23362 | SWIG_fail; | |
23363 | } | |
23364 | { | |
23365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23366 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23367 | ||
23368 | wxPyEndAllowThreads(__tstate); | |
23369 | if (PyErr_Occurred()) SWIG_fail; | |
23370 | } | |
c370783e | 23371 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23372 | return resultobj; |
23373 | fail: | |
23374 | return NULL; | |
23375 | } | |
23376 | ||
23377 | ||
c370783e | 23378 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23379 | PyObject *resultobj; |
23380 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23381 | long arg2 ; | |
23382 | wxString *arg3 = 0 ; | |
23383 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23384 | int arg5 = (int) -1 ; | |
23385 | long result; | |
23386 | bool temp3 = False ; | |
23387 | PyObject * obj0 = 0 ; | |
23388 | PyObject * obj1 = 0 ; | |
23389 | PyObject * obj2 = 0 ; | |
23390 | PyObject * obj3 = 0 ; | |
23391 | PyObject * obj4 = 0 ; | |
23392 | char *kwnames[] = { | |
23393 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23394 | }; | |
23395 | ||
23396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23399 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23400 | if (PyErr_Occurred()) SWIG_fail; |
23401 | { | |
23402 | arg3 = wxString_in_helper(obj2); | |
23403 | if (arg3 == NULL) SWIG_fail; | |
23404 | temp3 = True; | |
23405 | } | |
23406 | if (obj3) { | |
c370783e | 23407 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23408 | if (PyErr_Occurred()) SWIG_fail; |
23409 | } | |
23410 | if (obj4) { | |
c370783e | 23411 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
23412 | if (PyErr_Occurred()) SWIG_fail; |
23413 | } | |
23414 | { | |
23415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23416 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
23417 | ||
23418 | wxPyEndAllowThreads(__tstate); | |
23419 | if (PyErr_Occurred()) SWIG_fail; | |
23420 | } | |
c370783e | 23421 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23422 | { |
23423 | if (temp3) | |
23424 | delete arg3; | |
23425 | } | |
23426 | return resultobj; | |
23427 | fail: | |
23428 | { | |
23429 | if (temp3) | |
23430 | delete arg3; | |
23431 | } | |
23432 | return NULL; | |
23433 | } | |
23434 | ||
23435 | ||
c370783e | 23436 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23437 | PyObject *resultobj; |
23438 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23439 | long arg2 ; | |
23440 | PyObject * obj0 = 0 ; | |
23441 | PyObject * obj1 = 0 ; | |
23442 | char *kwnames[] = { | |
23443 | (char *) "self",(char *) "count", NULL | |
23444 | }; | |
23445 | ||
23446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
23447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23449 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23450 | if (PyErr_Occurred()) SWIG_fail; |
23451 | { | |
23452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23453 | (arg1)->SetItemCount(arg2); | |
23454 | ||
23455 | wxPyEndAllowThreads(__tstate); | |
23456 | if (PyErr_Occurred()) SWIG_fail; | |
23457 | } | |
23458 | Py_INCREF(Py_None); resultobj = Py_None; | |
23459 | return resultobj; | |
23460 | fail: | |
23461 | return NULL; | |
23462 | } | |
23463 | ||
23464 | ||
c370783e | 23465 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23466 | PyObject *resultobj; |
23467 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23468 | int arg2 ; | |
23469 | int arg3 ; | |
23470 | bool result; | |
23471 | PyObject * obj0 = 0 ; | |
23472 | PyObject * obj1 = 0 ; | |
23473 | PyObject * obj2 = 0 ; | |
23474 | char *kwnames[] = { | |
23475 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
23476 | }; | |
23477 | ||
23478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23481 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23482 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23483 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23484 | if (PyErr_Occurred()) SWIG_fail; |
23485 | { | |
23486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23487 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
23488 | ||
23489 | wxPyEndAllowThreads(__tstate); | |
23490 | if (PyErr_Occurred()) SWIG_fail; | |
23491 | } | |
23492 | { | |
23493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23494 | } | |
23495 | return resultobj; | |
23496 | fail: | |
23497 | return NULL; | |
23498 | } | |
23499 | ||
23500 | ||
c370783e | 23501 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23502 | PyObject *resultobj; |
23503 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23504 | long arg2 ; | |
23505 | wxColour *arg3 = 0 ; | |
23506 | wxColour temp3 ; | |
23507 | PyObject * obj0 = 0 ; | |
23508 | PyObject * obj1 = 0 ; | |
23509 | PyObject * obj2 = 0 ; | |
23510 | char *kwnames[] = { | |
23511 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23512 | }; | |
23513 | ||
23514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23517 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23518 | if (PyErr_Occurred()) SWIG_fail; |
23519 | { | |
23520 | arg3 = &temp3; | |
23521 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23522 | } | |
23523 | { | |
23524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23525 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
23526 | ||
23527 | wxPyEndAllowThreads(__tstate); | |
23528 | if (PyErr_Occurred()) SWIG_fail; | |
23529 | } | |
23530 | Py_INCREF(Py_None); resultobj = Py_None; | |
23531 | return resultobj; | |
23532 | fail: | |
23533 | return NULL; | |
23534 | } | |
23535 | ||
23536 | ||
c370783e | 23537 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23538 | PyObject *resultobj; |
23539 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23540 | long arg2 ; | |
23541 | wxColour result; | |
23542 | PyObject * obj0 = 0 ; | |
23543 | PyObject * obj1 = 0 ; | |
23544 | char *kwnames[] = { | |
23545 | (char *) "self",(char *) "item", NULL | |
23546 | }; | |
23547 | ||
23548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
23549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23551 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23552 | if (PyErr_Occurred()) SWIG_fail; |
23553 | { | |
23554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23555 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
23556 | ||
23557 | wxPyEndAllowThreads(__tstate); | |
23558 | if (PyErr_Occurred()) SWIG_fail; | |
23559 | } | |
23560 | { | |
23561 | wxColour * resultptr; | |
23562 | resultptr = new wxColour((wxColour &) result); | |
23563 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
23564 | } | |
23565 | return resultobj; | |
23566 | fail: | |
23567 | return NULL; | |
23568 | } | |
23569 | ||
23570 | ||
c370783e | 23571 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23572 | PyObject *resultobj; |
23573 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23574 | long arg2 ; | |
23575 | wxColour *arg3 = 0 ; | |
23576 | wxColour temp3 ; | |
23577 | PyObject * obj0 = 0 ; | |
23578 | PyObject * obj1 = 0 ; | |
23579 | PyObject * obj2 = 0 ; | |
23580 | char *kwnames[] = { | |
23581 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23582 | }; | |
23583 | ||
23584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23587 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23588 | if (PyErr_Occurred()) SWIG_fail; |
23589 | { | |
23590 | arg3 = &temp3; | |
23591 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23592 | } | |
23593 | { | |
23594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23595 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
23596 | ||
23597 | wxPyEndAllowThreads(__tstate); | |
23598 | if (PyErr_Occurred()) SWIG_fail; | |
23599 | } | |
23600 | Py_INCREF(Py_None); resultobj = Py_None; | |
23601 | return resultobj; | |
23602 | fail: | |
23603 | return NULL; | |
23604 | } | |
23605 | ||
23606 | ||
c370783e | 23607 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23608 | PyObject *resultobj; |
23609 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23610 | long arg2 ; | |
23611 | wxColour result; | |
23612 | PyObject * obj0 = 0 ; | |
23613 | PyObject * obj1 = 0 ; | |
23614 | char *kwnames[] = { | |
23615 | (char *) "self",(char *) "item", NULL | |
23616 | }; | |
23617 | ||
23618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
23619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23621 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23622 | if (PyErr_Occurred()) SWIG_fail; |
23623 | { | |
23624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23625 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
23626 | ||
23627 | wxPyEndAllowThreads(__tstate); | |
23628 | if (PyErr_Occurred()) SWIG_fail; | |
23629 | } | |
23630 | { | |
23631 | wxColour * resultptr; | |
23632 | resultptr = new wxColour((wxColour &) result); | |
23633 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
23634 | } | |
23635 | return resultobj; | |
23636 | fail: | |
23637 | return NULL; | |
23638 | } | |
23639 | ||
23640 | ||
c370783e | 23641 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23642 | PyObject *resultobj; |
23643 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23644 | PyObject *arg2 = (PyObject *) 0 ; | |
23645 | bool result; | |
23646 | PyObject * obj0 = 0 ; | |
23647 | PyObject * obj1 = 0 ; | |
23648 | char *kwnames[] = { | |
23649 | (char *) "self",(char *) "func", NULL | |
23650 | }; | |
23651 | ||
23652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
23653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23655 | arg2 = obj1; | |
23656 | { | |
23657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23658 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
23659 | ||
23660 | wxPyEndAllowThreads(__tstate); | |
23661 | if (PyErr_Occurred()) SWIG_fail; | |
23662 | } | |
23663 | { | |
23664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23665 | } | |
23666 | return resultobj; | |
23667 | fail: | |
23668 | return NULL; | |
23669 | } | |
23670 | ||
23671 | ||
c370783e | 23672 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23673 | PyObject *resultobj; |
23674 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23675 | wxWindow *result; | |
23676 | PyObject * obj0 = 0 ; | |
23677 | char *kwnames[] = { | |
23678 | (char *) "self", NULL | |
23679 | }; | |
23680 | ||
23681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
23682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23684 | { | |
23685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23686 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
23687 | ||
23688 | wxPyEndAllowThreads(__tstate); | |
23689 | if (PyErr_Occurred()) SWIG_fail; | |
23690 | } | |
23691 | { | |
412d302d | 23692 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23693 | } |
23694 | return resultobj; | |
23695 | fail: | |
23696 | return NULL; | |
23697 | } | |
23698 | ||
23699 | ||
c370783e | 23700 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23701 | PyObject *resultobj; |
23702 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
23703 | wxVisualAttributes result; | |
23704 | PyObject * obj0 = 0 ; | |
23705 | char *kwnames[] = { | |
23706 | (char *) "variant", NULL | |
23707 | }; | |
23708 | ||
23709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
23710 | if (obj0) { | |
c370783e | 23711 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23712 | if (PyErr_Occurred()) SWIG_fail; |
23713 | } | |
23714 | { | |
0439c23b | 23715 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23717 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
23718 | ||
23719 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23720 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23721 | } |
23722 | { | |
23723 | wxVisualAttributes * resultptr; | |
23724 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
23725 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
23726 | } | |
23727 | return resultobj; | |
23728 | fail: | |
23729 | return NULL; | |
23730 | } | |
23731 | ||
23732 | ||
c370783e | 23733 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23734 | PyObject *obj; |
23735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23736 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
23737 | Py_INCREF(obj); | |
23738 | return Py_BuildValue((char *)""); | |
23739 | } | |
c370783e | 23740 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23741 | PyObject *resultobj; |
23742 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23743 | int arg2 = (int) -1 ; | |
23744 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
23745 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23746 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23747 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23748 | long arg5 = (long) wxLC_REPORT ; | |
23749 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23750 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23751 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23752 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23753 | wxListView *result; | |
23754 | wxPoint temp3 ; | |
23755 | wxSize temp4 ; | |
23756 | bool temp7 = False ; | |
23757 | PyObject * obj0 = 0 ; | |
23758 | PyObject * obj1 = 0 ; | |
23759 | PyObject * obj2 = 0 ; | |
23760 | PyObject * obj3 = 0 ; | |
23761 | PyObject * obj4 = 0 ; | |
23762 | PyObject * obj5 = 0 ; | |
23763 | PyObject * obj6 = 0 ; | |
23764 | char *kwnames[] = { | |
23765 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23766 | }; | |
23767 | ||
23768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23771 | if (obj1) { | |
c370783e | 23772 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23773 | if (PyErr_Occurred()) SWIG_fail; |
23774 | } | |
23775 | if (obj2) { | |
23776 | { | |
23777 | arg3 = &temp3; | |
23778 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23779 | } | |
23780 | } | |
23781 | if (obj3) { | |
23782 | { | |
23783 | arg4 = &temp4; | |
23784 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23785 | } | |
23786 | } | |
23787 | if (obj4) { | |
c370783e | 23788 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
23789 | if (PyErr_Occurred()) SWIG_fail; |
23790 | } | |
23791 | if (obj5) { | |
23792 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
23793 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23794 | SWIG_fail; | |
23795 | if (arg6 == NULL) { | |
23796 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23797 | SWIG_fail; | |
23798 | } | |
23799 | } | |
23800 | if (obj6) { | |
23801 | { | |
23802 | arg7 = wxString_in_helper(obj6); | |
23803 | if (arg7 == NULL) SWIG_fail; | |
23804 | temp7 = True; | |
23805 | } | |
23806 | } | |
23807 | { | |
0439c23b | 23808 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23810 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23811 | ||
23812 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23813 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23814 | } |
23815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
23816 | { | |
23817 | if (temp7) | |
23818 | delete arg7; | |
23819 | } | |
23820 | return resultobj; | |
23821 | fail: | |
23822 | { | |
23823 | if (temp7) | |
23824 | delete arg7; | |
23825 | } | |
23826 | return NULL; | |
23827 | } | |
23828 | ||
23829 | ||
c370783e | 23830 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23831 | PyObject *resultobj; |
23832 | wxListView *result; | |
23833 | char *kwnames[] = { | |
23834 | NULL | |
23835 | }; | |
23836 | ||
23837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
23838 | { | |
0439c23b | 23839 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23841 | result = (wxListView *)new wxListView(); | |
23842 | ||
23843 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23844 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23845 | } |
23846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
23847 | return resultobj; | |
23848 | fail: | |
23849 | return NULL; | |
23850 | } | |
23851 | ||
23852 | ||
c370783e | 23853 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23854 | PyObject *resultobj; |
23855 | wxListView *arg1 = (wxListView *) 0 ; | |
23856 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23857 | int arg3 = (int) -1 ; | |
23858 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23859 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23860 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23861 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23862 | long arg6 = (long) wxLC_REPORT ; | |
23863 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23864 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23865 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23866 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23867 | bool result; | |
23868 | wxPoint temp4 ; | |
23869 | wxSize temp5 ; | |
23870 | bool temp8 = False ; | |
23871 | PyObject * obj0 = 0 ; | |
23872 | PyObject * obj1 = 0 ; | |
23873 | PyObject * obj2 = 0 ; | |
23874 | PyObject * obj3 = 0 ; | |
23875 | PyObject * obj4 = 0 ; | |
23876 | PyObject * obj5 = 0 ; | |
23877 | PyObject * obj6 = 0 ; | |
23878 | PyObject * obj7 = 0 ; | |
23879 | char *kwnames[] = { | |
23880 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23881 | }; | |
23882 | ||
23883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
23884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23886 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23888 | if (obj2) { | |
c370783e | 23889 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23890 | if (PyErr_Occurred()) SWIG_fail; |
23891 | } | |
23892 | if (obj3) { | |
23893 | { | |
23894 | arg4 = &temp4; | |
23895 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23896 | } | |
23897 | } | |
23898 | if (obj4) { | |
23899 | { | |
23900 | arg5 = &temp5; | |
23901 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23902 | } | |
23903 | } | |
23904 | if (obj5) { | |
c370783e | 23905 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
23906 | if (PyErr_Occurred()) SWIG_fail; |
23907 | } | |
23908 | if (obj6) { | |
23909 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
23910 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23911 | SWIG_fail; | |
23912 | if (arg7 == NULL) { | |
23913 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23914 | SWIG_fail; | |
23915 | } | |
23916 | } | |
23917 | if (obj7) { | |
23918 | { | |
23919 | arg8 = wxString_in_helper(obj7); | |
23920 | if (arg8 == NULL) SWIG_fail; | |
23921 | temp8 = True; | |
23922 | } | |
23923 | } | |
23924 | { | |
23925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23926 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23927 | ||
23928 | wxPyEndAllowThreads(__tstate); | |
23929 | if (PyErr_Occurred()) SWIG_fail; | |
23930 | } | |
23931 | { | |
23932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23933 | } | |
23934 | { | |
23935 | if (temp8) | |
23936 | delete arg8; | |
23937 | } | |
23938 | return resultobj; | |
23939 | fail: | |
23940 | { | |
23941 | if (temp8) | |
23942 | delete arg8; | |
23943 | } | |
23944 | return NULL; | |
23945 | } | |
23946 | ||
23947 | ||
c370783e | 23948 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23949 | PyObject *resultobj; |
23950 | wxListView *arg1 = (wxListView *) 0 ; | |
23951 | long arg2 ; | |
23952 | bool arg3 = (bool) True ; | |
23953 | PyObject * obj0 = 0 ; | |
23954 | PyObject * obj1 = 0 ; | |
23955 | PyObject * obj2 = 0 ; | |
23956 | char *kwnames[] = { | |
23957 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23958 | }; | |
23959 | ||
23960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23963 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23964 | if (PyErr_Occurred()) SWIG_fail; |
23965 | if (obj2) { | |
c370783e | 23966 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
23967 | if (PyErr_Occurred()) SWIG_fail; |
23968 | } | |
23969 | { | |
23970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23971 | (arg1)->Select(arg2,arg3); | |
23972 | ||
23973 | wxPyEndAllowThreads(__tstate); | |
23974 | if (PyErr_Occurred()) SWIG_fail; | |
23975 | } | |
23976 | Py_INCREF(Py_None); resultobj = Py_None; | |
23977 | return resultobj; | |
23978 | fail: | |
23979 | return NULL; | |
23980 | } | |
23981 | ||
23982 | ||
c370783e | 23983 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23984 | PyObject *resultobj; |
23985 | wxListView *arg1 = (wxListView *) 0 ; | |
23986 | long arg2 ; | |
23987 | PyObject * obj0 = 0 ; | |
23988 | PyObject * obj1 = 0 ; | |
23989 | char *kwnames[] = { | |
23990 | (char *) "self",(char *) "index", NULL | |
23991 | }; | |
23992 | ||
23993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
23994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23996 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23997 | if (PyErr_Occurred()) SWIG_fail; |
23998 | { | |
23999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24000 | (arg1)->Focus(arg2); | |
24001 | ||
24002 | wxPyEndAllowThreads(__tstate); | |
24003 | if (PyErr_Occurred()) SWIG_fail; | |
24004 | } | |
24005 | Py_INCREF(Py_None); resultobj = Py_None; | |
24006 | return resultobj; | |
24007 | fail: | |
24008 | return NULL; | |
24009 | } | |
24010 | ||
24011 | ||
c370783e | 24012 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24013 | PyObject *resultobj; |
24014 | wxListView *arg1 = (wxListView *) 0 ; | |
24015 | long result; | |
24016 | PyObject * obj0 = 0 ; | |
24017 | char *kwnames[] = { | |
24018 | (char *) "self", NULL | |
24019 | }; | |
24020 | ||
24021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
24022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24024 | { | |
24025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24026 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
24027 | ||
24028 | wxPyEndAllowThreads(__tstate); | |
24029 | if (PyErr_Occurred()) SWIG_fail; | |
24030 | } | |
c370783e | 24031 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24032 | return resultobj; |
24033 | fail: | |
24034 | return NULL; | |
24035 | } | |
24036 | ||
24037 | ||
c370783e | 24038 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24039 | PyObject *resultobj; |
24040 | wxListView *arg1 = (wxListView *) 0 ; | |
24041 | long arg2 ; | |
24042 | long result; | |
24043 | PyObject * obj0 = 0 ; | |
24044 | PyObject * obj1 = 0 ; | |
24045 | char *kwnames[] = { | |
24046 | (char *) "self",(char *) "item", NULL | |
24047 | }; | |
24048 | ||
24049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
24050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24052 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24053 | if (PyErr_Occurred()) SWIG_fail; |
24054 | { | |
24055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24056 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
24057 | ||
24058 | wxPyEndAllowThreads(__tstate); | |
24059 | if (PyErr_Occurred()) SWIG_fail; | |
24060 | } | |
c370783e | 24061 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24062 | return resultobj; |
24063 | fail: | |
24064 | return NULL; | |
24065 | } | |
24066 | ||
24067 | ||
c370783e | 24068 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24069 | PyObject *resultobj; |
24070 | wxListView *arg1 = (wxListView *) 0 ; | |
24071 | long result; | |
24072 | PyObject * obj0 = 0 ; | |
24073 | char *kwnames[] = { | |
24074 | (char *) "self", NULL | |
24075 | }; | |
24076 | ||
24077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
24078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24080 | { | |
24081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24082 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
24083 | ||
24084 | wxPyEndAllowThreads(__tstate); | |
24085 | if (PyErr_Occurred()) SWIG_fail; | |
24086 | } | |
c370783e | 24087 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24088 | return resultobj; |
24089 | fail: | |
24090 | return NULL; | |
24091 | } | |
24092 | ||
24093 | ||
c370783e | 24094 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24095 | PyObject *resultobj; |
24096 | wxListView *arg1 = (wxListView *) 0 ; | |
24097 | long arg2 ; | |
24098 | bool result; | |
24099 | PyObject * obj0 = 0 ; | |
24100 | PyObject * obj1 = 0 ; | |
24101 | char *kwnames[] = { | |
24102 | (char *) "self",(char *) "index", NULL | |
24103 | }; | |
24104 | ||
24105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24108 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24109 | if (PyErr_Occurred()) SWIG_fail; |
24110 | { | |
24111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24112 | result = (bool)(arg1)->IsSelected(arg2); | |
24113 | ||
24114 | wxPyEndAllowThreads(__tstate); | |
24115 | if (PyErr_Occurred()) SWIG_fail; | |
24116 | } | |
24117 | { | |
24118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24119 | } | |
24120 | return resultobj; | |
24121 | fail: | |
24122 | return NULL; | |
24123 | } | |
24124 | ||
24125 | ||
c370783e | 24126 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24127 | PyObject *resultobj; |
24128 | wxListView *arg1 = (wxListView *) 0 ; | |
24129 | int arg2 ; | |
24130 | int arg3 ; | |
24131 | PyObject * obj0 = 0 ; | |
24132 | PyObject * obj1 = 0 ; | |
24133 | PyObject * obj2 = 0 ; | |
24134 | char *kwnames[] = { | |
24135 | (char *) "self",(char *) "col",(char *) "image", NULL | |
24136 | }; | |
24137 | ||
24138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24141 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24142 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24143 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24144 | if (PyErr_Occurred()) SWIG_fail; |
24145 | { | |
24146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24147 | (arg1)->SetColumnImage(arg2,arg3); | |
24148 | ||
24149 | wxPyEndAllowThreads(__tstate); | |
24150 | if (PyErr_Occurred()) SWIG_fail; | |
24151 | } | |
24152 | Py_INCREF(Py_None); resultobj = Py_None; | |
24153 | return resultobj; | |
24154 | fail: | |
24155 | return NULL; | |
24156 | } | |
24157 | ||
24158 | ||
c370783e | 24159 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24160 | PyObject *resultobj; |
24161 | wxListView *arg1 = (wxListView *) 0 ; | |
24162 | int arg2 ; | |
24163 | PyObject * obj0 = 0 ; | |
24164 | PyObject * obj1 = 0 ; | |
24165 | char *kwnames[] = { | |
24166 | (char *) "self",(char *) "col", NULL | |
24167 | }; | |
24168 | ||
24169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
24170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24172 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24173 | if (PyErr_Occurred()) SWIG_fail; |
24174 | { | |
24175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24176 | (arg1)->ClearColumnImage(arg2); | |
24177 | ||
24178 | wxPyEndAllowThreads(__tstate); | |
24179 | if (PyErr_Occurred()) SWIG_fail; | |
24180 | } | |
24181 | Py_INCREF(Py_None); resultobj = Py_None; | |
24182 | return resultobj; | |
24183 | fail: | |
24184 | return NULL; | |
24185 | } | |
24186 | ||
24187 | ||
c370783e | 24188 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24189 | PyObject *obj; |
24190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24191 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
24192 | Py_INCREF(obj); | |
24193 | return Py_BuildValue((char *)""); | |
24194 | } | |
c370783e | 24195 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
24196 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
24197 | return 1; | |
24198 | } | |
24199 | ||
24200 | ||
24201 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
24202 | PyObject *pyobj; | |
24203 | ||
24204 | { | |
24205 | #if wxUSE_UNICODE | |
24206 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24207 | #else | |
24208 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24209 | #endif | |
24210 | } | |
24211 | return pyobj; | |
24212 | } | |
24213 | ||
24214 | ||
c370783e | 24215 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24216 | PyObject *resultobj; |
24217 | wxTreeItemId *result; | |
24218 | char *kwnames[] = { | |
24219 | NULL | |
24220 | }; | |
24221 | ||
24222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
24223 | { | |
24224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24225 | result = (wxTreeItemId *)new wxTreeItemId(); | |
24226 | ||
24227 | wxPyEndAllowThreads(__tstate); | |
24228 | if (PyErr_Occurred()) SWIG_fail; | |
24229 | } | |
24230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); | |
24231 | return resultobj; | |
24232 | fail: | |
24233 | return NULL; | |
24234 | } | |
24235 | ||
24236 | ||
c370783e | 24237 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24238 | PyObject *resultobj; |
24239 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24240 | PyObject * obj0 = 0 ; | |
24241 | char *kwnames[] = { | |
24242 | (char *) "self", NULL | |
24243 | }; | |
24244 | ||
24245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
24246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24248 | { | |
24249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24250 | delete arg1; | |
24251 | ||
24252 | wxPyEndAllowThreads(__tstate); | |
24253 | if (PyErr_Occurred()) SWIG_fail; | |
24254 | } | |
24255 | Py_INCREF(Py_None); resultobj = Py_None; | |
24256 | return resultobj; | |
24257 | fail: | |
24258 | return NULL; | |
24259 | } | |
24260 | ||
24261 | ||
c370783e | 24262 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24263 | PyObject *resultobj; |
24264 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24265 | bool result; | |
24266 | PyObject * obj0 = 0 ; | |
24267 | char *kwnames[] = { | |
24268 | (char *) "self", NULL | |
24269 | }; | |
24270 | ||
24271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
24272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24274 | { | |
24275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24276 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
24277 | ||
24278 | wxPyEndAllowThreads(__tstate); | |
24279 | if (PyErr_Occurred()) SWIG_fail; | |
24280 | } | |
24281 | { | |
24282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24283 | } | |
24284 | return resultobj; | |
24285 | fail: | |
24286 | return NULL; | |
24287 | } | |
24288 | ||
24289 | ||
c370783e | 24290 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24291 | PyObject *resultobj; |
24292 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24293 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24294 | bool result; | |
24295 | PyObject * obj0 = 0 ; | |
24296 | PyObject * obj1 = 0 ; | |
24297 | char *kwnames[] = { | |
24298 | (char *) "self",(char *) "other", NULL | |
24299 | }; | |
24300 | ||
24301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
24302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24304 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24306 | { | |
24307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24308 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
24309 | ||
24310 | wxPyEndAllowThreads(__tstate); | |
24311 | if (PyErr_Occurred()) SWIG_fail; | |
24312 | } | |
24313 | { | |
24314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24315 | } | |
24316 | return resultobj; | |
24317 | fail: | |
24318 | return NULL; | |
24319 | } | |
24320 | ||
24321 | ||
c370783e | 24322 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24323 | PyObject *resultobj; |
24324 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24325 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24326 | bool result; | |
24327 | PyObject * obj0 = 0 ; | |
24328 | PyObject * obj1 = 0 ; | |
24329 | char *kwnames[] = { | |
24330 | (char *) "self",(char *) "other", NULL | |
24331 | }; | |
24332 | ||
24333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
24334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24336 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24338 | { | |
24339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24340 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
24341 | ||
24342 | wxPyEndAllowThreads(__tstate); | |
24343 | if (PyErr_Occurred()) SWIG_fail; | |
24344 | } | |
24345 | { | |
24346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24347 | } | |
24348 | return resultobj; | |
24349 | fail: | |
24350 | return NULL; | |
24351 | } | |
24352 | ||
24353 | ||
c370783e | 24354 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24355 | PyObject *resultobj; |
24356 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24357 | void *arg2 = (void *) 0 ; | |
24358 | PyObject * obj0 = 0 ; | |
24359 | PyObject * obj1 = 0 ; | |
24360 | char *kwnames[] = { | |
24361 | (char *) "self",(char *) "m_pItem", NULL | |
24362 | }; | |
24363 | ||
24364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
24365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24367 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24368 | if (arg1) (arg1)->m_pItem = arg2; | |
24369 | ||
24370 | Py_INCREF(Py_None); resultobj = Py_None; | |
24371 | return resultobj; | |
24372 | fail: | |
24373 | return NULL; | |
24374 | } | |
24375 | ||
24376 | ||
c370783e | 24377 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24378 | PyObject *resultobj; |
24379 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24380 | void *result; | |
24381 | PyObject * obj0 = 0 ; | |
24382 | char *kwnames[] = { | |
24383 | (char *) "self", NULL | |
24384 | }; | |
24385 | ||
24386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
24387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24389 | result = (void *) ((arg1)->m_pItem); | |
24390 | ||
24391 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
24392 | return resultobj; | |
24393 | fail: | |
24394 | return NULL; | |
24395 | } | |
24396 | ||
24397 | ||
c370783e | 24398 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24399 | PyObject *obj; |
24400 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24401 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
24402 | Py_INCREF(obj); | |
24403 | return Py_BuildValue((char *)""); | |
24404 | } | |
c370783e | 24405 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24406 | PyObject *resultobj; |
24407 | PyObject *arg1 = (PyObject *) NULL ; | |
24408 | wxPyTreeItemData *result; | |
24409 | PyObject * obj0 = 0 ; | |
24410 | char *kwnames[] = { | |
24411 | (char *) "obj", NULL | |
24412 | }; | |
24413 | ||
24414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
24415 | if (obj0) { | |
24416 | arg1 = obj0; | |
24417 | } | |
24418 | { | |
24419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24420 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
24421 | ||
24422 | wxPyEndAllowThreads(__tstate); | |
24423 | if (PyErr_Occurred()) SWIG_fail; | |
24424 | } | |
24425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); | |
24426 | return resultobj; | |
24427 | fail: | |
24428 | return NULL; | |
24429 | } | |
24430 | ||
24431 | ||
c370783e | 24432 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24433 | PyObject *resultobj; |
24434 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24435 | PyObject *result; | |
24436 | PyObject * obj0 = 0 ; | |
24437 | char *kwnames[] = { | |
24438 | (char *) "self", NULL | |
24439 | }; | |
24440 | ||
24441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
24442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24444 | { | |
24445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24446 | result = (PyObject *)(arg1)->GetData(); | |
24447 | ||
24448 | wxPyEndAllowThreads(__tstate); | |
24449 | if (PyErr_Occurred()) SWIG_fail; | |
24450 | } | |
24451 | resultobj = result; | |
24452 | return resultobj; | |
24453 | fail: | |
24454 | return NULL; | |
24455 | } | |
24456 | ||
24457 | ||
c370783e | 24458 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24459 | PyObject *resultobj; |
24460 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24461 | PyObject *arg2 = (PyObject *) 0 ; | |
24462 | PyObject * obj0 = 0 ; | |
24463 | PyObject * obj1 = 0 ; | |
24464 | char *kwnames[] = { | |
24465 | (char *) "self",(char *) "obj", NULL | |
24466 | }; | |
24467 | ||
24468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24471 | arg2 = obj1; | |
24472 | { | |
24473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24474 | (arg1)->SetData(arg2); | |
24475 | ||
24476 | wxPyEndAllowThreads(__tstate); | |
24477 | if (PyErr_Occurred()) SWIG_fail; | |
24478 | } | |
24479 | Py_INCREF(Py_None); resultobj = Py_None; | |
24480 | return resultobj; | |
24481 | fail: | |
24482 | return NULL; | |
24483 | } | |
24484 | ||
24485 | ||
c370783e | 24486 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24487 | PyObject *resultobj; |
24488 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24489 | wxTreeItemId *result; | |
24490 | PyObject * obj0 = 0 ; | |
24491 | char *kwnames[] = { | |
24492 | (char *) "self", NULL | |
24493 | }; | |
24494 | ||
24495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
24496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24498 | { | |
24499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24500 | { | |
24501 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
24502 | result = (wxTreeItemId *) &_result_ref; | |
24503 | } | |
24504 | ||
24505 | wxPyEndAllowThreads(__tstate); | |
24506 | if (PyErr_Occurred()) SWIG_fail; | |
24507 | } | |
24508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); | |
24509 | return resultobj; | |
24510 | fail: | |
24511 | return NULL; | |
24512 | } | |
24513 | ||
24514 | ||
c370783e | 24515 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24516 | PyObject *resultobj; |
24517 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24518 | wxTreeItemId *arg2 = 0 ; | |
24519 | PyObject * obj0 = 0 ; | |
24520 | PyObject * obj1 = 0 ; | |
24521 | char *kwnames[] = { | |
24522 | (char *) "self",(char *) "id", NULL | |
24523 | }; | |
24524 | ||
24525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24528 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24529 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24530 | SWIG_fail; | |
24531 | if (arg2 == NULL) { | |
24532 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24533 | SWIG_fail; | |
24534 | } | |
24535 | { | |
24536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24537 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
24538 | ||
24539 | wxPyEndAllowThreads(__tstate); | |
24540 | if (PyErr_Occurred()) SWIG_fail; | |
24541 | } | |
24542 | Py_INCREF(Py_None); resultobj = Py_None; | |
24543 | return resultobj; | |
24544 | fail: | |
24545 | return NULL; | |
24546 | } | |
24547 | ||
24548 | ||
c370783e | 24549 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24550 | PyObject *resultobj; |
24551 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24552 | PyObject * obj0 = 0 ; | |
24553 | char *kwnames[] = { | |
24554 | (char *) "self", NULL | |
24555 | }; | |
24556 | ||
24557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
24558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24560 | { | |
24561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24562 | wxPyTreeItemData_Destroy(arg1); | |
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 | ||
c370783e | 24574 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24575 | PyObject *obj; |
24576 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24577 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
24578 | Py_INCREF(obj); | |
24579 | return Py_BuildValue((char *)""); | |
24580 | } | |
c370783e | 24581 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24582 | PyObject *resultobj; |
24583 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
24584 | int arg2 = (int) 0 ; | |
24585 | wxTreeEvent *result; | |
24586 | PyObject * obj0 = 0 ; | |
24587 | PyObject * obj1 = 0 ; | |
24588 | char *kwnames[] = { | |
24589 | (char *) "commandType",(char *) "id", NULL | |
24590 | }; | |
24591 | ||
24592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
24593 | if (obj0) { | |
c370783e | 24594 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
24595 | if (PyErr_Occurred()) SWIG_fail; |
24596 | } | |
24597 | if (obj1) { | |
c370783e | 24598 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24599 | if (PyErr_Occurred()) SWIG_fail; |
24600 | } | |
24601 | { | |
24602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24603 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
24604 | ||
24605 | wxPyEndAllowThreads(__tstate); | |
24606 | if (PyErr_Occurred()) SWIG_fail; | |
24607 | } | |
24608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); | |
24609 | return resultobj; | |
24610 | fail: | |
24611 | return NULL; | |
24612 | } | |
24613 | ||
24614 | ||
c370783e | 24615 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24616 | PyObject *resultobj; |
24617 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24618 | wxTreeItemId result; | |
24619 | PyObject * obj0 = 0 ; | |
24620 | char *kwnames[] = { | |
24621 | (char *) "self", NULL | |
24622 | }; | |
24623 | ||
24624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
24625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24627 | { | |
24628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24629 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
24630 | ||
24631 | wxPyEndAllowThreads(__tstate); | |
24632 | if (PyErr_Occurred()) SWIG_fail; | |
24633 | } | |
24634 | { | |
24635 | wxTreeItemId * resultptr; | |
24636 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24637 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
24638 | } | |
24639 | return resultobj; | |
24640 | fail: | |
24641 | return NULL; | |
24642 | } | |
24643 | ||
24644 | ||
c370783e | 24645 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24646 | PyObject *resultobj; |
24647 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24648 | wxTreeItemId *arg2 = 0 ; | |
24649 | PyObject * obj0 = 0 ; | |
24650 | PyObject * obj1 = 0 ; | |
24651 | char *kwnames[] = { | |
24652 | (char *) "self",(char *) "item", NULL | |
24653 | }; | |
24654 | ||
24655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
24656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24658 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24659 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24660 | SWIG_fail; | |
24661 | if (arg2 == NULL) { | |
24662 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24663 | SWIG_fail; | |
24664 | } | |
24665 | { | |
24666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24667 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
24668 | ||
24669 | wxPyEndAllowThreads(__tstate); | |
24670 | if (PyErr_Occurred()) SWIG_fail; | |
24671 | } | |
24672 | Py_INCREF(Py_None); resultobj = Py_None; | |
24673 | return resultobj; | |
24674 | fail: | |
24675 | return NULL; | |
24676 | } | |
24677 | ||
24678 | ||
c370783e | 24679 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24680 | PyObject *resultobj; |
24681 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24682 | wxTreeItemId result; | |
24683 | PyObject * obj0 = 0 ; | |
24684 | char *kwnames[] = { | |
24685 | (char *) "self", NULL | |
24686 | }; | |
24687 | ||
24688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
24689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24691 | { | |
24692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24693 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
24694 | ||
24695 | wxPyEndAllowThreads(__tstate); | |
24696 | if (PyErr_Occurred()) SWIG_fail; | |
24697 | } | |
24698 | { | |
24699 | wxTreeItemId * resultptr; | |
24700 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24701 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
24702 | } | |
24703 | return resultobj; | |
24704 | fail: | |
24705 | return NULL; | |
24706 | } | |
24707 | ||
24708 | ||
c370783e | 24709 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24710 | PyObject *resultobj; |
24711 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24712 | wxTreeItemId *arg2 = 0 ; | |
24713 | PyObject * obj0 = 0 ; | |
24714 | PyObject * obj1 = 0 ; | |
24715 | char *kwnames[] = { | |
24716 | (char *) "self",(char *) "item", NULL | |
24717 | }; | |
24718 | ||
24719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
24720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24723 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24724 | SWIG_fail; | |
24725 | if (arg2 == NULL) { | |
24726 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24727 | SWIG_fail; | |
24728 | } | |
24729 | { | |
24730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24731 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
24732 | ||
24733 | wxPyEndAllowThreads(__tstate); | |
24734 | if (PyErr_Occurred()) SWIG_fail; | |
24735 | } | |
24736 | Py_INCREF(Py_None); resultobj = Py_None; | |
24737 | return resultobj; | |
24738 | fail: | |
24739 | return NULL; | |
24740 | } | |
24741 | ||
24742 | ||
c370783e | 24743 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24744 | PyObject *resultobj; |
24745 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24746 | wxPoint result; | |
24747 | PyObject * obj0 = 0 ; | |
24748 | char *kwnames[] = { | |
24749 | (char *) "self", NULL | |
24750 | }; | |
24751 | ||
24752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
24753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24755 | { | |
24756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24757 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
24758 | ||
24759 | wxPyEndAllowThreads(__tstate); | |
24760 | if (PyErr_Occurred()) SWIG_fail; | |
24761 | } | |
24762 | { | |
24763 | wxPoint * resultptr; | |
24764 | resultptr = new wxPoint((wxPoint &) result); | |
24765 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
24766 | } | |
24767 | return resultobj; | |
24768 | fail: | |
24769 | return NULL; | |
24770 | } | |
24771 | ||
24772 | ||
c370783e | 24773 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24774 | PyObject *resultobj; |
24775 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24776 | wxPoint *arg2 = 0 ; | |
24777 | wxPoint temp2 ; | |
24778 | PyObject * obj0 = 0 ; | |
24779 | PyObject * obj1 = 0 ; | |
24780 | char *kwnames[] = { | |
24781 | (char *) "self",(char *) "pt", NULL | |
24782 | }; | |
24783 | ||
24784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
24785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24787 | { | |
24788 | arg2 = &temp2; | |
24789 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24790 | } | |
24791 | { | |
24792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24793 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
24794 | ||
24795 | wxPyEndAllowThreads(__tstate); | |
24796 | if (PyErr_Occurred()) SWIG_fail; | |
24797 | } | |
24798 | Py_INCREF(Py_None); resultobj = Py_None; | |
24799 | return resultobj; | |
24800 | fail: | |
24801 | return NULL; | |
24802 | } | |
24803 | ||
24804 | ||
c370783e | 24805 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24806 | PyObject *resultobj; |
24807 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24808 | wxKeyEvent *result; | |
24809 | PyObject * obj0 = 0 ; | |
24810 | char *kwnames[] = { | |
24811 | (char *) "self", NULL | |
24812 | }; | |
24813 | ||
24814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
24815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24817 | { | |
24818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24819 | { | |
24820 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
24821 | result = (wxKeyEvent *) &_result_ref; | |
24822 | } | |
24823 | ||
24824 | wxPyEndAllowThreads(__tstate); | |
24825 | if (PyErr_Occurred()) SWIG_fail; | |
24826 | } | |
24827 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); | |
24828 | return resultobj; | |
24829 | fail: | |
24830 | return NULL; | |
24831 | } | |
24832 | ||
24833 | ||
c370783e | 24834 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24835 | PyObject *resultobj; |
24836 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24837 | int result; | |
24838 | PyObject * obj0 = 0 ; | |
24839 | char *kwnames[] = { | |
24840 | (char *) "self", NULL | |
24841 | }; | |
24842 | ||
24843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
24844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24846 | { | |
24847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24848 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
24849 | ||
24850 | wxPyEndAllowThreads(__tstate); | |
24851 | if (PyErr_Occurred()) SWIG_fail; | |
24852 | } | |
c370783e | 24853 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24854 | return resultobj; |
24855 | fail: | |
24856 | return NULL; | |
24857 | } | |
24858 | ||
24859 | ||
c370783e | 24860 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24861 | PyObject *resultobj; |
24862 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24863 | wxKeyEvent *arg2 = 0 ; | |
24864 | PyObject * obj0 = 0 ; | |
24865 | PyObject * obj1 = 0 ; | |
24866 | char *kwnames[] = { | |
24867 | (char *) "self",(char *) "evt", NULL | |
24868 | }; | |
24869 | ||
24870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
24871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
24874 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24875 | SWIG_fail; | |
24876 | if (arg2 == NULL) { | |
24877 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24878 | SWIG_fail; | |
24879 | } | |
24880 | { | |
24881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24882 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
24883 | ||
24884 | wxPyEndAllowThreads(__tstate); | |
24885 | if (PyErr_Occurred()) SWIG_fail; | |
24886 | } | |
24887 | Py_INCREF(Py_None); resultobj = Py_None; | |
24888 | return resultobj; | |
24889 | fail: | |
24890 | return NULL; | |
24891 | } | |
24892 | ||
24893 | ||
c370783e | 24894 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24895 | PyObject *resultobj; |
24896 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24897 | wxString *result; | |
24898 | PyObject * obj0 = 0 ; | |
24899 | char *kwnames[] = { | |
24900 | (char *) "self", NULL | |
24901 | }; | |
24902 | ||
24903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
24904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24906 | { | |
24907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24908 | { | |
24909 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
24910 | result = (wxString *) &_result_ref; | |
24911 | } | |
24912 | ||
24913 | wxPyEndAllowThreads(__tstate); | |
24914 | if (PyErr_Occurred()) SWIG_fail; | |
24915 | } | |
24916 | { | |
24917 | #if wxUSE_UNICODE | |
24918 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24919 | #else | |
24920 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24921 | #endif | |
24922 | } | |
24923 | return resultobj; | |
24924 | fail: | |
24925 | return NULL; | |
24926 | } | |
24927 | ||
24928 | ||
c370783e | 24929 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24930 | PyObject *resultobj; |
24931 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24932 | wxString *arg2 = 0 ; | |
24933 | bool temp2 = False ; | |
24934 | PyObject * obj0 = 0 ; | |
24935 | PyObject * obj1 = 0 ; | |
24936 | char *kwnames[] = { | |
24937 | (char *) "self",(char *) "label", NULL | |
24938 | }; | |
24939 | ||
24940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
24941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24943 | { | |
24944 | arg2 = wxString_in_helper(obj1); | |
24945 | if (arg2 == NULL) SWIG_fail; | |
24946 | temp2 = True; | |
24947 | } | |
24948 | { | |
24949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24950 | (arg1)->SetLabel((wxString const &)*arg2); | |
24951 | ||
24952 | wxPyEndAllowThreads(__tstate); | |
24953 | if (PyErr_Occurred()) SWIG_fail; | |
24954 | } | |
24955 | Py_INCREF(Py_None); resultobj = Py_None; | |
24956 | { | |
24957 | if (temp2) | |
24958 | delete arg2; | |
24959 | } | |
24960 | return resultobj; | |
24961 | fail: | |
24962 | { | |
24963 | if (temp2) | |
24964 | delete arg2; | |
24965 | } | |
24966 | return NULL; | |
24967 | } | |
24968 | ||
24969 | ||
c370783e | 24970 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24971 | PyObject *resultobj; |
24972 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24973 | bool result; | |
24974 | PyObject * obj0 = 0 ; | |
24975 | char *kwnames[] = { | |
24976 | (char *) "self", NULL | |
24977 | }; | |
24978 | ||
24979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
24980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24982 | { | |
24983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24984 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24985 | ||
24986 | wxPyEndAllowThreads(__tstate); | |
24987 | if (PyErr_Occurred()) SWIG_fail; | |
24988 | } | |
24989 | { | |
24990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24991 | } | |
24992 | return resultobj; | |
24993 | fail: | |
24994 | return NULL; | |
24995 | } | |
24996 | ||
24997 | ||
c370783e | 24998 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24999 | PyObject *resultobj; |
25000 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25001 | bool arg2 ; | |
25002 | PyObject * obj0 = 0 ; | |
25003 | PyObject * obj1 = 0 ; | |
25004 | char *kwnames[] = { | |
25005 | (char *) "self",(char *) "editCancelled", NULL | |
25006 | }; | |
25007 | ||
25008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
25009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25011 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25012 | if (PyErr_Occurred()) SWIG_fail; |
25013 | { | |
25014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25015 | (arg1)->SetEditCanceled(arg2); | |
25016 | ||
25017 | wxPyEndAllowThreads(__tstate); | |
25018 | if (PyErr_Occurred()) SWIG_fail; | |
25019 | } | |
25020 | Py_INCREF(Py_None); resultobj = Py_None; | |
25021 | return resultobj; | |
25022 | fail: | |
25023 | return NULL; | |
25024 | } | |
25025 | ||
25026 | ||
c370783e | 25027 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25028 | PyObject *resultobj; |
25029 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25030 | wxString *arg2 = 0 ; | |
25031 | bool temp2 = False ; | |
25032 | PyObject * obj0 = 0 ; | |
25033 | PyObject * obj1 = 0 ; | |
25034 | char *kwnames[] = { | |
25035 | (char *) "self",(char *) "toolTip", NULL | |
25036 | }; | |
25037 | ||
25038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
25039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25041 | { | |
25042 | arg2 = wxString_in_helper(obj1); | |
25043 | if (arg2 == NULL) SWIG_fail; | |
25044 | temp2 = True; | |
25045 | } | |
25046 | { | |
25047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25048 | (arg1)->SetToolTip((wxString const &)*arg2); | |
25049 | ||
25050 | wxPyEndAllowThreads(__tstate); | |
25051 | if (PyErr_Occurred()) SWIG_fail; | |
25052 | } | |
25053 | Py_INCREF(Py_None); resultobj = Py_None; | |
25054 | { | |
25055 | if (temp2) | |
25056 | delete arg2; | |
25057 | } | |
25058 | return resultobj; | |
25059 | fail: | |
25060 | { | |
25061 | if (temp2) | |
25062 | delete arg2; | |
25063 | } | |
25064 | return NULL; | |
25065 | } | |
25066 | ||
25067 | ||
c370783e | 25068 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25069 | PyObject *obj; |
25070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25071 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
25072 | Py_INCREF(obj); | |
25073 | return Py_BuildValue((char *)""); | |
25074 | } | |
c370783e | 25075 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25076 | PyObject *resultobj; |
25077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25078 | int arg2 = (int) -1 ; | |
25079 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25080 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25081 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25082 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25083 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
25084 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
25085 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
25086 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
25087 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25088 | wxPyTreeCtrl *result; | |
25089 | wxPoint temp3 ; | |
25090 | wxSize temp4 ; | |
25091 | bool temp7 = False ; | |
25092 | PyObject * obj0 = 0 ; | |
25093 | PyObject * obj1 = 0 ; | |
25094 | PyObject * obj2 = 0 ; | |
25095 | PyObject * obj3 = 0 ; | |
25096 | PyObject * obj4 = 0 ; | |
25097 | PyObject * obj5 = 0 ; | |
25098 | PyObject * obj6 = 0 ; | |
25099 | char *kwnames[] = { | |
25100 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25101 | }; | |
25102 | ||
25103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
25104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25106 | if (obj1) { | |
c370783e | 25107 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25108 | if (PyErr_Occurred()) SWIG_fail; |
25109 | } | |
25110 | if (obj2) { | |
25111 | { | |
25112 | arg3 = &temp3; | |
25113 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25114 | } | |
25115 | } | |
25116 | if (obj3) { | |
25117 | { | |
25118 | arg4 = &temp4; | |
25119 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25120 | } | |
25121 | } | |
25122 | if (obj4) { | |
c370783e | 25123 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
25124 | if (PyErr_Occurred()) SWIG_fail; |
25125 | } | |
25126 | if (obj5) { | |
25127 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
25128 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25129 | SWIG_fail; | |
25130 | if (arg6 == NULL) { | |
25131 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25132 | SWIG_fail; | |
25133 | } | |
25134 | } | |
25135 | if (obj6) { | |
25136 | { | |
25137 | arg7 = wxString_in_helper(obj6); | |
25138 | if (arg7 == NULL) SWIG_fail; | |
25139 | temp7 = True; | |
25140 | } | |
25141 | } | |
25142 | { | |
0439c23b | 25143 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25145 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
25146 | ||
25147 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25148 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 25149 | } |
b0f7404b | 25150 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d55e5bfc RD |
25151 | { |
25152 | if (temp7) | |
25153 | delete arg7; | |
25154 | } | |
25155 | return resultobj; | |
25156 | fail: | |
25157 | { | |
25158 | if (temp7) | |
25159 | delete arg7; | |
25160 | } | |
25161 | return NULL; | |
25162 | } | |
25163 | ||
25164 | ||
c370783e | 25165 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25166 | PyObject *resultobj; |
25167 | wxPyTreeCtrl *result; | |
25168 | char *kwnames[] = { | |
25169 | NULL | |
25170 | }; | |
25171 | ||
25172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
25173 | { | |
0439c23b | 25174 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25176 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
25177 | ||
25178 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25179 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 25180 | } |
b0f7404b | 25181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d55e5bfc RD |
25182 | return resultobj; |
25183 | fail: | |
25184 | return NULL; | |
25185 | } | |
25186 | ||
25187 | ||
c370783e | 25188 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25189 | PyObject *resultobj; |
25190 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25191 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25192 | int arg3 = (int) -1 ; | |
25193 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25194 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25195 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25196 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25197 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
25198 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25199 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
25200 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
25201 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
25202 | bool result; | |
25203 | wxPoint temp4 ; | |
25204 | wxSize temp5 ; | |
25205 | bool temp8 = False ; | |
25206 | PyObject * obj0 = 0 ; | |
25207 | PyObject * obj1 = 0 ; | |
25208 | PyObject * obj2 = 0 ; | |
25209 | PyObject * obj3 = 0 ; | |
25210 | PyObject * obj4 = 0 ; | |
25211 | PyObject * obj5 = 0 ; | |
25212 | PyObject * obj6 = 0 ; | |
25213 | PyObject * obj7 = 0 ; | |
25214 | char *kwnames[] = { | |
25215 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25216 | }; | |
25217 | ||
25218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
25219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25221 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25223 | if (obj2) { | |
c370783e | 25224 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
25225 | if (PyErr_Occurred()) SWIG_fail; |
25226 | } | |
25227 | if (obj3) { | |
25228 | { | |
25229 | arg4 = &temp4; | |
25230 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25231 | } | |
25232 | } | |
25233 | if (obj4) { | |
25234 | { | |
25235 | arg5 = &temp5; | |
25236 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25237 | } | |
25238 | } | |
25239 | if (obj5) { | |
c370783e | 25240 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
25241 | if (PyErr_Occurred()) SWIG_fail; |
25242 | } | |
25243 | if (obj6) { | |
25244 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
25245 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25246 | SWIG_fail; | |
25247 | if (arg7 == NULL) { | |
25248 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25249 | SWIG_fail; | |
25250 | } | |
25251 | } | |
25252 | if (obj7) { | |
25253 | { | |
25254 | arg8 = wxString_in_helper(obj7); | |
25255 | if (arg8 == NULL) SWIG_fail; | |
25256 | temp8 = True; | |
25257 | } | |
25258 | } | |
25259 | { | |
25260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25261 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25262 | ||
25263 | wxPyEndAllowThreads(__tstate); | |
25264 | if (PyErr_Occurred()) SWIG_fail; | |
25265 | } | |
25266 | { | |
25267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25268 | } | |
25269 | { | |
25270 | if (temp8) | |
25271 | delete arg8; | |
25272 | } | |
25273 | return resultobj; | |
25274 | fail: | |
25275 | { | |
25276 | if (temp8) | |
25277 | delete arg8; | |
25278 | } | |
25279 | return NULL; | |
25280 | } | |
25281 | ||
25282 | ||
c370783e | 25283 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25284 | PyObject *resultobj; |
25285 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25286 | PyObject *arg2 = (PyObject *) 0 ; | |
25287 | PyObject *arg3 = (PyObject *) 0 ; | |
25288 | PyObject * obj0 = 0 ; | |
25289 | PyObject * obj1 = 0 ; | |
25290 | PyObject * obj2 = 0 ; | |
25291 | char *kwnames[] = { | |
25292 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25293 | }; | |
25294 | ||
25295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25298 | arg2 = obj1; | |
25299 | arg3 = obj2; | |
25300 | { | |
25301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25302 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25303 | ||
25304 | wxPyEndAllowThreads(__tstate); | |
25305 | if (PyErr_Occurred()) SWIG_fail; | |
25306 | } | |
25307 | Py_INCREF(Py_None); resultobj = Py_None; | |
25308 | return resultobj; | |
25309 | fail: | |
25310 | return NULL; | |
25311 | } | |
25312 | ||
25313 | ||
c370783e | 25314 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25315 | PyObject *resultobj; |
25316 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25317 | size_t result; | |
25318 | PyObject * obj0 = 0 ; | |
25319 | char *kwnames[] = { | |
25320 | (char *) "self", NULL | |
25321 | }; | |
25322 | ||
25323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
25324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25326 | { | |
25327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25328 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25329 | ||
25330 | wxPyEndAllowThreads(__tstate); | |
25331 | if (PyErr_Occurred()) SWIG_fail; | |
25332 | } | |
c370783e | 25333 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25334 | return resultobj; |
25335 | fail: | |
25336 | return NULL; | |
25337 | } | |
25338 | ||
25339 | ||
c370783e | 25340 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25341 | PyObject *resultobj; |
25342 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25343 | unsigned int result; | |
25344 | PyObject * obj0 = 0 ; | |
25345 | char *kwnames[] = { | |
25346 | (char *) "self", NULL | |
25347 | }; | |
25348 | ||
25349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
25350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25352 | { | |
25353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25354 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25355 | ||
25356 | wxPyEndAllowThreads(__tstate); | |
25357 | if (PyErr_Occurred()) SWIG_fail; | |
25358 | } | |
c370783e | 25359 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
25360 | return resultobj; |
25361 | fail: | |
25362 | return NULL; | |
25363 | } | |
25364 | ||
25365 | ||
c370783e | 25366 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25367 | PyObject *resultobj; |
25368 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25369 | unsigned int arg2 ; | |
25370 | PyObject * obj0 = 0 ; | |
25371 | PyObject * obj1 = 0 ; | |
25372 | char *kwnames[] = { | |
25373 | (char *) "self",(char *) "indent", NULL | |
25374 | }; | |
25375 | ||
25376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
25377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25379 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
25380 | if (PyErr_Occurred()) SWIG_fail; |
25381 | { | |
25382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25383 | (arg1)->SetIndent(arg2); | |
25384 | ||
25385 | wxPyEndAllowThreads(__tstate); | |
25386 | if (PyErr_Occurred()) SWIG_fail; | |
25387 | } | |
25388 | Py_INCREF(Py_None); resultobj = Py_None; | |
25389 | return resultobj; | |
25390 | fail: | |
25391 | return NULL; | |
25392 | } | |
25393 | ||
25394 | ||
c370783e | 25395 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25396 | PyObject *resultobj; |
25397 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25398 | unsigned int result; | |
25399 | PyObject * obj0 = 0 ; | |
25400 | char *kwnames[] = { | |
25401 | (char *) "self", NULL | |
25402 | }; | |
25403 | ||
25404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
25405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25407 | { | |
25408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25409 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
25410 | ||
25411 | wxPyEndAllowThreads(__tstate); | |
25412 | if (PyErr_Occurred()) SWIG_fail; | |
25413 | } | |
c370783e | 25414 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
25415 | return resultobj; |
25416 | fail: | |
25417 | return NULL; | |
25418 | } | |
25419 | ||
25420 | ||
c370783e | 25421 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25422 | PyObject *resultobj; |
25423 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25424 | unsigned int arg2 ; | |
25425 | PyObject * obj0 = 0 ; | |
25426 | PyObject * obj1 = 0 ; | |
25427 | char *kwnames[] = { | |
25428 | (char *) "self",(char *) "spacing", NULL | |
25429 | }; | |
25430 | ||
25431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
25432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25434 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
25435 | if (PyErr_Occurred()) SWIG_fail; |
25436 | { | |
25437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25438 | (arg1)->SetSpacing(arg2); | |
25439 | ||
25440 | wxPyEndAllowThreads(__tstate); | |
25441 | if (PyErr_Occurred()) SWIG_fail; | |
25442 | } | |
25443 | Py_INCREF(Py_None); resultobj = Py_None; | |
25444 | return resultobj; | |
25445 | fail: | |
25446 | return NULL; | |
25447 | } | |
25448 | ||
25449 | ||
c370783e | 25450 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25451 | PyObject *resultobj; |
25452 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25453 | wxImageList *result; | |
25454 | PyObject * obj0 = 0 ; | |
25455 | char *kwnames[] = { | |
25456 | (char *) "self", NULL | |
25457 | }; | |
25458 | ||
25459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
25460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25462 | { | |
25463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25464 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
25465 | ||
25466 | wxPyEndAllowThreads(__tstate); | |
25467 | if (PyErr_Occurred()) SWIG_fail; | |
25468 | } | |
25469 | { | |
412d302d | 25470 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25471 | } |
25472 | return resultobj; | |
25473 | fail: | |
25474 | return NULL; | |
25475 | } | |
25476 | ||
25477 | ||
c370783e | 25478 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25479 | PyObject *resultobj; |
25480 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25481 | wxImageList *result; | |
25482 | PyObject * obj0 = 0 ; | |
25483 | char *kwnames[] = { | |
25484 | (char *) "self", NULL | |
25485 | }; | |
25486 | ||
25487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
25488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25490 | { | |
25491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25492 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
25493 | ||
25494 | wxPyEndAllowThreads(__tstate); | |
25495 | if (PyErr_Occurred()) SWIG_fail; | |
25496 | } | |
25497 | { | |
412d302d | 25498 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25499 | } |
25500 | return resultobj; | |
25501 | fail: | |
25502 | return NULL; | |
25503 | } | |
25504 | ||
25505 | ||
c370783e | 25506 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25507 | PyObject *resultobj; |
25508 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25509 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25510 | PyObject * obj0 = 0 ; | |
25511 | PyObject * obj1 = 0 ; | |
25512 | char *kwnames[] = { | |
25513 | (char *) "self",(char *) "imageList", NULL | |
25514 | }; | |
25515 | ||
25516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
25517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25519 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25521 | { | |
25522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25523 | (arg1)->SetImageList(arg2); | |
25524 | ||
25525 | wxPyEndAllowThreads(__tstate); | |
25526 | if (PyErr_Occurred()) SWIG_fail; | |
25527 | } | |
25528 | Py_INCREF(Py_None); resultobj = Py_None; | |
25529 | return resultobj; | |
25530 | fail: | |
25531 | return NULL; | |
25532 | } | |
25533 | ||
25534 | ||
c370783e | 25535 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25536 | PyObject *resultobj; |
25537 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25538 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25539 | PyObject * obj0 = 0 ; | |
25540 | PyObject * obj1 = 0 ; | |
25541 | char *kwnames[] = { | |
25542 | (char *) "self",(char *) "imageList", NULL | |
25543 | }; | |
25544 | ||
25545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
25546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25548 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25550 | { | |
25551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25552 | (arg1)->SetStateImageList(arg2); | |
25553 | ||
25554 | wxPyEndAllowThreads(__tstate); | |
25555 | if (PyErr_Occurred()) SWIG_fail; | |
25556 | } | |
25557 | Py_INCREF(Py_None); resultobj = Py_None; | |
25558 | return resultobj; | |
25559 | fail: | |
25560 | return NULL; | |
25561 | } | |
25562 | ||
25563 | ||
c370783e | 25564 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25565 | PyObject *resultobj; |
25566 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25567 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25568 | PyObject * obj0 = 0 ; | |
25569 | PyObject * obj1 = 0 ; | |
25570 | char *kwnames[] = { | |
25571 | (char *) "self",(char *) "imageList", NULL | |
25572 | }; | |
25573 | ||
25574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
25575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25577 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25578 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25579 | { | |
25580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25581 | (arg1)->AssignImageList(arg2); | |
25582 | ||
25583 | wxPyEndAllowThreads(__tstate); | |
25584 | if (PyErr_Occurred()) SWIG_fail; | |
25585 | } | |
25586 | Py_INCREF(Py_None); resultobj = Py_None; | |
25587 | return resultobj; | |
25588 | fail: | |
25589 | return NULL; | |
25590 | } | |
25591 | ||
25592 | ||
c370783e | 25593 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25594 | PyObject *resultobj; |
25595 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25596 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25597 | PyObject * obj0 = 0 ; | |
25598 | PyObject * obj1 = 0 ; | |
25599 | char *kwnames[] = { | |
25600 | (char *) "self",(char *) "imageList", NULL | |
25601 | }; | |
25602 | ||
25603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
25604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25607 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25608 | { | |
25609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25610 | (arg1)->AssignStateImageList(arg2); | |
25611 | ||
25612 | wxPyEndAllowThreads(__tstate); | |
25613 | if (PyErr_Occurred()) SWIG_fail; | |
25614 | } | |
25615 | Py_INCREF(Py_None); resultobj = Py_None; | |
25616 | return resultobj; | |
25617 | fail: | |
25618 | return NULL; | |
25619 | } | |
25620 | ||
25621 | ||
c370783e | 25622 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25623 | PyObject *resultobj; |
25624 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25625 | wxTreeItemId *arg2 = 0 ; | |
25626 | wxString result; | |
25627 | PyObject * obj0 = 0 ; | |
25628 | PyObject * obj1 = 0 ; | |
25629 | char *kwnames[] = { | |
25630 | (char *) "self",(char *) "item", NULL | |
25631 | }; | |
25632 | ||
25633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
25634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25637 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25638 | SWIG_fail; | |
25639 | if (arg2 == NULL) { | |
25640 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25641 | SWIG_fail; | |
25642 | } | |
25643 | { | |
25644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25645 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
25646 | ||
25647 | wxPyEndAllowThreads(__tstate); | |
25648 | if (PyErr_Occurred()) SWIG_fail; | |
25649 | } | |
25650 | { | |
25651 | #if wxUSE_UNICODE | |
25652 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25653 | #else | |
25654 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25655 | #endif | |
25656 | } | |
25657 | return resultobj; | |
25658 | fail: | |
25659 | return NULL; | |
25660 | } | |
25661 | ||
25662 | ||
c370783e | 25663 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25664 | PyObject *resultobj; |
25665 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25666 | wxTreeItemId *arg2 = 0 ; | |
25667 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
25668 | int result; | |
25669 | PyObject * obj0 = 0 ; | |
25670 | PyObject * obj1 = 0 ; | |
25671 | PyObject * obj2 = 0 ; | |
25672 | char *kwnames[] = { | |
25673 | (char *) "self",(char *) "item",(char *) "which", NULL | |
25674 | }; | |
25675 | ||
25676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25680 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25681 | SWIG_fail; | |
25682 | if (arg2 == NULL) { | |
25683 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25684 | SWIG_fail; | |
25685 | } | |
25686 | if (obj2) { | |
c370783e | 25687 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
25688 | if (PyErr_Occurred()) SWIG_fail; |
25689 | } | |
25690 | { | |
25691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25692 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
25693 | ||
25694 | wxPyEndAllowThreads(__tstate); | |
25695 | if (PyErr_Occurred()) SWIG_fail; | |
25696 | } | |
c370783e | 25697 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
25698 | return resultobj; |
25699 | fail: | |
25700 | return NULL; | |
25701 | } | |
25702 | ||
25703 | ||
c370783e | 25704 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25705 | PyObject *resultobj; |
25706 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25707 | wxTreeItemId *arg2 = 0 ; | |
25708 | wxPyTreeItemData *result; | |
25709 | PyObject * obj0 = 0 ; | |
25710 | PyObject * obj1 = 0 ; | |
25711 | char *kwnames[] = { | |
25712 | (char *) "self",(char *) "item", NULL | |
25713 | }; | |
25714 | ||
25715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
25716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25718 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25719 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25720 | SWIG_fail; | |
25721 | if (arg2 == NULL) { | |
25722 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25723 | SWIG_fail; | |
25724 | } | |
25725 | { | |
25726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25727 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
25728 | ||
25729 | wxPyEndAllowThreads(__tstate); | |
25730 | if (PyErr_Occurred()) SWIG_fail; | |
25731 | } | |
25732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); | |
25733 | return resultobj; | |
25734 | fail: | |
25735 | return NULL; | |
25736 | } | |
25737 | ||
25738 | ||
c370783e | 25739 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25740 | PyObject *resultobj; |
25741 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25742 | wxTreeItemId *arg2 = 0 ; | |
25743 | PyObject *result; | |
25744 | PyObject * obj0 = 0 ; | |
25745 | PyObject * obj1 = 0 ; | |
25746 | char *kwnames[] = { | |
25747 | (char *) "self",(char *) "item", NULL | |
25748 | }; | |
25749 | ||
25750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
25751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25754 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25755 | SWIG_fail; | |
25756 | if (arg2 == NULL) { | |
25757 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25758 | SWIG_fail; | |
25759 | } | |
25760 | { | |
25761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25762 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
25763 | ||
25764 | wxPyEndAllowThreads(__tstate); | |
25765 | if (PyErr_Occurred()) SWIG_fail; | |
25766 | } | |
25767 | resultobj = result; | |
25768 | return resultobj; | |
25769 | fail: | |
25770 | return NULL; | |
25771 | } | |
25772 | ||
25773 | ||
c370783e | 25774 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25775 | PyObject *resultobj; |
25776 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25777 | wxTreeItemId *arg2 = 0 ; | |
25778 | wxColour result; | |
25779 | PyObject * obj0 = 0 ; | |
25780 | PyObject * obj1 = 0 ; | |
25781 | char *kwnames[] = { | |
25782 | (char *) "self",(char *) "item", NULL | |
25783 | }; | |
25784 | ||
25785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
25786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25788 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25789 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25790 | SWIG_fail; | |
25791 | if (arg2 == NULL) { | |
25792 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25793 | SWIG_fail; | |
25794 | } | |
25795 | { | |
25796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25797 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
25798 | ||
25799 | wxPyEndAllowThreads(__tstate); | |
25800 | if (PyErr_Occurred()) SWIG_fail; | |
25801 | } | |
25802 | { | |
25803 | wxColour * resultptr; | |
25804 | resultptr = new wxColour((wxColour &) result); | |
25805 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25806 | } | |
25807 | return resultobj; | |
25808 | fail: | |
25809 | return NULL; | |
25810 | } | |
25811 | ||
25812 | ||
c370783e | 25813 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25814 | PyObject *resultobj; |
25815 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25816 | wxTreeItemId *arg2 = 0 ; | |
25817 | wxColour result; | |
25818 | PyObject * obj0 = 0 ; | |
25819 | PyObject * obj1 = 0 ; | |
25820 | char *kwnames[] = { | |
25821 | (char *) "self",(char *) "item", NULL | |
25822 | }; | |
25823 | ||
25824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25828 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25829 | SWIG_fail; | |
25830 | if (arg2 == NULL) { | |
25831 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25832 | SWIG_fail; | |
25833 | } | |
25834 | { | |
25835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25836 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
25837 | ||
25838 | wxPyEndAllowThreads(__tstate); | |
25839 | if (PyErr_Occurred()) SWIG_fail; | |
25840 | } | |
25841 | { | |
25842 | wxColour * resultptr; | |
25843 | resultptr = new wxColour((wxColour &) result); | |
25844 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25845 | } | |
25846 | return resultobj; | |
25847 | fail: | |
25848 | return NULL; | |
25849 | } | |
25850 | ||
25851 | ||
c370783e | 25852 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25853 | PyObject *resultobj; |
25854 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25855 | wxTreeItemId *arg2 = 0 ; | |
25856 | wxFont result; | |
25857 | PyObject * obj0 = 0 ; | |
25858 | PyObject * obj1 = 0 ; | |
25859 | char *kwnames[] = { | |
25860 | (char *) "self",(char *) "item", NULL | |
25861 | }; | |
25862 | ||
25863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
25864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25866 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25867 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25868 | SWIG_fail; | |
25869 | if (arg2 == NULL) { | |
25870 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25871 | SWIG_fail; | |
25872 | } | |
25873 | { | |
25874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25875 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
25876 | ||
25877 | wxPyEndAllowThreads(__tstate); | |
25878 | if (PyErr_Occurred()) SWIG_fail; | |
25879 | } | |
25880 | { | |
25881 | wxFont * resultptr; | |
25882 | resultptr = new wxFont((wxFont &) result); | |
25883 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
25884 | } | |
25885 | return resultobj; | |
25886 | fail: | |
25887 | return NULL; | |
25888 | } | |
25889 | ||
25890 | ||
c370783e | 25891 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25892 | PyObject *resultobj; |
25893 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25894 | wxTreeItemId *arg2 = 0 ; | |
25895 | wxString *arg3 = 0 ; | |
25896 | bool temp3 = False ; | |
25897 | PyObject * obj0 = 0 ; | |
25898 | PyObject * obj1 = 0 ; | |
25899 | PyObject * obj2 = 0 ; | |
25900 | char *kwnames[] = { | |
25901 | (char *) "self",(char *) "item",(char *) "text", NULL | |
25902 | }; | |
25903 | ||
25904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25907 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25908 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25909 | SWIG_fail; | |
25910 | if (arg2 == NULL) { | |
25911 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25912 | SWIG_fail; | |
25913 | } | |
25914 | { | |
25915 | arg3 = wxString_in_helper(obj2); | |
25916 | if (arg3 == NULL) SWIG_fail; | |
25917 | temp3 = True; | |
25918 | } | |
25919 | { | |
25920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25921 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
25922 | ||
25923 | wxPyEndAllowThreads(__tstate); | |
25924 | if (PyErr_Occurred()) SWIG_fail; | |
25925 | } | |
25926 | Py_INCREF(Py_None); resultobj = Py_None; | |
25927 | { | |
25928 | if (temp3) | |
25929 | delete arg3; | |
25930 | } | |
25931 | return resultobj; | |
25932 | fail: | |
25933 | { | |
25934 | if (temp3) | |
25935 | delete arg3; | |
25936 | } | |
25937 | return NULL; | |
25938 | } | |
25939 | ||
25940 | ||
c370783e | 25941 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25942 | PyObject *resultobj; |
25943 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25944 | wxTreeItemId *arg2 = 0 ; | |
25945 | int arg3 ; | |
25946 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25947 | PyObject * obj0 = 0 ; | |
25948 | PyObject * obj1 = 0 ; | |
25949 | PyObject * obj2 = 0 ; | |
25950 | PyObject * obj3 = 0 ; | |
25951 | char *kwnames[] = { | |
25952 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25953 | }; | |
25954 | ||
25955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25959 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25960 | SWIG_fail; | |
25961 | if (arg2 == NULL) { | |
25962 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25963 | SWIG_fail; | |
25964 | } | |
c370783e | 25965 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
25966 | if (PyErr_Occurred()) SWIG_fail; |
25967 | if (obj3) { | |
c370783e | 25968 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
25969 | if (PyErr_Occurred()) SWIG_fail; |
25970 | } | |
25971 | { | |
25972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25973 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25974 | ||
25975 | wxPyEndAllowThreads(__tstate); | |
25976 | if (PyErr_Occurred()) SWIG_fail; | |
25977 | } | |
25978 | Py_INCREF(Py_None); resultobj = Py_None; | |
25979 | return resultobj; | |
25980 | fail: | |
25981 | return NULL; | |
25982 | } | |
25983 | ||
25984 | ||
c370783e | 25985 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25986 | PyObject *resultobj; |
25987 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25988 | wxTreeItemId *arg2 = 0 ; | |
25989 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25990 | PyObject * obj0 = 0 ; | |
25991 | PyObject * obj1 = 0 ; | |
25992 | PyObject * obj2 = 0 ; | |
25993 | char *kwnames[] = { | |
25994 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25995 | }; | |
25996 | ||
25997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26000 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26001 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26002 | SWIG_fail; | |
26003 | if (arg2 == NULL) { | |
26004 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26005 | SWIG_fail; | |
26006 | } | |
26007 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, | |
26008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26009 | { | |
26010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26011 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26012 | ||
26013 | wxPyEndAllowThreads(__tstate); | |
26014 | if (PyErr_Occurred()) SWIG_fail; | |
26015 | } | |
26016 | Py_INCREF(Py_None); resultobj = Py_None; | |
26017 | return resultobj; | |
26018 | fail: | |
26019 | return NULL; | |
26020 | } | |
26021 | ||
26022 | ||
c370783e | 26023 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26024 | PyObject *resultobj; |
26025 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26026 | wxTreeItemId *arg2 = 0 ; | |
26027 | PyObject *arg3 = (PyObject *) 0 ; | |
26028 | PyObject * obj0 = 0 ; | |
26029 | PyObject * obj1 = 0 ; | |
26030 | PyObject * obj2 = 0 ; | |
26031 | char *kwnames[] = { | |
26032 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
26033 | }; | |
26034 | ||
26035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26038 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26039 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26040 | SWIG_fail; | |
26041 | if (arg2 == NULL) { | |
26042 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26043 | SWIG_fail; | |
26044 | } | |
26045 | arg3 = obj2; | |
26046 | { | |
26047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26048 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26049 | ||
26050 | wxPyEndAllowThreads(__tstate); | |
26051 | if (PyErr_Occurred()) SWIG_fail; | |
26052 | } | |
26053 | Py_INCREF(Py_None); resultobj = Py_None; | |
26054 | return resultobj; | |
26055 | fail: | |
26056 | return NULL; | |
26057 | } | |
26058 | ||
26059 | ||
c370783e | 26060 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26061 | PyObject *resultobj; |
26062 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26063 | wxTreeItemId *arg2 = 0 ; | |
26064 | bool arg3 = (bool) True ; | |
26065 | PyObject * obj0 = 0 ; | |
26066 | PyObject * obj1 = 0 ; | |
26067 | PyObject * obj2 = 0 ; | |
26068 | char *kwnames[] = { | |
26069 | (char *) "self",(char *) "item",(char *) "has", NULL | |
26070 | }; | |
26071 | ||
26072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26075 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26076 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26077 | SWIG_fail; | |
26078 | if (arg2 == NULL) { | |
26079 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26080 | SWIG_fail; | |
26081 | } | |
26082 | if (obj2) { | |
c370783e | 26083 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
26084 | if (PyErr_Occurred()) SWIG_fail; |
26085 | } | |
26086 | { | |
26087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26088 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,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 | ||
c370783e | 26100 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26101 | PyObject *resultobj; |
26102 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26103 | wxTreeItemId *arg2 = 0 ; | |
26104 | bool arg3 = (bool) True ; | |
26105 | PyObject * obj0 = 0 ; | |
26106 | PyObject * obj1 = 0 ; | |
26107 | PyObject * obj2 = 0 ; | |
26108 | char *kwnames[] = { | |
26109 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
26110 | }; | |
26111 | ||
26112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26115 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26116 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26117 | SWIG_fail; | |
26118 | if (arg2 == NULL) { | |
26119 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26120 | SWIG_fail; | |
26121 | } | |
26122 | if (obj2) { | |
c370783e | 26123 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
26124 | if (PyErr_Occurred()) SWIG_fail; |
26125 | } | |
26126 | { | |
26127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26128 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
26129 | ||
26130 | wxPyEndAllowThreads(__tstate); | |
26131 | if (PyErr_Occurred()) SWIG_fail; | |
26132 | } | |
26133 | Py_INCREF(Py_None); resultobj = Py_None; | |
26134 | return resultobj; | |
26135 | fail: | |
26136 | return NULL; | |
26137 | } | |
26138 | ||
26139 | ||
c370783e | 26140 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26141 | PyObject *resultobj; |
26142 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26143 | wxTreeItemId *arg2 = 0 ; | |
26144 | wxColour *arg3 = 0 ; | |
26145 | wxColour temp3 ; | |
26146 | PyObject * obj0 = 0 ; | |
26147 | PyObject * obj1 = 0 ; | |
26148 | PyObject * obj2 = 0 ; | |
26149 | char *kwnames[] = { | |
26150 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26151 | }; | |
26152 | ||
26153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26156 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26157 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26158 | SWIG_fail; | |
26159 | if (arg2 == NULL) { | |
26160 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26161 | SWIG_fail; | |
26162 | } | |
26163 | { | |
26164 | arg3 = &temp3; | |
26165 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26166 | } | |
26167 | { | |
26168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26169 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26170 | ||
26171 | wxPyEndAllowThreads(__tstate); | |
26172 | if (PyErr_Occurred()) SWIG_fail; | |
26173 | } | |
26174 | Py_INCREF(Py_None); resultobj = Py_None; | |
26175 | return resultobj; | |
26176 | fail: | |
26177 | return NULL; | |
26178 | } | |
26179 | ||
26180 | ||
c370783e | 26181 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26182 | PyObject *resultobj; |
26183 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26184 | wxTreeItemId *arg2 = 0 ; | |
26185 | wxColour *arg3 = 0 ; | |
26186 | wxColour temp3 ; | |
26187 | PyObject * obj0 = 0 ; | |
26188 | PyObject * obj1 = 0 ; | |
26189 | PyObject * obj2 = 0 ; | |
26190 | char *kwnames[] = { | |
26191 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26192 | }; | |
26193 | ||
26194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26197 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26198 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26199 | SWIG_fail; | |
26200 | if (arg2 == NULL) { | |
26201 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26202 | SWIG_fail; | |
26203 | } | |
26204 | { | |
26205 | arg3 = &temp3; | |
26206 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26207 | } | |
26208 | { | |
26209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26210 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26211 | ||
26212 | wxPyEndAllowThreads(__tstate); | |
26213 | if (PyErr_Occurred()) SWIG_fail; | |
26214 | } | |
26215 | Py_INCREF(Py_None); resultobj = Py_None; | |
26216 | return resultobj; | |
26217 | fail: | |
26218 | return NULL; | |
26219 | } | |
26220 | ||
26221 | ||
c370783e | 26222 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26223 | PyObject *resultobj; |
26224 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26225 | wxTreeItemId *arg2 = 0 ; | |
26226 | wxFont *arg3 = 0 ; | |
26227 | PyObject * obj0 = 0 ; | |
26228 | PyObject * obj1 = 0 ; | |
26229 | PyObject * obj2 = 0 ; | |
26230 | char *kwnames[] = { | |
26231 | (char *) "self",(char *) "item",(char *) "font", NULL | |
26232 | }; | |
26233 | ||
26234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26237 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26238 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26239 | SWIG_fail; | |
26240 | if (arg2 == NULL) { | |
26241 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26242 | SWIG_fail; | |
26243 | } | |
26244 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
26245 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26246 | SWIG_fail; | |
26247 | if (arg3 == NULL) { | |
26248 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26249 | SWIG_fail; | |
26250 | } | |
26251 | { | |
26252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26253 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
26254 | ||
26255 | wxPyEndAllowThreads(__tstate); | |
26256 | if (PyErr_Occurred()) SWIG_fail; | |
26257 | } | |
26258 | Py_INCREF(Py_None); resultobj = Py_None; | |
26259 | return resultobj; | |
26260 | fail: | |
26261 | return NULL; | |
26262 | } | |
26263 | ||
26264 | ||
c370783e | 26265 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26266 | PyObject *resultobj; |
26267 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26268 | wxTreeItemId *arg2 = 0 ; | |
26269 | bool result; | |
26270 | PyObject * obj0 = 0 ; | |
26271 | PyObject * obj1 = 0 ; | |
26272 | char *kwnames[] = { | |
26273 | (char *) "self",(char *) "item", NULL | |
26274 | }; | |
26275 | ||
26276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
26277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26279 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26280 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26281 | SWIG_fail; | |
26282 | if (arg2 == NULL) { | |
26283 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26284 | SWIG_fail; | |
26285 | } | |
26286 | { | |
26287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26288 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
26289 | ||
26290 | wxPyEndAllowThreads(__tstate); | |
26291 | if (PyErr_Occurred()) SWIG_fail; | |
26292 | } | |
26293 | { | |
26294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26295 | } | |
26296 | return resultobj; | |
26297 | fail: | |
26298 | return NULL; | |
26299 | } | |
26300 | ||
26301 | ||
c370783e | 26302 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26303 | PyObject *resultobj; |
26304 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26305 | wxTreeItemId *arg2 = 0 ; | |
26306 | bool result; | |
26307 | PyObject * obj0 = 0 ; | |
26308 | PyObject * obj1 = 0 ; | |
26309 | char *kwnames[] = { | |
26310 | (char *) "self",(char *) "item", NULL | |
26311 | }; | |
26312 | ||
26313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
26314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26316 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26317 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26318 | SWIG_fail; | |
26319 | if (arg2 == NULL) { | |
26320 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26321 | SWIG_fail; | |
26322 | } | |
26323 | { | |
26324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26325 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26326 | ||
26327 | wxPyEndAllowThreads(__tstate); | |
26328 | if (PyErr_Occurred()) SWIG_fail; | |
26329 | } | |
26330 | { | |
26331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26332 | } | |
26333 | return resultobj; | |
26334 | fail: | |
26335 | return NULL; | |
26336 | } | |
26337 | ||
26338 | ||
c370783e | 26339 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26340 | PyObject *resultobj; |
26341 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26342 | wxTreeItemId *arg2 = 0 ; | |
26343 | bool result; | |
26344 | PyObject * obj0 = 0 ; | |
26345 | PyObject * obj1 = 0 ; | |
26346 | char *kwnames[] = { | |
26347 | (char *) "self",(char *) "item", NULL | |
26348 | }; | |
26349 | ||
26350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
26351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26353 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26354 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26355 | SWIG_fail; | |
26356 | if (arg2 == NULL) { | |
26357 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26358 | SWIG_fail; | |
26359 | } | |
26360 | { | |
26361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26362 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26363 | ||
26364 | wxPyEndAllowThreads(__tstate); | |
26365 | if (PyErr_Occurred()) SWIG_fail; | |
26366 | } | |
26367 | { | |
26368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26369 | } | |
26370 | return resultobj; | |
26371 | fail: | |
26372 | return NULL; | |
26373 | } | |
26374 | ||
26375 | ||
c370783e | 26376 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26377 | PyObject *resultobj; |
26378 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26379 | wxTreeItemId *arg2 = 0 ; | |
26380 | bool result; | |
26381 | PyObject * obj0 = 0 ; | |
26382 | PyObject * obj1 = 0 ; | |
26383 | char *kwnames[] = { | |
26384 | (char *) "self",(char *) "item", NULL | |
26385 | }; | |
26386 | ||
26387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
26388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26390 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26391 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26392 | SWIG_fail; | |
26393 | if (arg2 == NULL) { | |
26394 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26395 | SWIG_fail; | |
26396 | } | |
26397 | { | |
26398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26399 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
26400 | ||
26401 | wxPyEndAllowThreads(__tstate); | |
26402 | if (PyErr_Occurred()) SWIG_fail; | |
26403 | } | |
26404 | { | |
26405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26406 | } | |
26407 | return resultobj; | |
26408 | fail: | |
26409 | return NULL; | |
26410 | } | |
26411 | ||
26412 | ||
c370783e | 26413 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26414 | PyObject *resultobj; |
26415 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26416 | wxTreeItemId *arg2 = 0 ; | |
26417 | bool result; | |
26418 | PyObject * obj0 = 0 ; | |
26419 | PyObject * obj1 = 0 ; | |
26420 | char *kwnames[] = { | |
26421 | (char *) "self",(char *) "item", NULL | |
26422 | }; | |
26423 | ||
26424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
26425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26427 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26428 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26429 | SWIG_fail; | |
26430 | if (arg2 == NULL) { | |
26431 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26432 | SWIG_fail; | |
26433 | } | |
26434 | { | |
26435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26436 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
26437 | ||
26438 | wxPyEndAllowThreads(__tstate); | |
26439 | if (PyErr_Occurred()) SWIG_fail; | |
26440 | } | |
26441 | { | |
26442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26443 | } | |
26444 | return resultobj; | |
26445 | fail: | |
26446 | return NULL; | |
26447 | } | |
26448 | ||
26449 | ||
c370783e | 26450 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26451 | PyObject *resultobj; |
26452 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26453 | wxTreeItemId *arg2 = 0 ; | |
26454 | bool arg3 = (bool) True ; | |
26455 | size_t result; | |
26456 | PyObject * obj0 = 0 ; | |
26457 | PyObject * obj1 = 0 ; | |
26458 | PyObject * obj2 = 0 ; | |
26459 | char *kwnames[] = { | |
26460 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
26461 | }; | |
26462 | ||
26463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26467 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26468 | SWIG_fail; | |
26469 | if (arg2 == NULL) { | |
26470 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26471 | SWIG_fail; | |
26472 | } | |
26473 | if (obj2) { | |
c370783e | 26474 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
26475 | if (PyErr_Occurred()) SWIG_fail; |
26476 | } | |
26477 | { | |
26478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26479 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
26480 | ||
26481 | wxPyEndAllowThreads(__tstate); | |
26482 | if (PyErr_Occurred()) SWIG_fail; | |
26483 | } | |
c370783e | 26484 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
26485 | return resultobj; |
26486 | fail: | |
26487 | return NULL; | |
26488 | } | |
26489 | ||
26490 | ||
c370783e | 26491 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26492 | PyObject *resultobj; |
26493 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26494 | wxTreeItemId result; | |
26495 | PyObject * obj0 = 0 ; | |
26496 | char *kwnames[] = { | |
26497 | (char *) "self", NULL | |
26498 | }; | |
26499 | ||
26500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
26501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26503 | { | |
26504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26505 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
26506 | ||
26507 | wxPyEndAllowThreads(__tstate); | |
26508 | if (PyErr_Occurred()) SWIG_fail; | |
26509 | } | |
26510 | { | |
26511 | wxTreeItemId * resultptr; | |
26512 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26513 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26514 | } | |
26515 | return resultobj; | |
26516 | fail: | |
26517 | return NULL; | |
26518 | } | |
26519 | ||
26520 | ||
c370783e | 26521 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26522 | PyObject *resultobj; |
26523 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26524 | wxTreeItemId result; | |
26525 | PyObject * obj0 = 0 ; | |
26526 | char *kwnames[] = { | |
26527 | (char *) "self", NULL | |
26528 | }; | |
26529 | ||
26530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
26531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26533 | { | |
26534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26535 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
26536 | ||
26537 | wxPyEndAllowThreads(__tstate); | |
26538 | if (PyErr_Occurred()) SWIG_fail; | |
26539 | } | |
26540 | { | |
26541 | wxTreeItemId * resultptr; | |
26542 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26543 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26544 | } | |
26545 | return resultobj; | |
26546 | fail: | |
26547 | return NULL; | |
26548 | } | |
26549 | ||
26550 | ||
c370783e | 26551 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26552 | PyObject *resultobj; |
26553 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26554 | PyObject *result; | |
26555 | PyObject * obj0 = 0 ; | |
26556 | char *kwnames[] = { | |
26557 | (char *) "self", NULL | |
26558 | }; | |
26559 | ||
26560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
26561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26563 | { | |
26564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26565 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
26566 | ||
26567 | wxPyEndAllowThreads(__tstate); | |
26568 | if (PyErr_Occurred()) SWIG_fail; | |
26569 | } | |
26570 | resultobj = result; | |
26571 | return resultobj; | |
26572 | fail: | |
26573 | return NULL; | |
26574 | } | |
26575 | ||
26576 | ||
c370783e | 26577 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26578 | PyObject *resultobj; |
26579 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26580 | wxTreeItemId *arg2 = 0 ; | |
26581 | wxTreeItemId result; | |
26582 | PyObject * obj0 = 0 ; | |
26583 | PyObject * obj1 = 0 ; | |
26584 | char *kwnames[] = { | |
26585 | (char *) "self",(char *) "item", NULL | |
26586 | }; | |
26587 | ||
26588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
26589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26592 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26593 | SWIG_fail; | |
26594 | if (arg2 == NULL) { | |
26595 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26596 | SWIG_fail; | |
26597 | } | |
26598 | { | |
26599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26600 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
26601 | ||
26602 | wxPyEndAllowThreads(__tstate); | |
26603 | if (PyErr_Occurred()) SWIG_fail; | |
26604 | } | |
26605 | { | |
26606 | wxTreeItemId * resultptr; | |
26607 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26609 | } | |
26610 | return resultobj; | |
26611 | fail: | |
26612 | return NULL; | |
26613 | } | |
26614 | ||
26615 | ||
c370783e | 26616 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26617 | PyObject *resultobj; |
26618 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26619 | wxTreeItemId *arg2 = 0 ; | |
26620 | PyObject *result; | |
26621 | PyObject * obj0 = 0 ; | |
26622 | PyObject * obj1 = 0 ; | |
26623 | char *kwnames[] = { | |
26624 | (char *) "self",(char *) "item", NULL | |
26625 | }; | |
26626 | ||
26627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
26628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26630 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26631 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26632 | SWIG_fail; | |
26633 | if (arg2 == NULL) { | |
26634 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26635 | SWIG_fail; | |
26636 | } | |
26637 | { | |
26638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26639 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
26640 | ||
26641 | wxPyEndAllowThreads(__tstate); | |
26642 | if (PyErr_Occurred()) SWIG_fail; | |
26643 | } | |
26644 | resultobj = result; | |
26645 | return resultobj; | |
26646 | fail: | |
26647 | return NULL; | |
26648 | } | |
26649 | ||
26650 | ||
c370783e | 26651 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26652 | PyObject *resultobj; |
26653 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26654 | wxTreeItemId *arg2 = 0 ; | |
26655 | void *arg3 = (void *) 0 ; | |
26656 | PyObject *result; | |
26657 | PyObject * obj0 = 0 ; | |
26658 | PyObject * obj1 = 0 ; | |
26659 | PyObject * obj2 = 0 ; | |
26660 | char *kwnames[] = { | |
26661 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
26662 | }; | |
26663 | ||
26664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26668 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26669 | SWIG_fail; | |
26670 | if (arg2 == NULL) { | |
26671 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26672 | SWIG_fail; | |
26673 | } | |
26674 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26675 | { | |
26676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26677 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26678 | ||
26679 | wxPyEndAllowThreads(__tstate); | |
26680 | if (PyErr_Occurred()) SWIG_fail; | |
26681 | } | |
26682 | resultobj = result; | |
26683 | return resultobj; | |
26684 | fail: | |
26685 | return NULL; | |
26686 | } | |
26687 | ||
26688 | ||
c370783e | 26689 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26690 | PyObject *resultobj; |
26691 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26692 | wxTreeItemId *arg2 = 0 ; | |
26693 | wxTreeItemId result; | |
26694 | PyObject * obj0 = 0 ; | |
26695 | PyObject * obj1 = 0 ; | |
26696 | char *kwnames[] = { | |
26697 | (char *) "self",(char *) "item", NULL | |
26698 | }; | |
26699 | ||
26700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
26701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26704 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26705 | SWIG_fail; | |
26706 | if (arg2 == NULL) { | |
26707 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26708 | SWIG_fail; | |
26709 | } | |
26710 | { | |
26711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26712 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
26713 | ||
26714 | wxPyEndAllowThreads(__tstate); | |
26715 | if (PyErr_Occurred()) SWIG_fail; | |
26716 | } | |
26717 | { | |
26718 | wxTreeItemId * resultptr; | |
26719 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26720 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26721 | } | |
26722 | return resultobj; | |
26723 | fail: | |
26724 | return NULL; | |
26725 | } | |
26726 | ||
26727 | ||
c370783e | 26728 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26729 | PyObject *resultobj; |
26730 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26731 | wxTreeItemId *arg2 = 0 ; | |
26732 | wxTreeItemId result; | |
26733 | PyObject * obj0 = 0 ; | |
26734 | PyObject * obj1 = 0 ; | |
26735 | char *kwnames[] = { | |
26736 | (char *) "self",(char *) "item", NULL | |
26737 | }; | |
26738 | ||
26739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
26740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26742 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26743 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26744 | SWIG_fail; | |
26745 | if (arg2 == NULL) { | |
26746 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26747 | SWIG_fail; | |
26748 | } | |
26749 | { | |
26750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26751 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
26752 | ||
26753 | wxPyEndAllowThreads(__tstate); | |
26754 | if (PyErr_Occurred()) SWIG_fail; | |
26755 | } | |
26756 | { | |
26757 | wxTreeItemId * resultptr; | |
26758 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26759 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26760 | } | |
26761 | return resultobj; | |
26762 | fail: | |
26763 | return NULL; | |
26764 | } | |
26765 | ||
26766 | ||
c370783e | 26767 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26768 | PyObject *resultobj; |
26769 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26770 | wxTreeItemId *arg2 = 0 ; | |
26771 | wxTreeItemId result; | |
26772 | PyObject * obj0 = 0 ; | |
26773 | PyObject * obj1 = 0 ; | |
26774 | char *kwnames[] = { | |
26775 | (char *) "self",(char *) "item", NULL | |
26776 | }; | |
26777 | ||
26778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
26779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26781 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26782 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26783 | SWIG_fail; | |
26784 | if (arg2 == NULL) { | |
26785 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26786 | SWIG_fail; | |
26787 | } | |
26788 | { | |
26789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26790 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
26791 | ||
26792 | wxPyEndAllowThreads(__tstate); | |
26793 | if (PyErr_Occurred()) SWIG_fail; | |
26794 | } | |
26795 | { | |
26796 | wxTreeItemId * resultptr; | |
26797 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26798 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26799 | } | |
26800 | return resultobj; | |
26801 | fail: | |
26802 | return NULL; | |
26803 | } | |
26804 | ||
26805 | ||
c370783e | 26806 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26807 | PyObject *resultobj; |
26808 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26809 | wxTreeItemId result; | |
26810 | PyObject * obj0 = 0 ; | |
26811 | char *kwnames[] = { | |
26812 | (char *) "self", NULL | |
26813 | }; | |
26814 | ||
26815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
26816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26818 | { | |
26819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26820 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
26821 | ||
26822 | wxPyEndAllowThreads(__tstate); | |
26823 | if (PyErr_Occurred()) SWIG_fail; | |
26824 | } | |
26825 | { | |
26826 | wxTreeItemId * resultptr; | |
26827 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26828 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26829 | } | |
26830 | return resultobj; | |
26831 | fail: | |
26832 | return NULL; | |
26833 | } | |
26834 | ||
26835 | ||
c370783e | 26836 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26837 | PyObject *resultobj; |
26838 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26839 | wxTreeItemId *arg2 = 0 ; | |
26840 | wxTreeItemId result; | |
26841 | PyObject * obj0 = 0 ; | |
26842 | PyObject * obj1 = 0 ; | |
26843 | char *kwnames[] = { | |
26844 | (char *) "self",(char *) "item", NULL | |
26845 | }; | |
26846 | ||
26847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
26848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26850 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26852 | SWIG_fail; | |
26853 | if (arg2 == NULL) { | |
26854 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26855 | SWIG_fail; | |
26856 | } | |
26857 | { | |
26858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26859 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
26860 | ||
26861 | wxPyEndAllowThreads(__tstate); | |
26862 | if (PyErr_Occurred()) SWIG_fail; | |
26863 | } | |
26864 | { | |
26865 | wxTreeItemId * resultptr; | |
26866 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26867 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26868 | } | |
26869 | return resultobj; | |
26870 | fail: | |
26871 | return NULL; | |
26872 | } | |
26873 | ||
26874 | ||
c370783e | 26875 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26876 | PyObject *resultobj; |
26877 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26878 | wxTreeItemId *arg2 = 0 ; | |
26879 | wxTreeItemId result; | |
26880 | PyObject * obj0 = 0 ; | |
26881 | PyObject * obj1 = 0 ; | |
26882 | char *kwnames[] = { | |
26883 | (char *) "self",(char *) "item", NULL | |
26884 | }; | |
26885 | ||
26886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
26887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26891 | SWIG_fail; | |
26892 | if (arg2 == NULL) { | |
26893 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26894 | SWIG_fail; | |
26895 | } | |
26896 | { | |
26897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26898 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26899 | ||
26900 | wxPyEndAllowThreads(__tstate); | |
26901 | if (PyErr_Occurred()) SWIG_fail; | |
26902 | } | |
26903 | { | |
26904 | wxTreeItemId * resultptr; | |
26905 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26906 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26907 | } | |
26908 | return resultobj; | |
26909 | fail: | |
26910 | return NULL; | |
26911 | } | |
26912 | ||
26913 | ||
c370783e | 26914 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26915 | PyObject *resultobj; |
26916 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26917 | wxString *arg2 = 0 ; | |
26918 | int arg3 = (int) -1 ; | |
26919 | int arg4 = (int) -1 ; | |
26920 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26921 | wxTreeItemId result; | |
26922 | bool temp2 = False ; | |
26923 | PyObject * obj0 = 0 ; | |
26924 | PyObject * obj1 = 0 ; | |
26925 | PyObject * obj2 = 0 ; | |
26926 | PyObject * obj3 = 0 ; | |
26927 | PyObject * obj4 = 0 ; | |
26928 | char *kwnames[] = { | |
26929 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26930 | }; | |
26931 | ||
26932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26935 | { | |
26936 | arg2 = wxString_in_helper(obj1); | |
26937 | if (arg2 == NULL) SWIG_fail; | |
26938 | temp2 = True; | |
26939 | } | |
26940 | if (obj2) { | |
c370783e | 26941 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26942 | if (PyErr_Occurred()) SWIG_fail; |
26943 | } | |
26944 | if (obj3) { | |
c370783e | 26945 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26946 | if (PyErr_Occurred()) SWIG_fail; |
26947 | } | |
26948 | if (obj4) { | |
26949 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, | |
26950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26951 | } | |
26952 | { | |
26953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26954 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26955 | ||
26956 | wxPyEndAllowThreads(__tstate); | |
26957 | if (PyErr_Occurred()) SWIG_fail; | |
26958 | } | |
26959 | { | |
26960 | wxTreeItemId * resultptr; | |
26961 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26962 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26963 | } | |
26964 | { | |
26965 | if (temp2) | |
26966 | delete arg2; | |
26967 | } | |
26968 | return resultobj; | |
26969 | fail: | |
26970 | { | |
26971 | if (temp2) | |
26972 | delete arg2; | |
26973 | } | |
26974 | return NULL; | |
26975 | } | |
26976 | ||
26977 | ||
c370783e | 26978 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26979 | PyObject *resultobj; |
26980 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26981 | wxTreeItemId *arg2 = 0 ; | |
26982 | wxString *arg3 = 0 ; | |
26983 | int arg4 = (int) -1 ; | |
26984 | int arg5 = (int) -1 ; | |
26985 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26986 | wxTreeItemId result; | |
26987 | bool temp3 = False ; | |
26988 | PyObject * obj0 = 0 ; | |
26989 | PyObject * obj1 = 0 ; | |
26990 | PyObject * obj2 = 0 ; | |
26991 | PyObject * obj3 = 0 ; | |
26992 | PyObject * obj4 = 0 ; | |
26993 | PyObject * obj5 = 0 ; | |
26994 | char *kwnames[] = { | |
26995 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26996 | }; | |
26997 | ||
26998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27001 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27002 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27003 | SWIG_fail; | |
27004 | if (arg2 == NULL) { | |
27005 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27006 | SWIG_fail; | |
27007 | } | |
27008 | { | |
27009 | arg3 = wxString_in_helper(obj2); | |
27010 | if (arg3 == NULL) SWIG_fail; | |
27011 | temp3 = True; | |
27012 | } | |
27013 | if (obj3) { | |
c370783e | 27014 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27015 | if (PyErr_Occurred()) SWIG_fail; |
27016 | } | |
27017 | if (obj4) { | |
c370783e | 27018 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27019 | if (PyErr_Occurred()) SWIG_fail; |
27020 | } | |
27021 | if (obj5) { | |
27022 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
27023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27024 | } | |
27025 | { | |
27026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27027 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27028 | ||
27029 | wxPyEndAllowThreads(__tstate); | |
27030 | if (PyErr_Occurred()) SWIG_fail; | |
27031 | } | |
27032 | { | |
27033 | wxTreeItemId * resultptr; | |
27034 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27035 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27036 | } | |
27037 | { | |
27038 | if (temp3) | |
27039 | delete arg3; | |
27040 | } | |
27041 | return resultobj; | |
27042 | fail: | |
27043 | { | |
27044 | if (temp3) | |
27045 | delete arg3; | |
27046 | } | |
27047 | return NULL; | |
27048 | } | |
27049 | ||
27050 | ||
c370783e | 27051 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27052 | PyObject *resultobj; |
27053 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27054 | wxTreeItemId *arg2 = 0 ; | |
27055 | wxTreeItemId *arg3 = 0 ; | |
27056 | wxString *arg4 = 0 ; | |
27057 | int arg5 = (int) -1 ; | |
27058 | int arg6 = (int) -1 ; | |
27059 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27060 | wxTreeItemId result; | |
27061 | bool temp4 = False ; | |
27062 | PyObject * obj0 = 0 ; | |
27063 | PyObject * obj1 = 0 ; | |
27064 | PyObject * obj2 = 0 ; | |
27065 | PyObject * obj3 = 0 ; | |
27066 | PyObject * obj4 = 0 ; | |
27067 | PyObject * obj5 = 0 ; | |
27068 | PyObject * obj6 = 0 ; | |
27069 | char *kwnames[] = { | |
27070 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27071 | }; | |
27072 | ||
27073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27076 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27077 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27078 | SWIG_fail; | |
27079 | if (arg2 == NULL) { | |
27080 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27081 | SWIG_fail; | |
27082 | } | |
27083 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, | |
27084 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27085 | SWIG_fail; | |
27086 | if (arg3 == NULL) { | |
27087 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27088 | SWIG_fail; | |
27089 | } | |
27090 | { | |
27091 | arg4 = wxString_in_helper(obj3); | |
27092 | if (arg4 == NULL) SWIG_fail; | |
27093 | temp4 = True; | |
27094 | } | |
27095 | if (obj4) { | |
c370783e | 27096 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27097 | if (PyErr_Occurred()) SWIG_fail; |
27098 | } | |
27099 | if (obj5) { | |
c370783e | 27100 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
27101 | if (PyErr_Occurred()) SWIG_fail; |
27102 | } | |
27103 | if (obj6) { | |
27104 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
27105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27106 | } | |
27107 | { | |
27108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27109 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27110 | ||
27111 | wxPyEndAllowThreads(__tstate); | |
27112 | if (PyErr_Occurred()) SWIG_fail; | |
27113 | } | |
27114 | { | |
27115 | wxTreeItemId * resultptr; | |
27116 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27117 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27118 | } | |
27119 | { | |
27120 | if (temp4) | |
27121 | delete arg4; | |
27122 | } | |
27123 | return resultobj; | |
27124 | fail: | |
27125 | { | |
27126 | if (temp4) | |
27127 | delete arg4; | |
27128 | } | |
27129 | return NULL; | |
27130 | } | |
27131 | ||
27132 | ||
c370783e | 27133 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27134 | PyObject *resultobj; |
27135 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27136 | wxTreeItemId *arg2 = 0 ; | |
27137 | size_t arg3 ; | |
27138 | wxString *arg4 = 0 ; | |
27139 | int arg5 = (int) -1 ; | |
27140 | int arg6 = (int) -1 ; | |
27141 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27142 | wxTreeItemId result; | |
27143 | bool temp4 = False ; | |
27144 | PyObject * obj0 = 0 ; | |
27145 | PyObject * obj1 = 0 ; | |
27146 | PyObject * obj2 = 0 ; | |
27147 | PyObject * obj3 = 0 ; | |
27148 | PyObject * obj4 = 0 ; | |
27149 | PyObject * obj5 = 0 ; | |
27150 | PyObject * obj6 = 0 ; | |
27151 | char *kwnames[] = { | |
27152 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27153 | }; | |
27154 | ||
27155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27158 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27159 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27160 | SWIG_fail; | |
27161 | if (arg2 == NULL) { | |
27162 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27163 | SWIG_fail; | |
27164 | } | |
c370783e | 27165 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
d55e5bfc RD |
27166 | if (PyErr_Occurred()) SWIG_fail; |
27167 | { | |
27168 | arg4 = wxString_in_helper(obj3); | |
27169 | if (arg4 == NULL) SWIG_fail; | |
27170 | temp4 = True; | |
27171 | } | |
27172 | if (obj4) { | |
c370783e | 27173 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27174 | if (PyErr_Occurred()) SWIG_fail; |
27175 | } | |
27176 | if (obj5) { | |
c370783e | 27177 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
27178 | if (PyErr_Occurred()) SWIG_fail; |
27179 | } | |
27180 | if (obj6) { | |
27181 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
27182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27183 | } | |
27184 | { | |
27185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27186 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27187 | ||
27188 | wxPyEndAllowThreads(__tstate); | |
27189 | if (PyErr_Occurred()) SWIG_fail; | |
27190 | } | |
27191 | { | |
27192 | wxTreeItemId * resultptr; | |
27193 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27194 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27195 | } | |
27196 | { | |
27197 | if (temp4) | |
27198 | delete arg4; | |
27199 | } | |
27200 | return resultobj; | |
27201 | fail: | |
27202 | { | |
27203 | if (temp4) | |
27204 | delete arg4; | |
27205 | } | |
27206 | return NULL; | |
27207 | } | |
27208 | ||
27209 | ||
c370783e | 27210 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27211 | PyObject *resultobj; |
27212 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27213 | wxTreeItemId *arg2 = 0 ; | |
27214 | wxString *arg3 = 0 ; | |
27215 | int arg4 = (int) -1 ; | |
27216 | int arg5 = (int) -1 ; | |
27217 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27218 | wxTreeItemId result; | |
27219 | bool temp3 = False ; | |
27220 | PyObject * obj0 = 0 ; | |
27221 | PyObject * obj1 = 0 ; | |
27222 | PyObject * obj2 = 0 ; | |
27223 | PyObject * obj3 = 0 ; | |
27224 | PyObject * obj4 = 0 ; | |
27225 | PyObject * obj5 = 0 ; | |
27226 | char *kwnames[] = { | |
27227 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27228 | }; | |
27229 | ||
27230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27233 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27234 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27235 | SWIG_fail; | |
27236 | if (arg2 == NULL) { | |
27237 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27238 | SWIG_fail; | |
27239 | } | |
27240 | { | |
27241 | arg3 = wxString_in_helper(obj2); | |
27242 | if (arg3 == NULL) SWIG_fail; | |
27243 | temp3 = True; | |
27244 | } | |
27245 | if (obj3) { | |
c370783e | 27246 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27247 | if (PyErr_Occurred()) SWIG_fail; |
27248 | } | |
27249 | if (obj4) { | |
c370783e | 27250 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27251 | if (PyErr_Occurred()) SWIG_fail; |
27252 | } | |
27253 | if (obj5) { | |
27254 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
27255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27256 | } | |
27257 | { | |
27258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27259 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27260 | ||
27261 | wxPyEndAllowThreads(__tstate); | |
27262 | if (PyErr_Occurred()) SWIG_fail; | |
27263 | } | |
27264 | { | |
27265 | wxTreeItemId * resultptr; | |
27266 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27267 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27268 | } | |
27269 | { | |
27270 | if (temp3) | |
27271 | delete arg3; | |
27272 | } | |
27273 | return resultobj; | |
27274 | fail: | |
27275 | { | |
27276 | if (temp3) | |
27277 | delete arg3; | |
27278 | } | |
27279 | return NULL; | |
27280 | } | |
27281 | ||
27282 | ||
c370783e | 27283 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27284 | PyObject *resultobj; |
27285 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27286 | wxTreeItemId *arg2 = 0 ; | |
27287 | PyObject * obj0 = 0 ; | |
27288 | PyObject * obj1 = 0 ; | |
27289 | char *kwnames[] = { | |
27290 | (char *) "self",(char *) "item", NULL | |
27291 | }; | |
27292 | ||
27293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
27294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27296 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27297 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27298 | SWIG_fail; | |
27299 | if (arg2 == NULL) { | |
27300 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27301 | SWIG_fail; | |
27302 | } | |
27303 | { | |
27304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27305 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
27306 | ||
27307 | wxPyEndAllowThreads(__tstate); | |
27308 | if (PyErr_Occurred()) SWIG_fail; | |
27309 | } | |
27310 | Py_INCREF(Py_None); resultobj = Py_None; | |
27311 | return resultobj; | |
27312 | fail: | |
27313 | return NULL; | |
27314 | } | |
27315 | ||
27316 | ||
c370783e | 27317 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27318 | PyObject *resultobj; |
27319 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27320 | wxTreeItemId *arg2 = 0 ; | |
27321 | PyObject * obj0 = 0 ; | |
27322 | PyObject * obj1 = 0 ; | |
27323 | char *kwnames[] = { | |
27324 | (char *) "self",(char *) "item", NULL | |
27325 | }; | |
27326 | ||
27327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
27328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27330 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27331 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27332 | SWIG_fail; | |
27333 | if (arg2 == NULL) { | |
27334 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27335 | SWIG_fail; | |
27336 | } | |
27337 | { | |
27338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27339 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27340 | ||
27341 | wxPyEndAllowThreads(__tstate); | |
27342 | if (PyErr_Occurred()) SWIG_fail; | |
27343 | } | |
27344 | Py_INCREF(Py_None); resultobj = Py_None; | |
27345 | return resultobj; | |
27346 | fail: | |
27347 | return NULL; | |
27348 | } | |
27349 | ||
27350 | ||
c370783e | 27351 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27352 | PyObject *resultobj; |
27353 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27354 | PyObject * obj0 = 0 ; | |
27355 | char *kwnames[] = { | |
27356 | (char *) "self", NULL | |
27357 | }; | |
27358 | ||
27359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
27360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27362 | { | |
27363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27364 | (arg1)->DeleteAllItems(); | |
27365 | ||
27366 | wxPyEndAllowThreads(__tstate); | |
27367 | if (PyErr_Occurred()) SWIG_fail; | |
27368 | } | |
27369 | Py_INCREF(Py_None); resultobj = Py_None; | |
27370 | return resultobj; | |
27371 | fail: | |
27372 | return NULL; | |
27373 | } | |
27374 | ||
27375 | ||
c370783e | 27376 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27377 | PyObject *resultobj; |
27378 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27379 | wxTreeItemId *arg2 = 0 ; | |
27380 | PyObject * obj0 = 0 ; | |
27381 | PyObject * obj1 = 0 ; | |
27382 | char *kwnames[] = { | |
27383 | (char *) "self",(char *) "item", NULL | |
27384 | }; | |
27385 | ||
27386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
27387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27389 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27390 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27391 | SWIG_fail; | |
27392 | if (arg2 == NULL) { | |
27393 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27394 | SWIG_fail; | |
27395 | } | |
27396 | { | |
27397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27398 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
27399 | ||
27400 | wxPyEndAllowThreads(__tstate); | |
27401 | if (PyErr_Occurred()) SWIG_fail; | |
27402 | } | |
27403 | Py_INCREF(Py_None); resultobj = Py_None; | |
27404 | return resultobj; | |
27405 | fail: | |
27406 | return NULL; | |
27407 | } | |
27408 | ||
27409 | ||
c370783e | 27410 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27411 | PyObject *resultobj; |
27412 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27413 | wxTreeItemId *arg2 = 0 ; | |
27414 | PyObject * obj0 = 0 ; | |
27415 | PyObject * obj1 = 0 ; | |
27416 | char *kwnames[] = { | |
27417 | (char *) "self",(char *) "item", NULL | |
27418 | }; | |
27419 | ||
27420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
27421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27423 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27424 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27425 | SWIG_fail; | |
27426 | if (arg2 == NULL) { | |
27427 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27428 | SWIG_fail; | |
27429 | } | |
27430 | { | |
27431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27432 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
27433 | ||
27434 | wxPyEndAllowThreads(__tstate); | |
27435 | if (PyErr_Occurred()) SWIG_fail; | |
27436 | } | |
27437 | Py_INCREF(Py_None); resultobj = Py_None; | |
27438 | return resultobj; | |
27439 | fail: | |
27440 | return NULL; | |
27441 | } | |
27442 | ||
27443 | ||
c370783e | 27444 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27445 | PyObject *resultobj; |
27446 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27447 | wxTreeItemId *arg2 = 0 ; | |
27448 | PyObject * obj0 = 0 ; | |
27449 | PyObject * obj1 = 0 ; | |
27450 | char *kwnames[] = { | |
27451 | (char *) "self",(char *) "item", NULL | |
27452 | }; | |
27453 | ||
27454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
27455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27457 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27458 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27459 | SWIG_fail; | |
27460 | if (arg2 == NULL) { | |
27461 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27462 | SWIG_fail; | |
27463 | } | |
27464 | { | |
27465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27466 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
27467 | ||
27468 | wxPyEndAllowThreads(__tstate); | |
27469 | if (PyErr_Occurred()) SWIG_fail; | |
27470 | } | |
27471 | Py_INCREF(Py_None); resultobj = Py_None; | |
27472 | return resultobj; | |
27473 | fail: | |
27474 | return NULL; | |
27475 | } | |
27476 | ||
27477 | ||
c370783e | 27478 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27479 | PyObject *resultobj; |
27480 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27481 | wxTreeItemId *arg2 = 0 ; | |
27482 | PyObject * obj0 = 0 ; | |
27483 | PyObject * obj1 = 0 ; | |
27484 | char *kwnames[] = { | |
27485 | (char *) "self",(char *) "item", NULL | |
27486 | }; | |
27487 | ||
27488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
27489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27491 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27492 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27493 | SWIG_fail; | |
27494 | if (arg2 == NULL) { | |
27495 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27496 | SWIG_fail; | |
27497 | } | |
27498 | { | |
27499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27500 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
27501 | ||
27502 | wxPyEndAllowThreads(__tstate); | |
27503 | if (PyErr_Occurred()) SWIG_fail; | |
27504 | } | |
27505 | Py_INCREF(Py_None); resultobj = Py_None; | |
27506 | return resultobj; | |
27507 | fail: | |
27508 | return NULL; | |
27509 | } | |
27510 | ||
27511 | ||
c370783e | 27512 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27513 | PyObject *resultobj; |
27514 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27515 | PyObject * obj0 = 0 ; | |
27516 | char *kwnames[] = { | |
27517 | (char *) "self", NULL | |
27518 | }; | |
27519 | ||
27520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
27521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27523 | { | |
27524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27525 | (arg1)->Unselect(); | |
27526 | ||
27527 | wxPyEndAllowThreads(__tstate); | |
27528 | if (PyErr_Occurred()) SWIG_fail; | |
27529 | } | |
27530 | Py_INCREF(Py_None); resultobj = Py_None; | |
27531 | return resultobj; | |
27532 | fail: | |
27533 | return NULL; | |
27534 | } | |
27535 | ||
27536 | ||
c370783e | 27537 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27538 | PyObject *resultobj; |
27539 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27540 | wxTreeItemId *arg2 = 0 ; | |
27541 | PyObject * obj0 = 0 ; | |
27542 | PyObject * obj1 = 0 ; | |
27543 | char *kwnames[] = { | |
27544 | (char *) "self",(char *) "item", NULL | |
27545 | }; | |
27546 | ||
27547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
27548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27550 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27551 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27552 | SWIG_fail; | |
27553 | if (arg2 == NULL) { | |
27554 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27555 | SWIG_fail; | |
27556 | } | |
27557 | { | |
27558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27559 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
27560 | ||
27561 | wxPyEndAllowThreads(__tstate); | |
27562 | if (PyErr_Occurred()) SWIG_fail; | |
27563 | } | |
27564 | Py_INCREF(Py_None); resultobj = Py_None; | |
27565 | return resultobj; | |
27566 | fail: | |
27567 | return NULL; | |
27568 | } | |
27569 | ||
27570 | ||
c370783e | 27571 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27572 | PyObject *resultobj; |
27573 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27574 | PyObject * obj0 = 0 ; | |
27575 | char *kwnames[] = { | |
27576 | (char *) "self", NULL | |
27577 | }; | |
27578 | ||
27579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
27580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27582 | { | |
27583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27584 | (arg1)->UnselectAll(); | |
27585 | ||
27586 | wxPyEndAllowThreads(__tstate); | |
27587 | if (PyErr_Occurred()) SWIG_fail; | |
27588 | } | |
27589 | Py_INCREF(Py_None); resultobj = Py_None; | |
27590 | return resultobj; | |
27591 | fail: | |
27592 | return NULL; | |
27593 | } | |
27594 | ||
27595 | ||
c370783e | 27596 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27597 | PyObject *resultobj; |
27598 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27599 | wxTreeItemId *arg2 = 0 ; | |
27600 | bool arg3 = (bool) True ; | |
27601 | PyObject * obj0 = 0 ; | |
27602 | PyObject * obj1 = 0 ; | |
27603 | PyObject * obj2 = 0 ; | |
27604 | char *kwnames[] = { | |
27605 | (char *) "self",(char *) "item",(char *) "select", NULL | |
27606 | }; | |
27607 | ||
27608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27611 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27612 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27613 | SWIG_fail; | |
27614 | if (arg2 == NULL) { | |
27615 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27616 | SWIG_fail; | |
27617 | } | |
27618 | if (obj2) { | |
c370783e | 27619 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
27620 | if (PyErr_Occurred()) SWIG_fail; |
27621 | } | |
27622 | { | |
27623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27624 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
27625 | ||
27626 | wxPyEndAllowThreads(__tstate); | |
27627 | if (PyErr_Occurred()) SWIG_fail; | |
27628 | } | |
27629 | Py_INCREF(Py_None); resultobj = Py_None; | |
27630 | return resultobj; | |
27631 | fail: | |
27632 | return NULL; | |
27633 | } | |
27634 | ||
27635 | ||
c370783e | 27636 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27637 | PyObject *resultobj; |
27638 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27639 | wxTreeItemId *arg2 = 0 ; | |
27640 | PyObject * obj0 = 0 ; | |
27641 | PyObject * obj1 = 0 ; | |
27642 | char *kwnames[] = { | |
27643 | (char *) "self",(char *) "item", NULL | |
27644 | }; | |
27645 | ||
27646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; | |
27647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27650 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27651 | SWIG_fail; | |
27652 | if (arg2 == NULL) { | |
27653 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27654 | SWIG_fail; | |
27655 | } | |
27656 | { | |
27657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27658 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
27659 | ||
27660 | wxPyEndAllowThreads(__tstate); | |
27661 | if (PyErr_Occurred()) SWIG_fail; | |
27662 | } | |
27663 | Py_INCREF(Py_None); resultobj = Py_None; | |
27664 | return resultobj; | |
27665 | fail: | |
27666 | return NULL; | |
27667 | } | |
27668 | ||
27669 | ||
c370783e | 27670 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27671 | PyObject *resultobj; |
27672 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27673 | wxTreeItemId *arg2 = 0 ; | |
27674 | PyObject * obj0 = 0 ; | |
27675 | PyObject * obj1 = 0 ; | |
27676 | char *kwnames[] = { | |
27677 | (char *) "self",(char *) "item", NULL | |
27678 | }; | |
27679 | ||
27680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
27681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27683 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27684 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27685 | SWIG_fail; | |
27686 | if (arg2 == NULL) { | |
27687 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27688 | SWIG_fail; | |
27689 | } | |
27690 | { | |
27691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27692 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
27693 | ||
27694 | wxPyEndAllowThreads(__tstate); | |
27695 | if (PyErr_Occurred()) SWIG_fail; | |
27696 | } | |
27697 | Py_INCREF(Py_None); resultobj = Py_None; | |
27698 | return resultobj; | |
27699 | fail: | |
27700 | return NULL; | |
27701 | } | |
27702 | ||
27703 | ||
c370783e | 27704 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27705 | PyObject *resultobj; |
27706 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27707 | wxTreeItemId *arg2 = 0 ; | |
27708 | PyObject * obj0 = 0 ; | |
27709 | PyObject * obj1 = 0 ; | |
27710 | char *kwnames[] = { | |
27711 | (char *) "self",(char *) "item", NULL | |
27712 | }; | |
27713 | ||
27714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
27715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27717 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27718 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27719 | SWIG_fail; | |
27720 | if (arg2 == NULL) { | |
27721 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27722 | SWIG_fail; | |
27723 | } | |
27724 | { | |
27725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27726 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
27727 | ||
27728 | wxPyEndAllowThreads(__tstate); | |
27729 | if (PyErr_Occurred()) SWIG_fail; | |
27730 | } | |
27731 | Py_INCREF(Py_None); resultobj = Py_None; | |
27732 | return resultobj; | |
27733 | fail: | |
27734 | return NULL; | |
27735 | } | |
27736 | ||
27737 | ||
c370783e | 27738 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27739 | PyObject *resultobj; |
27740 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27741 | wxTreeItemId *arg2 = 0 ; | |
27742 | PyObject * obj0 = 0 ; | |
27743 | PyObject * obj1 = 0 ; | |
27744 | char *kwnames[] = { | |
27745 | (char *) "self",(char *) "item", NULL | |
27746 | }; | |
27747 | ||
27748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
27749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27751 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27752 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27753 | SWIG_fail; | |
27754 | if (arg2 == NULL) { | |
27755 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27756 | SWIG_fail; | |
27757 | } | |
27758 | { | |
27759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27760 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
27761 | ||
27762 | wxPyEndAllowThreads(__tstate); | |
27763 | if (PyErr_Occurred()) SWIG_fail; | |
27764 | } | |
27765 | Py_INCREF(Py_None); resultobj = Py_None; | |
27766 | return resultobj; | |
27767 | fail: | |
27768 | return NULL; | |
27769 | } | |
27770 | ||
27771 | ||
c370783e | 27772 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27773 | PyObject *resultobj; |
27774 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27775 | wxTextCtrl *result; | |
27776 | PyObject * obj0 = 0 ; | |
27777 | char *kwnames[] = { | |
27778 | (char *) "self", NULL | |
27779 | }; | |
27780 | ||
27781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
27782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27784 | { | |
27785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27786 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
27787 | ||
27788 | wxPyEndAllowThreads(__tstate); | |
27789 | if (PyErr_Occurred()) SWIG_fail; | |
27790 | } | |
27791 | { | |
412d302d | 27792 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27793 | } |
27794 | return resultobj; | |
27795 | fail: | |
27796 | return NULL; | |
27797 | } | |
27798 | ||
27799 | ||
c370783e | 27800 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27801 | PyObject *resultobj; |
27802 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27803 | wxTreeItemId *arg2 = 0 ; | |
27804 | PyObject * obj0 = 0 ; | |
27805 | PyObject * obj1 = 0 ; | |
27806 | char *kwnames[] = { | |
27807 | (char *) "self",(char *) "item", NULL | |
27808 | }; | |
27809 | ||
27810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
27811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27813 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27814 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27815 | SWIG_fail; | |
27816 | if (arg2 == NULL) { | |
27817 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27818 | SWIG_fail; | |
27819 | } | |
27820 | { | |
27821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27822 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
27823 | ||
27824 | wxPyEndAllowThreads(__tstate); | |
27825 | if (PyErr_Occurred()) SWIG_fail; | |
27826 | } | |
27827 | Py_INCREF(Py_None); resultobj = Py_None; | |
27828 | return resultobj; | |
27829 | fail: | |
27830 | return NULL; | |
27831 | } | |
27832 | ||
27833 | ||
c370783e | 27834 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27835 | PyObject *resultobj; |
27836 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27837 | wxPoint *arg2 = 0 ; | |
27838 | int *arg3 = 0 ; | |
27839 | wxTreeItemId result; | |
27840 | wxPoint temp2 ; | |
27841 | int temp3 ; | |
c370783e | 27842 | int res3 = 0 ; |
d55e5bfc RD |
27843 | PyObject * obj0 = 0 ; |
27844 | PyObject * obj1 = 0 ; | |
27845 | char *kwnames[] = { | |
27846 | (char *) "self",(char *) "point", NULL | |
27847 | }; | |
27848 | ||
c370783e | 27849 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
27850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
27851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27853 | { | |
27854 | arg2 = &temp2; | |
27855 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27856 | } | |
27857 | { | |
27858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27859 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27860 | ||
27861 | wxPyEndAllowThreads(__tstate); | |
27862 | if (PyErr_Occurred()) SWIG_fail; | |
27863 | } | |
27864 | { | |
27865 | wxTreeItemId * resultptr; | |
27866 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27867 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27868 | } | |
c370783e RD |
27869 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27870 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27871 | return resultobj; |
27872 | fail: | |
27873 | return NULL; | |
27874 | } | |
27875 | ||
27876 | ||
c370783e | 27877 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27878 | PyObject *resultobj; |
27879 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27880 | wxTreeItemId *arg2 = 0 ; | |
27881 | bool arg3 = (bool) False ; | |
27882 | PyObject *result; | |
27883 | PyObject * obj0 = 0 ; | |
27884 | PyObject * obj1 = 0 ; | |
27885 | PyObject * obj2 = 0 ; | |
27886 | char *kwnames[] = { | |
27887 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27888 | }; | |
27889 | ||
27890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27893 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27894 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27895 | SWIG_fail; | |
27896 | if (arg2 == NULL) { | |
27897 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27898 | SWIG_fail; | |
27899 | } | |
27900 | if (obj2) { | |
c370783e | 27901 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
27902 | if (PyErr_Occurred()) SWIG_fail; |
27903 | } | |
27904 | { | |
27905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27906 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27907 | ||
27908 | wxPyEndAllowThreads(__tstate); | |
27909 | if (PyErr_Occurred()) SWIG_fail; | |
27910 | } | |
27911 | resultobj = result; | |
27912 | return resultobj; | |
27913 | fail: | |
27914 | return NULL; | |
27915 | } | |
27916 | ||
27917 | ||
c370783e | 27918 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27919 | PyObject *resultobj; |
27920 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
27921 | wxVisualAttributes result; | |
27922 | PyObject * obj0 = 0 ; | |
27923 | char *kwnames[] = { | |
27924 | (char *) "variant", NULL | |
27925 | }; | |
27926 | ||
27927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27928 | if (obj0) { | |
c370783e | 27929 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
27930 | if (PyErr_Occurred()) SWIG_fail; |
27931 | } | |
27932 | { | |
0439c23b | 27933 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
27934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27935 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
27936 | ||
27937 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27938 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
27939 | } |
27940 | { | |
27941 | wxVisualAttributes * resultptr; | |
27942 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
27943 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
27944 | } | |
27945 | return resultobj; | |
27946 | fail: | |
27947 | return NULL; | |
27948 | } | |
27949 | ||
27950 | ||
c370783e | 27951 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27952 | PyObject *obj; |
27953 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27954 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
27955 | Py_INCREF(obj); | |
27956 | return Py_BuildValue((char *)""); | |
27957 | } | |
c370783e | 27958 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
d55e5bfc RD |
27959 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
27960 | return 1; | |
27961 | } | |
27962 | ||
27963 | ||
27964 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
27965 | PyObject *pyobj; | |
27966 | ||
27967 | { | |
27968 | #if wxUSE_UNICODE | |
27969 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27970 | #else | |
27971 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27972 | #endif | |
27973 | } | |
27974 | return pyobj; | |
27975 | } | |
27976 | ||
27977 | ||
c370783e | 27978 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27979 | PyObject *resultobj; |
27980 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27981 | int arg2 = (int) (int)-1 ; | |
27982 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
27983 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27984 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27985 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27986 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27987 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27988 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27989 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27990 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27991 | int arg8 = (int) 0 ; | |
27992 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
27993 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
27994 | wxGenericDirCtrl *result; | |
27995 | bool temp3 = False ; | |
27996 | wxPoint temp4 ; | |
27997 | wxSize temp5 ; | |
27998 | bool temp7 = False ; | |
27999 | bool temp9 = False ; | |
28000 | PyObject * obj0 = 0 ; | |
28001 | PyObject * obj1 = 0 ; | |
28002 | PyObject * obj2 = 0 ; | |
28003 | PyObject * obj3 = 0 ; | |
28004 | PyObject * obj4 = 0 ; | |
28005 | PyObject * obj5 = 0 ; | |
28006 | PyObject * obj6 = 0 ; | |
28007 | PyObject * obj7 = 0 ; | |
28008 | PyObject * obj8 = 0 ; | |
28009 | char *kwnames[] = { | |
28010 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28011 | }; | |
28012 | ||
28013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
28014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28016 | if (obj1) { | |
c370783e | 28017 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28018 | if (PyErr_Occurred()) SWIG_fail; |
28019 | } | |
28020 | if (obj2) { | |
28021 | { | |
28022 | arg3 = wxString_in_helper(obj2); | |
28023 | if (arg3 == NULL) SWIG_fail; | |
28024 | temp3 = True; | |
28025 | } | |
28026 | } | |
28027 | if (obj3) { | |
28028 | { | |
28029 | arg4 = &temp4; | |
28030 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28031 | } | |
28032 | } | |
28033 | if (obj4) { | |
28034 | { | |
28035 | arg5 = &temp5; | |
28036 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28037 | } | |
28038 | } | |
28039 | if (obj5) { | |
c370783e | 28040 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
28041 | if (PyErr_Occurred()) SWIG_fail; |
28042 | } | |
28043 | if (obj6) { | |
28044 | { | |
28045 | arg7 = wxString_in_helper(obj6); | |
28046 | if (arg7 == NULL) SWIG_fail; | |
28047 | temp7 = True; | |
28048 | } | |
28049 | } | |
28050 | if (obj7) { | |
c370783e | 28051 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
28052 | if (PyErr_Occurred()) SWIG_fail; |
28053 | } | |
28054 | if (obj8) { | |
28055 | { | |
28056 | arg9 = wxString_in_helper(obj8); | |
28057 | if (arg9 == NULL) SWIG_fail; | |
28058 | temp9 = True; | |
28059 | } | |
28060 | } | |
28061 | { | |
0439c23b | 28062 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28064 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
28065 | ||
28066 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28067 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28068 | } |
28069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
28070 | { | |
28071 | if (temp3) | |
28072 | delete arg3; | |
28073 | } | |
28074 | { | |
28075 | if (temp7) | |
28076 | delete arg7; | |
28077 | } | |
28078 | { | |
28079 | if (temp9) | |
28080 | delete arg9; | |
28081 | } | |
28082 | return resultobj; | |
28083 | fail: | |
28084 | { | |
28085 | if (temp3) | |
28086 | delete arg3; | |
28087 | } | |
28088 | { | |
28089 | if (temp7) | |
28090 | delete arg7; | |
28091 | } | |
28092 | { | |
28093 | if (temp9) | |
28094 | delete arg9; | |
28095 | } | |
28096 | return NULL; | |
28097 | } | |
28098 | ||
28099 | ||
c370783e | 28100 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28101 | PyObject *resultobj; |
28102 | wxGenericDirCtrl *result; | |
28103 | char *kwnames[] = { | |
28104 | NULL | |
28105 | }; | |
28106 | ||
28107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
28108 | { | |
0439c23b | 28109 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28111 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
28112 | ||
28113 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28114 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28115 | } |
28116 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
28117 | return resultobj; | |
28118 | fail: | |
28119 | return NULL; | |
28120 | } | |
28121 | ||
28122 | ||
c370783e | 28123 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28124 | PyObject *resultobj; |
28125 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28126 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28127 | int arg3 = (int) (int)-1 ; | |
28128 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
28129 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28130 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
28131 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
28132 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
28133 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
28134 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28135 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
28136 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28137 | int arg9 = (int) 0 ; | |
28138 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
28139 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
28140 | bool result; | |
28141 | bool temp4 = False ; | |
28142 | wxPoint temp5 ; | |
28143 | wxSize temp6 ; | |
28144 | bool temp8 = False ; | |
28145 | bool temp10 = False ; | |
28146 | PyObject * obj0 = 0 ; | |
28147 | PyObject * obj1 = 0 ; | |
28148 | PyObject * obj2 = 0 ; | |
28149 | PyObject * obj3 = 0 ; | |
28150 | PyObject * obj4 = 0 ; | |
28151 | PyObject * obj5 = 0 ; | |
28152 | PyObject * obj6 = 0 ; | |
28153 | PyObject * obj7 = 0 ; | |
28154 | PyObject * obj8 = 0 ; | |
28155 | PyObject * obj9 = 0 ; | |
28156 | char *kwnames[] = { | |
28157 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28158 | }; | |
28159 | ||
28160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
28161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28163 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28165 | if (obj2) { | |
c370783e | 28166 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28167 | if (PyErr_Occurred()) SWIG_fail; |
28168 | } | |
28169 | if (obj3) { | |
28170 | { | |
28171 | arg4 = wxString_in_helper(obj3); | |
28172 | if (arg4 == NULL) SWIG_fail; | |
28173 | temp4 = True; | |
28174 | } | |
28175 | } | |
28176 | if (obj4) { | |
28177 | { | |
28178 | arg5 = &temp5; | |
28179 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
28180 | } | |
28181 | } | |
28182 | if (obj5) { | |
28183 | { | |
28184 | arg6 = &temp6; | |
28185 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
28186 | } | |
28187 | } | |
28188 | if (obj6) { | |
c370783e | 28189 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
28190 | if (PyErr_Occurred()) SWIG_fail; |
28191 | } | |
28192 | if (obj7) { | |
28193 | { | |
28194 | arg8 = wxString_in_helper(obj7); | |
28195 | if (arg8 == NULL) SWIG_fail; | |
28196 | temp8 = True; | |
28197 | } | |
28198 | } | |
28199 | if (obj8) { | |
c370783e | 28200 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
28201 | if (PyErr_Occurred()) SWIG_fail; |
28202 | } | |
28203 | if (obj9) { | |
28204 | { | |
28205 | arg10 = wxString_in_helper(obj9); | |
28206 | if (arg10 == NULL) SWIG_fail; | |
28207 | temp10 = True; | |
28208 | } | |
28209 | } | |
28210 | { | |
28211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28212 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
28213 | ||
28214 | wxPyEndAllowThreads(__tstate); | |
28215 | if (PyErr_Occurred()) SWIG_fail; | |
28216 | } | |
28217 | { | |
28218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28219 | } | |
28220 | { | |
28221 | if (temp4) | |
28222 | delete arg4; | |
28223 | } | |
28224 | { | |
28225 | if (temp8) | |
28226 | delete arg8; | |
28227 | } | |
28228 | { | |
28229 | if (temp10) | |
28230 | delete arg10; | |
28231 | } | |
28232 | return resultobj; | |
28233 | fail: | |
28234 | { | |
28235 | if (temp4) | |
28236 | delete arg4; | |
28237 | } | |
28238 | { | |
28239 | if (temp8) | |
28240 | delete arg8; | |
28241 | } | |
28242 | { | |
28243 | if (temp10) | |
28244 | delete arg10; | |
28245 | } | |
28246 | return NULL; | |
28247 | } | |
28248 | ||
28249 | ||
c370783e | 28250 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28251 | PyObject *resultobj; |
28252 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28253 | wxString *arg2 = 0 ; | |
28254 | bool result; | |
28255 | bool temp2 = False ; | |
28256 | PyObject * obj0 = 0 ; | |
28257 | PyObject * obj1 = 0 ; | |
28258 | char *kwnames[] = { | |
28259 | (char *) "self",(char *) "path", NULL | |
28260 | }; | |
28261 | ||
28262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
28263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28265 | { | |
28266 | arg2 = wxString_in_helper(obj1); | |
28267 | if (arg2 == NULL) SWIG_fail; | |
28268 | temp2 = True; | |
28269 | } | |
28270 | { | |
28271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28272 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
28273 | ||
28274 | wxPyEndAllowThreads(__tstate); | |
28275 | if (PyErr_Occurred()) SWIG_fail; | |
28276 | } | |
28277 | { | |
28278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28279 | } | |
28280 | { | |
28281 | if (temp2) | |
28282 | delete arg2; | |
28283 | } | |
28284 | return resultobj; | |
28285 | fail: | |
28286 | { | |
28287 | if (temp2) | |
28288 | delete arg2; | |
28289 | } | |
28290 | return NULL; | |
28291 | } | |
28292 | ||
28293 | ||
c370783e | 28294 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28295 | PyObject *resultobj; |
28296 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28297 | wxString result; | |
28298 | PyObject * obj0 = 0 ; | |
28299 | char *kwnames[] = { | |
28300 | (char *) "self", NULL | |
28301 | }; | |
28302 | ||
28303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
28304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28306 | { | |
28307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28308 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
28309 | ||
28310 | wxPyEndAllowThreads(__tstate); | |
28311 | if (PyErr_Occurred()) SWIG_fail; | |
28312 | } | |
28313 | { | |
28314 | #if wxUSE_UNICODE | |
28315 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28316 | #else | |
28317 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28318 | #endif | |
28319 | } | |
28320 | return resultobj; | |
28321 | fail: | |
28322 | return NULL; | |
28323 | } | |
28324 | ||
28325 | ||
c370783e | 28326 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28327 | PyObject *resultobj; |
28328 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28329 | wxString *arg2 = 0 ; | |
28330 | bool temp2 = False ; | |
28331 | PyObject * obj0 = 0 ; | |
28332 | PyObject * obj1 = 0 ; | |
28333 | char *kwnames[] = { | |
28334 | (char *) "self",(char *) "path", NULL | |
28335 | }; | |
28336 | ||
28337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
28338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28340 | { | |
28341 | arg2 = wxString_in_helper(obj1); | |
28342 | if (arg2 == NULL) SWIG_fail; | |
28343 | temp2 = True; | |
28344 | } | |
28345 | { | |
28346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28347 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28348 | ||
28349 | wxPyEndAllowThreads(__tstate); | |
28350 | if (PyErr_Occurred()) SWIG_fail; | |
28351 | } | |
28352 | Py_INCREF(Py_None); resultobj = Py_None; | |
28353 | { | |
28354 | if (temp2) | |
28355 | delete arg2; | |
28356 | } | |
28357 | return resultobj; | |
28358 | fail: | |
28359 | { | |
28360 | if (temp2) | |
28361 | delete arg2; | |
28362 | } | |
28363 | return NULL; | |
28364 | } | |
28365 | ||
28366 | ||
c370783e | 28367 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28368 | PyObject *resultobj; |
28369 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28370 | wxString result; | |
28371 | PyObject * obj0 = 0 ; | |
28372 | char *kwnames[] = { | |
28373 | (char *) "self", NULL | |
28374 | }; | |
28375 | ||
28376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
28377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28379 | { | |
28380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28381 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28382 | ||
28383 | wxPyEndAllowThreads(__tstate); | |
28384 | if (PyErr_Occurred()) SWIG_fail; | |
28385 | } | |
28386 | { | |
28387 | #if wxUSE_UNICODE | |
28388 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28389 | #else | |
28390 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28391 | #endif | |
28392 | } | |
28393 | return resultobj; | |
28394 | fail: | |
28395 | return NULL; | |
28396 | } | |
28397 | ||
28398 | ||
c370783e | 28399 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28400 | PyObject *resultobj; |
28401 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28402 | wxString result; | |
28403 | PyObject * obj0 = 0 ; | |
28404 | char *kwnames[] = { | |
28405 | (char *) "self", NULL | |
28406 | }; | |
28407 | ||
28408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
28409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28411 | { | |
28412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28413 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
28414 | ||
28415 | wxPyEndAllowThreads(__tstate); | |
28416 | if (PyErr_Occurred()) SWIG_fail; | |
28417 | } | |
28418 | { | |
28419 | #if wxUSE_UNICODE | |
28420 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28421 | #else | |
28422 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28423 | #endif | |
28424 | } | |
28425 | return resultobj; | |
28426 | fail: | |
28427 | return NULL; | |
28428 | } | |
28429 | ||
28430 | ||
c370783e | 28431 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28432 | PyObject *resultobj; |
28433 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28434 | wxString *arg2 = 0 ; | |
28435 | bool temp2 = False ; | |
28436 | PyObject * obj0 = 0 ; | |
28437 | PyObject * obj1 = 0 ; | |
28438 | char *kwnames[] = { | |
28439 | (char *) "self",(char *) "path", NULL | |
28440 | }; | |
28441 | ||
28442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
28443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28445 | { | |
28446 | arg2 = wxString_in_helper(obj1); | |
28447 | if (arg2 == NULL) SWIG_fail; | |
28448 | temp2 = True; | |
28449 | } | |
28450 | { | |
28451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28452 | (arg1)->SetPath((wxString const &)*arg2); | |
28453 | ||
28454 | wxPyEndAllowThreads(__tstate); | |
28455 | if (PyErr_Occurred()) SWIG_fail; | |
28456 | } | |
28457 | Py_INCREF(Py_None); resultobj = Py_None; | |
28458 | { | |
28459 | if (temp2) | |
28460 | delete arg2; | |
28461 | } | |
28462 | return resultobj; | |
28463 | fail: | |
28464 | { | |
28465 | if (temp2) | |
28466 | delete arg2; | |
28467 | } | |
28468 | return NULL; | |
28469 | } | |
28470 | ||
28471 | ||
c370783e | 28472 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28473 | PyObject *resultobj; |
28474 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28475 | bool arg2 ; | |
28476 | PyObject * obj0 = 0 ; | |
28477 | PyObject * obj1 = 0 ; | |
28478 | char *kwnames[] = { | |
28479 | (char *) "self",(char *) "show", NULL | |
28480 | }; | |
28481 | ||
28482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
28483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28485 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28486 | if (PyErr_Occurred()) SWIG_fail; |
28487 | { | |
28488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28489 | (arg1)->ShowHidden(arg2); | |
28490 | ||
28491 | wxPyEndAllowThreads(__tstate); | |
28492 | if (PyErr_Occurred()) SWIG_fail; | |
28493 | } | |
28494 | Py_INCREF(Py_None); resultobj = Py_None; | |
28495 | return resultobj; | |
28496 | fail: | |
28497 | return NULL; | |
28498 | } | |
28499 | ||
28500 | ||
c370783e | 28501 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28502 | PyObject *resultobj; |
28503 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28504 | bool result; | |
28505 | PyObject * obj0 = 0 ; | |
28506 | char *kwnames[] = { | |
28507 | (char *) "self", NULL | |
28508 | }; | |
28509 | ||
28510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
28511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28513 | { | |
28514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28515 | result = (bool)(arg1)->GetShowHidden(); | |
28516 | ||
28517 | wxPyEndAllowThreads(__tstate); | |
28518 | if (PyErr_Occurred()) SWIG_fail; | |
28519 | } | |
28520 | { | |
28521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28522 | } | |
28523 | return resultobj; | |
28524 | fail: | |
28525 | return NULL; | |
28526 | } | |
28527 | ||
28528 | ||
c370783e | 28529 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28530 | PyObject *resultobj; |
28531 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28532 | wxString result; | |
28533 | PyObject * obj0 = 0 ; | |
28534 | char *kwnames[] = { | |
28535 | (char *) "self", NULL | |
28536 | }; | |
28537 | ||
28538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
28539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28541 | { | |
28542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28543 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
28544 | ||
28545 | wxPyEndAllowThreads(__tstate); | |
28546 | if (PyErr_Occurred()) SWIG_fail; | |
28547 | } | |
28548 | { | |
28549 | #if wxUSE_UNICODE | |
28550 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28551 | #else | |
28552 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28553 | #endif | |
28554 | } | |
28555 | return resultobj; | |
28556 | fail: | |
28557 | return NULL; | |
28558 | } | |
28559 | ||
28560 | ||
c370783e | 28561 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28562 | PyObject *resultobj; |
28563 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28564 | wxString *arg2 = 0 ; | |
28565 | bool temp2 = False ; | |
28566 | PyObject * obj0 = 0 ; | |
28567 | PyObject * obj1 = 0 ; | |
28568 | char *kwnames[] = { | |
28569 | (char *) "self",(char *) "filter", NULL | |
28570 | }; | |
28571 | ||
28572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
28573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28575 | { | |
28576 | arg2 = wxString_in_helper(obj1); | |
28577 | if (arg2 == NULL) SWIG_fail; | |
28578 | temp2 = True; | |
28579 | } | |
28580 | { | |
28581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28582 | (arg1)->SetFilter((wxString const &)*arg2); | |
28583 | ||
28584 | wxPyEndAllowThreads(__tstate); | |
28585 | if (PyErr_Occurred()) SWIG_fail; | |
28586 | } | |
28587 | Py_INCREF(Py_None); resultobj = Py_None; | |
28588 | { | |
28589 | if (temp2) | |
28590 | delete arg2; | |
28591 | } | |
28592 | return resultobj; | |
28593 | fail: | |
28594 | { | |
28595 | if (temp2) | |
28596 | delete arg2; | |
28597 | } | |
28598 | return NULL; | |
28599 | } | |
28600 | ||
28601 | ||
c370783e | 28602 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28603 | PyObject *resultobj; |
28604 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28605 | int result; | |
28606 | PyObject * obj0 = 0 ; | |
28607 | char *kwnames[] = { | |
28608 | (char *) "self", NULL | |
28609 | }; | |
28610 | ||
28611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
28612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28614 | { | |
28615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28616 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
28617 | ||
28618 | wxPyEndAllowThreads(__tstate); | |
28619 | if (PyErr_Occurred()) SWIG_fail; | |
28620 | } | |
c370783e | 28621 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28622 | return resultobj; |
28623 | fail: | |
28624 | return NULL; | |
28625 | } | |
28626 | ||
28627 | ||
c370783e | 28628 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28629 | PyObject *resultobj; |
28630 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28631 | int arg2 ; | |
28632 | PyObject * obj0 = 0 ; | |
28633 | PyObject * obj1 = 0 ; | |
28634 | char *kwnames[] = { | |
28635 | (char *) "self",(char *) "n", NULL | |
28636 | }; | |
28637 | ||
28638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
28639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28641 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28642 | if (PyErr_Occurred()) SWIG_fail; |
28643 | { | |
28644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28645 | (arg1)->SetFilterIndex(arg2); | |
28646 | ||
28647 | wxPyEndAllowThreads(__tstate); | |
28648 | if (PyErr_Occurred()) SWIG_fail; | |
28649 | } | |
28650 | Py_INCREF(Py_None); resultobj = Py_None; | |
28651 | return resultobj; | |
28652 | fail: | |
28653 | return NULL; | |
28654 | } | |
28655 | ||
28656 | ||
c370783e | 28657 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28658 | PyObject *resultobj; |
28659 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28660 | wxTreeItemId result; | |
28661 | PyObject * obj0 = 0 ; | |
28662 | char *kwnames[] = { | |
28663 | (char *) "self", NULL | |
28664 | }; | |
28665 | ||
28666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
28667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28669 | { | |
28670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28671 | result = (arg1)->GetRootId(); | |
28672 | ||
28673 | wxPyEndAllowThreads(__tstate); | |
28674 | if (PyErr_Occurred()) SWIG_fail; | |
28675 | } | |
28676 | { | |
28677 | wxTreeItemId * resultptr; | |
28678 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28679 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28680 | } | |
28681 | return resultobj; | |
28682 | fail: | |
28683 | return NULL; | |
28684 | } | |
28685 | ||
28686 | ||
c370783e | 28687 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28688 | PyObject *resultobj; |
28689 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28690 | wxPyTreeCtrl *result; | |
28691 | PyObject * obj0 = 0 ; | |
28692 | char *kwnames[] = { | |
28693 | (char *) "self", NULL | |
28694 | }; | |
28695 | ||
28696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
28697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28699 | { | |
28700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28701 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
28702 | ||
28703 | wxPyEndAllowThreads(__tstate); | |
28704 | if (PyErr_Occurred()) SWIG_fail; | |
28705 | } | |
28706 | { | |
412d302d | 28707 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28708 | } |
28709 | return resultobj; | |
28710 | fail: | |
28711 | return NULL; | |
28712 | } | |
28713 | ||
28714 | ||
c370783e | 28715 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28716 | PyObject *resultobj; |
28717 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28718 | wxDirFilterListCtrl *result; | |
28719 | PyObject * obj0 = 0 ; | |
28720 | char *kwnames[] = { | |
28721 | (char *) "self", NULL | |
28722 | }; | |
28723 | ||
28724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
28725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28727 | { | |
28728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28729 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
28730 | ||
28731 | wxPyEndAllowThreads(__tstate); | |
28732 | if (PyErr_Occurred()) SWIG_fail; | |
28733 | } | |
28734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
28735 | return resultobj; | |
28736 | fail: | |
28737 | return NULL; | |
28738 | } | |
28739 | ||
28740 | ||
c370783e | 28741 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28742 | PyObject *resultobj; |
28743 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28744 | wxTreeItemId arg2 ; | |
28745 | wxString *arg3 = 0 ; | |
28746 | bool *arg4 = 0 ; | |
28747 | wxTreeItemId result; | |
28748 | wxTreeItemId *argp2 ; | |
28749 | bool temp3 = False ; | |
28750 | bool temp4 ; | |
c370783e | 28751 | int res4 = 0 ; |
d55e5bfc RD |
28752 | PyObject * obj0 = 0 ; |
28753 | PyObject * obj1 = 0 ; | |
28754 | PyObject * obj2 = 0 ; | |
28755 | char *kwnames[] = { | |
28756 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
28757 | }; | |
28758 | ||
c370783e | 28759 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d55e5bfc RD |
28760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
28761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28763 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
28764 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
28765 | arg2 = *argp2; | |
28766 | { | |
28767 | arg3 = wxString_in_helper(obj2); | |
28768 | if (arg3 == NULL) SWIG_fail; | |
28769 | temp3 = True; | |
28770 | } | |
28771 | { | |
28772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28773 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
28774 | ||
28775 | wxPyEndAllowThreads(__tstate); | |
28776 | if (PyErr_Occurred()) SWIG_fail; | |
28777 | } | |
28778 | { | |
28779 | wxTreeItemId * resultptr; | |
28780 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28781 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28782 | } | |
c370783e RD |
28783 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
28784 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d55e5bfc RD |
28785 | { |
28786 | if (temp3) | |
28787 | delete arg3; | |
28788 | } | |
28789 | return resultobj; | |
28790 | fail: | |
28791 | { | |
28792 | if (temp3) | |
28793 | delete arg3; | |
28794 | } | |
28795 | return NULL; | |
28796 | } | |
28797 | ||
28798 | ||
c370783e | 28799 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28800 | PyObject *resultobj; |
28801 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28802 | PyObject * obj0 = 0 ; | |
28803 | char *kwnames[] = { | |
28804 | (char *) "self", NULL | |
28805 | }; | |
28806 | ||
28807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
28808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28810 | { | |
28811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28812 | (arg1)->DoResize(); | |
28813 | ||
28814 | wxPyEndAllowThreads(__tstate); | |
28815 | if (PyErr_Occurred()) SWIG_fail; | |
28816 | } | |
28817 | Py_INCREF(Py_None); resultobj = Py_None; | |
28818 | return resultobj; | |
28819 | fail: | |
28820 | return NULL; | |
28821 | } | |
28822 | ||
28823 | ||
c370783e | 28824 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28825 | PyObject *resultobj; |
28826 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28827 | PyObject * obj0 = 0 ; | |
28828 | char *kwnames[] = { | |
28829 | (char *) "self", NULL | |
28830 | }; | |
28831 | ||
28832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
28833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28835 | { | |
28836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28837 | (arg1)->ReCreateTree(); | |
28838 | ||
28839 | wxPyEndAllowThreads(__tstate); | |
28840 | if (PyErr_Occurred()) SWIG_fail; | |
28841 | } | |
28842 | Py_INCREF(Py_None); resultobj = Py_None; | |
28843 | return resultobj; | |
28844 | fail: | |
28845 | return NULL; | |
28846 | } | |
28847 | ||
28848 | ||
c370783e | 28849 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28850 | PyObject *obj; |
28851 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28852 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28853 | Py_INCREF(obj); | |
28854 | return Py_BuildValue((char *)""); | |
28855 | } | |
c370783e | 28856 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28857 | PyObject *resultobj; |
28858 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28859 | int arg2 = (int) (int)-1 ; | |
28860 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28861 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28862 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28863 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28864 | long arg5 = (long) 0 ; | |
28865 | wxDirFilterListCtrl *result; | |
28866 | wxPoint temp3 ; | |
28867 | wxSize temp4 ; | |
28868 | PyObject * obj0 = 0 ; | |
28869 | PyObject * obj1 = 0 ; | |
28870 | PyObject * obj2 = 0 ; | |
28871 | PyObject * obj3 = 0 ; | |
28872 | PyObject * obj4 = 0 ; | |
28873 | char *kwnames[] = { | |
28874 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28875 | }; | |
28876 | ||
28877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28880 | if (obj1) { | |
c370783e | 28881 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28882 | if (PyErr_Occurred()) SWIG_fail; |
28883 | } | |
28884 | if (obj2) { | |
28885 | { | |
28886 | arg3 = &temp3; | |
28887 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28888 | } | |
28889 | } | |
28890 | if (obj3) { | |
28891 | { | |
28892 | arg4 = &temp4; | |
28893 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28894 | } | |
28895 | } | |
28896 | if (obj4) { | |
c370783e | 28897 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
28898 | if (PyErr_Occurred()) SWIG_fail; |
28899 | } | |
28900 | { | |
0439c23b | 28901 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28903 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28904 | ||
28905 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28906 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28907 | } |
28908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
28909 | return resultobj; | |
28910 | fail: | |
28911 | return NULL; | |
28912 | } | |
28913 | ||
28914 | ||
c370783e | 28915 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28916 | PyObject *resultobj; |
28917 | wxDirFilterListCtrl *result; | |
28918 | char *kwnames[] = { | |
28919 | NULL | |
28920 | }; | |
28921 | ||
28922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
28923 | { | |
0439c23b | 28924 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28926 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
28927 | ||
28928 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28929 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28930 | } |
28931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
28932 | return resultobj; | |
28933 | fail: | |
28934 | return NULL; | |
28935 | } | |
28936 | ||
28937 | ||
c370783e | 28938 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28939 | PyObject *resultobj; |
28940 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28941 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
28942 | int arg3 = (int) (int)-1 ; | |
28943 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28944 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28945 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28946 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28947 | long arg6 = (long) 0 ; | |
28948 | bool result; | |
28949 | wxPoint temp4 ; | |
28950 | wxSize temp5 ; | |
28951 | PyObject * obj0 = 0 ; | |
28952 | PyObject * obj1 = 0 ; | |
28953 | PyObject * obj2 = 0 ; | |
28954 | PyObject * obj3 = 0 ; | |
28955 | PyObject * obj4 = 0 ; | |
28956 | PyObject * obj5 = 0 ; | |
28957 | char *kwnames[] = { | |
28958 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28959 | }; | |
28960 | ||
28961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
28963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
28965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28966 | if (obj2) { | |
c370783e | 28967 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28968 | if (PyErr_Occurred()) SWIG_fail; |
28969 | } | |
28970 | if (obj3) { | |
28971 | { | |
28972 | arg4 = &temp4; | |
28973 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28974 | } | |
28975 | } | |
28976 | if (obj4) { | |
28977 | { | |
28978 | arg5 = &temp5; | |
28979 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28980 | } | |
28981 | } | |
28982 | if (obj5) { | |
c370783e | 28983 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
28984 | if (PyErr_Occurred()) SWIG_fail; |
28985 | } | |
28986 | { | |
28987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28988 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28989 | ||
28990 | wxPyEndAllowThreads(__tstate); | |
28991 | if (PyErr_Occurred()) SWIG_fail; | |
28992 | } | |
28993 | { | |
28994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28995 | } | |
28996 | return resultobj; | |
28997 | fail: | |
28998 | return NULL; | |
28999 | } | |
29000 | ||
29001 | ||
c370783e | 29002 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29003 | PyObject *resultobj; |
29004 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29005 | wxString *arg2 = 0 ; | |
29006 | int arg3 ; | |
29007 | bool temp2 = False ; | |
29008 | PyObject * obj0 = 0 ; | |
29009 | PyObject * obj1 = 0 ; | |
29010 | PyObject * obj2 = 0 ; | |
29011 | char *kwnames[] = { | |
29012 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
29013 | }; | |
29014 | ||
29015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
29017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29018 | { | |
29019 | arg2 = wxString_in_helper(obj1); | |
29020 | if (arg2 == NULL) SWIG_fail; | |
29021 | temp2 = True; | |
29022 | } | |
c370783e | 29023 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29024 | if (PyErr_Occurred()) SWIG_fail; |
29025 | { | |
29026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29027 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
29028 | ||
29029 | wxPyEndAllowThreads(__tstate); | |
29030 | if (PyErr_Occurred()) SWIG_fail; | |
29031 | } | |
29032 | Py_INCREF(Py_None); resultobj = Py_None; | |
29033 | { | |
29034 | if (temp2) | |
29035 | delete arg2; | |
29036 | } | |
29037 | return resultobj; | |
29038 | fail: | |
29039 | { | |
29040 | if (temp2) | |
29041 | delete arg2; | |
29042 | } | |
29043 | return NULL; | |
29044 | } | |
29045 | ||
29046 | ||
c370783e | 29047 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29048 | PyObject *obj; |
29049 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29050 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
29051 | Py_INCREF(obj); | |
29052 | return Py_BuildValue((char *)""); | |
29053 | } | |
c370783e | 29054 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29055 | PyObject *resultobj; |
29056 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 29057 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
29058 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29059 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29060 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29061 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29062 | long arg5 = (long) 0 ; | |
29063 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29064 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
29065 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
29066 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29067 | wxPyControl *result; | |
29068 | wxPoint temp3 ; | |
29069 | wxSize temp4 ; | |
29070 | bool temp7 = False ; | |
29071 | PyObject * obj0 = 0 ; | |
29072 | PyObject * obj1 = 0 ; | |
29073 | PyObject * obj2 = 0 ; | |
29074 | PyObject * obj3 = 0 ; | |
29075 | PyObject * obj4 = 0 ; | |
29076 | PyObject * obj5 = 0 ; | |
29077 | PyObject * obj6 = 0 ; | |
29078 | char *kwnames[] = { | |
29079 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29080 | }; | |
29081 | ||
bfddbb17 | 29082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
29083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 29085 | if (obj1) { |
c370783e | 29086 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
29087 | if (PyErr_Occurred()) SWIG_fail; |
29088 | } | |
d55e5bfc RD |
29089 | if (obj2) { |
29090 | { | |
29091 | arg3 = &temp3; | |
29092 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29093 | } | |
29094 | } | |
29095 | if (obj3) { | |
29096 | { | |
29097 | arg4 = &temp4; | |
29098 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29099 | } | |
29100 | } | |
29101 | if (obj4) { | |
c370783e | 29102 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
29103 | if (PyErr_Occurred()) SWIG_fail; |
29104 | } | |
29105 | if (obj5) { | |
29106 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
29107 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29108 | SWIG_fail; | |
29109 | if (arg6 == NULL) { | |
29110 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29111 | SWIG_fail; | |
29112 | } | |
29113 | } | |
29114 | if (obj6) { | |
29115 | { | |
29116 | arg7 = wxString_in_helper(obj6); | |
29117 | if (arg7 == NULL) SWIG_fail; | |
29118 | temp7 = True; | |
29119 | } | |
29120 | } | |
29121 | { | |
0439c23b | 29122 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29124 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29125 | ||
29126 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29127 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29128 | } |
29129 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29130 | { | |
29131 | if (temp7) | |
29132 | delete arg7; | |
29133 | } | |
29134 | return resultobj; | |
29135 | fail: | |
29136 | { | |
29137 | if (temp7) | |
29138 | delete arg7; | |
29139 | } | |
29140 | return NULL; | |
29141 | } | |
29142 | ||
29143 | ||
c370783e | 29144 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29145 | PyObject *resultobj; |
29146 | wxPyControl *result; | |
29147 | char *kwnames[] = { | |
29148 | NULL | |
29149 | }; | |
29150 | ||
29151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
29152 | { | |
0439c23b | 29153 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29155 | result = (wxPyControl *)new wxPyControl(); | |
29156 | ||
29157 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29158 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29159 | } |
29160 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29161 | return resultobj; | |
29162 | fail: | |
29163 | return NULL; | |
29164 | } | |
29165 | ||
29166 | ||
c370783e | 29167 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29168 | PyObject *resultobj; |
29169 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29170 | PyObject *arg2 = (PyObject *) 0 ; | |
29171 | PyObject *arg3 = (PyObject *) 0 ; | |
29172 | PyObject * obj0 = 0 ; | |
29173 | PyObject * obj1 = 0 ; | |
29174 | PyObject * obj2 = 0 ; | |
29175 | char *kwnames[] = { | |
29176 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29177 | }; | |
29178 | ||
29179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29182 | arg2 = obj1; | |
29183 | arg3 = obj2; | |
29184 | { | |
29185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29186 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29187 | ||
29188 | wxPyEndAllowThreads(__tstate); | |
29189 | if (PyErr_Occurred()) SWIG_fail; | |
29190 | } | |
29191 | Py_INCREF(Py_None); resultobj = Py_None; | |
29192 | return resultobj; | |
29193 | fail: | |
29194 | return NULL; | |
29195 | } | |
29196 | ||
29197 | ||
c370783e | 29198 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a5ee0656 RD |
29199 | PyObject *resultobj; |
29200 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29201 | wxSize *arg2 = 0 ; | |
29202 | wxSize temp2 ; | |
29203 | PyObject * obj0 = 0 ; | |
29204 | PyObject * obj1 = 0 ; | |
29205 | char *kwnames[] = { | |
29206 | (char *) "self",(char *) "size", NULL | |
29207 | }; | |
29208 | ||
29209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
29210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29212 | { | |
29213 | arg2 = &temp2; | |
29214 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29215 | } | |
29216 | { | |
29217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29218 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
29219 | ||
29220 | wxPyEndAllowThreads(__tstate); | |
29221 | if (PyErr_Occurred()) SWIG_fail; | |
29222 | } | |
29223 | Py_INCREF(Py_None); resultobj = Py_None; | |
29224 | return resultobj; | |
29225 | fail: | |
29226 | return NULL; | |
29227 | } | |
29228 | ||
29229 | ||
c370783e | 29230 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29231 | PyObject *resultobj; |
29232 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29233 | int arg2 ; | |
29234 | int arg3 ; | |
29235 | int arg4 ; | |
29236 | int arg5 ; | |
29237 | PyObject * obj0 = 0 ; | |
29238 | PyObject * obj1 = 0 ; | |
29239 | PyObject * obj2 = 0 ; | |
29240 | PyObject * obj3 = 0 ; | |
29241 | PyObject * obj4 = 0 ; | |
29242 | char *kwnames[] = { | |
29243 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29244 | }; | |
29245 | ||
29246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29249 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 29250 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29251 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 29252 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29253 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 29254 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29255 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
29256 | if (PyErr_Occurred()) SWIG_fail; |
29257 | { | |
29258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29259 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
29260 | ||
29261 | wxPyEndAllowThreads(__tstate); | |
29262 | if (PyErr_Occurred()) SWIG_fail; | |
29263 | } | |
29264 | Py_INCREF(Py_None); resultobj = Py_None; | |
29265 | return resultobj; | |
29266 | fail: | |
29267 | return NULL; | |
29268 | } | |
29269 | ||
29270 | ||
c370783e | 29271 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29272 | PyObject *resultobj; |
29273 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29274 | int arg2 ; | |
29275 | int arg3 ; | |
29276 | int arg4 ; | |
29277 | int arg5 ; | |
29278 | int arg6 = (int) wxSIZE_AUTO ; | |
29279 | PyObject * obj0 = 0 ; | |
29280 | PyObject * obj1 = 0 ; | |
29281 | PyObject * obj2 = 0 ; | |
29282 | PyObject * obj3 = 0 ; | |
29283 | PyObject * obj4 = 0 ; | |
29284 | PyObject * obj5 = 0 ; | |
29285 | char *kwnames[] = { | |
29286 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
29287 | }; | |
29288 | ||
29289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29292 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 29293 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29294 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 29295 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29296 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 29297 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29298 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
29299 | if (PyErr_Occurred()) SWIG_fail; |
29300 | if (obj5) { | |
c370783e | 29301 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
29302 | if (PyErr_Occurred()) SWIG_fail; |
29303 | } | |
29304 | { | |
29305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29306 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
29307 | ||
29308 | wxPyEndAllowThreads(__tstate); | |
29309 | if (PyErr_Occurred()) SWIG_fail; | |
29310 | } | |
29311 | Py_INCREF(Py_None); resultobj = Py_None; | |
29312 | return resultobj; | |
29313 | fail: | |
29314 | return NULL; | |
29315 | } | |
29316 | ||
29317 | ||
c370783e | 29318 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29319 | PyObject *resultobj; |
29320 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29321 | int arg2 ; | |
29322 | int arg3 ; | |
29323 | PyObject * obj0 = 0 ; | |
29324 | PyObject * obj1 = 0 ; | |
29325 | PyObject * obj2 = 0 ; | |
29326 | char *kwnames[] = { | |
29327 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29328 | }; | |
29329 | ||
29330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29333 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 29334 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29335 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29336 | if (PyErr_Occurred()) SWIG_fail; |
29337 | { | |
29338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29339 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29340 | ||
29341 | wxPyEndAllowThreads(__tstate); | |
29342 | if (PyErr_Occurred()) SWIG_fail; | |
29343 | } | |
29344 | Py_INCREF(Py_None); resultobj = Py_None; | |
29345 | return resultobj; | |
29346 | fail: | |
29347 | return NULL; | |
29348 | } | |
29349 | ||
29350 | ||
c370783e | 29351 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29352 | PyObject *resultobj; |
29353 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29354 | int arg2 ; | |
29355 | int arg3 ; | |
29356 | PyObject * obj0 = 0 ; | |
29357 | PyObject * obj1 = 0 ; | |
29358 | PyObject * obj2 = 0 ; | |
29359 | char *kwnames[] = { | |
29360 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29361 | }; | |
29362 | ||
29363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29366 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 29367 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29368 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29369 | if (PyErr_Occurred()) SWIG_fail; |
29370 | { | |
29371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29372 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29373 | ||
29374 | wxPyEndAllowThreads(__tstate); | |
29375 | if (PyErr_Occurred()) SWIG_fail; | |
29376 | } | |
29377 | Py_INCREF(Py_None); resultobj = Py_None; | |
29378 | return resultobj; | |
29379 | fail: | |
29380 | return NULL; | |
29381 | } | |
29382 | ||
29383 | ||
c370783e | 29384 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29385 | PyObject *resultobj; |
29386 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29387 | int *arg2 = (int *) 0 ; | |
29388 | int *arg3 = (int *) 0 ; | |
29389 | int temp2 ; | |
c370783e | 29390 | int res2 = 0 ; |
d55e5bfc | 29391 | int temp3 ; |
c370783e | 29392 | int res3 = 0 ; |
d55e5bfc RD |
29393 | PyObject * obj0 = 0 ; |
29394 | char *kwnames[] = { | |
29395 | (char *) "self", NULL | |
29396 | }; | |
29397 | ||
c370783e RD |
29398 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
29399 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
29400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; |
29401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29403 | { | |
29404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29405 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
29406 | ||
29407 | wxPyEndAllowThreads(__tstate); | |
29408 | if (PyErr_Occurred()) SWIG_fail; | |
29409 | } | |
29410 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
29411 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29412 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29413 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29414 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
29415 | return resultobj; |
29416 | fail: | |
29417 | return NULL; | |
29418 | } | |
29419 | ||
29420 | ||
c370783e | 29421 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29422 | PyObject *resultobj; |
29423 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29424 | int *arg2 = (int *) 0 ; | |
29425 | int *arg3 = (int *) 0 ; | |
29426 | int temp2 ; | |
c370783e | 29427 | int res2 = 0 ; |
d55e5bfc | 29428 | int temp3 ; |
c370783e | 29429 | int res3 = 0 ; |
d55e5bfc RD |
29430 | PyObject * obj0 = 0 ; |
29431 | char *kwnames[] = { | |
29432 | (char *) "self", NULL | |
29433 | }; | |
29434 | ||
c370783e RD |
29435 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
29436 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
29437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; |
29438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29440 | { | |
29441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29442 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
29443 | ||
29444 | wxPyEndAllowThreads(__tstate); | |
29445 | if (PyErr_Occurred()) SWIG_fail; | |
29446 | } | |
29447 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
29448 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29449 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29450 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29451 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
29452 | return resultobj; |
29453 | fail: | |
29454 | return NULL; | |
29455 | } | |
29456 | ||
29457 | ||
c370783e | 29458 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29459 | PyObject *resultobj; |
29460 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29461 | int *arg2 = (int *) 0 ; | |
29462 | int *arg3 = (int *) 0 ; | |
29463 | int temp2 ; | |
c370783e | 29464 | int res2 = 0 ; |
d55e5bfc | 29465 | int temp3 ; |
c370783e | 29466 | int res3 = 0 ; |
d55e5bfc RD |
29467 | PyObject * obj0 = 0 ; |
29468 | char *kwnames[] = { | |
29469 | (char *) "self", NULL | |
29470 | }; | |
29471 | ||
c370783e RD |
29472 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
29473 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
29474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; |
29475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29477 | { | |
29478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29479 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
29480 | ||
29481 | wxPyEndAllowThreads(__tstate); | |
29482 | if (PyErr_Occurred()) SWIG_fail; | |
29483 | } | |
29484 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
29485 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29486 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29487 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29488 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
29489 | return resultobj; |
29490 | fail: | |
29491 | return NULL; | |
29492 | } | |
29493 | ||
29494 | ||
c370783e | 29495 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29496 | PyObject *resultobj; |
29497 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29498 | wxSize result; | |
29499 | PyObject * obj0 = 0 ; | |
29500 | char *kwnames[] = { | |
29501 | (char *) "self", NULL | |
29502 | }; | |
29503 | ||
29504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
29505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29507 | { | |
29508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29509 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
29510 | ||
29511 | wxPyEndAllowThreads(__tstate); | |
29512 | if (PyErr_Occurred()) SWIG_fail; | |
29513 | } | |
29514 | { | |
29515 | wxSize * resultptr; | |
29516 | resultptr = new wxSize((wxSize &) result); | |
29517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29518 | } | |
29519 | return resultobj; | |
29520 | fail: | |
29521 | return NULL; | |
29522 | } | |
29523 | ||
29524 | ||
c370783e | 29525 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29526 | PyObject *resultobj; |
29527 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29528 | wxSize result; | |
29529 | PyObject * obj0 = 0 ; | |
29530 | char *kwnames[] = { | |
29531 | (char *) "self", NULL | |
29532 | }; | |
29533 | ||
29534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
29535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29537 | { | |
29538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29539 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
29540 | ||
29541 | wxPyEndAllowThreads(__tstate); | |
29542 | if (PyErr_Occurred()) SWIG_fail; | |
29543 | } | |
29544 | { | |
29545 | wxSize * resultptr; | |
29546 | resultptr = new wxSize((wxSize &) result); | |
29547 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29548 | } | |
29549 | return resultobj; | |
29550 | fail: | |
29551 | return NULL; | |
29552 | } | |
29553 | ||
29554 | ||
c370783e | 29555 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29556 | PyObject *resultobj; |
29557 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29558 | PyObject * obj0 = 0 ; | |
29559 | char *kwnames[] = { | |
29560 | (char *) "self", NULL | |
29561 | }; | |
29562 | ||
29563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
29564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29566 | { | |
29567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29568 | (arg1)->base_InitDialog(); | |
29569 | ||
29570 | wxPyEndAllowThreads(__tstate); | |
29571 | if (PyErr_Occurred()) SWIG_fail; | |
29572 | } | |
29573 | Py_INCREF(Py_None); resultobj = Py_None; | |
29574 | return resultobj; | |
29575 | fail: | |
29576 | return NULL; | |
29577 | } | |
29578 | ||
29579 | ||
c370783e | 29580 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29581 | PyObject *resultobj; |
29582 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29583 | bool result; | |
29584 | PyObject * obj0 = 0 ; | |
29585 | char *kwnames[] = { | |
29586 | (char *) "self", NULL | |
29587 | }; | |
29588 | ||
29589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
29590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29592 | { | |
29593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29594 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
29595 | ||
29596 | wxPyEndAllowThreads(__tstate); | |
29597 | if (PyErr_Occurred()) SWIG_fail; | |
29598 | } | |
29599 | { | |
29600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29601 | } | |
29602 | return resultobj; | |
29603 | fail: | |
29604 | return NULL; | |
29605 | } | |
29606 | ||
29607 | ||
c370783e | 29608 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29609 | PyObject *resultobj; |
29610 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29611 | bool result; | |
29612 | PyObject * obj0 = 0 ; | |
29613 | char *kwnames[] = { | |
29614 | (char *) "self", NULL | |
29615 | }; | |
29616 | ||
29617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
29618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29620 | { | |
29621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29622 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
29623 | ||
29624 | wxPyEndAllowThreads(__tstate); | |
29625 | if (PyErr_Occurred()) SWIG_fail; | |
29626 | } | |
29627 | { | |
29628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29629 | } | |
29630 | return resultobj; | |
29631 | fail: | |
29632 | return NULL; | |
29633 | } | |
29634 | ||
29635 | ||
c370783e | 29636 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29637 | PyObject *resultobj; |
29638 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29639 | bool result; | |
29640 | PyObject * obj0 = 0 ; | |
29641 | char *kwnames[] = { | |
29642 | (char *) "self", NULL | |
29643 | }; | |
29644 | ||
29645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
29646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29648 | { | |
29649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29650 | result = (bool)(arg1)->base_Validate(); | |
29651 | ||
29652 | wxPyEndAllowThreads(__tstate); | |
29653 | if (PyErr_Occurred()) SWIG_fail; | |
29654 | } | |
29655 | { | |
29656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29657 | } | |
29658 | return resultobj; | |
29659 | fail: | |
29660 | return NULL; | |
29661 | } | |
29662 | ||
29663 | ||
c370783e | 29664 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29665 | PyObject *resultobj; |
29666 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29667 | bool result; | |
29668 | PyObject * obj0 = 0 ; | |
29669 | char *kwnames[] = { | |
29670 | (char *) "self", NULL | |
29671 | }; | |
29672 | ||
29673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
29674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29676 | { | |
29677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29678 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
29679 | ||
29680 | wxPyEndAllowThreads(__tstate); | |
29681 | if (PyErr_Occurred()) SWIG_fail; | |
29682 | } | |
29683 | { | |
29684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29685 | } | |
29686 | return resultobj; | |
29687 | fail: | |
29688 | return NULL; | |
29689 | } | |
29690 | ||
29691 | ||
c370783e | 29692 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29693 | PyObject *resultobj; |
29694 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29695 | bool result; | |
29696 | PyObject * obj0 = 0 ; | |
29697 | char *kwnames[] = { | |
29698 | (char *) "self", NULL | |
29699 | }; | |
29700 | ||
29701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
29702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29704 | { | |
29705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29706 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
29707 | ||
29708 | wxPyEndAllowThreads(__tstate); | |
29709 | if (PyErr_Occurred()) SWIG_fail; | |
29710 | } | |
29711 | { | |
29712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29713 | } | |
29714 | return resultobj; | |
29715 | fail: | |
29716 | return NULL; | |
29717 | } | |
29718 | ||
29719 | ||
c370783e | 29720 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29721 | PyObject *resultobj; |
29722 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29723 | wxSize result; | |
29724 | PyObject * obj0 = 0 ; | |
29725 | char *kwnames[] = { | |
29726 | (char *) "self", NULL | |
29727 | }; | |
29728 | ||
29729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
29730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29732 | { | |
29733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29734 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
29735 | ||
29736 | wxPyEndAllowThreads(__tstate); | |
29737 | if (PyErr_Occurred()) SWIG_fail; | |
29738 | } | |
29739 | { | |
29740 | wxSize * resultptr; | |
29741 | resultptr = new wxSize((wxSize &) result); | |
29742 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29743 | } | |
29744 | return resultobj; | |
29745 | fail: | |
29746 | return NULL; | |
29747 | } | |
29748 | ||
29749 | ||
c370783e | 29750 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29751 | PyObject *resultobj; |
29752 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29753 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29754 | PyObject * obj0 = 0 ; | |
29755 | PyObject * obj1 = 0 ; | |
29756 | char *kwnames[] = { | |
29757 | (char *) "self",(char *) "child", NULL | |
29758 | }; | |
29759 | ||
29760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
29761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29765 | { | |
29766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29767 | (arg1)->base_AddChild(arg2); | |
29768 | ||
29769 | wxPyEndAllowThreads(__tstate); | |
29770 | if (PyErr_Occurred()) SWIG_fail; | |
29771 | } | |
29772 | Py_INCREF(Py_None); resultobj = Py_None; | |
29773 | return resultobj; | |
29774 | fail: | |
29775 | return NULL; | |
29776 | } | |
29777 | ||
29778 | ||
c370783e | 29779 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29780 | PyObject *resultobj; |
29781 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29782 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29783 | PyObject * obj0 = 0 ; | |
29784 | PyObject * obj1 = 0 ; | |
29785 | char *kwnames[] = { | |
29786 | (char *) "self",(char *) "child", NULL | |
29787 | }; | |
29788 | ||
29789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
29790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29794 | { | |
29795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29796 | (arg1)->base_RemoveChild(arg2); | |
29797 | ||
29798 | wxPyEndAllowThreads(__tstate); | |
29799 | if (PyErr_Occurred()) SWIG_fail; | |
29800 | } | |
29801 | Py_INCREF(Py_None); resultobj = Py_None; | |
29802 | return resultobj; | |
29803 | fail: | |
29804 | return NULL; | |
29805 | } | |
29806 | ||
29807 | ||
c370783e | 29808 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29809 | PyObject *resultobj; |
29810 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29811 | bool result; | |
29812 | PyObject * obj0 = 0 ; | |
29813 | char *kwnames[] = { | |
29814 | (char *) "self", NULL | |
29815 | }; | |
29816 | ||
29817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29820 | { | |
29821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 29822 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
29823 | |
29824 | wxPyEndAllowThreads(__tstate); | |
29825 | if (PyErr_Occurred()) SWIG_fail; | |
29826 | } | |
29827 | { | |
29828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29829 | } | |
29830 | return resultobj; | |
29831 | fail: | |
29832 | return NULL; | |
29833 | } | |
29834 | ||
29835 | ||
c370783e | 29836 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29837 | PyObject *resultobj; |
29838 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29839 | wxColour *arg2 = 0 ; | |
29840 | wxColour temp2 ; | |
29841 | PyObject * obj0 = 0 ; | |
29842 | PyObject * obj1 = 0 ; | |
29843 | char *kwnames[] = { | |
29844 | (char *) "self",(char *) "c", NULL | |
29845 | }; | |
29846 | ||
29847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
29848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29850 | { | |
29851 | arg2 = &temp2; | |
29852 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29853 | } | |
29854 | { | |
29855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29856 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
29857 | ||
29858 | wxPyEndAllowThreads(__tstate); | |
29859 | if (PyErr_Occurred()) SWIG_fail; | |
29860 | } | |
29861 | Py_INCREF(Py_None); resultobj = Py_None; | |
29862 | return resultobj; | |
29863 | fail: | |
29864 | return NULL; | |
29865 | } | |
29866 | ||
29867 | ||
c370783e | 29868 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
a5ee0656 RD |
29869 | PyObject *resultobj; |
29870 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29871 | wxVisualAttributes result; | |
29872 | PyObject * obj0 = 0 ; | |
29873 | char *kwnames[] = { | |
29874 | (char *) "self", NULL | |
29875 | }; | |
29876 | ||
29877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
29878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29880 | { | |
29881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29882 | result = (arg1)->base_GetDefaultAttributes(); | |
29883 | ||
29884 | wxPyEndAllowThreads(__tstate); | |
29885 | if (PyErr_Occurred()) SWIG_fail; | |
29886 | } | |
29887 | { | |
29888 | wxVisualAttributes * resultptr; | |
29889 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
29890 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
29891 | } | |
29892 | return resultobj; | |
29893 | fail: | |
29894 | return NULL; | |
29895 | } | |
29896 | ||
29897 | ||
c370783e | 29898 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29899 | PyObject *obj; |
29900 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29901 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
29902 | Py_INCREF(obj); | |
29903 | return Py_BuildValue((char *)""); | |
29904 | } | |
c370783e | 29905 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29906 | PyObject *resultobj; |
29907 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
29908 | int arg2 = (int) 0 ; | |
29909 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
29910 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29911 | wxHelpEvent *result; | |
29912 | wxPoint temp3 ; | |
29913 | PyObject * obj0 = 0 ; | |
29914 | PyObject * obj1 = 0 ; | |
29915 | PyObject * obj2 = 0 ; | |
29916 | char *kwnames[] = { | |
29917 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
29918 | }; | |
29919 | ||
29920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29921 | if (obj0) { | |
c370783e | 29922 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
29923 | if (PyErr_Occurred()) SWIG_fail; |
29924 | } | |
29925 | if (obj1) { | |
c370783e | 29926 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29927 | if (PyErr_Occurred()) SWIG_fail; |
29928 | } | |
29929 | if (obj2) { | |
29930 | { | |
29931 | arg3 = &temp3; | |
29932 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29933 | } | |
29934 | } | |
29935 | { | |
29936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29937 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
29938 | ||
29939 | wxPyEndAllowThreads(__tstate); | |
29940 | if (PyErr_Occurred()) SWIG_fail; | |
29941 | } | |
29942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); | |
29943 | return resultobj; | |
29944 | fail: | |
29945 | return NULL; | |
29946 | } | |
29947 | ||
29948 | ||
c370783e | 29949 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29950 | PyObject *resultobj; |
29951 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29952 | wxPoint result; | |
29953 | PyObject * obj0 = 0 ; | |
29954 | char *kwnames[] = { | |
29955 | (char *) "self", NULL | |
29956 | }; | |
29957 | ||
29958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
29959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29961 | { | |
29962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29963 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
29964 | ||
29965 | wxPyEndAllowThreads(__tstate); | |
29966 | if (PyErr_Occurred()) SWIG_fail; | |
29967 | } | |
29968 | { | |
29969 | wxPoint * resultptr; | |
29970 | resultptr = new wxPoint((wxPoint &) result); | |
29971 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
29972 | } | |
29973 | return resultobj; | |
29974 | fail: | |
29975 | return NULL; | |
29976 | } | |
29977 | ||
29978 | ||
c370783e | 29979 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29980 | PyObject *resultobj; |
29981 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29982 | wxPoint *arg2 = 0 ; | |
29983 | wxPoint temp2 ; | |
29984 | PyObject * obj0 = 0 ; | |
29985 | PyObject * obj1 = 0 ; | |
29986 | char *kwnames[] = { | |
29987 | (char *) "self",(char *) "pos", NULL | |
29988 | }; | |
29989 | ||
29990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
29991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29993 | { | |
29994 | arg2 = &temp2; | |
29995 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29996 | } | |
29997 | { | |
29998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29999 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
30000 | ||
30001 | wxPyEndAllowThreads(__tstate); | |
30002 | if (PyErr_Occurred()) SWIG_fail; | |
30003 | } | |
30004 | Py_INCREF(Py_None); resultobj = Py_None; | |
30005 | return resultobj; | |
30006 | fail: | |
30007 | return NULL; | |
30008 | } | |
30009 | ||
30010 | ||
c370783e | 30011 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30012 | PyObject *resultobj; |
30013 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30014 | wxString *result; | |
30015 | PyObject * obj0 = 0 ; | |
30016 | char *kwnames[] = { | |
30017 | (char *) "self", NULL | |
30018 | }; | |
30019 | ||
30020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
30021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30023 | { | |
30024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30025 | { | |
30026 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
30027 | result = (wxString *) &_result_ref; | |
30028 | } | |
30029 | ||
30030 | wxPyEndAllowThreads(__tstate); | |
30031 | if (PyErr_Occurred()) SWIG_fail; | |
30032 | } | |
30033 | { | |
30034 | #if wxUSE_UNICODE | |
30035 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30036 | #else | |
30037 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30038 | #endif | |
30039 | } | |
30040 | return resultobj; | |
30041 | fail: | |
30042 | return NULL; | |
30043 | } | |
30044 | ||
30045 | ||
c370783e | 30046 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30047 | PyObject *resultobj; |
30048 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30049 | wxString *arg2 = 0 ; | |
30050 | bool temp2 = False ; | |
30051 | PyObject * obj0 = 0 ; | |
30052 | PyObject * obj1 = 0 ; | |
30053 | char *kwnames[] = { | |
30054 | (char *) "self",(char *) "link", NULL | |
30055 | }; | |
30056 | ||
30057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
30058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30060 | { | |
30061 | arg2 = wxString_in_helper(obj1); | |
30062 | if (arg2 == NULL) SWIG_fail; | |
30063 | temp2 = True; | |
30064 | } | |
30065 | { | |
30066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30067 | (arg1)->SetLink((wxString const &)*arg2); | |
30068 | ||
30069 | wxPyEndAllowThreads(__tstate); | |
30070 | if (PyErr_Occurred()) SWIG_fail; | |
30071 | } | |
30072 | Py_INCREF(Py_None); resultobj = Py_None; | |
30073 | { | |
30074 | if (temp2) | |
30075 | delete arg2; | |
30076 | } | |
30077 | return resultobj; | |
30078 | fail: | |
30079 | { | |
30080 | if (temp2) | |
30081 | delete arg2; | |
30082 | } | |
30083 | return NULL; | |
30084 | } | |
30085 | ||
30086 | ||
c370783e | 30087 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30088 | PyObject *resultobj; |
30089 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30090 | wxString *result; | |
30091 | PyObject * obj0 = 0 ; | |
30092 | char *kwnames[] = { | |
30093 | (char *) "self", NULL | |
30094 | }; | |
30095 | ||
30096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
30097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30099 | { | |
30100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30101 | { | |
30102 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
30103 | result = (wxString *) &_result_ref; | |
30104 | } | |
30105 | ||
30106 | wxPyEndAllowThreads(__tstate); | |
30107 | if (PyErr_Occurred()) SWIG_fail; | |
30108 | } | |
30109 | { | |
30110 | #if wxUSE_UNICODE | |
30111 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30112 | #else | |
30113 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30114 | #endif | |
30115 | } | |
30116 | return resultobj; | |
30117 | fail: | |
30118 | return NULL; | |
30119 | } | |
30120 | ||
30121 | ||
c370783e | 30122 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30123 | PyObject *resultobj; |
30124 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30125 | wxString *arg2 = 0 ; | |
30126 | bool temp2 = False ; | |
30127 | PyObject * obj0 = 0 ; | |
30128 | PyObject * obj1 = 0 ; | |
30129 | char *kwnames[] = { | |
30130 | (char *) "self",(char *) "target", NULL | |
30131 | }; | |
30132 | ||
30133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
30134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30136 | { | |
30137 | arg2 = wxString_in_helper(obj1); | |
30138 | if (arg2 == NULL) SWIG_fail; | |
30139 | temp2 = True; | |
30140 | } | |
30141 | { | |
30142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30143 | (arg1)->SetTarget((wxString const &)*arg2); | |
30144 | ||
30145 | wxPyEndAllowThreads(__tstate); | |
30146 | if (PyErr_Occurred()) SWIG_fail; | |
30147 | } | |
30148 | Py_INCREF(Py_None); resultobj = Py_None; | |
30149 | { | |
30150 | if (temp2) | |
30151 | delete arg2; | |
30152 | } | |
30153 | return resultobj; | |
30154 | fail: | |
30155 | { | |
30156 | if (temp2) | |
30157 | delete arg2; | |
30158 | } | |
30159 | return NULL; | |
30160 | } | |
30161 | ||
30162 | ||
c370783e | 30163 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30164 | PyObject *obj; |
30165 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30166 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
30167 | Py_INCREF(obj); | |
30168 | return Py_BuildValue((char *)""); | |
30169 | } | |
c370783e | 30170 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30171 | PyObject *resultobj; |
30172 | wxWindow *arg1 = (wxWindow *) NULL ; | |
30173 | bool arg2 = (bool) True ; | |
30174 | wxContextHelp *result; | |
30175 | PyObject * obj0 = 0 ; | |
30176 | PyObject * obj1 = 0 ; | |
30177 | char *kwnames[] = { | |
30178 | (char *) "window",(char *) "doNow", NULL | |
30179 | }; | |
30180 | ||
30181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30182 | if (obj0) { | |
30183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
30184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30185 | } | |
30186 | if (obj1) { | |
c370783e | 30187 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
30188 | if (PyErr_Occurred()) SWIG_fail; |
30189 | } | |
30190 | { | |
0439c23b | 30191 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30193 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
30194 | ||
30195 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30196 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30197 | } |
30198 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); | |
30199 | return resultobj; | |
30200 | fail: | |
30201 | return NULL; | |
30202 | } | |
30203 | ||
30204 | ||
c370783e | 30205 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30206 | PyObject *resultobj; |
30207 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30208 | PyObject * obj0 = 0 ; | |
30209 | char *kwnames[] = { | |
30210 | (char *) "self", NULL | |
30211 | }; | |
30212 | ||
30213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
30214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30216 | { | |
30217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30218 | delete arg1; | |
30219 | ||
30220 | wxPyEndAllowThreads(__tstate); | |
30221 | if (PyErr_Occurred()) SWIG_fail; | |
30222 | } | |
30223 | Py_INCREF(Py_None); resultobj = Py_None; | |
30224 | return resultobj; | |
30225 | fail: | |
30226 | return NULL; | |
30227 | } | |
30228 | ||
30229 | ||
c370783e | 30230 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30231 | PyObject *resultobj; |
30232 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30233 | wxWindow *arg2 = (wxWindow *) NULL ; | |
30234 | bool result; | |
30235 | PyObject * obj0 = 0 ; | |
30236 | PyObject * obj1 = 0 ; | |
30237 | char *kwnames[] = { | |
30238 | (char *) "self",(char *) "window", NULL | |
30239 | }; | |
30240 | ||
30241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30244 | if (obj1) { | |
30245 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30247 | } | |
30248 | { | |
30249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30250 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
30251 | ||
30252 | wxPyEndAllowThreads(__tstate); | |
30253 | if (PyErr_Occurred()) SWIG_fail; | |
30254 | } | |
30255 | { | |
30256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30257 | } | |
30258 | return resultobj; | |
30259 | fail: | |
30260 | return NULL; | |
30261 | } | |
30262 | ||
30263 | ||
c370783e | 30264 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30265 | PyObject *resultobj; |
30266 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30267 | bool result; | |
30268 | PyObject * obj0 = 0 ; | |
30269 | char *kwnames[] = { | |
30270 | (char *) "self", NULL | |
30271 | }; | |
30272 | ||
30273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
30274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30276 | { | |
30277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30278 | result = (bool)(arg1)->EndContextHelp(); | |
30279 | ||
30280 | wxPyEndAllowThreads(__tstate); | |
30281 | if (PyErr_Occurred()) SWIG_fail; | |
30282 | } | |
30283 | { | |
30284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30285 | } | |
30286 | return resultobj; | |
30287 | fail: | |
30288 | return NULL; | |
30289 | } | |
30290 | ||
30291 | ||
c370783e | 30292 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30293 | PyObject *obj; |
30294 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30295 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
30296 | Py_INCREF(obj); | |
30297 | return Py_BuildValue((char *)""); | |
30298 | } | |
c370783e | 30299 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30300 | PyObject *resultobj; |
30301 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30302 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
30303 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
30304 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30305 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30306 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30307 | long arg5 = (long) wxBU_AUTODRAW ; | |
30308 | wxContextHelpButton *result; | |
30309 | wxPoint temp3 ; | |
30310 | wxSize temp4 ; | |
30311 | PyObject * obj0 = 0 ; | |
30312 | PyObject * obj1 = 0 ; | |
30313 | PyObject * obj2 = 0 ; | |
30314 | PyObject * obj3 = 0 ; | |
30315 | PyObject * obj4 = 0 ; | |
30316 | char *kwnames[] = { | |
30317 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30318 | }; | |
30319 | ||
30320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
30322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30323 | if (obj1) { | |
c370783e | 30324 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30325 | if (PyErr_Occurred()) SWIG_fail; |
30326 | } | |
30327 | if (obj2) { | |
30328 | { | |
30329 | arg3 = &temp3; | |
30330 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30331 | } | |
30332 | } | |
30333 | if (obj3) { | |
30334 | { | |
30335 | arg4 = &temp4; | |
30336 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30337 | } | |
30338 | } | |
30339 | if (obj4) { | |
c370783e | 30340 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
30341 | if (PyErr_Occurred()) SWIG_fail; |
30342 | } | |
30343 | { | |
0439c23b | 30344 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30346 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30347 | ||
30348 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30349 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30350 | } |
30351 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); | |
30352 | return resultobj; | |
30353 | fail: | |
30354 | return NULL; | |
30355 | } | |
30356 | ||
30357 | ||
c370783e | 30358 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30359 | PyObject *obj; |
30360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30361 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30362 | Py_INCREF(obj); | |
30363 | return Py_BuildValue((char *)""); | |
30364 | } | |
c370783e | 30365 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30366 | PyObject *resultobj; |
30367 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30368 | wxHelpProvider *result; | |
30369 | PyObject * obj0 = 0 ; | |
30370 | char *kwnames[] = { | |
30371 | (char *) "helpProvider", NULL | |
30372 | }; | |
30373 | ||
30374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
30375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30377 | { | |
30378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30379 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30380 | ||
30381 | wxPyEndAllowThreads(__tstate); | |
30382 | if (PyErr_Occurred()) SWIG_fail; | |
30383 | } | |
30384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
30385 | return resultobj; | |
30386 | fail: | |
30387 | return NULL; | |
30388 | } | |
30389 | ||
30390 | ||
c370783e | 30391 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30392 | PyObject *resultobj; |
30393 | wxHelpProvider *result; | |
30394 | char *kwnames[] = { | |
30395 | NULL | |
30396 | }; | |
30397 | ||
30398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
30399 | { | |
30400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30401 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
30402 | ||
30403 | wxPyEndAllowThreads(__tstate); | |
30404 | if (PyErr_Occurred()) SWIG_fail; | |
30405 | } | |
30406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
30407 | return resultobj; | |
30408 | fail: | |
30409 | return NULL; | |
30410 | } | |
30411 | ||
30412 | ||
c370783e | 30413 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30414 | PyObject *resultobj; |
30415 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30416 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30417 | wxString result; | |
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_GetHelp",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 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
30432 | ||
30433 | wxPyEndAllowThreads(__tstate); | |
30434 | if (PyErr_Occurred()) SWIG_fail; | |
30435 | } | |
30436 | { | |
30437 | #if wxUSE_UNICODE | |
30438 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30439 | #else | |
30440 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30441 | #endif | |
30442 | } | |
30443 | return resultobj; | |
30444 | fail: | |
30445 | return NULL; | |
30446 | } | |
30447 | ||
30448 | ||
c370783e | 30449 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30450 | PyObject *resultobj; |
30451 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30452 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30453 | bool result; | |
30454 | PyObject * obj0 = 0 ; | |
30455 | PyObject * obj1 = 0 ; | |
30456 | char *kwnames[] = { | |
30457 | (char *) "self",(char *) "window", NULL | |
30458 | }; | |
30459 | ||
30460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
30461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30465 | { | |
30466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30467 | result = (bool)(arg1)->ShowHelp(arg2); | |
30468 | ||
30469 | wxPyEndAllowThreads(__tstate); | |
30470 | if (PyErr_Occurred()) SWIG_fail; | |
30471 | } | |
30472 | { | |
30473 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30474 | } | |
30475 | return resultobj; | |
30476 | fail: | |
30477 | return NULL; | |
30478 | } | |
30479 | ||
30480 | ||
c370783e | 30481 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30482 | PyObject *resultobj; |
30483 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30484 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30485 | wxString *arg3 = 0 ; | |
30486 | bool temp3 = False ; | |
30487 | PyObject * obj0 = 0 ; | |
30488 | PyObject * obj1 = 0 ; | |
30489 | PyObject * obj2 = 0 ; | |
30490 | char *kwnames[] = { | |
30491 | (char *) "self",(char *) "window",(char *) "text", NULL | |
30492 | }; | |
30493 | ||
30494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30497 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30499 | { | |
30500 | arg3 = wxString_in_helper(obj2); | |
30501 | if (arg3 == NULL) SWIG_fail; | |
30502 | temp3 = True; | |
30503 | } | |
30504 | { | |
30505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30506 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30507 | ||
30508 | wxPyEndAllowThreads(__tstate); | |
30509 | if (PyErr_Occurred()) SWIG_fail; | |
30510 | } | |
30511 | Py_INCREF(Py_None); resultobj = Py_None; | |
30512 | { | |
30513 | if (temp3) | |
30514 | delete arg3; | |
30515 | } | |
30516 | return resultobj; | |
30517 | fail: | |
30518 | { | |
30519 | if (temp3) | |
30520 | delete arg3; | |
30521 | } | |
30522 | return NULL; | |
30523 | } | |
30524 | ||
30525 | ||
c370783e | 30526 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30527 | PyObject *resultobj; |
30528 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30529 | int arg2 ; | |
30530 | wxString *arg3 = 0 ; | |
30531 | bool temp3 = False ; | |
30532 | PyObject * obj0 = 0 ; | |
30533 | PyObject * obj1 = 0 ; | |
30534 | PyObject * obj2 = 0 ; | |
30535 | char *kwnames[] = { | |
30536 | (char *) "self",(char *) "id",(char *) "text", NULL | |
30537 | }; | |
30538 | ||
30539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30542 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30543 | if (PyErr_Occurred()) SWIG_fail; |
30544 | { | |
30545 | arg3 = wxString_in_helper(obj2); | |
30546 | if (arg3 == NULL) SWIG_fail; | |
30547 | temp3 = True; | |
30548 | } | |
30549 | { | |
30550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30551 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30552 | ||
30553 | wxPyEndAllowThreads(__tstate); | |
30554 | if (PyErr_Occurred()) SWIG_fail; | |
30555 | } | |
30556 | Py_INCREF(Py_None); resultobj = Py_None; | |
30557 | { | |
30558 | if (temp3) | |
30559 | delete arg3; | |
30560 | } | |
30561 | return resultobj; | |
30562 | fail: | |
30563 | { | |
30564 | if (temp3) | |
30565 | delete arg3; | |
30566 | } | |
30567 | return NULL; | |
30568 | } | |
30569 | ||
30570 | ||
c370783e | 30571 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30572 | PyObject *resultobj; |
30573 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30574 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30575 | PyObject * obj0 = 0 ; | |
30576 | PyObject * obj1 = 0 ; | |
30577 | char *kwnames[] = { | |
30578 | (char *) "self",(char *) "window", NULL | |
30579 | }; | |
30580 | ||
30581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
30582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30584 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30586 | { | |
30587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30588 | (arg1)->RemoveHelp(arg2); | |
30589 | ||
30590 | wxPyEndAllowThreads(__tstate); | |
30591 | if (PyErr_Occurred()) SWIG_fail; | |
30592 | } | |
30593 | Py_INCREF(Py_None); resultobj = Py_None; | |
30594 | return resultobj; | |
30595 | fail: | |
30596 | return NULL; | |
30597 | } | |
30598 | ||
30599 | ||
c370783e | 30600 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30601 | PyObject *resultobj; |
30602 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30603 | PyObject * obj0 = 0 ; | |
30604 | char *kwnames[] = { | |
30605 | (char *) "self", NULL | |
30606 | }; | |
30607 | ||
30608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
30609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30611 | { | |
30612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30613 | wxHelpProvider_Destroy(arg1); | |
30614 | ||
30615 | wxPyEndAllowThreads(__tstate); | |
30616 | if (PyErr_Occurred()) SWIG_fail; | |
30617 | } | |
30618 | Py_INCREF(Py_None); resultobj = Py_None; | |
30619 | return resultobj; | |
30620 | fail: | |
30621 | return NULL; | |
30622 | } | |
30623 | ||
30624 | ||
c370783e | 30625 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30626 | PyObject *obj; |
30627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30628 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
30629 | Py_INCREF(obj); | |
30630 | return Py_BuildValue((char *)""); | |
30631 | } | |
c370783e | 30632 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30633 | PyObject *resultobj; |
30634 | wxSimpleHelpProvider *result; | |
30635 | char *kwnames[] = { | |
30636 | NULL | |
30637 | }; | |
30638 | ||
30639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
30640 | { | |
30641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30642 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
30643 | ||
30644 | wxPyEndAllowThreads(__tstate); | |
30645 | if (PyErr_Occurred()) SWIG_fail; | |
30646 | } | |
30647 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
30648 | return resultobj; | |
30649 | fail: | |
30650 | return NULL; | |
30651 | } | |
30652 | ||
30653 | ||
c370783e | 30654 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30655 | PyObject *obj; |
30656 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30657 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
30658 | Py_INCREF(obj); | |
30659 | return Py_BuildValue((char *)""); | |
30660 | } | |
c370783e | 30661 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30662 | PyObject *resultobj; |
30663 | wxBitmap *arg1 = 0 ; | |
30664 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30665 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30666 | wxGenericDragImage *result; | |
30667 | PyObject * obj0 = 0 ; | |
30668 | PyObject * obj1 = 0 ; | |
30669 | char *kwnames[] = { | |
30670 | (char *) "image",(char *) "cursor", NULL | |
30671 | }; | |
30672 | ||
30673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
30674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
30675 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30676 | SWIG_fail; | |
30677 | if (arg1 == NULL) { | |
30678 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30679 | SWIG_fail; | |
30680 | } | |
30681 | if (obj1) { | |
30682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30683 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30684 | SWIG_fail; | |
30685 | if (arg2 == NULL) { | |
30686 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30687 | SWIG_fail; | |
30688 | } | |
30689 | } | |
30690 | { | |
0439c23b | 30691 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30693 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
30694 | ||
30695 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30696 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30697 | } |
30698 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30699 | return resultobj; | |
30700 | fail: | |
30701 | return NULL; | |
30702 | } | |
30703 | ||
30704 | ||
c370783e | 30705 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30706 | PyObject *resultobj; |
30707 | wxIcon *arg1 = 0 ; | |
30708 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30709 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30710 | wxGenericDragImage *result; | |
30711 | PyObject * obj0 = 0 ; | |
30712 | PyObject * obj1 = 0 ; | |
30713 | char *kwnames[] = { | |
30714 | (char *) "image",(char *) "cursor", NULL | |
30715 | }; | |
30716 | ||
30717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
30718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
30719 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30720 | SWIG_fail; | |
30721 | if (arg1 == NULL) { | |
30722 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30723 | SWIG_fail; | |
30724 | } | |
30725 | if (obj1) { | |
30726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30727 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30728 | SWIG_fail; | |
30729 | if (arg2 == NULL) { | |
30730 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30731 | SWIG_fail; | |
30732 | } | |
30733 | } | |
30734 | { | |
0439c23b | 30735 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30737 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
30738 | ||
30739 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30740 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30741 | } |
30742 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30743 | return resultobj; | |
30744 | fail: | |
30745 | return NULL; | |
30746 | } | |
30747 | ||
30748 | ||
c370783e | 30749 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30750 | PyObject *resultobj; |
30751 | wxString *arg1 = 0 ; | |
30752 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30753 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30754 | wxGenericDragImage *result; | |
30755 | bool temp1 = False ; | |
30756 | PyObject * obj0 = 0 ; | |
30757 | PyObject * obj1 = 0 ; | |
30758 | char *kwnames[] = { | |
30759 | (char *) "str",(char *) "cursor", NULL | |
30760 | }; | |
30761 | ||
30762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
30763 | { | |
30764 | arg1 = wxString_in_helper(obj0); | |
30765 | if (arg1 == NULL) SWIG_fail; | |
30766 | temp1 = True; | |
30767 | } | |
30768 | if (obj1) { | |
30769 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30770 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30771 | SWIG_fail; | |
30772 | if (arg2 == NULL) { | |
30773 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30774 | SWIG_fail; | |
30775 | } | |
30776 | } | |
30777 | { | |
0439c23b | 30778 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30780 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
30781 | ||
30782 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30783 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30784 | } |
30785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30786 | { | |
30787 | if (temp1) | |
30788 | delete arg1; | |
30789 | } | |
30790 | return resultobj; | |
30791 | fail: | |
30792 | { | |
30793 | if (temp1) | |
30794 | delete arg1; | |
30795 | } | |
30796 | return NULL; | |
30797 | } | |
30798 | ||
30799 | ||
c370783e | 30800 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30801 | PyObject *resultobj; |
30802 | wxPyTreeCtrl *arg1 = 0 ; | |
30803 | wxTreeItemId *arg2 = 0 ; | |
30804 | wxGenericDragImage *result; | |
30805 | PyObject * obj0 = 0 ; | |
30806 | PyObject * obj1 = 0 ; | |
30807 | char *kwnames[] = { | |
30808 | (char *) "treeCtrl",(char *) "id", NULL | |
30809 | }; | |
30810 | ||
30811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
30812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
30813 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30814 | SWIG_fail; | |
30815 | if (arg1 == NULL) { | |
30816 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30817 | SWIG_fail; | |
30818 | } | |
30819 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
30820 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30821 | SWIG_fail; | |
30822 | if (arg2 == NULL) { | |
30823 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30824 | SWIG_fail; | |
30825 | } | |
30826 | { | |
0439c23b | 30827 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30829 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
30830 | ||
30831 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30832 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30833 | } |
30834 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30835 | return resultobj; | |
30836 | fail: | |
30837 | return NULL; | |
30838 | } | |
30839 | ||
30840 | ||
c370783e | 30841 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30842 | PyObject *resultobj; |
30843 | wxPyListCtrl *arg1 = 0 ; | |
30844 | long arg2 ; | |
30845 | wxGenericDragImage *result; | |
30846 | PyObject * obj0 = 0 ; | |
30847 | PyObject * obj1 = 0 ; | |
30848 | char *kwnames[] = { | |
30849 | (char *) "listCtrl",(char *) "id", NULL | |
30850 | }; | |
30851 | ||
30852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
30853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
30854 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30855 | SWIG_fail; | |
30856 | if (arg1 == NULL) { | |
30857 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30858 | SWIG_fail; | |
30859 | } | |
c370783e | 30860 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
30861 | if (PyErr_Occurred()) SWIG_fail; |
30862 | { | |
0439c23b | 30863 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30865 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
30866 | ||
30867 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30868 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30869 | } |
30870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30871 | return resultobj; | |
30872 | fail: | |
30873 | return NULL; | |
30874 | } | |
30875 | ||
30876 | ||
c370783e | 30877 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30878 | PyObject *resultobj; |
30879 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30880 | PyObject * obj0 = 0 ; | |
30881 | char *kwnames[] = { | |
30882 | (char *) "self", NULL | |
30883 | }; | |
30884 | ||
30885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
30886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30888 | { | |
30889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30890 | delete arg1; | |
30891 | ||
30892 | wxPyEndAllowThreads(__tstate); | |
30893 | if (PyErr_Occurred()) SWIG_fail; | |
30894 | } | |
30895 | Py_INCREF(Py_None); resultobj = Py_None; | |
30896 | return resultobj; | |
30897 | fail: | |
30898 | return NULL; | |
30899 | } | |
30900 | ||
30901 | ||
c370783e | 30902 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30903 | PyObject *resultobj; |
30904 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30905 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
30906 | PyObject * obj0 = 0 ; | |
30907 | PyObject * obj1 = 0 ; | |
30908 | char *kwnames[] = { | |
30909 | (char *) "self",(char *) "bitmap", NULL | |
30910 | }; | |
30911 | ||
30912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
30913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30915 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
30916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30917 | { | |
30918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30919 | (arg1)->SetBackingBitmap(arg2); | |
30920 | ||
30921 | wxPyEndAllowThreads(__tstate); | |
30922 | if (PyErr_Occurred()) SWIG_fail; | |
30923 | } | |
30924 | Py_INCREF(Py_None); resultobj = Py_None; | |
30925 | return resultobj; | |
30926 | fail: | |
30927 | return NULL; | |
30928 | } | |
30929 | ||
30930 | ||
c370783e | 30931 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30932 | PyObject *resultobj; |
30933 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30934 | wxPoint *arg2 = 0 ; | |
30935 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30936 | bool arg4 = (bool) False ; | |
30937 | wxRect *arg5 = (wxRect *) NULL ; | |
30938 | bool result; | |
30939 | wxPoint temp2 ; | |
30940 | PyObject * obj0 = 0 ; | |
30941 | PyObject * obj1 = 0 ; | |
30942 | PyObject * obj2 = 0 ; | |
30943 | PyObject * obj3 = 0 ; | |
30944 | PyObject * obj4 = 0 ; | |
30945 | char *kwnames[] = { | |
30946 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
30947 | }; | |
30948 | ||
30949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30952 | { | |
30953 | arg2 = &temp2; | |
30954 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30955 | } | |
30956 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
30957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30958 | if (obj3) { | |
c370783e | 30959 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
30960 | if (PyErr_Occurred()) SWIG_fail; |
30961 | } | |
30962 | if (obj4) { | |
30963 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, | |
30964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30965 | } | |
30966 | { | |
30967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30968 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
30969 | ||
30970 | wxPyEndAllowThreads(__tstate); | |
30971 | if (PyErr_Occurred()) SWIG_fail; | |
30972 | } | |
30973 | { | |
30974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30975 | } | |
30976 | return resultobj; | |
30977 | fail: | |
30978 | return NULL; | |
30979 | } | |
30980 | ||
30981 | ||
c370783e | 30982 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30983 | PyObject *resultobj; |
30984 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30985 | wxPoint *arg2 = 0 ; | |
30986 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30987 | wxWindow *arg4 = (wxWindow *) 0 ; | |
30988 | bool result; | |
30989 | wxPoint temp2 ; | |
30990 | PyObject * obj0 = 0 ; | |
30991 | PyObject * obj1 = 0 ; | |
30992 | PyObject * obj2 = 0 ; | |
30993 | PyObject * obj3 = 0 ; | |
30994 | char *kwnames[] = { | |
30995 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
30996 | }; | |
30997 | ||
30998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31001 | { | |
31002 | arg2 = &temp2; | |
31003 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31004 | } | |
31005 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
31006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31007 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
31008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31009 | { | |
31010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31011 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
31012 | ||
31013 | wxPyEndAllowThreads(__tstate); | |
31014 | if (PyErr_Occurred()) SWIG_fail; | |
31015 | } | |
31016 | { | |
31017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31018 | } | |
31019 | return resultobj; | |
31020 | fail: | |
31021 | return NULL; | |
31022 | } | |
31023 | ||
31024 | ||
c370783e | 31025 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31026 | PyObject *resultobj; |
31027 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31028 | bool result; | |
31029 | PyObject * obj0 = 0 ; | |
31030 | char *kwnames[] = { | |
31031 | (char *) "self", NULL | |
31032 | }; | |
31033 | ||
31034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
31035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31037 | { | |
31038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31039 | result = (bool)(arg1)->EndDrag(); | |
31040 | ||
31041 | wxPyEndAllowThreads(__tstate); | |
31042 | if (PyErr_Occurred()) SWIG_fail; | |
31043 | } | |
31044 | { | |
31045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31046 | } | |
31047 | return resultobj; | |
31048 | fail: | |
31049 | return NULL; | |
31050 | } | |
31051 | ||
31052 | ||
c370783e | 31053 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31054 | PyObject *resultobj; |
31055 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31056 | wxPoint *arg2 = 0 ; | |
31057 | bool result; | |
31058 | wxPoint temp2 ; | |
31059 | PyObject * obj0 = 0 ; | |
31060 | PyObject * obj1 = 0 ; | |
31061 | char *kwnames[] = { | |
31062 | (char *) "self",(char *) "pt", NULL | |
31063 | }; | |
31064 | ||
31065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
31066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31068 | { | |
31069 | arg2 = &temp2; | |
31070 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31071 | } | |
31072 | { | |
31073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31074 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
31075 | ||
31076 | wxPyEndAllowThreads(__tstate); | |
31077 | if (PyErr_Occurred()) SWIG_fail; | |
31078 | } | |
31079 | { | |
31080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31081 | } | |
31082 | return resultobj; | |
31083 | fail: | |
31084 | return NULL; | |
31085 | } | |
31086 | ||
31087 | ||
c370783e | 31088 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31089 | PyObject *resultobj; |
31090 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31091 | bool result; | |
31092 | PyObject * obj0 = 0 ; | |
31093 | char *kwnames[] = { | |
31094 | (char *) "self", NULL | |
31095 | }; | |
31096 | ||
31097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
31098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31100 | { | |
31101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31102 | result = (bool)(arg1)->Show(); | |
31103 | ||
31104 | wxPyEndAllowThreads(__tstate); | |
31105 | if (PyErr_Occurred()) SWIG_fail; | |
31106 | } | |
31107 | { | |
31108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31109 | } | |
31110 | return resultobj; | |
31111 | fail: | |
31112 | return NULL; | |
31113 | } | |
31114 | ||
31115 | ||
c370783e | 31116 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31117 | PyObject *resultobj; |
31118 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31119 | bool result; | |
31120 | PyObject * obj0 = 0 ; | |
31121 | char *kwnames[] = { | |
31122 | (char *) "self", NULL | |
31123 | }; | |
31124 | ||
31125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
31126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31128 | { | |
31129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31130 | result = (bool)(arg1)->Hide(); | |
31131 | ||
31132 | wxPyEndAllowThreads(__tstate); | |
31133 | if (PyErr_Occurred()) SWIG_fail; | |
31134 | } | |
31135 | { | |
31136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31137 | } | |
31138 | return resultobj; | |
31139 | fail: | |
31140 | return NULL; | |
31141 | } | |
31142 | ||
31143 | ||
c370783e | 31144 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31145 | PyObject *resultobj; |
31146 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31147 | wxPoint *arg2 = 0 ; | |
31148 | wxRect result; | |
31149 | wxPoint temp2 ; | |
31150 | PyObject * obj0 = 0 ; | |
31151 | PyObject * obj1 = 0 ; | |
31152 | char *kwnames[] = { | |
31153 | (char *) "self",(char *) "pos", NULL | |
31154 | }; | |
31155 | ||
31156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
31157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31159 | { | |
31160 | arg2 = &temp2; | |
31161 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31162 | } | |
31163 | { | |
31164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31165 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
31166 | ||
31167 | wxPyEndAllowThreads(__tstate); | |
31168 | if (PyErr_Occurred()) SWIG_fail; | |
31169 | } | |
31170 | { | |
31171 | wxRect * resultptr; | |
31172 | resultptr = new wxRect((wxRect &) result); | |
31173 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
31174 | } | |
31175 | return resultobj; | |
31176 | fail: | |
31177 | return NULL; | |
31178 | } | |
31179 | ||
31180 | ||
c370783e | 31181 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31182 | PyObject *resultobj; |
31183 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31184 | wxDC *arg2 = 0 ; | |
31185 | wxPoint *arg3 = 0 ; | |
31186 | bool result; | |
31187 | wxPoint temp3 ; | |
31188 | PyObject * obj0 = 0 ; | |
31189 | PyObject * obj1 = 0 ; | |
31190 | PyObject * obj2 = 0 ; | |
31191 | char *kwnames[] = { | |
31192 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
31193 | }; | |
31194 | ||
31195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31199 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31200 | SWIG_fail; | |
31201 | if (arg2 == NULL) { | |
31202 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31203 | SWIG_fail; | |
31204 | } | |
31205 | { | |
31206 | arg3 = &temp3; | |
31207 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31208 | } | |
31209 | { | |
31210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31211 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
31212 | ||
31213 | wxPyEndAllowThreads(__tstate); | |
31214 | if (PyErr_Occurred()) SWIG_fail; | |
31215 | } | |
31216 | { | |
31217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31218 | } | |
31219 | return resultobj; | |
31220 | fail: | |
31221 | return NULL; | |
31222 | } | |
31223 | ||
31224 | ||
c370783e | 31225 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31226 | PyObject *resultobj; |
31227 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31228 | wxDC *arg2 = 0 ; | |
31229 | wxMemoryDC *arg3 = 0 ; | |
31230 | wxRect *arg4 = 0 ; | |
31231 | wxRect *arg5 = 0 ; | |
31232 | bool result; | |
31233 | wxRect temp4 ; | |
31234 | wxRect temp5 ; | |
31235 | PyObject * obj0 = 0 ; | |
31236 | PyObject * obj1 = 0 ; | |
31237 | PyObject * obj2 = 0 ; | |
31238 | PyObject * obj3 = 0 ; | |
31239 | PyObject * obj4 = 0 ; | |
31240 | char *kwnames[] = { | |
31241 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
31242 | }; | |
31243 | ||
31244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31248 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31249 | SWIG_fail; | |
31250 | if (arg2 == NULL) { | |
31251 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31252 | SWIG_fail; | |
31253 | } | |
31254 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, | |
31255 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31256 | SWIG_fail; | |
31257 | if (arg3 == NULL) { | |
31258 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31259 | SWIG_fail; | |
31260 | } | |
31261 | { | |
31262 | arg4 = &temp4; | |
31263 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31264 | } | |
31265 | { | |
31266 | arg5 = &temp5; | |
31267 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
31268 | } | |
31269 | { | |
31270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31271 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
31272 | ||
31273 | wxPyEndAllowThreads(__tstate); | |
31274 | if (PyErr_Occurred()) SWIG_fail; | |
31275 | } | |
31276 | { | |
31277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31278 | } | |
31279 | return resultobj; | |
31280 | fail: | |
31281 | return NULL; | |
31282 | } | |
31283 | ||
31284 | ||
c370783e | 31285 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31286 | PyObject *resultobj; |
31287 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31288 | wxPoint *arg2 = 0 ; | |
31289 | wxPoint *arg3 = 0 ; | |
31290 | bool arg4 ; | |
31291 | bool arg5 ; | |
31292 | bool result; | |
31293 | wxPoint temp2 ; | |
31294 | wxPoint temp3 ; | |
31295 | PyObject * obj0 = 0 ; | |
31296 | PyObject * obj1 = 0 ; | |
31297 | PyObject * obj2 = 0 ; | |
31298 | PyObject * obj3 = 0 ; | |
31299 | PyObject * obj4 = 0 ; | |
31300 | char *kwnames[] = { | |
31301 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
31302 | }; | |
31303 | ||
31304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31307 | { | |
31308 | arg2 = &temp2; | |
31309 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31310 | } | |
31311 | { | |
31312 | arg3 = &temp3; | |
31313 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31314 | } | |
c370783e | 31315 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc | 31316 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 31317 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
31318 | if (PyErr_Occurred()) SWIG_fail; |
31319 | { | |
31320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31321 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31322 | ||
31323 | wxPyEndAllowThreads(__tstate); | |
31324 | if (PyErr_Occurred()) SWIG_fail; | |
31325 | } | |
31326 | { | |
31327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31328 | } | |
31329 | return resultobj; | |
31330 | fail: | |
31331 | return NULL; | |
31332 | } | |
31333 | ||
31334 | ||
c370783e | 31335 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31336 | PyObject *obj; |
31337 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31338 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31339 | Py_INCREF(obj); | |
31340 | return Py_BuildValue((char *)""); | |
31341 | } | |
31342 | static PyMethodDef SwigMethods[] = { | |
c370783e RD |
31343 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL }, |
31344 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31345 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31346 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31347 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31348 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31349 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL }, | |
31350 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31351 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31352 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31353 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31354 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31355 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31356 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31357 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31358 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31359 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31360 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31361 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31362 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31363 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31364 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL }, | |
31365 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31366 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31367 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31368 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31369 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31370 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31371 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31372 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31373 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31374 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31375 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31376 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL }, | |
31377 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31378 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31379 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31380 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31381 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31382 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31383 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31384 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL }, | |
31385 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31386 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31387 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31388 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31389 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31390 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31391 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31392 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31393 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31394 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31395 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31396 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31397 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31398 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31399 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31400 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31401 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31402 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31403 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31404 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31405 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL }, | |
31406 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31407 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31408 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31409 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31410 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31411 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31412 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31413 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31414 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31415 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31416 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31417 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31418 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31419 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL }, | |
31420 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31421 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31422 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31423 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31424 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL }, | |
31425 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31426 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31427 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31428 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31429 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31430 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31431 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL }, | |
31432 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31433 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31434 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31435 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31436 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL }, | |
31437 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31438 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31439 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31440 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31441 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31442 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31443 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31444 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL }, | |
31445 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31446 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31447 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31448 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31449 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31450 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31451 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31452 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31453 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31454 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31455 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31456 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31457 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31458 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31459 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31460 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31461 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31462 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31463 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31464 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31465 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31466 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31467 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL }, | |
31468 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31469 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31470 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31471 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31472 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31473 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31474 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31475 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL }, | |
31476 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31477 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31478 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31479 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31480 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31481 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31482 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31483 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31484 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31485 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31486 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31487 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31488 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31489 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31490 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31491 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31492 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31493 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31494 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31495 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31496 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31497 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31498 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31499 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31500 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31501 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31502 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31503 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31504 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31505 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31506 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL }, | |
31507 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31508 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31509 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31510 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31511 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31512 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31513 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31514 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31515 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31516 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31517 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31518 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31519 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31520 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31521 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31522 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31523 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31524 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31525 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31526 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31527 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31528 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31529 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31530 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31531 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31532 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31533 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31534 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31535 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31536 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31537 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31538 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31539 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31540 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31541 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31542 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31543 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31544 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31545 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31546 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31547 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31548 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31549 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31550 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31551 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31552 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31553 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31554 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31555 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31556 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31557 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31558 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31559 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31560 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31561 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31562 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL }, | |
31563 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31564 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31565 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31566 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31567 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL }, | |
31568 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31569 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31570 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31571 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31572 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31573 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31574 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31575 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31576 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31577 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31578 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31579 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL }, | |
31580 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31581 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31582 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31583 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31584 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31585 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31586 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31587 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31588 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31589 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31590 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31591 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31592 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL }, | |
31593 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31594 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31595 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31596 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31597 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31598 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31599 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31600 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31601 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31602 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31603 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31604 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL }, | |
31605 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31606 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31607 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31608 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL }, | |
31609 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31610 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31611 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31612 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31613 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31614 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31615 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31616 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31617 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31618 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31619 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31620 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31621 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31622 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31623 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31624 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31625 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31626 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL }, | |
31627 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31628 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31629 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31630 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31631 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31632 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31633 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL }, | |
31634 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31635 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31636 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31637 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31638 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31639 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31640 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31641 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31642 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31643 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31644 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31645 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31646 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31647 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31648 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31649 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31650 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31651 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31652 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31653 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31654 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31655 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31656 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31657 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31658 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31659 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL }, | |
31660 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31661 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31662 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31663 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31664 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31665 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31666 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31667 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL }, | |
31668 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31669 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31670 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31671 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31672 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31673 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31674 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31675 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31676 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31677 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31678 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31679 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31680 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31681 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31682 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31683 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31684 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31685 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31686 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31687 | { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31688 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS, NULL }, | |
31689 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31690 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31691 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31692 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31693 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31694 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS, NULL }, | |
31695 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31696 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31697 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31698 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31699 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31700 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31701 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31702 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31703 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31704 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL }, | |
31705 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31706 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL }, | |
31707 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31708 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31709 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31710 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
44bf767a | 31711 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
31712 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL }, |
31713 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31714 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL }, | |
31715 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31716 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31717 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31718 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31719 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL }, | |
31720 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31721 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31722 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31723 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31724 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL }, | |
31725 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31726 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31727 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31728 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31729 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31730 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31731 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31732 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31733 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31734 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31735 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31736 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31737 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31738 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31739 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31740 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31741 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31742 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31743 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31744 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31745 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31746 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31747 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31748 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31749 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31750 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31751 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31752 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31753 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31754 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL }, | |
31755 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31756 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31757 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31758 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31759 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31760 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31761 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31762 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31763 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31764 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31765 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31766 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31767 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31768 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31769 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31770 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31771 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31772 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31773 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31774 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31775 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31776 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31777 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31778 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31779 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31780 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31781 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31782 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31783 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31784 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31785 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31786 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31787 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31788 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31789 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31790 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31791 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31792 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31793 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31794 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31795 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31796 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31797 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31798 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31799 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL }, | |
31800 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31801 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31802 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31803 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31804 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31805 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL }, | |
31806 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31807 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31808 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31809 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31810 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31811 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31812 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31813 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31814 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31815 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31816 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31817 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL }, | |
31818 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31819 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31820 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31821 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31822 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31823 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31824 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31825 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31826 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31827 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31828 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31829 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31830 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31831 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31832 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31833 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31834 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31835 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31836 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31837 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31838 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31839 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31840 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31841 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31842 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31843 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31844 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31845 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31846 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31847 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31848 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31849 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31850 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31851 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31852 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31853 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31854 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31855 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31856 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31857 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31858 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31859 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31860 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31861 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31862 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31863 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31864 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31865 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31866 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31867 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31868 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31869 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL }, | |
31870 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31871 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31872 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31873 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31874 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31875 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31876 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31877 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31878 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31879 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31880 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31881 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31882 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31883 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31884 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31885 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31886 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31887 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31888 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31889 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31890 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31891 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31892 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31893 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31894 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31895 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31896 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL }, | |
31897 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31898 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31899 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31900 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31901 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31902 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31903 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31904 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31905 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31906 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31907 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31908 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31909 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31910 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31911 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31912 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31913 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31914 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31915 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31916 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31917 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31918 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31919 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31920 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31921 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31922 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31923 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31924 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31925 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31926 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31927 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31928 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31929 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31930 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31931 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31932 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31933 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31934 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31935 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31936 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31937 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31938 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31939 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31940 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31941 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31942 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31943 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31944 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31945 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31946 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31947 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31948 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31949 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31950 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31951 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31952 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31953 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31954 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31955 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31956 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31957 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31958 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31959 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31960 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31961 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31962 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31963 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31964 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31965 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31966 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31967 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL }, | |
31968 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31969 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31970 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31971 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31972 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31973 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31974 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31975 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31976 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31977 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31978 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31979 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL }, | |
31980 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31981 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31982 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31983 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31984 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31985 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31986 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31987 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL }, | |
31988 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31989 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31990 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31991 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31992 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31993 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31994 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL }, | |
31995 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31996 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31997 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31998 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31999 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32000 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32001 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32002 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32003 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32004 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32005 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32006 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32007 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32008 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32009 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32010 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL }, | |
32011 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32012 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32013 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32014 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32015 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32016 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32017 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32018 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32019 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32020 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32021 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32022 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32023 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32024 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32025 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32026 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32027 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32028 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32029 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32030 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32031 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32032 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32033 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32034 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32035 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32036 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32037 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32038 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32039 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32040 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32041 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32042 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32043 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32044 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32045 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32046 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32047 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32048 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32049 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32050 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32051 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32052 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32053 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32054 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32055 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32056 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32057 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32058 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32059 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32060 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32061 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32062 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32063 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32064 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32065 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32066 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32067 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32068 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32069 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32070 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32071 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32072 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32073 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32074 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32075 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32076 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32077 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32078 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32079 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32080 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32081 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32082 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32083 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32084 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32085 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL }, | |
32086 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32087 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32088 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32089 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32090 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32091 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32092 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32093 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32094 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32095 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32096 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32097 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32098 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32099 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32100 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32101 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32102 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32103 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32104 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32105 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32106 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32107 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL }, | |
32108 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32109 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32110 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32111 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32112 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL }, | |
32113 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32114 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32115 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32116 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32117 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32118 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32119 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32120 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32121 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32122 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32123 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32124 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32125 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32126 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32127 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32128 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32129 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32130 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32131 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32132 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32133 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32134 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32135 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32136 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32137 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32138 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL }, | |
32139 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32140 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32141 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32142 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32143 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32144 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32145 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32146 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL }, | |
32147 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32148 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32149 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32150 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32151 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL }, | |
32152 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32153 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL }, | |
32154 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32155 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32156 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32157 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32158 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32159 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32160 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32161 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32162 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL }, | |
32163 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32164 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL }, | |
32165 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32166 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32167 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32168 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32169 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32170 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32171 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32172 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32173 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32174 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32175 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32176 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32177 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32178 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32179 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32180 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32181 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32182 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL }, | |
32183 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
32184 | }; |
32185 | ||
32186 | ||
32187 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32188 | ||
32189 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
32190 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32191 | } | |
32192 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
32193 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32194 | } | |
32195 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
32196 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
32197 | } | |
32198 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
32199 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32200 | } | |
32201 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
32202 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32203 | } | |
32204 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
32205 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
32206 | } | |
32207 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
32208 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32209 | } | |
32210 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
32211 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
32212 | } | |
32213 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
32214 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
32215 | } | |
32216 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
32217 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
32218 | } | |
32219 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32220 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32221 | } | |
32222 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32223 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32224 | } | |
32225 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32226 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32227 | } | |
32228 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32229 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32230 | } | |
32231 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32232 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32233 | } | |
32234 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
32235 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32236 | } | |
32237 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32238 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32239 | } | |
32240 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32241 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32242 | } | |
32243 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32244 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32245 | } | |
32246 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
32247 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32248 | } | |
32249 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
32250 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32251 | } | |
32252 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
32253 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32254 | } | |
32255 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32256 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32257 | } | |
32258 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
32259 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32260 | } | |
32261 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
32262 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32263 | } | |
32264 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
32265 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32266 | } | |
32267 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
32268 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
32269 | } | |
32270 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32271 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32272 | } | |
32273 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32274 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32275 | } | |
32276 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32277 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32278 | } | |
32279 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32280 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32281 | } | |
32282 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32283 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32284 | } | |
32285 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32286 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32287 | } | |
32288 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32289 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32290 | } | |
32291 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32292 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32293 | } | |
32294 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
32295 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32296 | } | |
32297 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32298 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32299 | } | |
32300 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32301 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32302 | } | |
32303 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32304 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32305 | } | |
32306 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32307 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32308 | } | |
32309 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32310 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32311 | } | |
32312 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32313 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32314 | } | |
32315 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32316 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32317 | } | |
32318 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32319 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32320 | } | |
32321 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32322 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32323 | } | |
32324 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32325 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32326 | } | |
32327 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32328 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32329 | } | |
32330 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32331 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32332 | } | |
32333 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32334 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32335 | } | |
32336 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32337 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32338 | } | |
32339 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32340 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32341 | } | |
32342 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32343 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32344 | } | |
32345 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
32346 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32347 | } | |
32348 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
32349 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
32350 | } | |
32351 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32352 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32353 | } | |
32354 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32355 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32356 | } | |
32357 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32358 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32359 | } | |
32360 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32361 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32362 | } | |
32363 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32364 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32365 | } | |
32366 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32367 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32368 | } | |
32369 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
32370 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32371 | } | |
32372 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
32373 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
32374 | } | |
32375 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
32376 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
32377 | } | |
32378 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32379 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32380 | } | |
32381 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
32382 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
32383 | } | |
32384 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
32385 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
32386 | } | |
32387 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
32388 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
32389 | } | |
32390 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
32391 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
32392 | } | |
32393 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
32394 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
32395 | } | |
32396 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
32397 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
32398 | } | |
32399 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
32400 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32401 | } | |
32402 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
32403 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
32404 | } | |
32405 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
32406 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
32407 | } | |
32408 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
32409 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
32410 | } | |
32411 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
32412 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
32413 | } | |
32414 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
32415 | return (void *)((wxControl *) ((wxGauge *) x)); | |
32416 | } | |
32417 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
32418 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
32419 | } | |
32420 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
32421 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
32422 | } | |
32423 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
32424 | return (void *)((wxControl *) ((wxButton *) x)); | |
32425 | } | |
32426 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
32427 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
32428 | } | |
32429 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
32430 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32431 | } | |
32432 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
32433 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
32434 | } | |
32435 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
32436 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
32437 | } | |
32438 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
32439 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
32440 | } | |
32441 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
32442 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
32443 | } | |
32444 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
32445 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
32446 | } | |
32447 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
32448 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
32449 | } | |
32450 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
32451 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
32452 | } | |
32453 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
32454 | return (void *)((wxControl *) ((wxSlider *) x)); | |
32455 | } | |
32456 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
32457 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
32458 | } | |
32459 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
32460 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
32461 | } | |
32462 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
32463 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
32464 | } | |
32465 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
32466 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
32467 | } | |
32468 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
32469 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
32470 | } | |
32471 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
32472 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32473 | } | |
32474 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
32475 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32476 | } | |
32477 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
32478 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32479 | } | |
32480 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
32481 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
32482 | } | |
32483 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
32484 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32485 | } | |
32486 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
32487 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32488 | } | |
32489 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
32490 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32491 | } | |
32492 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
32493 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32494 | } | |
32495 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32496 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32497 | } | |
32498 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32499 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32500 | } | |
32501 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32502 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32503 | } | |
32504 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
32505 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32506 | } | |
32507 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32508 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32509 | } | |
32510 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
32511 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32512 | } | |
32513 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
32514 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32515 | } | |
32516 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32517 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32518 | } | |
32519 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32520 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32521 | } | |
32522 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
32523 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32524 | } | |
32525 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
32526 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32527 | } | |
32528 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
32529 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32530 | } | |
32531 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
32532 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32533 | } | |
32534 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
32535 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32536 | } | |
32537 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32538 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32539 | } | |
32540 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
32541 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32542 | } | |
32543 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
32544 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32545 | } | |
32546 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32547 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32548 | } | |
32549 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
32550 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32551 | } | |
32552 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
32553 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32554 | } | |
32555 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
32556 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32557 | } | |
32558 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
32559 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32560 | } | |
32561 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
32562 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32563 | } | |
32564 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
32565 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32566 | } | |
32567 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
32568 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32569 | } | |
32570 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
32571 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32572 | } | |
32573 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
32574 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32575 | } | |
32576 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
32577 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32578 | } | |
32579 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
32580 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32581 | } | |
32582 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
32583 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32584 | } | |
32585 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
32586 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32587 | } | |
32588 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
32589 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32590 | } | |
32591 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
32592 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32593 | } | |
32594 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
32595 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32596 | } | |
32597 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
32598 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32599 | } | |
32600 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
32601 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
32602 | } | |
32603 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
32604 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32605 | } | |
32606 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
32607 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32608 | } | |
32609 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
32610 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32611 | } | |
32612 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
32613 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
32614 | } | |
32615 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
32616 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
32617 | } | |
32618 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
32619 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
32620 | } | |
32621 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
32622 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
32623 | } | |
32624 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
32625 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32626 | } | |
32627 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
32628 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32629 | } | |
32630 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
32631 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
32632 | } | |
32633 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32634 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32635 | } | |
32636 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32637 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32638 | } | |
32639 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32640 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32641 | } | |
32642 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32643 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32644 | } | |
32645 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32646 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32647 | } | |
32648 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
32649 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32650 | } | |
32651 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
32652 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32653 | } | |
32654 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32655 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32656 | } | |
32657 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32658 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32659 | } | |
32660 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32661 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32662 | } | |
32663 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32664 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32665 | } | |
32666 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
32667 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32668 | } | |
32669 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
32670 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32671 | } | |
32672 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32673 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32674 | } | |
32675 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32676 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32677 | } | |
32678 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32679 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32680 | } | |
32681 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32682 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32683 | } | |
32684 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32685 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32686 | } | |
32687 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
32688 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32689 | } | |
32690 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
32691 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32692 | } | |
32693 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
32694 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32695 | } | |
32696 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32697 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32698 | } | |
32699 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32700 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32701 | } | |
32702 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32703 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32704 | } | |
32705 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32706 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32707 | } | |
32708 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32709 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32710 | } | |
32711 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32712 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32713 | } | |
32714 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
32715 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32716 | } | |
32717 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32718 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32719 | } | |
32720 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
32721 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32722 | } | |
32723 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
32724 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32725 | } | |
32726 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
32727 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32728 | } | |
32729 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
32730 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32731 | } | |
32732 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
32733 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32734 | } | |
32735 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32736 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32737 | } | |
32738 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
32739 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32740 | } | |
32741 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32742 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32743 | } | |
32744 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32745 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32746 | } | |
32747 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
32748 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32749 | } | |
32750 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
32751 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32752 | } | |
32753 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
32754 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32755 | } | |
32756 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32757 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32758 | } | |
32759 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32760 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32761 | } | |
32762 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
32763 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32764 | } | |
32765 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32766 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32767 | } | |
32768 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
32769 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32770 | } | |
32771 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
32772 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32773 | } | |
32774 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32775 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32776 | } | |
32777 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
32778 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32779 | } | |
32780 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32781 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32782 | } | |
32783 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32784 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32785 | } | |
32786 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32787 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32788 | } | |
32789 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32790 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32791 | } | |
32792 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32793 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32794 | } | |
32795 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32796 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32797 | } | |
32798 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32799 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32800 | } | |
32801 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
32802 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32803 | } | |
32804 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
32805 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
32806 | } | |
32807 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32808 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32809 | } | |
32810 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32811 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32812 | } | |
32813 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32814 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32815 | } | |
32816 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32817 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32818 | } | |
32819 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32820 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32821 | } | |
32822 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32823 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32824 | } | |
32825 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32826 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32827 | } | |
32828 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32829 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32830 | } | |
32831 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32832 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32833 | } | |
32834 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32835 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32836 | } | |
32837 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32838 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32839 | } | |
32840 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32841 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32842 | } | |
32843 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32844 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32845 | } | |
32846 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
32847 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32848 | } | |
32849 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
32850 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32851 | } | |
32852 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
32853 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32854 | } | |
32855 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
32856 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32857 | } | |
32858 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
32859 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
32860 | } | |
32861 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
32862 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32863 | } | |
32864 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
32865 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32866 | } | |
32867 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
32868 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32869 | } | |
32870 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
32871 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32872 | } | |
32873 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
32874 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32875 | } | |
32876 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
32877 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32878 | } | |
32879 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
32880 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32881 | } | |
32882 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
32883 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
32884 | } | |
32885 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
32886 | return (void *)((wxObject *) ((wxListItem *) x)); | |
32887 | } | |
32888 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32889 | return (void *)((wxObject *) ((wxImage *) x)); | |
32890 | } | |
32891 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
32892 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
32893 | } | |
32894 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32895 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32896 | } | |
32897 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
32898 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32899 | } | |
32900 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
32901 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
32902 | } | |
32903 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
32904 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32905 | } | |
32906 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
32907 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32908 | } | |
32909 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
32910 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32911 | } | |
32912 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32913 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32914 | } | |
32915 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32916 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32917 | } | |
32918 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32919 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32920 | } | |
32921 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32922 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32923 | } | |
32924 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32925 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32926 | } | |
32927 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32928 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32929 | } | |
32930 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32931 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32932 | } | |
32933 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32934 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32935 | } | |
32936 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32937 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32938 | } | |
32939 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32940 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32941 | } | |
32942 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32943 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32944 | } | |
32945 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32946 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32947 | } | |
32948 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32949 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32950 | } | |
32951 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
32952 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32953 | } | |
32954 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32955 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32956 | } | |
32957 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32958 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32959 | } | |
32960 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
32961 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32962 | } | |
32963 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32964 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32965 | } | |
32966 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32967 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32968 | } | |
32969 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32970 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32971 | } | |
32972 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32973 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32974 | } | |
32975 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
32976 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
32977 | } | |
32978 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
32979 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32980 | } | |
32981 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32982 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32983 | } | |
32984 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32985 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32986 | } | |
32987 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
32988 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
32989 | } | |
32990 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
32991 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
32992 | } | |
32993 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32994 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32995 | } | |
32996 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
32997 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32998 | } | |
32999 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
33000 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
33001 | } | |
33002 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
33003 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
33004 | } | |
33005 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
33006 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
33007 | } | |
33008 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
33009 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33010 | } | |
33011 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
33012 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
33013 | } | |
33014 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
33015 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33016 | } | |
33017 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
33018 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
33019 | } | |
33020 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
33021 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
33022 | } | |
33023 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
33024 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
33025 | } | |
33026 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
33027 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
33028 | } | |
33029 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33030 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33031 | } | |
33032 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
33033 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
33034 | } | |
33035 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
33036 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
33037 | } | |
33038 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
33039 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
33040 | } | |
33041 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
33042 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
33043 | } | |
33044 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
33045 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
33046 | } | |
33047 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
33048 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
33049 | } | |
33050 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
33051 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33052 | } | |
33053 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
33054 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33055 | } | |
33056 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
33057 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33058 | } | |
33059 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
33060 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33061 | } | |
33062 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
33063 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
33064 | } | |
33065 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
33066 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
33067 | } | |
33068 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
33069 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
33070 | } | |
33071 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
33072 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
33073 | } | |
33074 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
33075 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
33076 | } | |
33077 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
33078 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
33079 | } | |
33080 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
33081 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
33082 | } | |
33083 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
33084 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
33085 | } | |
33086 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
33087 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33088 | } | |
33089 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
33090 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33091 | } | |
33092 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
33093 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
33094 | } | |
33095 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
33096 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33097 | } | |
33098 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
33099 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
33100 | } | |
33101 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
33102 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
33103 | } | |
33104 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
33105 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
33106 | } | |
33107 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
33108 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33109 | } | |
33110 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
33111 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33112 | } | |
33113 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
33114 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33115 | } | |
33116 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
33117 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
33118 | } | |
33119 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
33120 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
33121 | } | |
33122 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
33123 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
33124 | } | |
33125 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
33126 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33127 | } | |
33128 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
33129 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33130 | } | |
33131 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
33132 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33133 | } | |
33134 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
33135 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
33136 | } | |
33137 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
33138 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33139 | } | |
33140 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
33141 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33142 | } | |
33143 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
33144 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33145 | } | |
33146 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
33147 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
33148 | } | |
33149 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
33150 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
33151 | } | |
33152 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
33153 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
33154 | } | |
33155 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
33156 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
33157 | } | |
33158 | 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}}; | |
33159 | 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}}; | |
33160 | 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}}; | |
33161 | 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}}; | |
33162 | 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}}; | |
33163 | 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}}; | |
33164 | 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}}; | |
33165 | 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}}; | |
33166 | 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}}; | |
33167 | 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}}; | |
33168 | 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}}; | |
33169 | 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}}; | |
33170 | 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}}; | |
33171 | 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}}; | |
33172 | 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}}; | |
33173 | 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}}; | |
33174 | 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}}; | |
33175 | 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}}; | |
33176 | 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}}; | |
33177 | 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}}; | |
33178 | 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}}; | |
33179 | 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}}; | |
33180 | 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}}; | |
33181 | 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}}; | |
33182 | 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}}; | |
33183 | 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}}; | |
33184 | 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}}; | |
33185 | 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}}; | |
33186 | 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}}; | |
33187 | 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}}; | |
33188 | 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}}; | |
33189 | 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}}; | |
33190 | 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}}; | |
33191 | 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}}; | |
33192 | 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}}; | |
33193 | 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}}; | |
33194 | 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}}; | |
33195 | 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}}; | |
33196 | 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}}; | |
33197 | 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}}; | |
33198 | 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}}; | |
33199 | 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}}; | |
33200 | 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}}; | |
33201 | 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}}; | |
33202 | 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}}; | |
33203 | 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}}; | |
33204 | 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}}; | |
33205 | 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}}; | |
33206 | 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}}; | |
33207 | 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}}; | |
33208 | 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}}; | |
33209 | 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}}; | |
33210 | 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}}; | |
33211 | 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}}; | |
33212 | 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}}; | |
33213 | 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}}; | |
33214 | 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}}; | |
33215 | 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}}; | |
33216 | 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}}; | |
33217 | 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}}; | |
33218 | 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}}; | |
33219 | 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}}; | |
33220 | 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}}; | |
33221 | 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}}; | |
33222 | 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}}; | |
33223 | 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}}; | |
33224 | 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}}; | |
33225 | 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}}; | |
33226 | 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}}; | |
33227 | 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}}; | |
33228 | 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}}; | |
33229 | 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}}; | |
33230 | 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}}; | |
33231 | 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}}; | |
33232 | 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}}; | |
33233 | 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}}; | |
33234 | 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}}; | |
33235 | 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}}; | |
33236 | 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}}; | |
33237 | 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}}; | |
33238 | 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}}; | |
33239 | 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}}; | |
33240 | 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}}; | |
33241 | 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}}; | |
33242 | 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}}; | |
33243 | ||
33244 | static swig_type_info *swig_types_initial[] = { | |
33245 | _swigt__p_wxTextUrlEvent, | |
33246 | _swigt__p_wxBookCtrlEvent, | |
33247 | _swigt__p_wxSizer, | |
33248 | _swigt__p_wxCheckBox, | |
33249 | _swigt__p_wxPyTreeCtrl, | |
33250 | _swigt__p_wxEvent, | |
33251 | _swigt__p_wxGenericDirCtrl, | |
33252 | _swigt__p_bool, | |
33253 | _swigt__p_wxPyTreeItemData, | |
33254 | _swigt__p_wxItemContainer, | |
33255 | _swigt__p_wxPyListCtrl, | |
33256 | _swigt__p_wxDirFilterListCtrl, | |
33257 | _swigt__p_wxStaticLine, | |
33258 | _swigt__p_wxControl, | |
33259 | _swigt__p_wxPyControl, | |
33260 | _swigt__p_wxGauge, | |
33261 | _swigt__p_wxToolBarBase, | |
33262 | _swigt__p_wxFont, | |
33263 | _swigt__p_wxToggleButton, | |
33264 | _swigt__p_wxRadioButton, | |
33265 | _swigt__p_wxChoice, | |
33266 | _swigt__p_wxMemoryDC, | |
33267 | _swigt__p_wxListItemAttr, | |
33268 | _swigt__p_void, | |
33269 | _swigt__p_int, | |
33270 | _swigt__p_wxSize, | |
33271 | _swigt__p_wxDC, | |
33272 | _swigt__p_wxListView, | |
33273 | _swigt__p_wxIcon, | |
33274 | _swigt__p_wxVisualAttributes, | |
33275 | _swigt__p_wxTextCtrl, | |
33276 | _swigt__p_wxNotebook, | |
33277 | _swigt__p_wxNotifyEvent, | |
33278 | _swigt__p_wxArrayString, | |
33279 | _swigt__p_wxListbook, | |
33280 | _swigt__p_wxStaticBitmap, | |
33281 | _swigt__p_wxSlider, | |
33282 | _swigt__p_wxStaticBox, | |
33283 | _swigt__p_wxArrayInt, | |
33284 | _swigt__p_wxContextHelp, | |
33285 | _swigt__p_long, | |
33286 | _swigt__p_wxEvtHandler, | |
33287 | _swigt__p_wxListEvent, | |
33288 | _swigt__p_wxCheckListBox, | |
33289 | _swigt__p_wxListBox, | |
33290 | _swigt__p_wxBookCtrl, | |
33291 | _swigt__p_wxSpinButton, | |
33292 | _swigt__p_wxButton, | |
33293 | _swigt__p_wxBitmapButton, | |
33294 | _swigt__p_wxRect, | |
33295 | _swigt__p_wxContextHelpButton, | |
33296 | _swigt__p_wxRadioBox, | |
33297 | _swigt__p_wxScrollBar, | |
33298 | _swigt__p_char, | |
33299 | _swigt__p_wxTreeItemId, | |
33300 | _swigt__p_wxComboBox, | |
33301 | _swigt__p_wxHelpEvent, | |
33302 | _swigt__p_wxListItem, | |
33303 | _swigt__p_wxNotebookSizer, | |
33304 | _swigt__p_wxSpinEvent, | |
33305 | _swigt__p_wxGenericDragImage, | |
33306 | _swigt__p_wxSpinCtrl, | |
33307 | _swigt__p_wxImageList, | |
33308 | _swigt__p_wxHelpProvider, | |
33309 | _swigt__p_wxTextAttr, | |
33310 | _swigt__p_wxSimpleHelpProvider, | |
33311 | _swigt__p_wxPoint, | |
33312 | _swigt__p_wxListbookEvent, | |
33313 | _swigt__p_wxNotebookEvent, | |
33314 | _swigt__p_wxObject, | |
33315 | _swigt__p_wxCursor, | |
33316 | _swigt__p_wxKeyEvent, | |
33317 | _swigt__p_wxWindow, | |
33318 | _swigt__p_wxString, | |
33319 | _swigt__p_wxBitmap, | |
33320 | _swigt__p_wxTreeEvent, | |
33321 | _swigt__p_wxMouseEvent, | |
33322 | _swigt__p_wxCommandEvent, | |
33323 | _swigt__p_wxStaticText, | |
33324 | _swigt__p_wxControlWithItems, | |
33325 | _swigt__p_wxToolBarToolBase, | |
33326 | _swigt__p_wxColour, | |
33327 | _swigt__p_wxToolBar, | |
33328 | _swigt__p_wxBookCtrlSizer, | |
33329 | _swigt__p_wxValidator, | |
33330 | 0 | |
33331 | }; | |
33332 | ||
33333 | ||
33334 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33335 | ||
33336 | static swig_const_info swig_const_table[] = { | |
c370783e | 33337 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
33338 | |
33339 | #ifdef __cplusplus | |
33340 | } | |
33341 | #endif | |
33342 | ||
33343 | #ifdef __cplusplus | |
33344 | extern "C" | |
33345 | #endif | |
33346 | SWIGEXPORT(void) SWIG_init(void) { | |
33347 | static PyObject *SWIG_globals = 0; | |
33348 | static int typeinit = 0; | |
33349 | PyObject *m, *d; | |
33350 | int i; | |
33351 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
33352 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33353 | d = PyModule_GetDict(m); | |
33354 | ||
33355 | if (!typeinit) { | |
33356 | for (i = 0; swig_types_initial[i]; i++) { | |
33357 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33358 | } | |
33359 | typeinit = 1; | |
33360 | } | |
33361 | SWIG_InstallConstants(d,swig_const_table); | |
33362 | ||
33363 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
33364 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
c370783e RD |
33365 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT)); |
33366 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP)); | |
33367 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT)); | |
33368 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM)); | |
33369 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT)); | |
33370 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW)); | |
d55e5bfc | 33371 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
c370783e RD |
33372 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE)); |
33373 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE)); | |
33374 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
33375 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED)); | |
33376 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED)); | |
33377 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED)); | |
d55e5bfc RD |
33378 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
33379 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
33380 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
c370783e RD |
33381 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL)); |
33382 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL)); | |
33383 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH)); | |
33384 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR)); | |
d55e5bfc RD |
33385 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
33386 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
33387 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
33388 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
33389 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
c370783e RD |
33390 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL)); |
33391 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL)); | |
33392 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY)); | |
33393 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE)); | |
33394 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB)); | |
33395 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT)); | |
33396 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER)); | |
33397 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT)); | |
33398 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE)); | |
33399 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH)); | |
33400 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER)); | |
33401 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD)); | |
33402 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL)); | |
33403 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL)); | |
33404 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP)); | |
33405 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP)); | |
33406 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP)); | |
33407 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2)); | |
33408 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
33409 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT)); | |
33410 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE)); | |
33411 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER)); | |
33412 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT)); | |
33413 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
33414 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
33415 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
33416 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE)); | |
33417 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE)); | |
33418 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
33419 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC)); | |
33420 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
33421 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT)); | |
33422 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT)); | |
33423 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT)); | |
33424 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
33425 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS)); | |
33426 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN)); | |
33427 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE)); | |
33428 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT)); | |
33429 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW)); | |
33430 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND)); | |
d55e5bfc RD |
33431 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
33432 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
33433 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
33434 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
33435 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
33436 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
33437 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
c370783e RD |
33438 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL)); |
33439 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL)); | |
33440 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS)); | |
33441 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP)); | |
d55e5bfc RD |
33442 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
33443 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
33444 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
33445 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
33446 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
33447 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
33448 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); | |
c370783e RD |
33449 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH)); |
33450 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP)); | |
33451 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT)); | |
33452 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT)); | |
33453 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM)); | |
33454 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE)); | |
33455 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE)); | |
33456 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON)); | |
33457 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL)); | |
33458 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM)); | |
d55e5bfc RD |
33459 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
33460 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
c370783e RD |
33461 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT)); |
33462 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP)); | |
33463 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM)); | |
33464 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT)); | |
33465 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT)); | |
33466 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK)); | |
d55e5bfc RD |
33467 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
33468 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
c370783e RD |
33469 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON)); |
33470 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR)); | |
33471 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL)); | |
33472 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL)); | |
33473 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL)); | |
33474 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS)); | |
33475 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT)); | |
33476 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE)); | |
33477 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS)); | |
33478 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT)); | |
33479 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER)); | |
33480 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN)); | |
33481 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT)); | |
33482 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT)); | |
d55e5bfc | 33483 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
c370783e RD |
33484 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES)); |
33485 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES)); | |
33486 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON)); | |
33487 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON)); | |
33488 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST)); | |
33489 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT)); | |
33490 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP)); | |
33491 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT)); | |
33492 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE)); | |
33493 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL)); | |
33494 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS)); | |
33495 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER)); | |
33496 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER)); | |
33497 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL)); | |
33498 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING)); | |
33499 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING)); | |
33500 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE)); | |
33501 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN)); | |
33502 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT)); | |
33503 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE)); | |
33504 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT)); | |
33505 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE)); | |
33506 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA)); | |
33507 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM)); | |
33508 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH)); | |
33509 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT)); | |
33510 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE)); | |
33511 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED)); | |
33512 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED)); | |
33513 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED)); | |
33514 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT)); | |
33515 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED)); | |
33516 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED)); | |
33517 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE)); | |
33518 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED)); | |
33519 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE)); | |
33520 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE)); | |
33521 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW)); | |
33522 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE)); | |
33523 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON)); | |
33524 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL)); | |
33525 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
33526 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
33527 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT)); | |
33528 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT)); | |
33529 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM)); | |
33530 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE)); | |
33531 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL)); | |
33532 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW)); | |
33533 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT)); | |
33534 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT)); | |
33535 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT)); | |
33536 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT)); | |
33537 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP)); | |
33538 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
33539 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT)); | |
33540 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT)); | |
33541 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE)); | |
33542 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER)); | |
33543 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE)); | |
33544 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER)); | |
33545 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS)); | |
33546 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON)); | |
33547 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL)); | |
33548 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP)); | |
33549 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN)); | |
33550 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT)); | |
33551 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT)); | |
d55e5bfc RD |
33552 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
33553 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
33554 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
33555 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
33556 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
33557 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
33558 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
33559 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
33560 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
33561 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
33562 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
33563 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
33564 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
33565 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
33566 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
33567 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
33568 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
33569 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
33570 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
33571 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
33572 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
33573 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
33574 | ||
33575 | // Map renamed classes back to their common name for OOR | |
33576 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
33577 | ||
33578 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
c370783e RD |
33579 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS)); |
33580 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS)); | |
33581 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES)); | |
33582 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT)); | |
33583 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE)); | |
33584 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE)); | |
33585 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED)); | |
33586 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
33587 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS)); | |
33588 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT)); | |
33589 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES)); | |
33590 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
33591 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE)); | |
33592 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS)); | |
33593 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS)); | |
33594 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS)); | |
33595 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal)); | |
33596 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected)); | |
33597 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded)); | |
33598 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded)); | |
33599 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max)); | |
33600 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE)); | |
33601 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW)); | |
33602 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE)); | |
33603 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
33604 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON)); | |
33605 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT)); | |
33606 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL)); | |
33607 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
33608 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
33609 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT)); | |
33610 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT)); | |
33611 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
33612 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
33613 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM)); | |
d55e5bfc RD |
33614 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
33615 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
33616 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
33617 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
33618 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
33619 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
33620 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
33621 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
33622 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
33623 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
33624 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
33625 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
33626 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
33627 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
33628 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
33629 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
33630 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
33631 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
33632 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
33633 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
33634 | ||
33635 | // Map renamed classes back to their common name for OOR | |
33636 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
33637 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
33638 | ||
33639 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
c370783e RD |
33640 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY)); |
33641 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST)); | |
33642 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS)); | |
33643 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL)); | |
33644 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS)); | |
33645 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP)); | |
33646 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP)); | |
d55e5bfc RD |
33647 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
33648 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
33649 | ||
33650 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
33651 | ||
33652 | } | |
33653 |