]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/controls.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
dbbb98cd | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
dbbb98cd | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrolsc |
55 | ||
56 | #define SWIG_name "controlsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/slider.h> | |
b639c3c5 | 60 | #include <wx/spinbutt.h> |
f6bcfd97 | 61 | #include <wx/spinctrl.h> |
cf694132 | 62 | #include <wx/dynarray.h> |
8bf5d46e | 63 | #include <wx/statline.h> |
6999b0d8 | 64 | //#include <wx/toggbutt.h> |
8ab979d7 RD |
65 | |
66 | #ifdef __WXMSW__ | |
9c039d08 RD |
67 | #if wxUSE_OWNER_DRAWN |
68 | #include <wx/checklst.h> | |
69 | #endif | |
8ab979d7 RD |
70 | #endif |
71 | ||
be4d9c1f RD |
72 | #ifdef __WXGTK__ |
73 | #include <wx/checklst.h> | |
74 | #endif | |
75 | ||
bb0054cd | 76 | |
8ab979d7 RD |
77 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { |
78 | PyObject* o2; | |
dbbb98cd | 79 | if (!target) { |
8ab979d7 | 80 | target = o; |
dbbb98cd | 81 | } else if (target == Py_None) { |
8ab979d7 RD |
82 | Py_DECREF(Py_None); |
83 | target = o; | |
dbbb98cd | 84 | } else { |
8ab979d7 RD |
85 | if (!PyList_Check(target)) { |
86 | o2 = target; | |
87 | target = PyList_New(0); | |
88 | PyList_Append(target, o2); | |
89 | Py_XDECREF(o2); | |
90 | } | |
91 | PyList_Append(target,o); | |
92 | Py_XDECREF(o); | |
93 | } | |
94 | return target; | |
95 | } | |
96 | ||
97 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
98 | PyObject* o2; | |
99 | PyObject* o3; | |
100 | ||
dbbb98cd | 101 | if (!target) { |
8ab979d7 | 102 | target = o; |
dbbb98cd | 103 | } else if (target == Py_None) { |
8ab979d7 RD |
104 | Py_DECREF(Py_None); |
105 | target = o; | |
dbbb98cd | 106 | } else { |
8ab979d7 RD |
107 | if (!PyTuple_Check(target)) { |
108 | o2 = target; | |
109 | target = PyTuple_New(1); | |
110 | PyTuple_SetItem(target, 0, o2); | |
111 | } | |
dbbb98cd RD |
112 | o3 = PyTuple_New(1); |
113 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
114 | |
115 | o2 = target; | |
dbbb98cd RD |
116 | target = PySequence_Concat(o2, o3); |
117 | Py_DECREF(o2); | |
8ab979d7 RD |
118 | Py_DECREF(o3); |
119 | } | |
120 | return target; | |
121 | } | |
122 | ||
8ab979d7 RD |
123 | static char* wxStringErrorMsg = "string type is required for parameter"; |
124 | ||
6999b0d8 RD |
125 | wxSize wxButton_GetDefaultSize() { |
126 | return wxButton::GetDefaultSize(); | |
127 | } | |
1d99702e RD |
128 | #ifdef __cplusplus |
129 | extern "C" { | |
130 | #endif | |
2f90df85 RD |
131 | static int _wrap_wxDefaultValidator_set(PyObject *val) { |
132 | ||
133 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
134 | return 1; | |
135 | } | |
136 | ||
137 | static PyObject *_wrap_wxDefaultValidator_get() { | |
138 | PyObject * pyobj; | |
139 | char ptemp[128]; | |
140 | ||
141 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
142 | pyobj = PyString_FromString(ptemp); | |
143 | return pyobj; | |
144 | } | |
145 | ||
6999b0d8 RD |
146 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
147 | PyObject * _resultobj; | |
148 | wxSize * _result; | |
149 | char *_kwnames[] = { NULL }; | |
150 | char _ptemp[128]; | |
151 | ||
152 | self = self; | |
153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
154 | return NULL; | |
155 | { | |
156 | wxPy_BEGIN_ALLOW_THREADS; | |
157 | _result = new wxSize (wxButton_GetDefaultSize()); | |
158 | ||
159 | wxPy_END_ALLOW_THREADS; | |
160 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
161 | _resultobj = Py_BuildValue("s",_ptemp); | |
162 | return _resultobj; | |
163 | } | |
164 | ||
8ab979d7 RD |
165 | static void *SwigwxControlTowxWindow(void *ptr) { |
166 | wxControl *src; | |
167 | wxWindow *dest; | |
168 | src = (wxControl *) ptr; | |
169 | dest = (wxWindow *) src; | |
170 | return (void *) dest; | |
171 | } | |
172 | ||
173 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
174 | wxControl *src; | |
175 | wxEvtHandler *dest; | |
176 | src = (wxControl *) ptr; | |
177 | dest = (wxEvtHandler *) src; | |
178 | return (void *) dest; | |
179 | } | |
180 | ||
9b3d3bc4 | 181 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
6999b0d8 RD |
182 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
183 | PyObject * _resultobj; | |
184 | wxControl * _result; | |
9b3d3bc4 RD |
185 | wxWindow * _arg0; |
186 | wxWindowID _arg1; | |
e508a2b6 RD |
187 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
188 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
9b3d3bc4 | 189 | long _arg4 = (long ) 0; |
e508a2b6 | 190 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9b3d3bc4 RD |
191 | char * _arg6 = (char *) "control"; |
192 | PyObject * _argo0 = 0; | |
193 | wxPoint temp; | |
194 | PyObject * _obj2 = 0; | |
195 | wxSize temp0; | |
196 | PyObject * _obj3 = 0; | |
197 | PyObject * _argo5 = 0; | |
198 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
6999b0d8 RD |
199 | char _ptemp[128]; |
200 | ||
201 | self = self; | |
9b3d3bc4 RD |
202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
203 | return NULL; | |
204 | if (_argo0) { | |
205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
208 | return NULL; | |
209 | } | |
210 | } | |
211 | if (_obj2) | |
212 | { | |
213 | _arg2 = &temp; | |
214 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6999b0d8 | 215 | return NULL; |
9b3d3bc4 RD |
216 | } |
217 | if (_obj3) | |
218 | { | |
219 | _arg3 = &temp0; | |
220 | if (! wxSize_helper(_obj3, &_arg3)) | |
221 | return NULL; | |
222 | } | |
223 | if (_argo5) { | |
224 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
225 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
227 | return NULL; | |
228 | } | |
229 | } | |
6999b0d8 RD |
230 | { |
231 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 232 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
6999b0d8 RD |
233 | |
234 | wxPy_END_ALLOW_THREADS; | |
235 | } if (_result) { | |
236 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
237 | _resultobj = Py_BuildValue("s",_ptemp); | |
238 | } else { | |
239 | Py_INCREF(Py_None); | |
240 | _resultobj = Py_None; | |
241 | } | |
242 | return _resultobj; | |
243 | } | |
244 | ||
8ab979d7 | 245 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) |
efc5f224 | 246 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
247 | PyObject * _resultobj; |
248 | wxControl * _arg0; | |
249 | wxCommandEvent * _arg1; | |
1d99702e RD |
250 | PyObject * _argo0 = 0; |
251 | PyObject * _argo1 = 0; | |
efc5f224 | 252 | char *_kwnames[] = { "self","event", NULL }; |
8ab979d7 RD |
253 | |
254 | self = self; | |
efc5f224 | 255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 256 | return NULL; |
1d99702e RD |
257 | if (_argo0) { |
258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); |
261 | return NULL; | |
262 | } | |
263 | } | |
1d99702e RD |
264 | if (_argo1) { |
265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
8ab979d7 RD |
267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); |
268 | return NULL; | |
269 | } | |
270 | } | |
cf694132 RD |
271 | { |
272 | wxPy_BEGIN_ALLOW_THREADS; | |
273 | wxControl_Command(_arg0,*_arg1); | |
274 | ||
275 | wxPy_END_ALLOW_THREADS; | |
276 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
277 | _resultobj = Py_None; |
278 | return _resultobj; | |
279 | } | |
280 | ||
281 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
efc5f224 | 282 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
283 | PyObject * _resultobj; |
284 | wxString * _result; | |
285 | wxControl * _arg0; | |
1d99702e | 286 | PyObject * _argo0 = 0; |
efc5f224 | 287 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
288 | |
289 | self = self; | |
efc5f224 | 290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 291 | return NULL; |
1d99702e RD |
292 | if (_argo0) { |
293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); |
296 | return NULL; | |
297 | } | |
298 | } | |
8ab979d7 | 299 | { |
cf694132 RD |
300 | wxPy_BEGIN_ALLOW_THREADS; |
301 | _result = new wxString (wxControl_GetLabel(_arg0)); | |
302 | ||
303 | wxPy_END_ALLOW_THREADS; | |
304 | }{ | |
eec92d76 | 305 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
306 | } |
307 | { | |
308 | delete _result; | |
309 | } | |
310 | return _resultobj; | |
311 | } | |
312 | ||
313 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
efc5f224 | 314 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
315 | PyObject * _resultobj; |
316 | wxControl * _arg0; | |
317 | wxString * _arg1; | |
1d99702e | 318 | PyObject * _argo0 = 0; |
8ab979d7 | 319 | PyObject * _obj1 = 0; |
efc5f224 | 320 | char *_kwnames[] = { "self","label", NULL }; |
8ab979d7 RD |
321 | |
322 | self = self; | |
efc5f224 | 323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 324 | return NULL; |
1d99702e RD |
325 | if (_argo0) { |
326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); |
329 | return NULL; | |
330 | } | |
331 | } | |
332 | { | |
185d7c3e RD |
333 | #if PYTHON_API_VERSION >= 1009 |
334 | char* tmpPtr; int tmpSize; | |
335 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
336 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
337 | return NULL; | |
338 | } | |
339 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
340 | return NULL; | |
341 | _arg1 = new wxString(tmpPtr, tmpSize); | |
342 | #else | |
8ab979d7 RD |
343 | if (!PyString_Check(_obj1)) { |
344 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
345 | return NULL; | |
346 | } | |
185d7c3e RD |
347 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
348 | #endif | |
8ab979d7 | 349 | } |
cf694132 RD |
350 | { |
351 | wxPy_BEGIN_ALLOW_THREADS; | |
352 | wxControl_SetLabel(_arg0,*_arg1); | |
353 | ||
354 | wxPy_END_ALLOW_THREADS; | |
355 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
356 | _resultobj = Py_None; |
357 | { | |
358 | if (_obj1) | |
359 | delete _arg1; | |
360 | } | |
361 | return _resultobj; | |
362 | } | |
363 | ||
364 | static void *SwigwxButtonTowxControl(void *ptr) { | |
365 | wxButton *src; | |
366 | wxControl *dest; | |
367 | src = (wxButton *) ptr; | |
368 | dest = (wxControl *) src; | |
369 | return (void *) dest; | |
370 | } | |
371 | ||
372 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
373 | wxButton *src; | |
374 | wxWindow *dest; | |
375 | src = (wxButton *) ptr; | |
376 | dest = (wxWindow *) src; | |
377 | return (void *) dest; | |
378 | } | |
379 | ||
380 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
381 | wxButton *src; | |
382 | wxEvtHandler *dest; | |
383 | src = (wxButton *) ptr; | |
384 | dest = (wxEvtHandler *) src; | |
385 | return (void *) dest; | |
386 | } | |
387 | ||
388 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
efc5f224 | 389 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
390 | PyObject * _resultobj; |
391 | wxButton * _result; | |
392 | wxWindow * _arg0; | |
393 | wxWindowID _arg1; | |
394 | wxString * _arg2; | |
e508a2b6 RD |
395 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
396 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 397 | long _arg5 = (long ) 0; |
e508a2b6 | 398 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
399 | char * _arg7 = (char *) "button"; |
400 | PyObject * _argo0 = 0; | |
8ab979d7 | 401 | PyObject * _obj2 = 0; |
2f90df85 RD |
402 | wxPoint temp; |
403 | PyObject * _obj3 = 0; | |
404 | wxSize temp0; | |
405 | PyObject * _obj4 = 0; | |
1d99702e | 406 | PyObject * _argo6 = 0; |
efc5f224 | 407 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
408 | char _ptemp[128]; |
409 | ||
410 | self = self; | |
2f90df85 | 411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 412 | return NULL; |
1d99702e RD |
413 | if (_argo0) { |
414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); |
417 | return NULL; | |
418 | } | |
419 | } | |
420 | { | |
185d7c3e RD |
421 | #if PYTHON_API_VERSION >= 1009 |
422 | char* tmpPtr; int tmpSize; | |
423 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
424 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
425 | return NULL; | |
426 | } | |
427 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
428 | return NULL; | |
429 | _arg2 = new wxString(tmpPtr, tmpSize); | |
430 | #else | |
8ab979d7 RD |
431 | if (!PyString_Check(_obj2)) { |
432 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
433 | return NULL; | |
434 | } | |
185d7c3e RD |
435 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
436 | #endif | |
8ab979d7 | 437 | } |
2f90df85 RD |
438 | if (_obj3) |
439 | { | |
440 | _arg3 = &temp; | |
441 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 442 | return NULL; |
2f90df85 RD |
443 | } |
444 | if (_obj4) | |
445 | { | |
446 | _arg4 = &temp0; | |
447 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 448 | return NULL; |
2f90df85 | 449 | } |
1d99702e RD |
450 | if (_argo6) { |
451 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
452 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); |
454 | return NULL; | |
455 | } | |
456 | } | |
cf694132 RD |
457 | { |
458 | wxPy_BEGIN_ALLOW_THREADS; | |
459 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
460 | ||
461 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
462 | } if (_result) { |
463 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
464 | _resultobj = Py_BuildValue("s",_ptemp); | |
465 | } else { | |
466 | Py_INCREF(Py_None); | |
467 | _resultobj = Py_None; | |
468 | } | |
8ab979d7 RD |
469 | { |
470 | if (_obj2) | |
471 | delete _arg2; | |
472 | } | |
473 | return _resultobj; | |
474 | } | |
475 | ||
476 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) | |
efc5f224 | 477 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
478 | PyObject * _resultobj; |
479 | wxButton * _arg0; | |
1d99702e | 480 | PyObject * _argo0 = 0; |
efc5f224 | 481 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
482 | |
483 | self = self; | |
efc5f224 | 484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) |
8ab979d7 | 485 | return NULL; |
1d99702e RD |
486 | if (_argo0) { |
487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
8ab979d7 RD |
489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); |
490 | return NULL; | |
491 | } | |
492 | } | |
cf694132 RD |
493 | { |
494 | wxPy_BEGIN_ALLOW_THREADS; | |
495 | wxButton_SetDefault(_arg0); | |
496 | ||
497 | wxPy_END_ALLOW_THREADS; | |
498 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
499 | _resultobj = Py_None; |
500 | return _resultobj; | |
501 | } | |
502 | ||
9b3d3bc4 RD |
503 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
504 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
505 | PyObject * _resultobj; | |
506 | wxButton * _arg0; | |
507 | wxColour * _arg1; | |
508 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
509 | wxColour temp; |
510 | PyObject * _obj1 = 0; | |
9b3d3bc4 RD |
511 | char *_kwnames[] = { "self","colour", NULL }; |
512 | ||
513 | self = self; | |
f6bcfd97 | 514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
9b3d3bc4 RD |
515 | return NULL; |
516 | if (_argo0) { | |
517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
520 | return NULL; | |
521 | } | |
522 | } | |
f6bcfd97 BP |
523 | { |
524 | _arg1 = &temp; | |
525 | if (! wxColour_helper(_obj1, &_arg1)) | |
9b3d3bc4 | 526 | return NULL; |
f6bcfd97 | 527 | } |
9b3d3bc4 RD |
528 | { |
529 | wxPy_BEGIN_ALLOW_THREADS; | |
530 | wxButton_SetBackgroundColour(_arg0,*_arg1); | |
531 | ||
532 | wxPy_END_ALLOW_THREADS; | |
533 | } Py_INCREF(Py_None); | |
534 | _resultobj = Py_None; | |
535 | return _resultobj; | |
536 | } | |
537 | ||
538 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
539 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
540 | PyObject * _resultobj; | |
541 | wxButton * _arg0; | |
542 | wxColour * _arg1; | |
543 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
544 | wxColour temp; |
545 | PyObject * _obj1 = 0; | |
9b3d3bc4 RD |
546 | char *_kwnames[] = { "self","colour", NULL }; |
547 | ||
548 | self = self; | |
f6bcfd97 | 549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9b3d3bc4 RD |
550 | return NULL; |
551 | if (_argo0) { | |
552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
555 | return NULL; | |
556 | } | |
557 | } | |
f6bcfd97 BP |
558 | { |
559 | _arg1 = &temp; | |
560 | if (! wxColour_helper(_obj1, &_arg1)) | |
9b3d3bc4 | 561 | return NULL; |
f6bcfd97 | 562 | } |
9b3d3bc4 RD |
563 | { |
564 | wxPy_BEGIN_ALLOW_THREADS; | |
565 | wxButton_SetForegroundColour(_arg0,*_arg1); | |
566 | ||
567 | wxPy_END_ALLOW_THREADS; | |
568 | } Py_INCREF(Py_None); | |
569 | _resultobj = Py_None; | |
570 | return _resultobj; | |
571 | } | |
572 | ||
8ab979d7 RD |
573 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { |
574 | wxBitmapButton *src; | |
575 | wxButton *dest; | |
576 | src = (wxBitmapButton *) ptr; | |
577 | dest = (wxButton *) src; | |
578 | return (void *) dest; | |
579 | } | |
580 | ||
581 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
582 | wxBitmapButton *src; | |
583 | wxControl *dest; | |
584 | src = (wxBitmapButton *) ptr; | |
585 | dest = (wxControl *) src; | |
586 | return (void *) dest; | |
587 | } | |
588 | ||
589 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
590 | wxBitmapButton *src; | |
591 | wxWindow *dest; | |
592 | src = (wxBitmapButton *) ptr; | |
593 | dest = (wxWindow *) src; | |
594 | return (void *) dest; | |
595 | } | |
596 | ||
597 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
598 | wxBitmapButton *src; | |
599 | wxEvtHandler *dest; | |
600 | src = (wxBitmapButton *) ptr; | |
601 | dest = (wxEvtHandler *) src; | |
602 | return (void *) dest; | |
603 | } | |
604 | ||
605 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
efc5f224 | 606 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
607 | PyObject * _resultobj; |
608 | wxBitmapButton * _result; | |
609 | wxWindow * _arg0; | |
610 | wxWindowID _arg1; | |
611 | wxBitmap * _arg2; | |
e508a2b6 RD |
612 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
613 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 614 | long _arg5 = (long ) wxBU_AUTODRAW; |
e508a2b6 | 615 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
616 | char * _arg7 = (char *) "button"; |
617 | PyObject * _argo0 = 0; | |
618 | PyObject * _argo2 = 0; | |
2f90df85 RD |
619 | wxPoint temp; |
620 | PyObject * _obj3 = 0; | |
621 | wxSize temp0; | |
622 | PyObject * _obj4 = 0; | |
1d99702e | 623 | PyObject * _argo6 = 0; |
efc5f224 | 624 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
625 | char _ptemp[128]; |
626 | ||
627 | self = self; | |
2f90df85 | 628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 629 | return NULL; |
1d99702e RD |
630 | if (_argo0) { |
631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); |
634 | return NULL; | |
635 | } | |
636 | } | |
1d99702e RD |
637 | if (_argo2) { |
638 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
639 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8ab979d7 RD |
640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); |
641 | return NULL; | |
642 | } | |
643 | } | |
2f90df85 RD |
644 | if (_obj3) |
645 | { | |
646 | _arg3 = &temp; | |
647 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 648 | return NULL; |
2f90df85 RD |
649 | } |
650 | if (_obj4) | |
651 | { | |
652 | _arg4 = &temp0; | |
653 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 654 | return NULL; |
2f90df85 | 655 | } |
1d99702e RD |
656 | if (_argo6) { |
657 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
658 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); |
660 | return NULL; | |
661 | } | |
662 | } | |
cf694132 RD |
663 | { |
664 | wxPy_BEGIN_ALLOW_THREADS; | |
665 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
666 | ||
667 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
668 | } if (_result) { |
669 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
670 | _resultobj = Py_BuildValue("s",_ptemp); | |
671 | } else { | |
672 | Py_INCREF(Py_None); | |
673 | _resultobj = Py_None; | |
674 | } | |
8ab979d7 RD |
675 | return _resultobj; |
676 | } | |
677 | ||
678 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) | |
efc5f224 | 679 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
680 | PyObject * _resultobj; |
681 | wxBitmap * _result; | |
682 | wxBitmapButton * _arg0; | |
1d99702e | 683 | PyObject * _argo0 = 0; |
efc5f224 | 684 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
685 | char _ptemp[128]; |
686 | ||
687 | self = self; | |
efc5f224 | 688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) |
8ab979d7 | 689 | return NULL; |
1d99702e RD |
690 | if (_argo0) { |
691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); |
694 | return NULL; | |
695 | } | |
696 | } | |
cf694132 RD |
697 | { |
698 | wxPy_BEGIN_ALLOW_THREADS; | |
699 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapLabel(_arg0); | |
8ab979d7 | 700 | _result = (wxBitmap *) &_result_ref; |
cf694132 RD |
701 | |
702 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
703 | } if (_result) { |
704 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
705 | _resultobj = Py_BuildValue("s",_ptemp); | |
706 | } else { | |
707 | Py_INCREF(Py_None); | |
708 | _resultobj = Py_None; | |
709 | } | |
8ab979d7 RD |
710 | return _resultobj; |
711 | } | |
712 | ||
713 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) | |
efc5f224 | 714 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
715 | PyObject * _resultobj; |
716 | wxBitmap * _result; | |
717 | wxBitmapButton * _arg0; | |
1d99702e | 718 | PyObject * _argo0 = 0; |
efc5f224 | 719 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
720 | char _ptemp[128]; |
721 | ||
722 | self = self; | |
efc5f224 | 723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) |
8ab979d7 | 724 | return NULL; |
1d99702e RD |
725 | if (_argo0) { |
726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); |
729 | return NULL; | |
730 | } | |
731 | } | |
cf694132 RD |
732 | { |
733 | wxPy_BEGIN_ALLOW_THREADS; | |
734 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapDisabled(_arg0); | |
8ab979d7 | 735 | _result = (wxBitmap *) &_result_ref; |
cf694132 RD |
736 | |
737 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
738 | } if (_result) { |
739 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
740 | _resultobj = Py_BuildValue("s",_ptemp); | |
741 | } else { | |
742 | Py_INCREF(Py_None); | |
743 | _resultobj = Py_None; | |
744 | } | |
8ab979d7 RD |
745 | return _resultobj; |
746 | } | |
747 | ||
748 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
efc5f224 | 749 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
750 | PyObject * _resultobj; |
751 | wxBitmap * _result; | |
752 | wxBitmapButton * _arg0; | |
1d99702e | 753 | PyObject * _argo0 = 0; |
efc5f224 | 754 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
755 | char _ptemp[128]; |
756 | ||
757 | self = self; | |
efc5f224 | 758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) |
8ab979d7 | 759 | return NULL; |
1d99702e RD |
760 | if (_argo0) { |
761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); |
764 | return NULL; | |
765 | } | |
766 | } | |
cf694132 RD |
767 | { |
768 | wxPy_BEGIN_ALLOW_THREADS; | |
769 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapFocus(_arg0); | |
8ab979d7 | 770 | _result = (wxBitmap *) &_result_ref; |
cf694132 RD |
771 | |
772 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
773 | } if (_result) { |
774 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
775 | _resultobj = Py_BuildValue("s",_ptemp); | |
776 | } else { | |
777 | Py_INCREF(Py_None); | |
778 | _resultobj = Py_None; | |
779 | } | |
8ab979d7 RD |
780 | return _resultobj; |
781 | } | |
782 | ||
783 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
efc5f224 | 784 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
785 | PyObject * _resultobj; |
786 | wxBitmap * _result; | |
787 | wxBitmapButton * _arg0; | |
1d99702e | 788 | PyObject * _argo0 = 0; |
efc5f224 | 789 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
790 | char _ptemp[128]; |
791 | ||
792 | self = self; | |
efc5f224 | 793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) |
8ab979d7 | 794 | return NULL; |
1d99702e RD |
795 | if (_argo0) { |
796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); |
799 | return NULL; | |
800 | } | |
801 | } | |
cf694132 RD |
802 | { |
803 | wxPy_BEGIN_ALLOW_THREADS; | |
804 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapSelected(_arg0); | |
8ab979d7 | 805 | _result = (wxBitmap *) &_result_ref; |
cf694132 RD |
806 | |
807 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
808 | } if (_result) { |
809 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
810 | _resultobj = Py_BuildValue("s",_ptemp); | |
811 | } else { | |
812 | Py_INCREF(Py_None); | |
813 | _resultobj = Py_None; | |
814 | } | |
8ab979d7 RD |
815 | return _resultobj; |
816 | } | |
817 | ||
818 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
efc5f224 | 819 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
820 | PyObject * _resultobj; |
821 | wxBitmapButton * _arg0; | |
822 | wxBitmap * _arg1; | |
1d99702e RD |
823 | PyObject * _argo0 = 0; |
824 | PyObject * _argo1 = 0; | |
efc5f224 | 825 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
826 | |
827 | self = self; | |
efc5f224 | 828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 829 | return NULL; |
1d99702e RD |
830 | if (_argo0) { |
831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); |
834 | return NULL; | |
835 | } | |
836 | } | |
1d99702e RD |
837 | if (_argo1) { |
838 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
839 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); |
841 | return NULL; | |
842 | } | |
843 | } | |
cf694132 RD |
844 | { |
845 | wxPy_BEGIN_ALLOW_THREADS; | |
846 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); | |
847 | ||
848 | wxPy_END_ALLOW_THREADS; | |
849 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
850 | _resultobj = Py_None; |
851 | return _resultobj; | |
852 | } | |
853 | ||
854 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
efc5f224 | 855 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
856 | PyObject * _resultobj; |
857 | wxBitmapButton * _arg0; | |
858 | wxBitmap * _arg1; | |
1d99702e RD |
859 | PyObject * _argo0 = 0; |
860 | PyObject * _argo1 = 0; | |
efc5f224 | 861 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
862 | |
863 | self = self; | |
efc5f224 | 864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 865 | return NULL; |
1d99702e RD |
866 | if (_argo0) { |
867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); |
870 | return NULL; | |
871 | } | |
872 | } | |
1d99702e RD |
873 | if (_argo1) { |
874 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
875 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); |
877 | return NULL; | |
878 | } | |
879 | } | |
cf694132 RD |
880 | { |
881 | wxPy_BEGIN_ALLOW_THREADS; | |
882 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); | |
883 | ||
884 | wxPy_END_ALLOW_THREADS; | |
885 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
886 | _resultobj = Py_None; |
887 | return _resultobj; | |
888 | } | |
889 | ||
890 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
efc5f224 | 891 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
892 | PyObject * _resultobj; |
893 | wxBitmapButton * _arg0; | |
894 | wxBitmap * _arg1; | |
1d99702e RD |
895 | PyObject * _argo0 = 0; |
896 | PyObject * _argo1 = 0; | |
efc5f224 | 897 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
898 | |
899 | self = self; | |
efc5f224 | 900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 901 | return NULL; |
1d99702e RD |
902 | if (_argo0) { |
903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); |
906 | return NULL; | |
907 | } | |
908 | } | |
1d99702e RD |
909 | if (_argo1) { |
910 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
911 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); |
913 | return NULL; | |
914 | } | |
915 | } | |
cf694132 RD |
916 | { |
917 | wxPy_BEGIN_ALLOW_THREADS; | |
918 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); | |
919 | ||
920 | wxPy_END_ALLOW_THREADS; | |
921 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
922 | _resultobj = Py_None; |
923 | return _resultobj; | |
924 | } | |
925 | ||
926 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) | |
efc5f224 | 927 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
928 | PyObject * _resultobj; |
929 | wxBitmapButton * _arg0; | |
930 | wxBitmap * _arg1; | |
1d99702e RD |
931 | PyObject * _argo0 = 0; |
932 | PyObject * _argo1 = 0; | |
efc5f224 | 933 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
934 | |
935 | self = self; | |
efc5f224 | 936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 937 | return NULL; |
1d99702e RD |
938 | if (_argo0) { |
939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); |
942 | return NULL; | |
943 | } | |
944 | } | |
1d99702e RD |
945 | if (_argo1) { |
946 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
947 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); |
949 | return NULL; | |
950 | } | |
951 | } | |
cf694132 RD |
952 | { |
953 | wxPy_BEGIN_ALLOW_THREADS; | |
954 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); | |
955 | ||
956 | wxPy_END_ALLOW_THREADS; | |
957 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
958 | _resultobj = Py_None; |
959 | return _resultobj; | |
960 | } | |
961 | ||
f6bcfd97 BP |
962 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
963 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
964 | PyObject * _resultobj; | |
965 | wxBitmapButton * _arg0; | |
966 | int _arg1; | |
967 | int _arg2; | |
968 | PyObject * _argo0 = 0; | |
969 | char *_kwnames[] = { "self","x","y", NULL }; | |
970 | ||
971 | self = self; | |
972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
973 | return NULL; | |
974 | if (_argo0) { | |
975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
978 | return NULL; | |
979 | } | |
980 | } | |
981 | { | |
982 | wxPy_BEGIN_ALLOW_THREADS; | |
983 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); | |
984 | ||
985 | wxPy_END_ALLOW_THREADS; | |
986 | } Py_INCREF(Py_None); | |
987 | _resultobj = Py_None; | |
988 | return _resultobj; | |
989 | } | |
990 | ||
991 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
992 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
993 | PyObject * _resultobj; | |
994 | int _result; | |
995 | wxBitmapButton * _arg0; | |
996 | PyObject * _argo0 = 0; | |
997 | char *_kwnames[] = { "self", NULL }; | |
998 | ||
999 | self = self; | |
1000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1001 | return NULL; | |
1002 | if (_argo0) { | |
1003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1006 | return NULL; | |
1007 | } | |
1008 | } | |
1009 | { | |
1010 | wxPy_BEGIN_ALLOW_THREADS; | |
1011 | _result = (int )wxBitmapButton_GetMarginX(_arg0); | |
1012 | ||
1013 | wxPy_END_ALLOW_THREADS; | |
1014 | } _resultobj = Py_BuildValue("i",_result); | |
1015 | return _resultobj; | |
1016 | } | |
1017 | ||
1018 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1019 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1020 | PyObject * _resultobj; | |
1021 | int _result; | |
1022 | wxBitmapButton * _arg0; | |
1023 | PyObject * _argo0 = 0; | |
1024 | char *_kwnames[] = { "self", NULL }; | |
1025 | ||
1026 | self = self; | |
1027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1028 | return NULL; | |
1029 | if (_argo0) { | |
1030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1033 | return NULL; | |
1034 | } | |
1035 | } | |
1036 | { | |
1037 | wxPy_BEGIN_ALLOW_THREADS; | |
1038 | _result = (int )wxBitmapButton_GetMarginY(_arg0); | |
1039 | ||
1040 | wxPy_END_ALLOW_THREADS; | |
1041 | } _resultobj = Py_BuildValue("i",_result); | |
1042 | return _resultobj; | |
1043 | } | |
1044 | ||
8ab979d7 RD |
1045 | static void *SwigwxCheckBoxTowxControl(void *ptr) { |
1046 | wxCheckBox *src; | |
1047 | wxControl *dest; | |
1048 | src = (wxCheckBox *) ptr; | |
1049 | dest = (wxControl *) src; | |
1050 | return (void *) dest; | |
1051 | } | |
1052 | ||
1053 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1054 | wxCheckBox *src; | |
1055 | wxWindow *dest; | |
1056 | src = (wxCheckBox *) ptr; | |
1057 | dest = (wxWindow *) src; | |
1058 | return (void *) dest; | |
1059 | } | |
1060 | ||
1061 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1062 | wxCheckBox *src; | |
1063 | wxEvtHandler *dest; | |
1064 | src = (wxCheckBox *) ptr; | |
1065 | dest = (wxEvtHandler *) src; | |
1066 | return (void *) dest; | |
1067 | } | |
1068 | ||
1069 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
efc5f224 | 1070 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1071 | PyObject * _resultobj; |
1072 | wxCheckBox * _result; | |
1073 | wxWindow * _arg0; | |
1074 | wxWindowID _arg1; | |
1075 | wxString * _arg2; | |
e508a2b6 RD |
1076 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1077 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 1078 | long _arg5 = (long ) 0; |
e508a2b6 | 1079 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
1080 | char * _arg7 = (char *) "checkBox"; |
1081 | PyObject * _argo0 = 0; | |
8ab979d7 | 1082 | PyObject * _obj2 = 0; |
2f90df85 RD |
1083 | wxPoint temp; |
1084 | PyObject * _obj3 = 0; | |
1085 | wxSize temp0; | |
1086 | PyObject * _obj4 = 0; | |
1d99702e | 1087 | PyObject * _argo6 = 0; |
efc5f224 | 1088 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; |
8ab979d7 RD |
1089 | char _ptemp[128]; |
1090 | ||
1091 | self = self; | |
2f90df85 | 1092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 1093 | return NULL; |
1d99702e RD |
1094 | if (_argo0) { |
1095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); |
1098 | return NULL; | |
1099 | } | |
1100 | } | |
1101 | { | |
185d7c3e RD |
1102 | #if PYTHON_API_VERSION >= 1009 |
1103 | char* tmpPtr; int tmpSize; | |
1104 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1105 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1106 | return NULL; | |
1107 | } | |
1108 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1109 | return NULL; | |
1110 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1111 | #else | |
8ab979d7 RD |
1112 | if (!PyString_Check(_obj2)) { |
1113 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1114 | return NULL; | |
1115 | } | |
185d7c3e RD |
1116 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1117 | #endif | |
8ab979d7 | 1118 | } |
2f90df85 RD |
1119 | if (_obj3) |
1120 | { | |
1121 | _arg3 = &temp; | |
1122 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 1123 | return NULL; |
2f90df85 RD |
1124 | } |
1125 | if (_obj4) | |
1126 | { | |
1127 | _arg4 = &temp0; | |
1128 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 1129 | return NULL; |
2f90df85 | 1130 | } |
1d99702e RD |
1131 | if (_argo6) { |
1132 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1133 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
1134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); |
1135 | return NULL; | |
1136 | } | |
1137 | } | |
cf694132 RD |
1138 | { |
1139 | wxPy_BEGIN_ALLOW_THREADS; | |
1140 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
1141 | ||
1142 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1143 | } if (_result) { |
1144 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1145 | _resultobj = Py_BuildValue("s",_ptemp); | |
1146 | } else { | |
1147 | Py_INCREF(Py_None); | |
1148 | _resultobj = Py_None; | |
1149 | } | |
8ab979d7 RD |
1150 | { |
1151 | if (_obj2) | |
1152 | delete _arg2; | |
1153 | } | |
1154 | return _resultobj; | |
1155 | } | |
1156 | ||
1157 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 1158 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1159 | PyObject * _resultobj; |
1160 | bool _result; | |
1161 | wxCheckBox * _arg0; | |
1d99702e | 1162 | PyObject * _argo0 = 0; |
efc5f224 | 1163 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1164 | |
1165 | self = self; | |
efc5f224 | 1166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 1167 | return NULL; |
1d99702e RD |
1168 | if (_argo0) { |
1169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
8ab979d7 RD |
1171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); |
1172 | return NULL; | |
1173 | } | |
1174 | } | |
cf694132 RD |
1175 | { |
1176 | wxPy_BEGIN_ALLOW_THREADS; | |
1177 | _result = (bool )wxCheckBox_GetValue(_arg0); | |
1178 | ||
1179 | wxPy_END_ALLOW_THREADS; | |
1180 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1181 | return _resultobj; |
1182 | } | |
1183 | ||
1184 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 1185 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1186 | PyObject * _resultobj; |
1187 | wxCheckBox * _arg0; | |
1188 | bool _arg1; | |
1d99702e | 1189 | PyObject * _argo0 = 0; |
8ab979d7 | 1190 | int tempbool1; |
efc5f224 | 1191 | char *_kwnames[] = { "self","state", NULL }; |
8ab979d7 RD |
1192 | |
1193 | self = self; | |
efc5f224 | 1194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1195 | return NULL; |
1d99702e RD |
1196 | if (_argo0) { |
1197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
8ab979d7 RD |
1199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); |
1200 | return NULL; | |
1201 | } | |
1202 | } | |
1203 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1204 | { |
1205 | wxPy_BEGIN_ALLOW_THREADS; | |
1206 | wxCheckBox_SetValue(_arg0,_arg1); | |
1207 | ||
1208 | wxPy_END_ALLOW_THREADS; | |
1209 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1210 | _resultobj = Py_None; |
1211 | return _resultobj; | |
1212 | } | |
1213 | ||
1214 | static void *SwigwxChoiceTowxControl(void *ptr) { | |
1215 | wxChoice *src; | |
1216 | wxControl *dest; | |
1217 | src = (wxChoice *) ptr; | |
1218 | dest = (wxControl *) src; | |
1219 | return (void *) dest; | |
1220 | } | |
1221 | ||
1222 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
1223 | wxChoice *src; | |
1224 | wxWindow *dest; | |
1225 | src = (wxChoice *) ptr; | |
1226 | dest = (wxWindow *) src; | |
1227 | return (void *) dest; | |
1228 | } | |
1229 | ||
1230 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
1231 | wxChoice *src; | |
1232 | wxEvtHandler *dest; | |
1233 | src = (wxChoice *) ptr; | |
1234 | dest = (wxEvtHandler *) src; | |
1235 | return (void *) dest; | |
1236 | } | |
1237 | ||
1238 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
efc5f224 | 1239 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1240 | PyObject * _resultobj; |
1241 | wxChoice * _result; | |
1242 | wxWindow * _arg0; | |
1243 | wxWindowID _arg1; | |
e508a2b6 RD |
1244 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
1245 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
1246 | int _arg4 = (int ) 0; |
1247 | wxString * _arg5 = (wxString *) NULL; | |
1248 | long _arg6 = (long ) 0; | |
e508a2b6 | 1249 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
1250 | char * _arg8 = (char *) "choice"; |
1251 | PyObject * _argo0 = 0; | |
2f90df85 RD |
1252 | wxPoint temp; |
1253 | PyObject * _obj2 = 0; | |
1254 | wxSize temp0; | |
1255 | PyObject * _obj3 = 0; | |
8ab979d7 | 1256 | PyObject * _obj5 = 0; |
1d99702e | 1257 | PyObject * _argo7 = 0; |
eec92d76 | 1258 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
1259 | char _ptemp[128]; |
1260 | ||
1261 | self = self; | |
2f90df85 | 1262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
8ab979d7 | 1263 | return NULL; |
1d99702e RD |
1264 | if (_argo0) { |
1265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); |
1268 | return NULL; | |
1269 | } | |
1270 | } | |
2f90df85 RD |
1271 | if (_obj2) |
1272 | { | |
1273 | _arg2 = &temp; | |
1274 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 1275 | return NULL; |
2f90df85 RD |
1276 | } |
1277 | if (_obj3) | |
1278 | { | |
1279 | _arg3 = &temp0; | |
1280 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 1281 | return NULL; |
2f90df85 | 1282 | } |
8ab979d7 RD |
1283 | if (_obj5) |
1284 | { | |
1285 | _arg5 = wxString_LIST_helper(_obj5); | |
1286 | if (_arg5 == NULL) { | |
1287 | return NULL; | |
1288 | } | |
1289 | } | |
1d99702e RD |
1290 | if (_argo7) { |
1291 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1292 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
8ab979d7 RD |
1293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); |
1294 | return NULL; | |
1295 | } | |
1296 | } | |
1297 | { | |
cf694132 RD |
1298 | if (_obj5) { |
1299 | _arg4 = PyList_Size(_obj5); | |
1300 | } | |
1301 | else { | |
1302 | _arg4 = 0; | |
1303 | } | |
8ab979d7 | 1304 | } |
cf694132 RD |
1305 | { |
1306 | wxPy_BEGIN_ALLOW_THREADS; | |
1307 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
1308 | ||
1309 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1310 | } if (_result) { |
1311 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
1312 | _resultobj = Py_BuildValue("s",_ptemp); | |
1313 | } else { | |
1314 | Py_INCREF(Py_None); | |
1315 | _resultobj = Py_None; | |
1316 | } | |
8ab979d7 RD |
1317 | { |
1318 | delete [] _arg5; | |
1319 | } | |
1320 | return _resultobj; | |
1321 | } | |
1322 | ||
1323 | #define wxChoice_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
efc5f224 | 1324 | static PyObject *_wrap_wxChoice_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1325 | PyObject * _resultobj; |
1326 | wxChoice * _arg0; | |
1327 | wxString * _arg1; | |
1d99702e | 1328 | PyObject * _argo0 = 0; |
8ab979d7 | 1329 | PyObject * _obj1 = 0; |
efc5f224 | 1330 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
1331 | |
1332 | self = self; | |
efc5f224 | 1333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_Append",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1334 | return NULL; |
1d99702e RD |
1335 | if (_argo0) { |
1336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Append. Expected _wxChoice_p."); |
1339 | return NULL; | |
1340 | } | |
1341 | } | |
1342 | { | |
185d7c3e RD |
1343 | #if PYTHON_API_VERSION >= 1009 |
1344 | char* tmpPtr; int tmpSize; | |
1345 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1346 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1347 | return NULL; | |
1348 | } | |
1349 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1350 | return NULL; | |
1351 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1352 | #else | |
8ab979d7 RD |
1353 | if (!PyString_Check(_obj1)) { |
1354 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1355 | return NULL; | |
1356 | } | |
185d7c3e RD |
1357 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1358 | #endif | |
8ab979d7 | 1359 | } |
cf694132 RD |
1360 | { |
1361 | wxPy_BEGIN_ALLOW_THREADS; | |
1362 | wxChoice_Append(_arg0,*_arg1); | |
1363 | ||
1364 | wxPy_END_ALLOW_THREADS; | |
1365 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1366 | _resultobj = Py_None; |
1367 | { | |
1368 | if (_obj1) | |
1369 | delete _arg1; | |
1370 | } | |
1371 | return _resultobj; | |
1372 | } | |
1373 | ||
1374 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) | |
efc5f224 | 1375 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1376 | PyObject * _resultobj; |
1377 | wxChoice * _arg0; | |
1d99702e | 1378 | PyObject * _argo0 = 0; |
efc5f224 | 1379 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1380 | |
1381 | self = self; | |
efc5f224 | 1382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) |
8ab979d7 | 1383 | return NULL; |
1d99702e RD |
1384 | if (_argo0) { |
1385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); |
1388 | return NULL; | |
1389 | } | |
1390 | } | |
cf694132 RD |
1391 | { |
1392 | wxPy_BEGIN_ALLOW_THREADS; | |
1393 | wxChoice_Clear(_arg0); | |
1394 | ||
1395 | wxPy_END_ALLOW_THREADS; | |
1396 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1397 | _resultobj = Py_None; |
1398 | return _resultobj; | |
1399 | } | |
1400 | ||
1401 | #define wxChoice_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 1402 | static PyObject *_wrap_wxChoice_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1403 | PyObject * _resultobj; |
1404 | int _result; | |
1405 | wxChoice * _arg0; | |
1406 | wxString * _arg1; | |
1d99702e | 1407 | PyObject * _argo0 = 0; |
8ab979d7 | 1408 | PyObject * _obj1 = 0; |
efc5f224 | 1409 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
1410 | |
1411 | self = self; | |
efc5f224 | 1412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1413 | return NULL; |
1d99702e RD |
1414 | if (_argo0) { |
1415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_FindString. Expected _wxChoice_p."); |
1418 | return NULL; | |
1419 | } | |
1420 | } | |
1421 | { | |
185d7c3e RD |
1422 | #if PYTHON_API_VERSION >= 1009 |
1423 | char* tmpPtr; int tmpSize; | |
1424 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1425 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1426 | return NULL; | |
1427 | } | |
1428 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1429 | return NULL; | |
1430 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1431 | #else | |
8ab979d7 RD |
1432 | if (!PyString_Check(_obj1)) { |
1433 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1434 | return NULL; | |
1435 | } | |
185d7c3e RD |
1436 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1437 | #endif | |
8ab979d7 | 1438 | } |
cf694132 RD |
1439 | { |
1440 | wxPy_BEGIN_ALLOW_THREADS; | |
1441 | _result = (int )wxChoice_FindString(_arg0,*_arg1); | |
1442 | ||
1443 | wxPy_END_ALLOW_THREADS; | |
1444 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1445 | { |
1446 | if (_obj1) | |
1447 | delete _arg1; | |
1448 | } | |
1449 | return _resultobj; | |
1450 | } | |
1451 | ||
1452 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) | |
efc5f224 | 1453 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1454 | PyObject * _resultobj; |
1455 | int _result; | |
1456 | wxChoice * _arg0; | |
1d99702e | 1457 | PyObject * _argo0 = 0; |
efc5f224 | 1458 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1459 | |
1460 | self = self; | |
efc5f224 | 1461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) |
8ab979d7 | 1462 | return NULL; |
1d99702e RD |
1463 | if (_argo0) { |
1464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); |
1467 | return NULL; | |
1468 | } | |
1469 | } | |
cf694132 RD |
1470 | { |
1471 | wxPy_BEGIN_ALLOW_THREADS; | |
1472 | _result = (int )wxChoice_GetColumns(_arg0); | |
1473 | ||
1474 | wxPy_END_ALLOW_THREADS; | |
1475 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1476 | return _resultobj; |
1477 | } | |
1478 | ||
1479 | #define wxChoice_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 1480 | static PyObject *_wrap_wxChoice_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1481 | PyObject * _resultobj; |
1482 | int _result; | |
1483 | wxChoice * _arg0; | |
1d99702e | 1484 | PyObject * _argo0 = 0; |
efc5f224 | 1485 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1486 | |
1487 | self = self; | |
efc5f224 | 1488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 1489 | return NULL; |
1d99702e RD |
1490 | if (_argo0) { |
1491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetSelection. Expected _wxChoice_p."); |
1494 | return NULL; | |
1495 | } | |
1496 | } | |
cf694132 RD |
1497 | { |
1498 | wxPy_BEGIN_ALLOW_THREADS; | |
1499 | _result = (int )wxChoice_GetSelection(_arg0); | |
1500 | ||
1501 | wxPy_END_ALLOW_THREADS; | |
1502 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1503 | return _resultobj; |
1504 | } | |
1505 | ||
1506 | #define wxChoice_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
efc5f224 | 1507 | static PyObject *_wrap_wxChoice_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1508 | PyObject * _resultobj; |
1509 | wxString * _result; | |
1510 | wxChoice * _arg0; | |
1511 | int _arg1; | |
1d99702e | 1512 | PyObject * _argo0 = 0; |
efc5f224 | 1513 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
1514 | |
1515 | self = self; | |
efc5f224 | 1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1517 | return NULL; |
1d99702e RD |
1518 | if (_argo0) { |
1519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetString. Expected _wxChoice_p."); |
1522 | return NULL; | |
1523 | } | |
1524 | } | |
8ab979d7 | 1525 | { |
cf694132 RD |
1526 | wxPy_BEGIN_ALLOW_THREADS; |
1527 | _result = new wxString (wxChoice_GetString(_arg0,_arg1)); | |
1528 | ||
1529 | wxPy_END_ALLOW_THREADS; | |
1530 | }{ | |
eec92d76 | 1531 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1532 | } |
1533 | { | |
1534 | delete _result; | |
1535 | } | |
1536 | return _resultobj; | |
1537 | } | |
1538 | ||
1539 | #define wxChoice_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
efc5f224 | 1540 | static PyObject *_wrap_wxChoice_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1541 | PyObject * _resultobj; |
1542 | wxString * _result; | |
1543 | wxChoice * _arg0; | |
1d99702e | 1544 | PyObject * _argo0 = 0; |
efc5f224 | 1545 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1546 | |
1547 | self = self; | |
efc5f224 | 1548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 1549 | return NULL; |
1d99702e RD |
1550 | if (_argo0) { |
1551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetStringSelection. Expected _wxChoice_p."); |
1554 | return NULL; | |
1555 | } | |
1556 | } | |
8ab979d7 | 1557 | { |
cf694132 RD |
1558 | wxPy_BEGIN_ALLOW_THREADS; |
1559 | _result = new wxString (wxChoice_GetStringSelection(_arg0)); | |
1560 | ||
1561 | wxPy_END_ALLOW_THREADS; | |
1562 | }{ | |
eec92d76 | 1563 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1564 | } |
1565 | { | |
1566 | delete _result; | |
1567 | } | |
1568 | return _resultobj; | |
1569 | } | |
1570 | ||
1571 | #define wxChoice_Number(_swigobj) (_swigobj->Number()) | |
efc5f224 | 1572 | static PyObject *_wrap_wxChoice_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1573 | PyObject * _resultobj; |
1574 | int _result; | |
1575 | wxChoice * _arg0; | |
1d99702e | 1576 | PyObject * _argo0 = 0; |
efc5f224 | 1577 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1578 | |
1579 | self = self; | |
efc5f224 | 1580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Number",_kwnames,&_argo0)) |
8ab979d7 | 1581 | return NULL; |
1d99702e RD |
1582 | if (_argo0) { |
1583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Number. Expected _wxChoice_p."); |
1586 | return NULL; | |
1587 | } | |
1588 | } | |
cf694132 RD |
1589 | { |
1590 | wxPy_BEGIN_ALLOW_THREADS; | |
1591 | _result = (int )wxChoice_Number(_arg0); | |
1592 | ||
1593 | wxPy_END_ALLOW_THREADS; | |
1594 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1595 | return _resultobj; |
1596 | } | |
1597 | ||
1598 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
efc5f224 | 1599 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1600 | PyObject * _resultobj; |
1601 | wxChoice * _arg0; | |
1d99702e RD |
1602 | int _arg1 = (int ) 1; |
1603 | PyObject * _argo0 = 0; | |
efc5f224 | 1604 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
1605 | |
1606 | self = self; | |
efc5f224 | 1607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1608 | return NULL; |
1d99702e RD |
1609 | if (_argo0) { |
1610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); |
1613 | return NULL; | |
1614 | } | |
1615 | } | |
cf694132 RD |
1616 | { |
1617 | wxPy_BEGIN_ALLOW_THREADS; | |
1618 | wxChoice_SetColumns(_arg0,_arg1); | |
1619 | ||
1620 | wxPy_END_ALLOW_THREADS; | |
1621 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1622 | _resultobj = Py_None; |
1623 | return _resultobj; | |
1624 | } | |
1625 | ||
1626 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 1627 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1628 | PyObject * _resultobj; |
1629 | wxChoice * _arg0; | |
1630 | int _arg1; | |
1d99702e | 1631 | PyObject * _argo0 = 0; |
efc5f224 | 1632 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
1633 | |
1634 | self = self; | |
efc5f224 | 1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1636 | return NULL; |
1d99702e RD |
1637 | if (_argo0) { |
1638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); |
1641 | return NULL; | |
1642 | } | |
1643 | } | |
cf694132 RD |
1644 | { |
1645 | wxPy_BEGIN_ALLOW_THREADS; | |
1646 | wxChoice_SetSelection(_arg0,_arg1); | |
1647 | ||
1648 | wxPy_END_ALLOW_THREADS; | |
1649 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1650 | _resultobj = Py_None; |
1651 | return _resultobj; | |
1652 | } | |
1653 | ||
1654 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
efc5f224 | 1655 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1656 | PyObject * _resultobj; |
1657 | wxChoice * _arg0; | |
1658 | wxString * _arg1; | |
1d99702e | 1659 | PyObject * _argo0 = 0; |
8ab979d7 | 1660 | PyObject * _obj1 = 0; |
efc5f224 | 1661 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
1662 | |
1663 | self = self; | |
efc5f224 | 1664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1665 | return NULL; |
1d99702e RD |
1666 | if (_argo0) { |
1667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); |
1670 | return NULL; | |
1671 | } | |
1672 | } | |
1673 | { | |
185d7c3e RD |
1674 | #if PYTHON_API_VERSION >= 1009 |
1675 | char* tmpPtr; int tmpSize; | |
1676 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1677 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1678 | return NULL; | |
1679 | } | |
1680 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1681 | return NULL; | |
1682 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1683 | #else | |
8ab979d7 RD |
1684 | if (!PyString_Check(_obj1)) { |
1685 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1686 | return NULL; | |
1687 | } | |
185d7c3e RD |
1688 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1689 | #endif | |
8ab979d7 | 1690 | } |
cf694132 RD |
1691 | { |
1692 | wxPy_BEGIN_ALLOW_THREADS; | |
1693 | wxChoice_SetStringSelection(_arg0,*_arg1); | |
1694 | ||
1695 | wxPy_END_ALLOW_THREADS; | |
1696 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1697 | _resultobj = Py_None; |
1698 | { | |
1699 | if (_obj1) | |
1700 | delete _arg1; | |
1701 | } | |
1702 | return _resultobj; | |
1703 | } | |
1704 | ||
bb0054cd RD |
1705 | static void *SwigwxComboBoxTowxChoice(void *ptr) { |
1706 | wxComboBox *src; | |
1707 | wxChoice *dest; | |
1708 | src = (wxComboBox *) ptr; | |
1709 | dest = (wxChoice *) src; | |
1710 | return (void *) dest; | |
1711 | } | |
1712 | ||
8ab979d7 RD |
1713 | static void *SwigwxComboBoxTowxControl(void *ptr) { |
1714 | wxComboBox *src; | |
1715 | wxControl *dest; | |
1716 | src = (wxComboBox *) ptr; | |
1717 | dest = (wxControl *) src; | |
1718 | return (void *) dest; | |
1719 | } | |
1720 | ||
1721 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
1722 | wxComboBox *src; | |
1723 | wxWindow *dest; | |
1724 | src = (wxComboBox *) ptr; | |
1725 | dest = (wxWindow *) src; | |
1726 | return (void *) dest; | |
1727 | } | |
1728 | ||
1729 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
1730 | wxComboBox *src; | |
1731 | wxEvtHandler *dest; | |
1732 | src = (wxComboBox *) ptr; | |
1733 | dest = (wxEvtHandler *) src; | |
1734 | return (void *) dest; | |
1735 | } | |
1736 | ||
1737 | #define new_wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
efc5f224 | 1738 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1739 | PyObject * _resultobj; |
1740 | wxComboBox * _result; | |
1741 | wxWindow * _arg0; | |
1742 | wxWindowID _arg1; | |
1d99702e | 1743 | char * _arg2 = (char *) ""; |
e508a2b6 RD |
1744 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1745 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
1746 | int _arg5 = (int ) 0; |
1747 | wxString * _arg6 = (wxString *) NULL; | |
1748 | long _arg7 = (long ) 0; | |
e508a2b6 | 1749 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
1750 | char * _arg9 = (char *) "comboBox"; |
1751 | PyObject * _argo0 = 0; | |
2f90df85 RD |
1752 | wxPoint temp; |
1753 | PyObject * _obj3 = 0; | |
1754 | wxSize temp0; | |
1755 | PyObject * _obj4 = 0; | |
8ab979d7 | 1756 | PyObject * _obj6 = 0; |
1d99702e | 1757 | PyObject * _argo8 = 0; |
eec92d76 | 1758 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
1759 | char _ptemp[128]; |
1760 | ||
1761 | self = self; | |
2f90df85 | 1762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
8ab979d7 | 1763 | return NULL; |
1d99702e RD |
1764 | if (_argo0) { |
1765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); |
1768 | return NULL; | |
1769 | } | |
1770 | } | |
2f90df85 RD |
1771 | if (_obj3) |
1772 | { | |
1773 | _arg3 = &temp; | |
1774 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 1775 | return NULL; |
2f90df85 RD |
1776 | } |
1777 | if (_obj4) | |
1778 | { | |
1779 | _arg4 = &temp0; | |
1780 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 1781 | return NULL; |
2f90df85 | 1782 | } |
8ab979d7 RD |
1783 | if (_obj6) |
1784 | { | |
1785 | _arg6 = wxString_LIST_helper(_obj6); | |
1786 | if (_arg6 == NULL) { | |
1787 | return NULL; | |
1788 | } | |
1789 | } | |
1d99702e RD |
1790 | if (_argo8) { |
1791 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
1792 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
8ab979d7 RD |
1793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); |
1794 | return NULL; | |
1795 | } | |
1796 | } | |
1797 | { | |
cf694132 RD |
1798 | if (_obj6) { |
1799 | _arg5 = PyList_Size(_obj6); | |
1800 | } | |
1801 | else { | |
1802 | _arg5 = 0; | |
1803 | } | |
8ab979d7 | 1804 | } |
cf694132 RD |
1805 | { |
1806 | wxPy_BEGIN_ALLOW_THREADS; | |
1807 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
1808 | ||
1809 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1810 | } if (_result) { |
1811 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
1812 | _resultobj = Py_BuildValue("s",_ptemp); | |
1813 | } else { | |
1814 | Py_INCREF(Py_None); | |
1815 | _resultobj = Py_None; | |
1816 | } | |
8ab979d7 RD |
1817 | { |
1818 | delete [] _arg6; | |
1819 | } | |
1820 | return _resultobj; | |
1821 | } | |
1822 | ||
1823 | #define wxComboBox_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
efc5f224 | 1824 | static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1825 | PyObject * _resultobj; |
1826 | wxComboBox * _arg0; | |
1827 | wxString * _arg1; | |
1d99702e | 1828 | PyObject * _argo0 = 0; |
8ab979d7 | 1829 | PyObject * _obj1 = 0; |
efc5f224 | 1830 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
1831 | |
1832 | self = self; | |
efc5f224 | 1833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_Append",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1834 | return NULL; |
1d99702e RD |
1835 | if (_argo0) { |
1836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
1838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p."); |
1839 | return NULL; | |
1840 | } | |
1841 | } | |
1842 | { | |
185d7c3e RD |
1843 | #if PYTHON_API_VERSION >= 1009 |
1844 | char* tmpPtr; int tmpSize; | |
1845 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1846 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1847 | return NULL; | |
1848 | } | |
1849 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1850 | return NULL; | |
1851 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1852 | #else | |
8ab979d7 RD |
1853 | if (!PyString_Check(_obj1)) { |
1854 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1855 | return NULL; | |
1856 | } | |
185d7c3e RD |
1857 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1858 | #endif | |
8ab979d7 | 1859 | } |
cf694132 RD |
1860 | { |
1861 | wxPy_BEGIN_ALLOW_THREADS; | |
1862 | wxComboBox_Append(_arg0,*_arg1); | |
1863 | ||
1864 | wxPy_END_ALLOW_THREADS; | |
1865 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1866 | _resultobj = Py_None; |
1867 | { | |
1868 | if (_obj1) | |
1869 | delete _arg1; | |
1870 | } | |
1871 | return _resultobj; | |
1872 | } | |
1873 | ||
1874 | #define wxComboBox_Clear(_swigobj) (_swigobj->Clear()) | |
efc5f224 | 1875 | static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1876 | PyObject * _resultobj; |
1877 | wxComboBox * _arg0; | |
1d99702e | 1878 | PyObject * _argo0 = 0; |
efc5f224 | 1879 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1880 | |
1881 | self = self; | |
efc5f224 | 1882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0)) |
8ab979d7 | 1883 | return NULL; |
1d99702e RD |
1884 | if (_argo0) { |
1885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
1887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p."); |
1888 | return NULL; | |
1889 | } | |
1890 | } | |
cf694132 RD |
1891 | { |
1892 | wxPy_BEGIN_ALLOW_THREADS; | |
1893 | wxComboBox_Clear(_arg0); | |
1894 | ||
1895 | wxPy_END_ALLOW_THREADS; | |
1896 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1897 | _resultobj = Py_None; |
1898 | return _resultobj; | |
1899 | } | |
1900 | ||
1901 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) | |
efc5f224 | 1902 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1903 | PyObject * _resultobj; |
1904 | wxComboBox * _arg0; | |
1d99702e | 1905 | PyObject * _argo0 = 0; |
efc5f224 | 1906 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1907 | |
1908 | self = self; | |
efc5f224 | 1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) |
8ab979d7 | 1910 | return NULL; |
1d99702e RD |
1911 | if (_argo0) { |
1912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
1914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); |
1915 | return NULL; | |
1916 | } | |
1917 | } | |
cf694132 RD |
1918 | { |
1919 | wxPy_BEGIN_ALLOW_THREADS; | |
1920 | wxComboBox_Copy(_arg0); | |
1921 | ||
1922 | wxPy_END_ALLOW_THREADS; | |
1923 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1924 | _resultobj = Py_None; |
1925 | return _resultobj; | |
1926 | } | |
1927 | ||
1928 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
efc5f224 | 1929 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1930 | PyObject * _resultobj; |
1931 | wxComboBox * _arg0; | |
1d99702e | 1932 | PyObject * _argo0 = 0; |
efc5f224 | 1933 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1934 | |
1935 | self = self; | |
efc5f224 | 1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) |
8ab979d7 | 1937 | return NULL; |
1d99702e RD |
1938 | if (_argo0) { |
1939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
1941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); |
1942 | return NULL; | |
1943 | } | |
1944 | } | |
cf694132 RD |
1945 | { |
1946 | wxPy_BEGIN_ALLOW_THREADS; | |
1947 | wxComboBox_Cut(_arg0); | |
1948 | ||
1949 | wxPy_END_ALLOW_THREADS; | |
1950 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1951 | _resultobj = Py_None; |
1952 | return _resultobj; | |
1953 | } | |
1954 | ||
1955 | #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
efc5f224 | 1956 | static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1957 | PyObject * _resultobj; |
1958 | wxComboBox * _arg0; | |
1959 | int _arg1; | |
1d99702e | 1960 | PyObject * _argo0 = 0; |
efc5f224 | 1961 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
1962 | |
1963 | self = self; | |
efc5f224 | 1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1965 | return NULL; |
1d99702e RD |
1966 | if (_argo0) { |
1967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
1969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p."); |
1970 | return NULL; | |
1971 | } | |
1972 | } | |
cf694132 RD |
1973 | { |
1974 | wxPy_BEGIN_ALLOW_THREADS; | |
1975 | wxComboBox_Delete(_arg0,_arg1); | |
1976 | ||
1977 | wxPy_END_ALLOW_THREADS; | |
1978 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1979 | _resultobj = Py_None; |
1980 | return _resultobj; | |
1981 | } | |
1982 | ||
1983 | #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 1984 | static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1985 | PyObject * _resultobj; |
1986 | int _result; | |
1987 | wxComboBox * _arg0; | |
1988 | wxString * _arg1; | |
1d99702e | 1989 | PyObject * _argo0 = 0; |
8ab979d7 | 1990 | PyObject * _obj1 = 0; |
efc5f224 | 1991 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
1992 | |
1993 | self = self; | |
efc5f224 | 1994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1995 | return NULL; |
1d99702e RD |
1996 | if (_argo0) { |
1997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
1999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p."); |
2000 | return NULL; | |
2001 | } | |
2002 | } | |
2003 | { | |
185d7c3e RD |
2004 | #if PYTHON_API_VERSION >= 1009 |
2005 | char* tmpPtr; int tmpSize; | |
2006 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2007 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2008 | return NULL; | |
2009 | } | |
2010 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2011 | return NULL; | |
2012 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2013 | #else | |
8ab979d7 RD |
2014 | if (!PyString_Check(_obj1)) { |
2015 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2016 | return NULL; | |
2017 | } | |
185d7c3e RD |
2018 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2019 | #endif | |
8ab979d7 | 2020 | } |
cf694132 RD |
2021 | { |
2022 | wxPy_BEGIN_ALLOW_THREADS; | |
2023 | _result = (int )wxComboBox_FindString(_arg0,*_arg1); | |
2024 | ||
2025 | wxPy_END_ALLOW_THREADS; | |
2026 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2027 | { |
2028 | if (_obj1) | |
2029 | delete _arg1; | |
2030 | } | |
2031 | return _resultobj; | |
2032 | } | |
2033 | ||
2034 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
efc5f224 | 2035 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2036 | PyObject * _resultobj; |
2037 | long _result; | |
2038 | wxComboBox * _arg0; | |
1d99702e | 2039 | PyObject * _argo0 = 0; |
efc5f224 | 2040 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2041 | |
2042 | self = self; | |
efc5f224 | 2043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) |
8ab979d7 | 2044 | return NULL; |
1d99702e RD |
2045 | if (_argo0) { |
2046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); |
2049 | return NULL; | |
2050 | } | |
2051 | } | |
cf694132 RD |
2052 | { |
2053 | wxPy_BEGIN_ALLOW_THREADS; | |
2054 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); | |
2055 | ||
2056 | wxPy_END_ALLOW_THREADS; | |
2057 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2058 | return _resultobj; |
2059 | } | |
2060 | ||
2061 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
efc5f224 | 2062 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2063 | PyObject * _resultobj; |
2064 | long _result; | |
2065 | wxComboBox * _arg0; | |
1d99702e | 2066 | PyObject * _argo0 = 0; |
efc5f224 | 2067 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2068 | |
2069 | self = self; | |
efc5f224 | 2070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) |
8ab979d7 | 2071 | return NULL; |
1d99702e RD |
2072 | if (_argo0) { |
2073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); |
2076 | return NULL; | |
2077 | } | |
2078 | } | |
cf694132 RD |
2079 | { |
2080 | wxPy_BEGIN_ALLOW_THREADS; | |
2081 | _result = (long )wxComboBox_GetLastPosition(_arg0); | |
2082 | ||
2083 | wxPy_END_ALLOW_THREADS; | |
2084 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2085 | return _resultobj; |
2086 | } | |
2087 | ||
2088 | #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 2089 | static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2090 | PyObject * _resultobj; |
2091 | int _result; | |
2092 | wxComboBox * _arg0; | |
1d99702e | 2093 | PyObject * _argo0 = 0; |
efc5f224 | 2094 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2095 | |
2096 | self = self; | |
efc5f224 | 2097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 2098 | return NULL; |
1d99702e RD |
2099 | if (_argo0) { |
2100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p."); |
2103 | return NULL; | |
2104 | } | |
2105 | } | |
cf694132 RD |
2106 | { |
2107 | wxPy_BEGIN_ALLOW_THREADS; | |
2108 | _result = (int )wxComboBox_GetSelection(_arg0); | |
2109 | ||
2110 | wxPy_END_ALLOW_THREADS; | |
2111 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2112 | return _resultobj; |
2113 | } | |
2114 | ||
2115 | #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
efc5f224 | 2116 | static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2117 | PyObject * _resultobj; |
2118 | wxString * _result; | |
2119 | wxComboBox * _arg0; | |
2120 | int _arg1; | |
1d99702e | 2121 | PyObject * _argo0 = 0; |
efc5f224 | 2122 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
2123 | |
2124 | self = self; | |
efc5f224 | 2125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2126 | return NULL; |
1d99702e RD |
2127 | if (_argo0) { |
2128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p."); |
2131 | return NULL; | |
2132 | } | |
2133 | } | |
8ab979d7 | 2134 | { |
cf694132 RD |
2135 | wxPy_BEGIN_ALLOW_THREADS; |
2136 | _result = new wxString (wxComboBox_GetString(_arg0,_arg1)); | |
2137 | ||
2138 | wxPy_END_ALLOW_THREADS; | |
2139 | }{ | |
eec92d76 | 2140 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2141 | } |
2142 | { | |
2143 | delete _result; | |
2144 | } | |
2145 | return _resultobj; | |
2146 | } | |
2147 | ||
2148 | #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
efc5f224 | 2149 | static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2150 | PyObject * _resultobj; |
2151 | wxString * _result; | |
2152 | wxComboBox * _arg0; | |
1d99702e | 2153 | PyObject * _argo0 = 0; |
efc5f224 | 2154 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2155 | |
2156 | self = self; | |
efc5f224 | 2157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 2158 | return NULL; |
1d99702e RD |
2159 | if (_argo0) { |
2160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p."); |
2163 | return NULL; | |
2164 | } | |
2165 | } | |
8ab979d7 | 2166 | { |
cf694132 RD |
2167 | wxPy_BEGIN_ALLOW_THREADS; |
2168 | _result = new wxString (wxComboBox_GetStringSelection(_arg0)); | |
2169 | ||
2170 | wxPy_END_ALLOW_THREADS; | |
2171 | }{ | |
eec92d76 | 2172 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2173 | } |
2174 | { | |
2175 | delete _result; | |
2176 | } | |
2177 | return _resultobj; | |
2178 | } | |
2179 | ||
2180 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 2181 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2182 | PyObject * _resultobj; |
2183 | wxString * _result; | |
2184 | wxComboBox * _arg0; | |
1d99702e | 2185 | PyObject * _argo0 = 0; |
efc5f224 | 2186 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2187 | |
2188 | self = self; | |
efc5f224 | 2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 2190 | return NULL; |
1d99702e RD |
2191 | if (_argo0) { |
2192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); |
2195 | return NULL; | |
2196 | } | |
2197 | } | |
8ab979d7 | 2198 | { |
cf694132 RD |
2199 | wxPy_BEGIN_ALLOW_THREADS; |
2200 | _result = new wxString (wxComboBox_GetValue(_arg0)); | |
2201 | ||
2202 | wxPy_END_ALLOW_THREADS; | |
2203 | }{ | |
eec92d76 | 2204 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2205 | } |
2206 | { | |
2207 | delete _result; | |
2208 | } | |
2209 | return _resultobj; | |
2210 | } | |
2211 | ||
2212 | #define wxComboBox_Number(_swigobj) (_swigobj->Number()) | |
efc5f224 | 2213 | static PyObject *_wrap_wxComboBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2214 | PyObject * _resultobj; |
2215 | int _result; | |
2216 | wxComboBox * _arg0; | |
1d99702e | 2217 | PyObject * _argo0 = 0; |
efc5f224 | 2218 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2219 | |
2220 | self = self; | |
efc5f224 | 2221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Number",_kwnames,&_argo0)) |
8ab979d7 | 2222 | return NULL; |
1d99702e RD |
2223 | if (_argo0) { |
2224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Number. Expected _wxComboBox_p."); |
2227 | return NULL; | |
2228 | } | |
2229 | } | |
cf694132 RD |
2230 | { |
2231 | wxPy_BEGIN_ALLOW_THREADS; | |
2232 | _result = (int )wxComboBox_Number(_arg0); | |
2233 | ||
2234 | wxPy_END_ALLOW_THREADS; | |
2235 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2236 | return _resultobj; |
2237 | } | |
2238 | ||
2239 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) | |
efc5f224 | 2240 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2241 | PyObject * _resultobj; |
2242 | wxComboBox * _arg0; | |
1d99702e | 2243 | PyObject * _argo0 = 0; |
efc5f224 | 2244 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2245 | |
2246 | self = self; | |
efc5f224 | 2247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) |
8ab979d7 | 2248 | return NULL; |
1d99702e RD |
2249 | if (_argo0) { |
2250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); |
2253 | return NULL; | |
2254 | } | |
2255 | } | |
cf694132 RD |
2256 | { |
2257 | wxPy_BEGIN_ALLOW_THREADS; | |
2258 | wxComboBox_Paste(_arg0); | |
2259 | ||
2260 | wxPy_END_ALLOW_THREADS; | |
2261 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2262 | _resultobj = Py_None; |
2263 | return _resultobj; | |
2264 | } | |
2265 | ||
2266 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2267 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2268 | PyObject * _resultobj; |
2269 | wxComboBox * _arg0; | |
2270 | long _arg1; | |
2271 | long _arg2; | |
2272 | wxString * _arg3; | |
1d99702e | 2273 | PyObject * _argo0 = 0; |
8ab979d7 | 2274 | PyObject * _obj3 = 0; |
efc5f224 | 2275 | char *_kwnames[] = { "self","from","to","text", NULL }; |
8ab979d7 RD |
2276 | |
2277 | self = self; | |
efc5f224 | 2278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 2279 | return NULL; |
1d99702e RD |
2280 | if (_argo0) { |
2281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); |
2284 | return NULL; | |
2285 | } | |
2286 | } | |
2287 | { | |
185d7c3e RD |
2288 | #if PYTHON_API_VERSION >= 1009 |
2289 | char* tmpPtr; int tmpSize; | |
2290 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
2291 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2292 | return NULL; | |
2293 | } | |
2294 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2295 | return NULL; | |
2296 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2297 | #else | |
8ab979d7 RD |
2298 | if (!PyString_Check(_obj3)) { |
2299 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2300 | return NULL; | |
2301 | } | |
185d7c3e RD |
2302 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2303 | #endif | |
8ab979d7 | 2304 | } |
cf694132 RD |
2305 | { |
2306 | wxPy_BEGIN_ALLOW_THREADS; | |
2307 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); | |
2308 | ||
2309 | wxPy_END_ALLOW_THREADS; | |
2310 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2311 | _resultobj = Py_None; |
2312 | { | |
2313 | if (_obj3) | |
2314 | delete _arg3; | |
2315 | } | |
2316 | return _resultobj; | |
2317 | } | |
2318 | ||
2319 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
efc5f224 | 2320 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2321 | PyObject * _resultobj; |
2322 | wxComboBox * _arg0; | |
2323 | long _arg1; | |
2324 | long _arg2; | |
1d99702e | 2325 | PyObject * _argo0 = 0; |
efc5f224 | 2326 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
2327 | |
2328 | self = self; | |
efc5f224 | 2329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2330 | return NULL; |
1d99702e RD |
2331 | if (_argo0) { |
2332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); |
2335 | return NULL; | |
2336 | } | |
2337 | } | |
cf694132 RD |
2338 | { |
2339 | wxPy_BEGIN_ALLOW_THREADS; | |
2340 | wxComboBox_Remove(_arg0,_arg1,_arg2); | |
2341 | ||
2342 | wxPy_END_ALLOW_THREADS; | |
2343 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2344 | _resultobj = Py_None; |
2345 | return _resultobj; | |
2346 | } | |
2347 | ||
2348 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
efc5f224 | 2349 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2350 | PyObject * _resultobj; |
2351 | wxComboBox * _arg0; | |
2352 | long _arg1; | |
1d99702e | 2353 | PyObject * _argo0 = 0; |
efc5f224 | 2354 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
2355 | |
2356 | self = self; | |
efc5f224 | 2357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2358 | return NULL; |
1d99702e RD |
2359 | if (_argo0) { |
2360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); |
2363 | return NULL; | |
2364 | } | |
2365 | } | |
cf694132 RD |
2366 | { |
2367 | wxPy_BEGIN_ALLOW_THREADS; | |
2368 | wxComboBox_SetInsertionPoint(_arg0,_arg1); | |
2369 | ||
2370 | wxPy_END_ALLOW_THREADS; | |
2371 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2372 | _resultobj = Py_None; |
2373 | return _resultobj; | |
2374 | } | |
2375 | ||
2376 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
efc5f224 | 2377 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2378 | PyObject * _resultobj; |
2379 | wxComboBox * _arg0; | |
1d99702e | 2380 | PyObject * _argo0 = 0; |
efc5f224 | 2381 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2382 | |
2383 | self = self; | |
efc5f224 | 2384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) |
8ab979d7 | 2385 | return NULL; |
1d99702e RD |
2386 | if (_argo0) { |
2387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); |
2390 | return NULL; | |
2391 | } | |
2392 | } | |
cf694132 RD |
2393 | { |
2394 | wxPy_BEGIN_ALLOW_THREADS; | |
2395 | wxComboBox_SetInsertionPointEnd(_arg0); | |
2396 | ||
2397 | wxPy_END_ALLOW_THREADS; | |
2398 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2399 | _resultobj = Py_None; |
2400 | return _resultobj; | |
2401 | } | |
2402 | ||
1d99702e | 2403 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
efc5f224 | 2404 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
1d99702e RD |
2405 | PyObject * _resultobj; |
2406 | wxComboBox * _arg0; | |
2407 | int _arg1; | |
2408 | PyObject * _argo0 = 0; | |
efc5f224 | 2409 | char *_kwnames[] = { "self","n", NULL }; |
1d99702e RD |
2410 | |
2411 | self = self; | |
efc5f224 | 2412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
1d99702e RD |
2413 | return NULL; |
2414 | if (_argo0) { | |
2415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
2418 | return NULL; | |
2419 | } | |
2420 | } | |
2421 | { | |
2422 | wxPy_BEGIN_ALLOW_THREADS; | |
2423 | wxComboBox_SetSelection(_arg0,_arg1); | |
2424 | ||
2425 | wxPy_END_ALLOW_THREADS; | |
2426 | } Py_INCREF(Py_None); | |
2427 | _resultobj = Py_None; | |
2428 | return _resultobj; | |
2429 | } | |
2430 | ||
8ab979d7 | 2431 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) |
efc5f224 | 2432 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2433 | PyObject * _resultobj; |
2434 | wxComboBox * _arg0; | |
2435 | long _arg1; | |
2436 | long _arg2; | |
1d99702e | 2437 | PyObject * _argo0 = 0; |
efc5f224 | 2438 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
2439 | |
2440 | self = self; | |
efc5f224 | 2441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2442 | return NULL; |
1d99702e RD |
2443 | if (_argo0) { |
2444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); |
2447 | return NULL; | |
2448 | } | |
2449 | } | |
cf694132 RD |
2450 | { |
2451 | wxPy_BEGIN_ALLOW_THREADS; | |
2452 | wxComboBox_SetMark(_arg0,_arg1,_arg2); | |
2453 | ||
2454 | wxPy_END_ALLOW_THREADS; | |
2455 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2456 | _resultobj = Py_None; |
2457 | return _resultobj; | |
2458 | } | |
2459 | ||
2460 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 2461 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2462 | PyObject * _resultobj; |
2463 | wxComboBox * _arg0; | |
2464 | wxString * _arg1; | |
1d99702e | 2465 | PyObject * _argo0 = 0; |
8ab979d7 | 2466 | PyObject * _obj1 = 0; |
efc5f224 | 2467 | char *_kwnames[] = { "self","text", NULL }; |
8ab979d7 RD |
2468 | |
2469 | self = self; | |
efc5f224 | 2470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2471 | return NULL; |
1d99702e RD |
2472 | if (_argo0) { |
2473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); |
2476 | return NULL; | |
2477 | } | |
2478 | } | |
2479 | { | |
185d7c3e RD |
2480 | #if PYTHON_API_VERSION >= 1009 |
2481 | char* tmpPtr; int tmpSize; | |
2482 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2483 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2484 | return NULL; | |
2485 | } | |
2486 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2487 | return NULL; | |
2488 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2489 | #else | |
8ab979d7 RD |
2490 | if (!PyString_Check(_obj1)) { |
2491 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2492 | return NULL; | |
2493 | } | |
185d7c3e RD |
2494 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2495 | #endif | |
8ab979d7 | 2496 | } |
cf694132 RD |
2497 | { |
2498 | wxPy_BEGIN_ALLOW_THREADS; | |
2499 | wxComboBox_SetValue(_arg0,*_arg1); | |
2500 | ||
2501 | wxPy_END_ALLOW_THREADS; | |
2502 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2503 | _resultobj = Py_None; |
2504 | { | |
2505 | if (_obj1) | |
2506 | delete _arg1; | |
2507 | } | |
2508 | return _resultobj; | |
2509 | } | |
2510 | ||
2511 | static void *SwigwxGaugeTowxControl(void *ptr) { | |
2512 | wxGauge *src; | |
2513 | wxControl *dest; | |
2514 | src = (wxGauge *) ptr; | |
2515 | dest = (wxControl *) src; | |
2516 | return (void *) dest; | |
2517 | } | |
2518 | ||
2519 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
2520 | wxGauge *src; | |
2521 | wxWindow *dest; | |
2522 | src = (wxGauge *) ptr; | |
2523 | dest = (wxWindow *) src; | |
2524 | return (void *) dest; | |
2525 | } | |
2526 | ||
2527 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
2528 | wxGauge *src; | |
2529 | wxEvtHandler *dest; | |
2530 | src = (wxGauge *) ptr; | |
2531 | dest = (wxEvtHandler *) src; | |
2532 | return (void *) dest; | |
2533 | } | |
2534 | ||
2535 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
efc5f224 | 2536 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2537 | PyObject * _resultobj; |
2538 | wxGauge * _result; | |
2539 | wxWindow * _arg0; | |
2540 | wxWindowID _arg1; | |
2541 | int _arg2; | |
e508a2b6 RD |
2542 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2543 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 2544 | long _arg5 = (long ) wxGA_HORIZONTAL; |
e508a2b6 | 2545 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2546 | char * _arg7 = (char *) "gauge"; |
2547 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2548 | wxPoint temp; |
2549 | PyObject * _obj3 = 0; | |
2550 | wxSize temp0; | |
2551 | PyObject * _obj4 = 0; | |
1d99702e | 2552 | PyObject * _argo6 = 0; |
efc5f224 | 2553 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2554 | char _ptemp[128]; |
2555 | ||
2556 | self = self; | |
2f90df85 | 2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 2558 | return NULL; |
1d99702e RD |
2559 | if (_argo0) { |
2560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); |
2563 | return NULL; | |
2564 | } | |
2565 | } | |
2f90df85 RD |
2566 | if (_obj3) |
2567 | { | |
2568 | _arg3 = &temp; | |
2569 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 2570 | return NULL; |
2f90df85 RD |
2571 | } |
2572 | if (_obj4) | |
2573 | { | |
2574 | _arg4 = &temp0; | |
2575 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 2576 | return NULL; |
2f90df85 | 2577 | } |
1d99702e RD |
2578 | if (_argo6) { |
2579 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2580 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
2581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); |
2582 | return NULL; | |
2583 | } | |
2584 | } | |
cf694132 RD |
2585 | { |
2586 | wxPy_BEGIN_ALLOW_THREADS; | |
2587 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
2588 | ||
2589 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2590 | } if (_result) { |
2591 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
2592 | _resultobj = Py_BuildValue("s",_ptemp); | |
2593 | } else { | |
2594 | Py_INCREF(Py_None); | |
2595 | _resultobj = Py_None; | |
2596 | } | |
8ab979d7 RD |
2597 | return _resultobj; |
2598 | } | |
2599 | ||
2600 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) | |
efc5f224 | 2601 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2602 | PyObject * _resultobj; |
2603 | int _result; | |
2604 | wxGauge * _arg0; | |
1d99702e | 2605 | PyObject * _argo0 = 0; |
efc5f224 | 2606 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2607 | |
2608 | self = self; | |
efc5f224 | 2609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) |
8ab979d7 | 2610 | return NULL; |
1d99702e RD |
2611 | if (_argo0) { |
2612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); |
2615 | return NULL; | |
2616 | } | |
2617 | } | |
cf694132 RD |
2618 | { |
2619 | wxPy_BEGIN_ALLOW_THREADS; | |
2620 | _result = (int )wxGauge_GetBezelFace(_arg0); | |
2621 | ||
2622 | wxPy_END_ALLOW_THREADS; | |
2623 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2624 | return _resultobj; |
2625 | } | |
2626 | ||
2627 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
efc5f224 | 2628 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2629 | PyObject * _resultobj; |
2630 | int _result; | |
2631 | wxGauge * _arg0; | |
1d99702e | 2632 | PyObject * _argo0 = 0; |
efc5f224 | 2633 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2634 | |
2635 | self = self; | |
efc5f224 | 2636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) |
8ab979d7 | 2637 | return NULL; |
1d99702e RD |
2638 | if (_argo0) { |
2639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); |
2642 | return NULL; | |
2643 | } | |
2644 | } | |
cf694132 RD |
2645 | { |
2646 | wxPy_BEGIN_ALLOW_THREADS; | |
2647 | _result = (int )wxGauge_GetRange(_arg0); | |
2648 | ||
2649 | wxPy_END_ALLOW_THREADS; | |
2650 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2651 | return _resultobj; |
2652 | } | |
2653 | ||
2654 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
efc5f224 | 2655 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2656 | PyObject * _resultobj; |
2657 | int _result; | |
2658 | wxGauge * _arg0; | |
1d99702e | 2659 | PyObject * _argo0 = 0; |
efc5f224 | 2660 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2661 | |
2662 | self = self; | |
efc5f224 | 2663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) |
8ab979d7 | 2664 | return NULL; |
1d99702e RD |
2665 | if (_argo0) { |
2666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); |
2669 | return NULL; | |
2670 | } | |
2671 | } | |
cf694132 RD |
2672 | { |
2673 | wxPy_BEGIN_ALLOW_THREADS; | |
2674 | _result = (int )wxGauge_GetShadowWidth(_arg0); | |
2675 | ||
2676 | wxPy_END_ALLOW_THREADS; | |
2677 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2678 | return _resultobj; |
2679 | } | |
2680 | ||
2681 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 2682 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2683 | PyObject * _resultobj; |
2684 | int _result; | |
2685 | wxGauge * _arg0; | |
1d99702e | 2686 | PyObject * _argo0 = 0; |
efc5f224 | 2687 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2688 | |
2689 | self = self; | |
efc5f224 | 2690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 2691 | return NULL; |
1d99702e RD |
2692 | if (_argo0) { |
2693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); |
2696 | return NULL; | |
2697 | } | |
2698 | } | |
cf694132 RD |
2699 | { |
2700 | wxPy_BEGIN_ALLOW_THREADS; | |
2701 | _result = (int )wxGauge_GetValue(_arg0); | |
2702 | ||
2703 | wxPy_END_ALLOW_THREADS; | |
2704 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2705 | return _resultobj; |
2706 | } | |
2707 | ||
2708 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
efc5f224 | 2709 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2710 | PyObject * _resultobj; |
2711 | wxGauge * _arg0; | |
2712 | int _arg1; | |
1d99702e | 2713 | PyObject * _argo0 = 0; |
efc5f224 | 2714 | char *_kwnames[] = { "self","width", NULL }; |
8ab979d7 RD |
2715 | |
2716 | self = self; | |
efc5f224 | 2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2718 | return NULL; |
1d99702e RD |
2719 | if (_argo0) { |
2720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); |
2723 | return NULL; | |
2724 | } | |
2725 | } | |
cf694132 RD |
2726 | { |
2727 | wxPy_BEGIN_ALLOW_THREADS; | |
2728 | wxGauge_SetBezelFace(_arg0,_arg1); | |
2729 | ||
2730 | wxPy_END_ALLOW_THREADS; | |
2731 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2732 | _resultobj = Py_None; |
2733 | return _resultobj; | |
2734 | } | |
2735 | ||
2736 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
efc5f224 | 2737 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2738 | PyObject * _resultobj; |
2739 | wxGauge * _arg0; | |
2740 | int _arg1; | |
1d99702e | 2741 | PyObject * _argo0 = 0; |
efc5f224 | 2742 | char *_kwnames[] = { "self","range", NULL }; |
8ab979d7 RD |
2743 | |
2744 | self = self; | |
efc5f224 | 2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2746 | return NULL; |
1d99702e RD |
2747 | if (_argo0) { |
2748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); |
2751 | return NULL; | |
2752 | } | |
2753 | } | |
cf694132 RD |
2754 | { |
2755 | wxPy_BEGIN_ALLOW_THREADS; | |
2756 | wxGauge_SetRange(_arg0,_arg1); | |
2757 | ||
2758 | wxPy_END_ALLOW_THREADS; | |
2759 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2760 | _resultobj = Py_None; |
2761 | return _resultobj; | |
2762 | } | |
2763 | ||
2764 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
efc5f224 | 2765 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2766 | PyObject * _resultobj; |
2767 | wxGauge * _arg0; | |
2768 | int _arg1; | |
1d99702e | 2769 | PyObject * _argo0 = 0; |
efc5f224 | 2770 | char *_kwnames[] = { "self","width", NULL }; |
8ab979d7 RD |
2771 | |
2772 | self = self; | |
efc5f224 | 2773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2774 | return NULL; |
1d99702e RD |
2775 | if (_argo0) { |
2776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); |
2779 | return NULL; | |
2780 | } | |
2781 | } | |
cf694132 RD |
2782 | { |
2783 | wxPy_BEGIN_ALLOW_THREADS; | |
2784 | wxGauge_SetShadowWidth(_arg0,_arg1); | |
2785 | ||
2786 | wxPy_END_ALLOW_THREADS; | |
2787 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2788 | _resultobj = Py_None; |
2789 | return _resultobj; | |
2790 | } | |
2791 | ||
2792 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 2793 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2794 | PyObject * _resultobj; |
2795 | wxGauge * _arg0; | |
2796 | int _arg1; | |
1d99702e | 2797 | PyObject * _argo0 = 0; |
efc5f224 | 2798 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
2799 | |
2800 | self = self; | |
efc5f224 | 2801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2802 | return NULL; |
1d99702e RD |
2803 | if (_argo0) { |
2804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); |
2807 | return NULL; | |
2808 | } | |
2809 | } | |
cf694132 RD |
2810 | { |
2811 | wxPy_BEGIN_ALLOW_THREADS; | |
2812 | wxGauge_SetValue(_arg0,_arg1); | |
2813 | ||
2814 | wxPy_END_ALLOW_THREADS; | |
2815 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2816 | _resultobj = Py_None; |
2817 | return _resultobj; | |
2818 | } | |
2819 | ||
2820 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
2821 | wxStaticBox *src; | |
2822 | wxControl *dest; | |
2823 | src = (wxStaticBox *) ptr; | |
2824 | dest = (wxControl *) src; | |
2825 | return (void *) dest; | |
2826 | } | |
2827 | ||
2828 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
2829 | wxStaticBox *src; | |
2830 | wxWindow *dest; | |
2831 | src = (wxStaticBox *) ptr; | |
2832 | dest = (wxWindow *) src; | |
2833 | return (void *) dest; | |
2834 | } | |
2835 | ||
2836 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
2837 | wxStaticBox *src; | |
2838 | wxEvtHandler *dest; | |
2839 | src = (wxStaticBox *) ptr; | |
2840 | dest = (wxEvtHandler *) src; | |
2841 | return (void *) dest; | |
2842 | } | |
2843 | ||
2844 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 2845 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2846 | PyObject * _resultobj; |
2847 | wxStaticBox * _result; | |
2848 | wxWindow * _arg0; | |
2849 | wxWindowID _arg1; | |
2850 | wxString * _arg2; | |
e508a2b6 RD |
2851 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2852 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
2853 | long _arg5 = (long ) 0; |
2854 | char * _arg6 = (char *) "staticBox"; | |
2855 | PyObject * _argo0 = 0; | |
8ab979d7 | 2856 | PyObject * _obj2 = 0; |
2f90df85 RD |
2857 | wxPoint temp; |
2858 | PyObject * _obj3 = 0; | |
2859 | wxSize temp0; | |
2860 | PyObject * _obj4 = 0; | |
efc5f224 | 2861 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
8ab979d7 RD |
2862 | char _ptemp[128]; |
2863 | ||
2864 | self = self; | |
2f90df85 | 2865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 2866 | return NULL; |
1d99702e RD |
2867 | if (_argo0) { |
2868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); |
2871 | return NULL; | |
2872 | } | |
2873 | } | |
2874 | { | |
185d7c3e RD |
2875 | #if PYTHON_API_VERSION >= 1009 |
2876 | char* tmpPtr; int tmpSize; | |
2877 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2878 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2879 | return NULL; | |
2880 | } | |
2881 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2882 | return NULL; | |
2883 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2884 | #else | |
8ab979d7 RD |
2885 | if (!PyString_Check(_obj2)) { |
2886 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2887 | return NULL; | |
2888 | } | |
185d7c3e RD |
2889 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2890 | #endif | |
8ab979d7 | 2891 | } |
2f90df85 RD |
2892 | if (_obj3) |
2893 | { | |
2894 | _arg3 = &temp; | |
2895 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 2896 | return NULL; |
2f90df85 RD |
2897 | } |
2898 | if (_obj4) | |
2899 | { | |
2900 | _arg4 = &temp0; | |
2901 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 2902 | return NULL; |
2f90df85 | 2903 | } |
cf694132 RD |
2904 | { |
2905 | wxPy_BEGIN_ALLOW_THREADS; | |
2906 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
2907 | ||
2908 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2909 | } if (_result) { |
2910 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
2911 | _resultobj = Py_BuildValue("s",_ptemp); | |
2912 | } else { | |
2913 | Py_INCREF(Py_None); | |
2914 | _resultobj = Py_None; | |
2915 | } | |
8ab979d7 RD |
2916 | { |
2917 | if (_obj2) | |
2918 | delete _arg2; | |
2919 | } | |
2920 | return _resultobj; | |
2921 | } | |
2922 | ||
8bf5d46e RD |
2923 | static void *SwigwxStaticLineTowxControl(void *ptr) { |
2924 | wxStaticLine *src; | |
2925 | wxControl *dest; | |
2926 | src = (wxStaticLine *) ptr; | |
2927 | dest = (wxControl *) src; | |
2928 | return (void *) dest; | |
2929 | } | |
2930 | ||
2931 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
2932 | wxStaticLine *src; | |
2933 | wxWindow *dest; | |
2934 | src = (wxStaticLine *) ptr; | |
2935 | dest = (wxWindow *) src; | |
2936 | return (void *) dest; | |
2937 | } | |
2938 | ||
2939 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
2940 | wxStaticLine *src; | |
2941 | wxEvtHandler *dest; | |
2942 | src = (wxStaticLine *) ptr; | |
2943 | dest = (wxEvtHandler *) src; | |
2944 | return (void *) dest; | |
2945 | } | |
2946 | ||
2947 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 2948 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2949 | PyObject * _resultobj; |
2950 | wxStaticLine * _result; | |
2951 | wxWindow * _arg0; | |
2952 | wxWindowID _arg1; | |
e508a2b6 RD |
2953 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2954 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
2955 | long _arg4 = (long ) wxLI_HORIZONTAL; |
2956 | char * _arg5 = (char *) "staticLine"; | |
2957 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2958 | wxPoint temp; |
2959 | PyObject * _obj2 = 0; | |
2960 | wxSize temp0; | |
2961 | PyObject * _obj3 = 0; | |
efc5f224 | 2962 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8bf5d46e RD |
2963 | char _ptemp[128]; |
2964 | ||
2965 | self = self; | |
2f90df85 | 2966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8bf5d46e | 2967 | return NULL; |
1d99702e RD |
2968 | if (_argo0) { |
2969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); |
2972 | return NULL; | |
2973 | } | |
2974 | } | |
2f90df85 RD |
2975 | if (_obj2) |
2976 | { | |
2977 | _arg2 = &temp; | |
2978 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 2979 | return NULL; |
2f90df85 RD |
2980 | } |
2981 | if (_obj3) | |
2982 | { | |
2983 | _arg3 = &temp0; | |
2984 | if (! wxSize_helper(_obj3, &_arg3)) | |
8bf5d46e | 2985 | return NULL; |
2f90df85 | 2986 | } |
8bf5d46e RD |
2987 | { |
2988 | wxPy_BEGIN_ALLOW_THREADS; | |
2989 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
2990 | ||
2991 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2992 | } if (_result) { |
2993 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
2994 | _resultobj = Py_BuildValue("s",_ptemp); | |
2995 | } else { | |
2996 | Py_INCREF(Py_None); | |
2997 | _resultobj = Py_None; | |
2998 | } | |
8bf5d46e RD |
2999 | return _resultobj; |
3000 | } | |
3001 | ||
8ab979d7 RD |
3002 | static void *SwigwxStaticTextTowxControl(void *ptr) { |
3003 | wxStaticText *src; | |
3004 | wxControl *dest; | |
3005 | src = (wxStaticText *) ptr; | |
3006 | dest = (wxControl *) src; | |
3007 | return (void *) dest; | |
3008 | } | |
3009 | ||
3010 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
3011 | wxStaticText *src; | |
3012 | wxWindow *dest; | |
3013 | src = (wxStaticText *) ptr; | |
3014 | dest = (wxWindow *) src; | |
3015 | return (void *) dest; | |
3016 | } | |
3017 | ||
3018 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
3019 | wxStaticText *src; | |
3020 | wxEvtHandler *dest; | |
3021 | src = (wxStaticText *) ptr; | |
3022 | dest = (wxEvtHandler *) src; | |
3023 | return (void *) dest; | |
3024 | } | |
3025 | ||
3026 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 3027 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3028 | PyObject * _resultobj; |
3029 | wxStaticText * _result; | |
3030 | wxWindow * _arg0; | |
3031 | wxWindowID _arg1; | |
3032 | wxString * _arg2; | |
e508a2b6 RD |
3033 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3034 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
3035 | long _arg5 = (long ) 0; |
3036 | char * _arg6 = (char *) "staticText"; | |
3037 | PyObject * _argo0 = 0; | |
8ab979d7 | 3038 | PyObject * _obj2 = 0; |
2f90df85 RD |
3039 | wxPoint temp; |
3040 | PyObject * _obj3 = 0; | |
3041 | wxSize temp0; | |
3042 | PyObject * _obj4 = 0; | |
efc5f224 | 3043 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
8ab979d7 RD |
3044 | char _ptemp[128]; |
3045 | ||
3046 | self = self; | |
2f90df85 | 3047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 3048 | return NULL; |
1d99702e RD |
3049 | if (_argo0) { |
3050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); |
3053 | return NULL; | |
3054 | } | |
3055 | } | |
3056 | { | |
185d7c3e RD |
3057 | #if PYTHON_API_VERSION >= 1009 |
3058 | char* tmpPtr; int tmpSize; | |
3059 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3060 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3061 | return NULL; | |
3062 | } | |
3063 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3064 | return NULL; | |
3065 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3066 | #else | |
8ab979d7 RD |
3067 | if (!PyString_Check(_obj2)) { |
3068 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3069 | return NULL; | |
3070 | } | |
185d7c3e RD |
3071 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3072 | #endif | |
8ab979d7 | 3073 | } |
2f90df85 RD |
3074 | if (_obj3) |
3075 | { | |
3076 | _arg3 = &temp; | |
3077 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 3078 | return NULL; |
2f90df85 RD |
3079 | } |
3080 | if (_obj4) | |
3081 | { | |
3082 | _arg4 = &temp0; | |
3083 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 3084 | return NULL; |
2f90df85 | 3085 | } |
cf694132 RD |
3086 | { |
3087 | wxPy_BEGIN_ALLOW_THREADS; | |
3088 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
3089 | ||
3090 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3091 | } if (_result) { |
3092 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
3093 | _resultobj = Py_BuildValue("s",_ptemp); | |
3094 | } else { | |
3095 | Py_INCREF(Py_None); | |
3096 | _resultobj = Py_None; | |
3097 | } | |
8ab979d7 RD |
3098 | { |
3099 | if (_obj2) | |
3100 | delete _arg2; | |
3101 | } | |
3102 | return _resultobj; | |
3103 | } | |
3104 | ||
3105 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
efc5f224 | 3106 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3107 | PyObject * _resultobj; |
3108 | wxString * _result; | |
3109 | wxStaticText * _arg0; | |
1d99702e | 3110 | PyObject * _argo0 = 0; |
efc5f224 | 3111 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3112 | |
3113 | self = self; | |
efc5f224 | 3114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 3115 | return NULL; |
1d99702e RD |
3116 | if (_argo0) { |
3117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
8ab979d7 RD |
3119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); |
3120 | return NULL; | |
3121 | } | |
3122 | } | |
8ab979d7 | 3123 | { |
cf694132 RD |
3124 | wxPy_BEGIN_ALLOW_THREADS; |
3125 | _result = new wxString (wxStaticText_GetLabel(_arg0)); | |
3126 | ||
3127 | wxPy_END_ALLOW_THREADS; | |
3128 | }{ | |
eec92d76 | 3129 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3130 | } |
3131 | { | |
3132 | delete _result; | |
3133 | } | |
3134 | return _resultobj; | |
3135 | } | |
3136 | ||
3137 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
efc5f224 | 3138 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3139 | PyObject * _resultobj; |
3140 | wxStaticText * _arg0; | |
3141 | wxString * _arg1; | |
1d99702e | 3142 | PyObject * _argo0 = 0; |
8ab979d7 | 3143 | PyObject * _obj1 = 0; |
efc5f224 | 3144 | char *_kwnames[] = { "self","label", NULL }; |
8ab979d7 RD |
3145 | |
3146 | self = self; | |
efc5f224 | 3147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3148 | return NULL; |
1d99702e RD |
3149 | if (_argo0) { |
3150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
8ab979d7 RD |
3152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); |
3153 | return NULL; | |
3154 | } | |
3155 | } | |
3156 | { | |
185d7c3e RD |
3157 | #if PYTHON_API_VERSION >= 1009 |
3158 | char* tmpPtr; int tmpSize; | |
3159 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3160 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3161 | return NULL; | |
3162 | } | |
3163 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3164 | return NULL; | |
3165 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3166 | #else | |
8ab979d7 RD |
3167 | if (!PyString_Check(_obj1)) { |
3168 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3169 | return NULL; | |
3170 | } | |
185d7c3e RD |
3171 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3172 | #endif | |
8ab979d7 | 3173 | } |
cf694132 RD |
3174 | { |
3175 | wxPy_BEGIN_ALLOW_THREADS; | |
3176 | wxStaticText_SetLabel(_arg0,*_arg1); | |
3177 | ||
3178 | wxPy_END_ALLOW_THREADS; | |
3179 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3180 | _resultobj = Py_None; |
3181 | { | |
3182 | if (_obj1) | |
3183 | delete _arg1; | |
3184 | } | |
3185 | return _resultobj; | |
3186 | } | |
3187 | ||
3188 | static void *SwigwxListBoxTowxControl(void *ptr) { | |
3189 | wxListBox *src; | |
3190 | wxControl *dest; | |
3191 | src = (wxListBox *) ptr; | |
3192 | dest = (wxControl *) src; | |
3193 | return (void *) dest; | |
3194 | } | |
3195 | ||
3196 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
3197 | wxListBox *src; | |
3198 | wxWindow *dest; | |
3199 | src = (wxListBox *) ptr; | |
3200 | dest = (wxWindow *) src; | |
3201 | return (void *) dest; | |
3202 | } | |
3203 | ||
3204 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
3205 | wxListBox *src; | |
3206 | wxEvtHandler *dest; | |
3207 | src = (wxListBox *) ptr; | |
3208 | dest = (wxEvtHandler *) src; | |
3209 | return (void *) dest; | |
3210 | } | |
3211 | ||
3212 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
efc5f224 | 3213 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3214 | PyObject * _resultobj; |
3215 | wxListBox * _result; | |
3216 | wxWindow * _arg0; | |
3217 | wxWindowID _arg1; | |
e508a2b6 RD |
3218 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3219 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
8ab979d7 | 3220 | int _arg4; |
1d99702e RD |
3221 | wxString * _arg5 = (wxString *) NULL; |
3222 | long _arg6 = (long ) 0; | |
e508a2b6 | 3223 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
3224 | char * _arg8 = (char *) "listBox"; |
3225 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3226 | wxPoint temp; |
3227 | PyObject * _obj2 = 0; | |
3228 | wxSize temp0; | |
3229 | PyObject * _obj3 = 0; | |
8ab979d7 | 3230 | PyObject * _obj5 = 0; |
1d99702e | 3231 | PyObject * _argo7 = 0; |
eec92d76 | 3232 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
3233 | char _ptemp[128]; |
3234 | ||
3235 | self = self; | |
2f90df85 | 3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
8ab979d7 | 3237 | return NULL; |
1d99702e RD |
3238 | if (_argo0) { |
3239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); |
3242 | return NULL; | |
3243 | } | |
3244 | } | |
2f90df85 RD |
3245 | if (_obj2) |
3246 | { | |
3247 | _arg2 = &temp; | |
3248 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3249 | return NULL; |
2f90df85 RD |
3250 | } |
3251 | if (_obj3) | |
3252 | { | |
3253 | _arg3 = &temp0; | |
3254 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 3255 | return NULL; |
2f90df85 | 3256 | } |
8ab979d7 RD |
3257 | if (_obj5) |
3258 | { | |
3259 | _arg5 = wxString_LIST_helper(_obj5); | |
3260 | if (_arg5 == NULL) { | |
3261 | return NULL; | |
3262 | } | |
3263 | } | |
1d99702e RD |
3264 | if (_argo7) { |
3265 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3266 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
8ab979d7 RD |
3267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); |
3268 | return NULL; | |
3269 | } | |
3270 | } | |
3271 | { | |
cf694132 RD |
3272 | if (_obj5) { |
3273 | _arg4 = PyList_Size(_obj5); | |
3274 | } | |
3275 | else { | |
3276 | _arg4 = 0; | |
3277 | } | |
8ab979d7 | 3278 | } |
cf694132 RD |
3279 | { |
3280 | wxPy_BEGIN_ALLOW_THREADS; | |
3281 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
3282 | ||
3283 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3284 | } if (_result) { |
3285 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
3286 | _resultobj = Py_BuildValue("s",_ptemp); | |
3287 | } else { | |
3288 | Py_INCREF(Py_None); | |
3289 | _resultobj = Py_None; | |
3290 | } | |
8ab979d7 RD |
3291 | { |
3292 | delete [] _arg5; | |
3293 | } | |
3294 | return _resultobj; | |
3295 | } | |
3296 | ||
3297 | #define wxListBox_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
efc5f224 | 3298 | static PyObject *_wrap_wxListBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3299 | PyObject * _resultobj; |
3300 | wxListBox * _arg0; | |
3301 | wxString * _arg1; | |
1d99702e | 3302 | PyObject * _argo0 = 0; |
8ab979d7 | 3303 | PyObject * _obj1 = 0; |
efc5f224 | 3304 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3305 | |
3306 | self = self; | |
efc5f224 | 3307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Append",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3308 | return NULL; |
1d99702e RD |
3309 | if (_argo0) { |
3310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Append. Expected _wxListBox_p."); |
3313 | return NULL; | |
3314 | } | |
3315 | } | |
3316 | { | |
185d7c3e RD |
3317 | #if PYTHON_API_VERSION >= 1009 |
3318 | char* tmpPtr; int tmpSize; | |
3319 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3320 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3321 | return NULL; | |
3322 | } | |
3323 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3324 | return NULL; | |
3325 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3326 | #else | |
8ab979d7 RD |
3327 | if (!PyString_Check(_obj1)) { |
3328 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3329 | return NULL; | |
3330 | } | |
185d7c3e RD |
3331 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3332 | #endif | |
8ab979d7 | 3333 | } |
cf694132 RD |
3334 | { |
3335 | wxPy_BEGIN_ALLOW_THREADS; | |
3336 | wxListBox_Append(_arg0,*_arg1); | |
3337 | ||
3338 | wxPy_END_ALLOW_THREADS; | |
3339 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3340 | _resultobj = Py_None; |
3341 | { | |
3342 | if (_obj1) | |
3343 | delete _arg1; | |
3344 | } | |
3345 | return _resultobj; | |
3346 | } | |
3347 | ||
3348 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) | |
efc5f224 | 3349 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3350 | PyObject * _resultobj; |
3351 | wxListBox * _arg0; | |
1d99702e | 3352 | PyObject * _argo0 = 0; |
efc5f224 | 3353 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3354 | |
3355 | self = self; | |
efc5f224 | 3356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) |
8ab979d7 | 3357 | return NULL; |
1d99702e RD |
3358 | if (_argo0) { |
3359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); |
3362 | return NULL; | |
3363 | } | |
3364 | } | |
cf694132 RD |
3365 | { |
3366 | wxPy_BEGIN_ALLOW_THREADS; | |
3367 | wxListBox_Clear(_arg0); | |
3368 | ||
3369 | wxPy_END_ALLOW_THREADS; | |
3370 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3371 | _resultobj = Py_None; |
3372 | return _resultobj; | |
3373 | } | |
3374 | ||
3375 | #define wxListBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
efc5f224 | 3376 | static PyObject *_wrap_wxListBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3377 | PyObject * _resultobj; |
3378 | wxListBox * _arg0; | |
3379 | int _arg1; | |
1d99702e | 3380 | PyObject * _argo0 = 0; |
efc5f224 | 3381 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
3382 | |
3383 | self = self; | |
efc5f224 | 3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3385 | return NULL; |
1d99702e RD |
3386 | if (_argo0) { |
3387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Delete. Expected _wxListBox_p."); |
3390 | return NULL; | |
3391 | } | |
3392 | } | |
cf694132 RD |
3393 | { |
3394 | wxPy_BEGIN_ALLOW_THREADS; | |
3395 | wxListBox_Delete(_arg0,_arg1); | |
3396 | ||
3397 | wxPy_END_ALLOW_THREADS; | |
3398 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3399 | _resultobj = Py_None; |
3400 | return _resultobj; | |
3401 | } | |
3402 | ||
3403 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) | |
efc5f224 | 3404 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3405 | PyObject * _resultobj; |
3406 | wxListBox * _arg0; | |
3407 | int _arg1; | |
1d99702e | 3408 | PyObject * _argo0 = 0; |
efc5f224 | 3409 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
3410 | |
3411 | self = self; | |
efc5f224 | 3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3413 | return NULL; |
1d99702e RD |
3414 | if (_argo0) { |
3415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); |
3418 | return NULL; | |
3419 | } | |
3420 | } | |
cf694132 RD |
3421 | { |
3422 | wxPy_BEGIN_ALLOW_THREADS; | |
3423 | wxListBox_Deselect(_arg0,_arg1); | |
3424 | ||
3425 | wxPy_END_ALLOW_THREADS; | |
3426 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3427 | _resultobj = Py_None; |
3428 | return _resultobj; | |
3429 | } | |
3430 | ||
3431 | #define wxListBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 3432 | static PyObject *_wrap_wxListBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3433 | PyObject * _resultobj; |
3434 | int _result; | |
3435 | wxListBox * _arg0; | |
3436 | wxString * _arg1; | |
1d99702e | 3437 | PyObject * _argo0 = 0; |
8ab979d7 | 3438 | PyObject * _obj1 = 0; |
efc5f224 | 3439 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
3440 | |
3441 | self = self; | |
efc5f224 | 3442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3443 | return NULL; |
1d99702e RD |
3444 | if (_argo0) { |
3445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_FindString. Expected _wxListBox_p."); |
3448 | return NULL; | |
3449 | } | |
3450 | } | |
3451 | { | |
185d7c3e RD |
3452 | #if PYTHON_API_VERSION >= 1009 |
3453 | char* tmpPtr; int tmpSize; | |
3454 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3455 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3456 | return NULL; | |
3457 | } | |
3458 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3459 | return NULL; | |
3460 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3461 | #else | |
8ab979d7 RD |
3462 | if (!PyString_Check(_obj1)) { |
3463 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3464 | return NULL; | |
3465 | } | |
185d7c3e RD |
3466 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3467 | #endif | |
8ab979d7 | 3468 | } |
cf694132 RD |
3469 | { |
3470 | wxPy_BEGIN_ALLOW_THREADS; | |
3471 | _result = (int )wxListBox_FindString(_arg0,*_arg1); | |
3472 | ||
3473 | wxPy_END_ALLOW_THREADS; | |
3474 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3475 | { |
3476 | if (_obj1) | |
3477 | delete _arg1; | |
3478 | } | |
3479 | return _resultobj; | |
3480 | } | |
3481 | ||
3482 | #define wxListBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 3483 | static PyObject *_wrap_wxListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3484 | PyObject * _resultobj; |
3485 | int _result; | |
3486 | wxListBox * _arg0; | |
1d99702e | 3487 | PyObject * _argo0 = 0; |
efc5f224 | 3488 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3489 | |
3490 | self = self; | |
efc5f224 | 3491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 3492 | return NULL; |
1d99702e RD |
3493 | if (_argo0) { |
3494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelection. Expected _wxListBox_p."); |
3497 | return NULL; | |
3498 | } | |
3499 | } | |
cf694132 RD |
3500 | { |
3501 | wxPy_BEGIN_ALLOW_THREADS; | |
3502 | _result = (int )wxListBox_GetSelection(_arg0); | |
3503 | ||
3504 | wxPy_END_ALLOW_THREADS; | |
3505 | } _resultobj = Py_BuildValue("i",_result); | |
3506 | return _resultobj; | |
3507 | } | |
3508 | ||
3509 | static PyObject * wxListBox_GetSelections(wxListBox *self) { | |
3510 | wxArrayInt lst; | |
3511 | self->GetSelections(lst); | |
3512 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
f6bcfd97 | 3513 | for(size_t i=0; i<lst.GetCount(); i++) { |
cf694132 RD |
3514 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
3515 | } | |
3516 | return tup; | |
3517 | } | |
efc5f224 | 3518 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
3519 | PyObject * _resultobj; |
3520 | PyObject * _result; | |
3521 | wxListBox * _arg0; | |
1d99702e | 3522 | PyObject * _argo0 = 0; |
efc5f224 | 3523 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
3524 | |
3525 | self = self; | |
efc5f224 | 3526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) |
cf694132 | 3527 | return NULL; |
1d99702e RD |
3528 | if (_argo0) { |
3529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
cf694132 RD |
3531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); |
3532 | return NULL; | |
3533 | } | |
3534 | } | |
3535 | { | |
3536 | wxPy_BEGIN_ALLOW_THREADS; | |
3537 | _result = (PyObject *)wxListBox_GetSelections(_arg0); | |
3538 | ||
3539 | wxPy_END_ALLOW_THREADS; | |
3540 | }{ | |
3541 | _resultobj = _result; | |
3542 | } | |
8ab979d7 RD |
3543 | return _resultobj; |
3544 | } | |
3545 | ||
2f90df85 RD |
3546 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
3547 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3548 | PyObject * _resultobj; | |
3549 | wxListBox * _arg0; | |
3550 | int _arg1; | |
3551 | wxString * _arg2; | |
3552 | int _arg3; | |
3553 | PyObject * _argo0 = 0; | |
3554 | PyObject * _obj2 = 0; | |
eec92d76 | 3555 | char *_kwnames[] = { "self","choices","pos", NULL }; |
2f90df85 RD |
3556 | |
3557 | self = self; | |
3558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
3559 | return NULL; | |
3560 | if (_argo0) { | |
3561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
3563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
3564 | return NULL; | |
3565 | } | |
3566 | } | |
3567 | { | |
3568 | _arg2 = wxString_LIST_helper(_obj2); | |
3569 | if (_arg2 == NULL) { | |
3570 | return NULL; | |
3571 | } | |
3572 | } | |
3573 | { | |
3574 | if (_obj2) { | |
3575 | _arg1 = PyList_Size(_obj2); | |
3576 | } | |
3577 | else { | |
3578 | _arg1 = 0; | |
3579 | } | |
3580 | } | |
3581 | { | |
3582 | wxPy_BEGIN_ALLOW_THREADS; | |
3583 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
3584 | ||
3585 | wxPy_END_ALLOW_THREADS; | |
3586 | } Py_INCREF(Py_None); | |
3587 | _resultobj = Py_None; | |
3588 | { | |
3589 | delete [] _arg2; | |
3590 | } | |
3591 | return _resultobj; | |
3592 | } | |
3593 | ||
8ab979d7 | 3594 | #define wxListBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) |
efc5f224 | 3595 | static PyObject *_wrap_wxListBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3596 | PyObject * _resultobj; |
3597 | wxString * _result; | |
3598 | wxListBox * _arg0; | |
3599 | int _arg1; | |
1d99702e | 3600 | PyObject * _argo0 = 0; |
efc5f224 | 3601 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
3602 | |
3603 | self = self; | |
efc5f224 | 3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3605 | return NULL; |
1d99702e RD |
3606 | if (_argo0) { |
3607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetString. Expected _wxListBox_p."); |
3610 | return NULL; | |
3611 | } | |
3612 | } | |
8ab979d7 | 3613 | { |
cf694132 RD |
3614 | wxPy_BEGIN_ALLOW_THREADS; |
3615 | _result = new wxString (wxListBox_GetString(_arg0,_arg1)); | |
3616 | ||
3617 | wxPy_END_ALLOW_THREADS; | |
3618 | }{ | |
eec92d76 | 3619 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3620 | } |
3621 | { | |
3622 | delete _result; | |
3623 | } | |
3624 | return _resultobj; | |
3625 | } | |
3626 | ||
3627 | #define wxListBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
efc5f224 | 3628 | static PyObject *_wrap_wxListBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3629 | PyObject * _resultobj; |
3630 | wxString * _result; | |
3631 | wxListBox * _arg0; | |
1d99702e | 3632 | PyObject * _argo0 = 0; |
efc5f224 | 3633 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3634 | |
3635 | self = self; | |
efc5f224 | 3636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 3637 | return NULL; |
1d99702e RD |
3638 | if (_argo0) { |
3639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetStringSelection. Expected _wxListBox_p."); |
3642 | return NULL; | |
3643 | } | |
3644 | } | |
8ab979d7 | 3645 | { |
cf694132 RD |
3646 | wxPy_BEGIN_ALLOW_THREADS; |
3647 | _result = new wxString (wxListBox_GetStringSelection(_arg0)); | |
3648 | ||
3649 | wxPy_END_ALLOW_THREADS; | |
3650 | }{ | |
eec92d76 | 3651 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3652 | } |
3653 | { | |
3654 | delete _result; | |
3655 | } | |
3656 | return _resultobj; | |
3657 | } | |
3658 | ||
3659 | #define wxListBox_Number(_swigobj) (_swigobj->Number()) | |
efc5f224 | 3660 | static PyObject *_wrap_wxListBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3661 | PyObject * _resultobj; |
3662 | int _result; | |
3663 | wxListBox * _arg0; | |
1d99702e | 3664 | PyObject * _argo0 = 0; |
efc5f224 | 3665 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3666 | |
3667 | self = self; | |
efc5f224 | 3668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Number",_kwnames,&_argo0)) |
8ab979d7 | 3669 | return NULL; |
1d99702e RD |
3670 | if (_argo0) { |
3671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Number. Expected _wxListBox_p."); |
3674 | return NULL; | |
3675 | } | |
3676 | } | |
cf694132 RD |
3677 | { |
3678 | wxPy_BEGIN_ALLOW_THREADS; | |
3679 | _result = (int )wxListBox_Number(_arg0); | |
3680 | ||
3681 | wxPy_END_ALLOW_THREADS; | |
3682 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3683 | return _resultobj; |
3684 | } | |
3685 | ||
3686 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
efc5f224 | 3687 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3688 | PyObject * _resultobj; |
3689 | bool _result; | |
3690 | wxListBox * _arg0; | |
3691 | int _arg1; | |
1d99702e | 3692 | PyObject * _argo0 = 0; |
efc5f224 | 3693 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
3694 | |
3695 | self = self; | |
efc5f224 | 3696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3697 | return NULL; |
1d99702e RD |
3698 | if (_argo0) { |
3699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); |
3702 | return NULL; | |
3703 | } | |
3704 | } | |
cf694132 RD |
3705 | { |
3706 | wxPy_BEGIN_ALLOW_THREADS; | |
3707 | _result = (bool )wxListBox_Selected(_arg0,_arg1); | |
3708 | ||
3709 | wxPy_END_ALLOW_THREADS; | |
3710 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3711 | return _resultobj; |
3712 | } | |
3713 | ||
3714 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
efc5f224 | 3715 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3716 | PyObject * _resultobj; |
3717 | wxListBox * _arg0; | |
3718 | int _arg1; | |
3719 | wxString * _arg2; | |
1d99702e | 3720 | PyObject * _argo0 = 0; |
8ab979d7 | 3721 | PyObject * _obj2 = 0; |
eec92d76 | 3722 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
3723 | |
3724 | self = self; | |
efc5f224 | 3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 3726 | return NULL; |
1d99702e RD |
3727 | if (_argo0) { |
3728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); |
3731 | return NULL; | |
3732 | } | |
3733 | } | |
3734 | if (_obj2) | |
3735 | { | |
3736 | _arg2 = wxString_LIST_helper(_obj2); | |
3737 | if (_arg2 == NULL) { | |
3738 | return NULL; | |
3739 | } | |
3740 | } | |
3741 | { | |
cf694132 RD |
3742 | if (_obj2) { |
3743 | _arg1 = PyList_Size(_obj2); | |
3744 | } | |
3745 | else { | |
3746 | _arg1 = 0; | |
3747 | } | |
8ab979d7 | 3748 | } |
cf694132 RD |
3749 | { |
3750 | wxPy_BEGIN_ALLOW_THREADS; | |
3751 | wxListBox_Set(_arg0,_arg1,_arg2); | |
3752 | ||
3753 | wxPy_END_ALLOW_THREADS; | |
3754 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3755 | _resultobj = Py_None; |
3756 | { | |
3757 | delete [] _arg2; | |
3758 | } | |
3759 | return _resultobj; | |
3760 | } | |
3761 | ||
3762 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
efc5f224 | 3763 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3764 | PyObject * _resultobj; |
3765 | wxListBox * _arg0; | |
3766 | int _arg1; | |
1d99702e | 3767 | PyObject * _argo0 = 0; |
efc5f224 | 3768 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
3769 | |
3770 | self = self; | |
efc5f224 | 3771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3772 | return NULL; |
1d99702e RD |
3773 | if (_argo0) { |
3774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); |
3777 | return NULL; | |
3778 | } | |
3779 | } | |
cf694132 RD |
3780 | { |
3781 | wxPy_BEGIN_ALLOW_THREADS; | |
3782 | wxListBox_SetFirstItem(_arg0,_arg1); | |
3783 | ||
3784 | wxPy_END_ALLOW_THREADS; | |
3785 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3786 | _resultobj = Py_None; |
3787 | return _resultobj; | |
3788 | } | |
3789 | ||
3790 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
efc5f224 | 3791 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3792 | PyObject * _resultobj; |
3793 | wxListBox * _arg0; | |
3794 | wxString * _arg1; | |
1d99702e | 3795 | PyObject * _argo0 = 0; |
8ab979d7 | 3796 | PyObject * _obj1 = 0; |
efc5f224 | 3797 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
3798 | |
3799 | self = self; | |
efc5f224 | 3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3801 | return NULL; |
1d99702e RD |
3802 | if (_argo0) { |
3803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); |
3806 | return NULL; | |
3807 | } | |
3808 | } | |
3809 | { | |
185d7c3e RD |
3810 | #if PYTHON_API_VERSION >= 1009 |
3811 | char* tmpPtr; int tmpSize; | |
3812 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3813 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3814 | return NULL; | |
3815 | } | |
3816 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3817 | return NULL; | |
3818 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3819 | #else | |
8ab979d7 RD |
3820 | if (!PyString_Check(_obj1)) { |
3821 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3822 | return NULL; | |
3823 | } | |
185d7c3e RD |
3824 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3825 | #endif | |
8ab979d7 | 3826 | } |
cf694132 RD |
3827 | { |
3828 | wxPy_BEGIN_ALLOW_THREADS; | |
3829 | wxListBox_SetFirstItemStr(_arg0,*_arg1); | |
3830 | ||
3831 | wxPy_END_ALLOW_THREADS; | |
3832 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3833 | _resultobj = Py_None; |
3834 | { | |
3835 | if (_obj1) | |
3836 | delete _arg1; | |
3837 | } | |
3838 | return _resultobj; | |
3839 | } | |
3840 | ||
3841 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 3842 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3843 | PyObject * _resultobj; |
3844 | wxListBox * _arg0; | |
3845 | int _arg1; | |
1d99702e RD |
3846 | bool _arg2 = (bool ) TRUE; |
3847 | PyObject * _argo0 = 0; | |
3848 | int tempbool2 = (int) TRUE; | |
efc5f224 | 3849 | char *_kwnames[] = { "self","n","select", NULL }; |
8ab979d7 RD |
3850 | |
3851 | self = self; | |
efc5f224 | 3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 3853 | return NULL; |
1d99702e RD |
3854 | if (_argo0) { |
3855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); |
3858 | return NULL; | |
3859 | } | |
3860 | } | |
3861 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
3862 | { |
3863 | wxPy_BEGIN_ALLOW_THREADS; | |
3864 | wxListBox_SetSelection(_arg0,_arg1,_arg2); | |
3865 | ||
3866 | wxPy_END_ALLOW_THREADS; | |
3867 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3868 | _resultobj = Py_None; |
3869 | return _resultobj; | |
3870 | } | |
3871 | ||
3872 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
efc5f224 | 3873 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3874 | PyObject * _resultobj; |
3875 | wxListBox * _arg0; | |
3876 | int _arg1; | |
3877 | wxString * _arg2; | |
1d99702e | 3878 | PyObject * _argo0 = 0; |
8ab979d7 | 3879 | PyObject * _obj2 = 0; |
efc5f224 | 3880 | char *_kwnames[] = { "self","n","string", NULL }; |
8ab979d7 RD |
3881 | |
3882 | self = self; | |
efc5f224 | 3883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3884 | return NULL; |
1d99702e RD |
3885 | if (_argo0) { |
3886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); |
3889 | return NULL; | |
3890 | } | |
3891 | } | |
3892 | { | |
185d7c3e RD |
3893 | #if PYTHON_API_VERSION >= 1009 |
3894 | char* tmpPtr; int tmpSize; | |
3895 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3896 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3897 | return NULL; | |
3898 | } | |
3899 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3900 | return NULL; | |
3901 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3902 | #else | |
8ab979d7 RD |
3903 | if (!PyString_Check(_obj2)) { |
3904 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3905 | return NULL; | |
3906 | } | |
185d7c3e RD |
3907 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3908 | #endif | |
8ab979d7 | 3909 | } |
cf694132 RD |
3910 | { |
3911 | wxPy_BEGIN_ALLOW_THREADS; | |
3912 | wxListBox_SetString(_arg0,_arg1,*_arg2); | |
3913 | ||
3914 | wxPy_END_ALLOW_THREADS; | |
3915 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3916 | _resultobj = Py_None; |
3917 | { | |
3918 | if (_obj2) | |
3919 | delete _arg2; | |
3920 | } | |
3921 | return _resultobj; | |
3922 | } | |
3923 | ||
3924 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 3925 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3926 | PyObject * _resultobj; |
3927 | wxListBox * _arg0; | |
3928 | wxString * _arg1; | |
1d99702e RD |
3929 | bool _arg2 = (bool ) TRUE; |
3930 | PyObject * _argo0 = 0; | |
8ab979d7 | 3931 | PyObject * _obj1 = 0; |
1d99702e | 3932 | int tempbool2 = (int) TRUE; |
efc5f224 | 3933 | char *_kwnames[] = { "self","string","select", NULL }; |
8ab979d7 RD |
3934 | |
3935 | self = self; | |
efc5f224 | 3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 3937 | return NULL; |
1d99702e RD |
3938 | if (_argo0) { |
3939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); |
3942 | return NULL; | |
3943 | } | |
3944 | } | |
3945 | { | |
185d7c3e RD |
3946 | #if PYTHON_API_VERSION >= 1009 |
3947 | char* tmpPtr; int tmpSize; | |
3948 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3949 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3950 | return NULL; | |
3951 | } | |
3952 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3953 | return NULL; | |
3954 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3955 | #else | |
8ab979d7 RD |
3956 | if (!PyString_Check(_obj1)) { |
3957 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3958 | return NULL; | |
3959 | } | |
185d7c3e RD |
3960 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3961 | #endif | |
8ab979d7 RD |
3962 | } |
3963 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
3964 | { |
3965 | wxPy_BEGIN_ALLOW_THREADS; | |
3966 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); | |
3967 | ||
3968 | wxPy_END_ALLOW_THREADS; | |
3969 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3970 | _resultobj = Py_None; |
3971 | { | |
3972 | if (_obj1) | |
3973 | delete _arg1; | |
3974 | } | |
3975 | return _resultobj; | |
3976 | } | |
3977 | ||
9c039d08 RD |
3978 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { |
3979 | wxCheckListBox *src; | |
3980 | wxListBox *dest; | |
3981 | src = (wxCheckListBox *) ptr; | |
3982 | dest = (wxListBox *) src; | |
3983 | return (void *) dest; | |
3984 | } | |
3985 | ||
3986 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { | |
3987 | wxCheckListBox *src; | |
3988 | wxControl *dest; | |
3989 | src = (wxCheckListBox *) ptr; | |
3990 | dest = (wxControl *) src; | |
3991 | return (void *) dest; | |
3992 | } | |
3993 | ||
3994 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
3995 | wxCheckListBox *src; | |
3996 | wxWindow *dest; | |
3997 | src = (wxCheckListBox *) ptr; | |
3998 | dest = (wxWindow *) src; | |
3999 | return (void *) dest; | |
4000 | } | |
4001 | ||
4002 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
4003 | wxCheckListBox *src; | |
4004 | wxEvtHandler *dest; | |
4005 | src = (wxCheckListBox *) ptr; | |
4006 | dest = (wxEvtHandler *) src; | |
4007 | return (void *) dest; | |
4008 | } | |
4009 | ||
4010 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
efc5f224 | 4011 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
4012 | PyObject * _resultobj; |
4013 | wxCheckListBox * _result; | |
4014 | wxWindow * _arg0; | |
4015 | wxWindowID _arg1; | |
e508a2b6 RD |
4016 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
4017 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
4018 | int _arg4 = (int ) 0; |
4019 | wxString * _arg5 = (wxString *) NULL; | |
4020 | long _arg6 = (long ) 0; | |
e508a2b6 | 4021 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
4022 | char * _arg8 = (char *) "listBox"; |
4023 | PyObject * _argo0 = 0; | |
2f90df85 RD |
4024 | wxPoint temp; |
4025 | PyObject * _obj2 = 0; | |
4026 | wxSize temp0; | |
4027 | PyObject * _obj3 = 0; | |
9c039d08 | 4028 | PyObject * _obj5 = 0; |
1d99702e | 4029 | PyObject * _argo7 = 0; |
eec92d76 | 4030 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
9c039d08 RD |
4031 | char _ptemp[128]; |
4032 | ||
4033 | self = self; | |
2f90df85 | 4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
9c039d08 | 4035 | return NULL; |
1d99702e RD |
4036 | if (_argo0) { |
4037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9c039d08 RD |
4039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); |
4040 | return NULL; | |
4041 | } | |
4042 | } | |
2f90df85 RD |
4043 | if (_obj2) |
4044 | { | |
4045 | _arg2 = &temp; | |
4046 | if (! wxPoint_helper(_obj2, &_arg2)) | |
9c039d08 | 4047 | return NULL; |
2f90df85 RD |
4048 | } |
4049 | if (_obj3) | |
4050 | { | |
4051 | _arg3 = &temp0; | |
4052 | if (! wxSize_helper(_obj3, &_arg3)) | |
9c039d08 | 4053 | return NULL; |
2f90df85 | 4054 | } |
9c039d08 RD |
4055 | if (_obj5) |
4056 | { | |
4057 | _arg5 = wxString_LIST_helper(_obj5); | |
4058 | if (_arg5 == NULL) { | |
4059 | return NULL; | |
4060 | } | |
4061 | } | |
1d99702e RD |
4062 | if (_argo7) { |
4063 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4064 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9c039d08 RD |
4065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); |
4066 | return NULL; | |
4067 | } | |
4068 | } | |
4069 | { | |
cf694132 RD |
4070 | if (_obj5) { |
4071 | _arg4 = PyList_Size(_obj5); | |
4072 | } | |
4073 | else { | |
4074 | _arg4 = 0; | |
4075 | } | |
9c039d08 | 4076 | } |
cf694132 RD |
4077 | { |
4078 | wxPy_BEGIN_ALLOW_THREADS; | |
4079 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
4080 | ||
4081 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4082 | } if (_result) { |
4083 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
4084 | _resultobj = Py_BuildValue("s",_ptemp); | |
4085 | } else { | |
4086 | Py_INCREF(Py_None); | |
4087 | _resultobj = Py_None; | |
4088 | } | |
9c039d08 RD |
4089 | { |
4090 | delete [] _arg5; | |
4091 | } | |
4092 | return _resultobj; | |
4093 | } | |
4094 | ||
4095 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
efc5f224 | 4096 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
4097 | PyObject * _resultobj; |
4098 | bool _result; | |
4099 | wxCheckListBox * _arg0; | |
4100 | int _arg1; | |
1d99702e | 4101 | PyObject * _argo0 = 0; |
efc5f224 | 4102 | char *_kwnames[] = { "self","uiIndex", NULL }; |
9c039d08 RD |
4103 | |
4104 | self = self; | |
efc5f224 | 4105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 4106 | return NULL; |
1d99702e RD |
4107 | if (_argo0) { |
4108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
4110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); |
4111 | return NULL; | |
4112 | } | |
4113 | } | |
cf694132 RD |
4114 | { |
4115 | wxPy_BEGIN_ALLOW_THREADS; | |
4116 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); | |
4117 | ||
4118 | wxPy_END_ALLOW_THREADS; | |
4119 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
4120 | return _resultobj; |
4121 | } | |
4122 | ||
4123 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 4124 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
4125 | PyObject * _resultobj; |
4126 | wxCheckListBox * _arg0; | |
4127 | int _arg1; | |
694759cf | 4128 | int _arg2 = (int ) TRUE; |
1d99702e | 4129 | PyObject * _argo0 = 0; |
efc5f224 | 4130 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; |
9c039d08 RD |
4131 | |
4132 | self = self; | |
694759cf | 4133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) |
9c039d08 | 4134 | return NULL; |
1d99702e RD |
4135 | if (_argo0) { |
4136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
4138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); |
4139 | return NULL; | |
4140 | } | |
4141 | } | |
cf694132 RD |
4142 | { |
4143 | wxPy_BEGIN_ALLOW_THREADS; | |
4144 | wxCheckListBox_Check(_arg0,_arg1,_arg2); | |
4145 | ||
4146 | wxPy_END_ALLOW_THREADS; | |
4147 | } Py_INCREF(Py_None); | |
9c039d08 RD |
4148 | _resultobj = Py_None; |
4149 | return _resultobj; | |
4150 | } | |
4151 | ||
694759cf RD |
4152 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
4153 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4154 | PyObject * _resultobj; | |
4155 | wxCheckListBox * _arg0; | |
4156 | int _arg1; | |
4157 | wxString * _arg2; | |
4158 | int _arg3; | |
4159 | PyObject * _argo0 = 0; | |
4160 | PyObject * _obj2 = 0; | |
eec92d76 | 4161 | char *_kwnames[] = { "self","choices","pos", NULL }; |
694759cf RD |
4162 | |
4163 | self = self; | |
4164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4165 | return NULL; | |
4166 | if (_argo0) { | |
4167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
4169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
4170 | return NULL; | |
4171 | } | |
4172 | } | |
4173 | { | |
4174 | _arg2 = wxString_LIST_helper(_obj2); | |
4175 | if (_arg2 == NULL) { | |
4176 | return NULL; | |
4177 | } | |
4178 | } | |
4179 | { | |
4180 | if (_obj2) { | |
4181 | _arg1 = PyList_Size(_obj2); | |
4182 | } | |
4183 | else { | |
4184 | _arg1 = 0; | |
4185 | } | |
4186 | } | |
4187 | { | |
4188 | wxPy_BEGIN_ALLOW_THREADS; | |
4189 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
4190 | ||
4191 | wxPy_END_ALLOW_THREADS; | |
4192 | } Py_INCREF(Py_None); | |
4193 | _resultobj = Py_None; | |
4194 | { | |
4195 | delete [] _arg2; | |
4196 | } | |
4197 | return _resultobj; | |
4198 | } | |
4199 | ||
9c039d08 | 4200 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) |
efc5f224 | 4201 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
4202 | PyObject * _resultobj; |
4203 | int _result; | |
4204 | wxCheckListBox * _arg0; | |
1d99702e | 4205 | PyObject * _argo0 = 0; |
efc5f224 | 4206 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
4207 | |
4208 | self = self; | |
efc5f224 | 4209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) |
9c039d08 | 4210 | return NULL; |
1d99702e RD |
4211 | if (_argo0) { |
4212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
4214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); |
4215 | return NULL; | |
4216 | } | |
4217 | } | |
cf694132 RD |
4218 | { |
4219 | wxPy_BEGIN_ALLOW_THREADS; | |
4220 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); | |
4221 | ||
4222 | wxPy_END_ALLOW_THREADS; | |
4223 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
4224 | return _resultobj; |
4225 | } | |
4226 | ||
8ab979d7 RD |
4227 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
4228 | wxTextCtrl *src; | |
4229 | wxControl *dest; | |
4230 | src = (wxTextCtrl *) ptr; | |
4231 | dest = (wxControl *) src; | |
4232 | return (void *) dest; | |
4233 | } | |
4234 | ||
4235 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
4236 | wxTextCtrl *src; | |
4237 | wxWindow *dest; | |
4238 | src = (wxTextCtrl *) ptr; | |
4239 | dest = (wxWindow *) src; | |
4240 | return (void *) dest; | |
4241 | } | |
4242 | ||
4243 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
4244 | wxTextCtrl *src; | |
4245 | wxEvtHandler *dest; | |
4246 | src = (wxTextCtrl *) ptr; | |
4247 | dest = (wxEvtHandler *) src; | |
4248 | return (void *) dest; | |
4249 | } | |
4250 | ||
4251 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
efc5f224 | 4252 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4253 | PyObject * _resultobj; |
4254 | wxTextCtrl * _result; | |
4255 | wxWindow * _arg0; | |
4256 | wxWindowID _arg1; | |
1d99702e | 4257 | char * _arg2 = (char *) ""; |
e508a2b6 RD |
4258 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4259 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 4260 | long _arg5 = (long ) 0; |
e508a2b6 | 4261 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
4262 | char * _arg7 = (char *) "text"; |
4263 | PyObject * _argo0 = 0; | |
2f90df85 RD |
4264 | wxPoint temp; |
4265 | PyObject * _obj3 = 0; | |
4266 | wxSize temp0; | |
4267 | PyObject * _obj4 = 0; | |
1d99702e | 4268 | PyObject * _argo6 = 0; |
efc5f224 | 4269 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
4270 | char _ptemp[128]; |
4271 | ||
4272 | self = self; | |
2f90df85 | 4273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 4274 | return NULL; |
1d99702e RD |
4275 | if (_argo0) { |
4276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); |
4279 | return NULL; | |
4280 | } | |
4281 | } | |
2f90df85 RD |
4282 | if (_obj3) |
4283 | { | |
4284 | _arg3 = &temp; | |
4285 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 4286 | return NULL; |
2f90df85 RD |
4287 | } |
4288 | if (_obj4) | |
4289 | { | |
4290 | _arg4 = &temp0; | |
4291 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 4292 | return NULL; |
2f90df85 | 4293 | } |
1d99702e RD |
4294 | if (_argo6) { |
4295 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
4296 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
4297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); |
4298 | return NULL; | |
4299 | } | |
4300 | } | |
cf694132 RD |
4301 | { |
4302 | wxPy_BEGIN_ALLOW_THREADS; | |
4303 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
4304 | ||
4305 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4306 | } if (_result) { |
4307 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
4308 | _resultobj = Py_BuildValue("s",_ptemp); | |
4309 | } else { | |
4310 | Py_INCREF(Py_None); | |
4311 | _resultobj = Py_None; | |
4312 | } | |
8ab979d7 RD |
4313 | return _resultobj; |
4314 | } | |
4315 | ||
4316 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) | |
efc5f224 | 4317 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4318 | PyObject * _resultobj; |
4319 | wxTextCtrl * _arg0; | |
1d99702e | 4320 | PyObject * _argo0 = 0; |
efc5f224 | 4321 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4322 | |
4323 | self = self; | |
efc5f224 | 4324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
8ab979d7 | 4325 | return NULL; |
1d99702e RD |
4326 | if (_argo0) { |
4327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
4330 | return NULL; | |
4331 | } | |
4332 | } | |
cf694132 RD |
4333 | { |
4334 | wxPy_BEGIN_ALLOW_THREADS; | |
4335 | wxTextCtrl_Clear(_arg0); | |
4336 | ||
4337 | wxPy_END_ALLOW_THREADS; | |
4338 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4339 | _resultobj = Py_None; |
4340 | return _resultobj; | |
4341 | } | |
4342 | ||
4343 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) | |
efc5f224 | 4344 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4345 | PyObject * _resultobj; |
4346 | wxTextCtrl * _arg0; | |
1d99702e | 4347 | PyObject * _argo0 = 0; |
efc5f224 | 4348 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4349 | |
4350 | self = self; | |
efc5f224 | 4351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
8ab979d7 | 4352 | return NULL; |
1d99702e RD |
4353 | if (_argo0) { |
4354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
4357 | return NULL; | |
4358 | } | |
4359 | } | |
cf694132 RD |
4360 | { |
4361 | wxPy_BEGIN_ALLOW_THREADS; | |
4362 | wxTextCtrl_Copy(_arg0); | |
4363 | ||
4364 | wxPy_END_ALLOW_THREADS; | |
4365 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4366 | _resultobj = Py_None; |
4367 | return _resultobj; | |
4368 | } | |
4369 | ||
4370 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) | |
efc5f224 | 4371 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4372 | PyObject * _resultobj; |
4373 | wxTextCtrl * _arg0; | |
1d99702e | 4374 | PyObject * _argo0 = 0; |
efc5f224 | 4375 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4376 | |
4377 | self = self; | |
efc5f224 | 4378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
8ab979d7 | 4379 | return NULL; |
1d99702e RD |
4380 | if (_argo0) { |
4381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
4384 | return NULL; | |
4385 | } | |
4386 | } | |
cf694132 RD |
4387 | { |
4388 | wxPy_BEGIN_ALLOW_THREADS; | |
4389 | wxTextCtrl_Cut(_arg0); | |
4390 | ||
4391 | wxPy_END_ALLOW_THREADS; | |
4392 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4393 | _resultobj = Py_None; |
4394 | return _resultobj; | |
4395 | } | |
4396 | ||
4397 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) | |
efc5f224 | 4398 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4399 | PyObject * _resultobj; |
4400 | wxTextCtrl * _arg0; | |
1d99702e | 4401 | PyObject * _argo0 = 0; |
efc5f224 | 4402 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4403 | |
4404 | self = self; | |
efc5f224 | 4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
8ab979d7 | 4406 | return NULL; |
1d99702e RD |
4407 | if (_argo0) { |
4408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
4411 | return NULL; | |
4412 | } | |
4413 | } | |
cf694132 RD |
4414 | { |
4415 | wxPy_BEGIN_ALLOW_THREADS; | |
4416 | wxTextCtrl_DiscardEdits(_arg0); | |
4417 | ||
4418 | wxPy_END_ALLOW_THREADS; | |
4419 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4420 | _resultobj = Py_None; |
4421 | return _resultobj; | |
4422 | } | |
4423 | ||
4424 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
efc5f224 | 4425 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4426 | PyObject * _resultobj; |
4427 | long _result; | |
4428 | wxTextCtrl * _arg0; | |
1d99702e | 4429 | PyObject * _argo0 = 0; |
efc5f224 | 4430 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4431 | |
4432 | self = self; | |
efc5f224 | 4433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
8ab979d7 | 4434 | return NULL; |
1d99702e RD |
4435 | if (_argo0) { |
4436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
4439 | return NULL; | |
4440 | } | |
4441 | } | |
cf694132 RD |
4442 | { |
4443 | wxPy_BEGIN_ALLOW_THREADS; | |
4444 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); | |
4445 | ||
4446 | wxPy_END_ALLOW_THREADS; | |
4447 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4448 | return _resultobj; |
4449 | } | |
4450 | ||
4451 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
efc5f224 | 4452 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4453 | PyObject * _resultobj; |
4454 | long _result; | |
4455 | wxTextCtrl * _arg0; | |
1d99702e | 4456 | PyObject * _argo0 = 0; |
efc5f224 | 4457 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4458 | |
4459 | self = self; | |
efc5f224 | 4460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
8ab979d7 | 4461 | return NULL; |
1d99702e RD |
4462 | if (_argo0) { |
4463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
4466 | return NULL; | |
4467 | } | |
4468 | } | |
cf694132 RD |
4469 | { |
4470 | wxPy_BEGIN_ALLOW_THREADS; | |
4471 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); | |
4472 | ||
4473 | wxPy_END_ALLOW_THREADS; | |
4474 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4475 | return _resultobj; |
4476 | } | |
4477 | ||
4478 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) | |
efc5f224 | 4479 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4480 | PyObject * _resultobj; |
4481 | int _result; | |
4482 | wxTextCtrl * _arg0; | |
4483 | long _arg1; | |
1d99702e | 4484 | PyObject * _argo0 = 0; |
efc5f224 | 4485 | char *_kwnames[] = { "self","lineNo", NULL }; |
8ab979d7 RD |
4486 | |
4487 | self = self; | |
efc5f224 | 4488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4489 | return NULL; |
1d99702e RD |
4490 | if (_argo0) { |
4491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
4494 | return NULL; | |
4495 | } | |
4496 | } | |
cf694132 RD |
4497 | { |
4498 | wxPy_BEGIN_ALLOW_THREADS; | |
4499 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); | |
4500 | ||
4501 | wxPy_END_ALLOW_THREADS; | |
4502 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4503 | return _resultobj; |
4504 | } | |
4505 | ||
4506 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) | |
efc5f224 | 4507 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4508 | PyObject * _resultobj; |
4509 | wxString * _result; | |
4510 | wxTextCtrl * _arg0; | |
4511 | long _arg1; | |
1d99702e | 4512 | PyObject * _argo0 = 0; |
efc5f224 | 4513 | char *_kwnames[] = { "self","lineNo", NULL }; |
8ab979d7 RD |
4514 | |
4515 | self = self; | |
efc5f224 | 4516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4517 | return NULL; |
1d99702e RD |
4518 | if (_argo0) { |
4519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
4522 | return NULL; | |
4523 | } | |
4524 | } | |
8ab979d7 | 4525 | { |
cf694132 RD |
4526 | wxPy_BEGIN_ALLOW_THREADS; |
4527 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); | |
4528 | ||
4529 | wxPy_END_ALLOW_THREADS; | |
4530 | }{ | |
eec92d76 | 4531 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
4532 | } |
4533 | { | |
4534 | delete _result; | |
4535 | } | |
4536 | return _resultobj; | |
4537 | } | |
4538 | ||
4539 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) | |
efc5f224 | 4540 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4541 | PyObject * _resultobj; |
4542 | int _result; | |
4543 | wxTextCtrl * _arg0; | |
1d99702e | 4544 | PyObject * _argo0 = 0; |
efc5f224 | 4545 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4546 | |
4547 | self = self; | |
efc5f224 | 4548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
8ab979d7 | 4549 | return NULL; |
1d99702e RD |
4550 | if (_argo0) { |
4551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
4554 | return NULL; | |
4555 | } | |
4556 | } | |
cf694132 RD |
4557 | { |
4558 | wxPy_BEGIN_ALLOW_THREADS; | |
4559 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); | |
4560 | ||
4561 | wxPy_END_ALLOW_THREADS; | |
4562 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4563 | return _resultobj; |
4564 | } | |
4565 | ||
4566 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 4567 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4568 | PyObject * _resultobj; |
4569 | wxString * _result; | |
4570 | wxTextCtrl * _arg0; | |
1d99702e | 4571 | PyObject * _argo0 = 0; |
efc5f224 | 4572 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4573 | |
4574 | self = self; | |
efc5f224 | 4575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 4576 | return NULL; |
1d99702e RD |
4577 | if (_argo0) { |
4578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
4581 | return NULL; | |
4582 | } | |
4583 | } | |
8ab979d7 | 4584 | { |
cf694132 RD |
4585 | wxPy_BEGIN_ALLOW_THREADS; |
4586 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); | |
4587 | ||
4588 | wxPy_END_ALLOW_THREADS; | |
4589 | }{ | |
eec92d76 | 4590 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
4591 | } |
4592 | { | |
4593 | delete _result; | |
4594 | } | |
4595 | return _resultobj; | |
4596 | } | |
4597 | ||
4598 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) | |
efc5f224 | 4599 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4600 | PyObject * _resultobj; |
4601 | bool _result; | |
4602 | wxTextCtrl * _arg0; | |
1d99702e | 4603 | PyObject * _argo0 = 0; |
efc5f224 | 4604 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4605 | |
4606 | self = self; | |
efc5f224 | 4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
8ab979d7 | 4608 | return NULL; |
1d99702e RD |
4609 | if (_argo0) { |
4610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
4613 | return NULL; | |
4614 | } | |
4615 | } | |
cf694132 RD |
4616 | { |
4617 | wxPy_BEGIN_ALLOW_THREADS; | |
4618 | _result = (bool )wxTextCtrl_IsModified(_arg0); | |
4619 | ||
4620 | wxPy_END_ALLOW_THREADS; | |
4621 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4622 | return _resultobj; |
4623 | } | |
4624 | ||
4625 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
efc5f224 | 4626 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4627 | PyObject * _resultobj; |
4628 | bool _result; | |
4629 | wxTextCtrl * _arg0; | |
4630 | wxString * _arg1; | |
1d99702e | 4631 | PyObject * _argo0 = 0; |
8ab979d7 | 4632 | PyObject * _obj1 = 0; |
efc5f224 | 4633 | char *_kwnames[] = { "self","filename", NULL }; |
8ab979d7 RD |
4634 | |
4635 | self = self; | |
efc5f224 | 4636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4637 | return NULL; |
1d99702e RD |
4638 | if (_argo0) { |
4639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); |
4642 | return NULL; | |
4643 | } | |
4644 | } | |
4645 | { | |
185d7c3e RD |
4646 | #if PYTHON_API_VERSION >= 1009 |
4647 | char* tmpPtr; int tmpSize; | |
4648 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4649 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4650 | return NULL; | |
4651 | } | |
4652 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4653 | return NULL; | |
4654 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4655 | #else | |
8ab979d7 RD |
4656 | if (!PyString_Check(_obj1)) { |
4657 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4658 | return NULL; | |
4659 | } | |
185d7c3e RD |
4660 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4661 | #endif | |
8ab979d7 | 4662 | } |
cf694132 RD |
4663 | { |
4664 | wxPy_BEGIN_ALLOW_THREADS; | |
4665 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); | |
4666 | ||
4667 | wxPy_END_ALLOW_THREADS; | |
4668 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4669 | { |
4670 | if (_obj1) | |
4671 | delete _arg1; | |
4672 | } | |
4673 | return _resultobj; | |
4674 | } | |
4675 | ||
4676 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) | |
efc5f224 | 4677 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4678 | PyObject * _resultobj; |
4679 | wxTextCtrl * _arg0; | |
1d99702e | 4680 | PyObject * _argo0 = 0; |
efc5f224 | 4681 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4682 | |
4683 | self = self; | |
efc5f224 | 4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
8ab979d7 | 4685 | return NULL; |
1d99702e RD |
4686 | if (_argo0) { |
4687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
4690 | return NULL; | |
4691 | } | |
4692 | } | |
cf694132 RD |
4693 | { |
4694 | wxPy_BEGIN_ALLOW_THREADS; | |
4695 | wxTextCtrl_Paste(_arg0); | |
4696 | ||
4697 | wxPy_END_ALLOW_THREADS; | |
4698 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4699 | _resultobj = Py_None; |
4700 | return _resultobj; | |
4701 | } | |
4702 | ||
4703 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4704 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4705 | PyObject * _resultobj; |
4706 | wxTextCtrl * _arg0; | |
4707 | long _arg1; | |
4708 | long * _arg2; | |
4709 | long temp; | |
4710 | long * _arg3; | |
4711 | long temp0; | |
1d99702e | 4712 | PyObject * _argo0 = 0; |
efc5f224 | 4713 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4714 | |
4715 | self = self; | |
4716 | { | |
4717 | _arg2 = &temp; | |
4718 | } | |
4719 | { | |
4720 | _arg3 = &temp0; | |
4721 | } | |
efc5f224 | 4722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4723 | return NULL; |
1d99702e RD |
4724 | if (_argo0) { |
4725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
4728 | return NULL; | |
4729 | } | |
4730 | } | |
cf694132 RD |
4731 | { |
4732 | wxPy_BEGIN_ALLOW_THREADS; | |
4733 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); | |
4734 | ||
4735 | wxPy_END_ALLOW_THREADS; | |
4736 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4737 | _resultobj = Py_None; |
4738 | { | |
4739 | PyObject *o; | |
4740 | o = PyInt_FromLong((long) (*_arg2)); | |
4741 | _resultobj = t_output_helper(_resultobj, o); | |
4742 | } | |
4743 | { | |
4744 | PyObject *o; | |
4745 | o = PyInt_FromLong((long) (*_arg3)); | |
4746 | _resultobj = t_output_helper(_resultobj, o); | |
4747 | } | |
4748 | return _resultobj; | |
4749 | } | |
4750 | ||
4751 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
efc5f224 | 4752 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4753 | PyObject * _resultobj; |
4754 | wxTextCtrl * _arg0; | |
4755 | long _arg1; | |
4756 | long _arg2; | |
1d99702e | 4757 | PyObject * _argo0 = 0; |
efc5f224 | 4758 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
4759 | |
4760 | self = self; | |
efc5f224 | 4761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4762 | return NULL; |
1d99702e RD |
4763 | if (_argo0) { |
4764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); |
4767 | return NULL; | |
4768 | } | |
4769 | } | |
cf694132 RD |
4770 | { |
4771 | wxPy_BEGIN_ALLOW_THREADS; | |
4772 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); | |
4773 | ||
4774 | wxPy_END_ALLOW_THREADS; | |
4775 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4776 | _resultobj = Py_None; |
4777 | return _resultobj; | |
4778 | } | |
4779 | ||
4780 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4781 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4782 | PyObject * _resultobj; |
4783 | wxTextCtrl * _arg0; | |
4784 | long _arg1; | |
4785 | long _arg2; | |
4786 | wxString * _arg3; | |
1d99702e | 4787 | PyObject * _argo0 = 0; |
8ab979d7 | 4788 | PyObject * _obj3 = 0; |
efc5f224 | 4789 | char *_kwnames[] = { "self","from","to","value", NULL }; |
8ab979d7 RD |
4790 | |
4791 | self = self; | |
efc5f224 | 4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 4793 | return NULL; |
1d99702e RD |
4794 | if (_argo0) { |
4795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
4798 | return NULL; | |
4799 | } | |
4800 | } | |
4801 | { | |
185d7c3e RD |
4802 | #if PYTHON_API_VERSION >= 1009 |
4803 | char* tmpPtr; int tmpSize; | |
4804 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
4805 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4806 | return NULL; | |
4807 | } | |
4808 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
4809 | return NULL; | |
4810 | _arg3 = new wxString(tmpPtr, tmpSize); | |
4811 | #else | |
8ab979d7 RD |
4812 | if (!PyString_Check(_obj3)) { |
4813 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4814 | return NULL; | |
4815 | } | |
185d7c3e RD |
4816 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
4817 | #endif | |
8ab979d7 | 4818 | } |
cf694132 RD |
4819 | { |
4820 | wxPy_BEGIN_ALLOW_THREADS; | |
4821 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); | |
4822 | ||
4823 | wxPy_END_ALLOW_THREADS; | |
4824 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4825 | _resultobj = Py_None; |
4826 | { | |
4827 | if (_obj3) | |
4828 | delete _arg3; | |
4829 | } | |
4830 | return _resultobj; | |
4831 | } | |
4832 | ||
4833 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) | |
efc5f224 | 4834 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4835 | PyObject * _resultobj; |
4836 | bool _result; | |
4837 | wxTextCtrl * _arg0; | |
4838 | wxString * _arg1; | |
1d99702e | 4839 | PyObject * _argo0 = 0; |
8ab979d7 | 4840 | PyObject * _obj1 = 0; |
efc5f224 | 4841 | char *_kwnames[] = { "self","filename", NULL }; |
8ab979d7 RD |
4842 | |
4843 | self = self; | |
efc5f224 | 4844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4845 | return NULL; |
1d99702e RD |
4846 | if (_argo0) { |
4847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
4850 | return NULL; | |
4851 | } | |
4852 | } | |
4853 | { | |
185d7c3e RD |
4854 | #if PYTHON_API_VERSION >= 1009 |
4855 | char* tmpPtr; int tmpSize; | |
4856 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4857 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4858 | return NULL; | |
4859 | } | |
4860 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4861 | return NULL; | |
4862 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4863 | #else | |
8ab979d7 RD |
4864 | if (!PyString_Check(_obj1)) { |
4865 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4866 | return NULL; | |
4867 | } | |
185d7c3e RD |
4868 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4869 | #endif | |
8ab979d7 | 4870 | } |
cf694132 RD |
4871 | { |
4872 | wxPy_BEGIN_ALLOW_THREADS; | |
4873 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); | |
4874 | ||
4875 | wxPy_END_ALLOW_THREADS; | |
4876 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4877 | { |
4878 | if (_obj1) | |
4879 | delete _arg1; | |
4880 | } | |
4881 | return _resultobj; | |
4882 | } | |
4883 | ||
4884 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
efc5f224 | 4885 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4886 | PyObject * _resultobj; |
4887 | wxTextCtrl * _arg0; | |
4888 | bool _arg1; | |
1d99702e | 4889 | PyObject * _argo0 = 0; |
8ab979d7 | 4890 | int tempbool1; |
efc5f224 | 4891 | char *_kwnames[] = { "self","editable", NULL }; |
8ab979d7 RD |
4892 | |
4893 | self = self; | |
efc5f224 | 4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4895 | return NULL; |
1d99702e RD |
4896 | if (_argo0) { |
4897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
4900 | return NULL; | |
4901 | } | |
4902 | } | |
4903 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4904 | { |
4905 | wxPy_BEGIN_ALLOW_THREADS; | |
4906 | wxTextCtrl_SetEditable(_arg0,_arg1); | |
4907 | ||
4908 | wxPy_END_ALLOW_THREADS; | |
4909 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4910 | _resultobj = Py_None; |
4911 | return _resultobj; | |
4912 | } | |
4913 | ||
4914 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
efc5f224 | 4915 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4916 | PyObject * _resultobj; |
4917 | wxTextCtrl * _arg0; | |
4918 | long _arg1; | |
1d99702e | 4919 | PyObject * _argo0 = 0; |
efc5f224 | 4920 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4921 | |
4922 | self = self; | |
efc5f224 | 4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4924 | return NULL; |
1d99702e RD |
4925 | if (_argo0) { |
4926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
4929 | return NULL; | |
4930 | } | |
4931 | } | |
cf694132 RD |
4932 | { |
4933 | wxPy_BEGIN_ALLOW_THREADS; | |
4934 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); | |
4935 | ||
4936 | wxPy_END_ALLOW_THREADS; | |
4937 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4938 | _resultobj = Py_None; |
4939 | return _resultobj; | |
4940 | } | |
4941 | ||
4942 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
efc5f224 | 4943 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4944 | PyObject * _resultobj; |
4945 | wxTextCtrl * _arg0; | |
1d99702e | 4946 | PyObject * _argo0 = 0; |
efc5f224 | 4947 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4948 | |
4949 | self = self; | |
efc5f224 | 4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
8ab979d7 | 4951 | return NULL; |
1d99702e RD |
4952 | if (_argo0) { |
4953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
4956 | return NULL; | |
4957 | } | |
4958 | } | |
cf694132 RD |
4959 | { |
4960 | wxPy_BEGIN_ALLOW_THREADS; | |
4961 | wxTextCtrl_SetInsertionPointEnd(_arg0); | |
4962 | ||
4963 | wxPy_END_ALLOW_THREADS; | |
4964 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4965 | _resultobj = Py_None; |
4966 | return _resultobj; | |
4967 | } | |
4968 | ||
4969 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 4970 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4971 | PyObject * _resultobj; |
4972 | wxTextCtrl * _arg0; | |
4973 | long _arg1; | |
4974 | long _arg2; | |
1d99702e | 4975 | PyObject * _argo0 = 0; |
efc5f224 | 4976 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
4977 | |
4978 | self = self; | |
efc5f224 | 4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4980 | return NULL; |
1d99702e RD |
4981 | if (_argo0) { |
4982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); |
4985 | return NULL; | |
4986 | } | |
4987 | } | |
cf694132 RD |
4988 | { |
4989 | wxPy_BEGIN_ALLOW_THREADS; | |
4990 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); | |
4991 | ||
4992 | wxPy_END_ALLOW_THREADS; | |
4993 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4994 | _resultobj = Py_None; |
4995 | return _resultobj; | |
4996 | } | |
4997 | ||
4998 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 4999 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5000 | PyObject * _resultobj; |
5001 | wxTextCtrl * _arg0; | |
5002 | wxString * _arg1; | |
1d99702e | 5003 | PyObject * _argo0 = 0; |
8ab979d7 | 5004 | PyObject * _obj1 = 0; |
efc5f224 | 5005 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
5006 | |
5007 | self = self; | |
efc5f224 | 5008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5009 | return NULL; |
1d99702e RD |
5010 | if (_argo0) { |
5011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
5014 | return NULL; | |
5015 | } | |
5016 | } | |
5017 | { | |
185d7c3e RD |
5018 | #if PYTHON_API_VERSION >= 1009 |
5019 | char* tmpPtr; int tmpSize; | |
5020 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5021 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5022 | return NULL; | |
5023 | } | |
5024 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5025 | return NULL; | |
5026 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5027 | #else | |
8ab979d7 RD |
5028 | if (!PyString_Check(_obj1)) { |
5029 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5030 | return NULL; | |
5031 | } | |
185d7c3e RD |
5032 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5033 | #endif | |
8ab979d7 | 5034 | } |
cf694132 RD |
5035 | { |
5036 | wxPy_BEGIN_ALLOW_THREADS; | |
5037 | wxTextCtrl_SetValue(_arg0,*_arg1); | |
5038 | ||
5039 | wxPy_END_ALLOW_THREADS; | |
5040 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5041 | _resultobj = Py_None; |
5042 | { | |
5043 | if (_obj1) | |
5044 | delete _arg1; | |
5045 | } | |
5046 | return _resultobj; | |
5047 | } | |
5048 | ||
5049 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
efc5f224 | 5050 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5051 | PyObject * _resultobj; |
5052 | wxTextCtrl * _arg0; | |
5053 | long _arg1; | |
1d99702e | 5054 | PyObject * _argo0 = 0; |
efc5f224 | 5055 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
5056 | |
5057 | self = self; | |
efc5f224 | 5058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5059 | return NULL; |
1d99702e RD |
5060 | if (_argo0) { |
5061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); |
5064 | return NULL; | |
5065 | } | |
5066 | } | |
cf694132 RD |
5067 | { |
5068 | wxPy_BEGIN_ALLOW_THREADS; | |
5069 | wxTextCtrl_ShowPosition(_arg0,_arg1); | |
5070 | ||
5071 | wxPy_END_ALLOW_THREADS; | |
5072 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5073 | _resultobj = Py_None; |
5074 | return _resultobj; | |
5075 | } | |
5076 | ||
5077 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) | |
efc5f224 | 5078 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5079 | PyObject * _resultobj; |
5080 | wxTextCtrl * _arg0; | |
5081 | wxString * _arg1; | |
1d99702e | 5082 | PyObject * _argo0 = 0; |
8ab979d7 | 5083 | PyObject * _obj1 = 0; |
efc5f224 | 5084 | char *_kwnames[] = { "self","text", NULL }; |
8ab979d7 RD |
5085 | |
5086 | self = self; | |
efc5f224 | 5087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5088 | return NULL; |
1d99702e RD |
5089 | if (_argo0) { |
5090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
5093 | return NULL; | |
5094 | } | |
5095 | } | |
5096 | { | |
185d7c3e RD |
5097 | #if PYTHON_API_VERSION >= 1009 |
5098 | char* tmpPtr; int tmpSize; | |
5099 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5100 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5101 | return NULL; | |
5102 | } | |
5103 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5104 | return NULL; | |
5105 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5106 | #else | |
8ab979d7 RD |
5107 | if (!PyString_Check(_obj1)) { |
5108 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5109 | return NULL; | |
5110 | } | |
185d7c3e RD |
5111 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5112 | #endif | |
cf694132 RD |
5113 | } |
5114 | { | |
5115 | wxPy_BEGIN_ALLOW_THREADS; | |
5116 | wxTextCtrl_WriteText(_arg0,*_arg1); | |
5117 | ||
5118 | wxPy_END_ALLOW_THREADS; | |
5119 | } Py_INCREF(Py_None); | |
5120 | _resultobj = Py_None; | |
5121 | { | |
5122 | if (_obj1) | |
5123 | delete _arg1; | |
5124 | } | |
5125 | return _resultobj; | |
5126 | } | |
5127 | ||
5128 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) | |
efc5f224 | 5129 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5130 | PyObject * _resultobj; |
5131 | wxTextCtrl * _arg0; | |
5132 | wxString * _arg1; | |
1d99702e | 5133 | PyObject * _argo0 = 0; |
cf694132 | 5134 | PyObject * _obj1 = 0; |
efc5f224 | 5135 | char *_kwnames[] = { "self","text", NULL }; |
cf694132 RD |
5136 | |
5137 | self = self; | |
efc5f224 | 5138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
cf694132 | 5139 | return NULL; |
1d99702e RD |
5140 | if (_argo0) { |
5141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
cf694132 RD |
5143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
5144 | return NULL; | |
5145 | } | |
5146 | } | |
5147 | { | |
185d7c3e RD |
5148 | #if PYTHON_API_VERSION >= 1009 |
5149 | char* tmpPtr; int tmpSize; | |
5150 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5151 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5152 | return NULL; | |
5153 | } | |
5154 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5155 | return NULL; | |
5156 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5157 | #else | |
cf694132 RD |
5158 | if (!PyString_Check(_obj1)) { |
5159 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5160 | return NULL; | |
5161 | } | |
185d7c3e RD |
5162 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5163 | #endif | |
8ab979d7 | 5164 | } |
cf694132 RD |
5165 | { |
5166 | wxPy_BEGIN_ALLOW_THREADS; | |
5167 | wxTextCtrl_AppendText(_arg0,*_arg1); | |
5168 | ||
5169 | wxPy_END_ALLOW_THREADS; | |
5170 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5171 | _resultobj = Py_None; |
5172 | { | |
5173 | if (_obj1) | |
5174 | delete _arg1; | |
5175 | } | |
5176 | return _resultobj; | |
5177 | } | |
5178 | ||
5179 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) | |
efc5f224 | 5180 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5181 | PyObject * _resultobj; |
5182 | long _result; | |
5183 | wxTextCtrl * _arg0; | |
5184 | long _arg1; | |
5185 | long _arg2; | |
1d99702e | 5186 | PyObject * _argo0 = 0; |
efc5f224 | 5187 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
5188 | |
5189 | self = self; | |
efc5f224 | 5190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5191 | return NULL; |
1d99702e RD |
5192 | if (_argo0) { |
5193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
5196 | return NULL; | |
5197 | } | |
5198 | } | |
cf694132 RD |
5199 | { |
5200 | wxPy_BEGIN_ALLOW_THREADS; | |
5201 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); | |
5202 | ||
5203 | wxPy_END_ALLOW_THREADS; | |
5204 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
5205 | return _resultobj; |
5206 | } | |
5207 | ||
c127177f | 5208 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) |
efc5f224 | 5209 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5210 | PyObject * _resultobj; |
5211 | bool _result; | |
5212 | wxTextCtrl * _arg0; | |
1d99702e | 5213 | PyObject * _argo0 = 0; |
efc5f224 | 5214 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5215 | |
5216 | self = self; | |
efc5f224 | 5217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) |
c127177f | 5218 | return NULL; |
1d99702e RD |
5219 | if (_argo0) { |
5220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); |
5223 | return NULL; | |
5224 | } | |
5225 | } | |
5226 | { | |
5227 | wxPy_BEGIN_ALLOW_THREADS; | |
5228 | _result = (bool )wxTextCtrl_CanCopy(_arg0); | |
5229 | ||
5230 | wxPy_END_ALLOW_THREADS; | |
5231 | } _resultobj = Py_BuildValue("i",_result); | |
5232 | return _resultobj; | |
5233 | } | |
5234 | ||
5235 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
efc5f224 | 5236 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5237 | PyObject * _resultobj; |
5238 | bool _result; | |
5239 | wxTextCtrl * _arg0; | |
1d99702e | 5240 | PyObject * _argo0 = 0; |
efc5f224 | 5241 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5242 | |
5243 | self = self; | |
efc5f224 | 5244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) |
c127177f | 5245 | return NULL; |
1d99702e RD |
5246 | if (_argo0) { |
5247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); |
5250 | return NULL; | |
5251 | } | |
5252 | } | |
5253 | { | |
5254 | wxPy_BEGIN_ALLOW_THREADS; | |
5255 | _result = (bool )wxTextCtrl_CanCut(_arg0); | |
5256 | ||
5257 | wxPy_END_ALLOW_THREADS; | |
5258 | } _resultobj = Py_BuildValue("i",_result); | |
5259 | return _resultobj; | |
5260 | } | |
5261 | ||
5262 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
efc5f224 | 5263 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5264 | PyObject * _resultobj; |
5265 | bool _result; | |
5266 | wxTextCtrl * _arg0; | |
1d99702e | 5267 | PyObject * _argo0 = 0; |
efc5f224 | 5268 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5269 | |
5270 | self = self; | |
efc5f224 | 5271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) |
c127177f | 5272 | return NULL; |
1d99702e RD |
5273 | if (_argo0) { |
5274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); |
5277 | return NULL; | |
5278 | } | |
5279 | } | |
5280 | { | |
5281 | wxPy_BEGIN_ALLOW_THREADS; | |
5282 | _result = (bool )wxTextCtrl_CanPaste(_arg0); | |
5283 | ||
5284 | wxPy_END_ALLOW_THREADS; | |
5285 | } _resultobj = Py_BuildValue("i",_result); | |
5286 | return _resultobj; | |
5287 | } | |
5288 | ||
5289 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) | |
efc5f224 | 5290 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5291 | PyObject * _resultobj; |
5292 | bool _result; | |
5293 | wxTextCtrl * _arg0; | |
1d99702e | 5294 | PyObject * _argo0 = 0; |
efc5f224 | 5295 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5296 | |
5297 | self = self; | |
efc5f224 | 5298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
c127177f | 5299 | return NULL; |
1d99702e RD |
5300 | if (_argo0) { |
5301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
5304 | return NULL; | |
5305 | } | |
5306 | } | |
5307 | { | |
5308 | wxPy_BEGIN_ALLOW_THREADS; | |
5309 | _result = (bool )wxTextCtrl_CanRedo(_arg0); | |
5310 | ||
5311 | wxPy_END_ALLOW_THREADS; | |
5312 | } _resultobj = Py_BuildValue("i",_result); | |
5313 | return _resultobj; | |
5314 | } | |
5315 | ||
5316 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) | |
efc5f224 | 5317 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5318 | PyObject * _resultobj; |
5319 | bool _result; | |
5320 | wxTextCtrl * _arg0; | |
1d99702e | 5321 | PyObject * _argo0 = 0; |
efc5f224 | 5322 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5323 | |
5324 | self = self; | |
efc5f224 | 5325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
c127177f | 5326 | return NULL; |
1d99702e RD |
5327 | if (_argo0) { |
5328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
5331 | return NULL; | |
5332 | } | |
5333 | } | |
5334 | { | |
5335 | wxPy_BEGIN_ALLOW_THREADS; | |
5336 | _result = (bool )wxTextCtrl_CanUndo(_arg0); | |
5337 | ||
5338 | wxPy_END_ALLOW_THREADS; | |
5339 | } _resultobj = Py_BuildValue("i",_result); | |
5340 | return _resultobj; | |
5341 | } | |
5342 | ||
5343 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 5344 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5345 | PyObject * _resultobj; |
5346 | wxTextCtrl * _arg0; | |
5347 | long * _arg1; | |
5348 | long temp; | |
5349 | long * _arg2; | |
5350 | long temp0; | |
1d99702e | 5351 | PyObject * _argo0 = 0; |
efc5f224 | 5352 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5353 | |
5354 | self = self; | |
5355 | { | |
5356 | _arg1 = &temp; | |
5357 | } | |
5358 | { | |
5359 | _arg2 = &temp0; | |
5360 | } | |
efc5f224 | 5361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) |
c127177f | 5362 | return NULL; |
1d99702e RD |
5363 | if (_argo0) { |
5364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
5367 | return NULL; | |
5368 | } | |
5369 | } | |
5370 | { | |
5371 | wxPy_BEGIN_ALLOW_THREADS; | |
5372 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); | |
5373 | ||
5374 | wxPy_END_ALLOW_THREADS; | |
5375 | } Py_INCREF(Py_None); | |
5376 | _resultobj = Py_None; | |
5377 | { | |
5378 | PyObject *o; | |
5379 | o = PyInt_FromLong((long) (*_arg1)); | |
5380 | _resultobj = t_output_helper(_resultobj, o); | |
5381 | } | |
5382 | { | |
5383 | PyObject *o; | |
5384 | o = PyInt_FromLong((long) (*_arg2)); | |
5385 | _resultobj = t_output_helper(_resultobj, o); | |
5386 | } | |
5387 | return _resultobj; | |
5388 | } | |
5389 | ||
5390 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) | |
efc5f224 | 5391 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5392 | PyObject * _resultobj; |
5393 | bool _result; | |
5394 | wxTextCtrl * _arg0; | |
1d99702e | 5395 | PyObject * _argo0 = 0; |
efc5f224 | 5396 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5397 | |
5398 | self = self; | |
efc5f224 | 5399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
c127177f | 5400 | return NULL; |
1d99702e RD |
5401 | if (_argo0) { |
5402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
5405 | return NULL; | |
5406 | } | |
5407 | } | |
5408 | { | |
5409 | wxPy_BEGIN_ALLOW_THREADS; | |
5410 | _result = (bool )wxTextCtrl_IsEditable(_arg0); | |
5411 | ||
5412 | wxPy_END_ALLOW_THREADS; | |
5413 | } _resultobj = Py_BuildValue("i",_result); | |
5414 | return _resultobj; | |
5415 | } | |
5416 | ||
b1462dfa RD |
5417 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
5418 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5419 | PyObject * _resultobj; | |
5420 | wxTextCtrl * _arg0; | |
5421 | PyObject * _argo0 = 0; | |
5422 | char *_kwnames[] = { "self", NULL }; | |
5423 | ||
5424 | self = self; | |
5425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) | |
5426 | return NULL; | |
5427 | if (_argo0) { | |
5428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
5430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); | |
5431 | return NULL; | |
5432 | } | |
5433 | } | |
5434 | { | |
5435 | wxPy_BEGIN_ALLOW_THREADS; | |
5436 | wxTextCtrl_Undo(_arg0); | |
5437 | ||
5438 | wxPy_END_ALLOW_THREADS; | |
5439 | } Py_INCREF(Py_None); | |
5440 | _resultobj = Py_None; | |
5441 | return _resultobj; | |
5442 | } | |
5443 | ||
5444 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) | |
5445 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5446 | PyObject * _resultobj; | |
5447 | wxTextCtrl * _arg0; | |
5448 | PyObject * _argo0 = 0; | |
5449 | char *_kwnames[] = { "self", NULL }; | |
5450 | ||
5451 | self = self; | |
5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) | |
5453 | return NULL; | |
5454 | if (_argo0) { | |
5455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
5457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); | |
5458 | return NULL; | |
5459 | } | |
5460 | } | |
5461 | { | |
5462 | wxPy_BEGIN_ALLOW_THREADS; | |
5463 | wxTextCtrl_Redo(_arg0); | |
5464 | ||
5465 | wxPy_END_ALLOW_THREADS; | |
5466 | } Py_INCREF(Py_None); | |
5467 | _resultobj = Py_None; | |
5468 | return _resultobj; | |
5469 | } | |
5470 | ||
5471 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { | |
5472 | self->AppendText(text + '\n'); | |
5473 | } | |
5474 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5475 | PyObject * _resultobj; | |
5476 | wxTextCtrl * _arg0; | |
5477 | wxString * _arg1; | |
5478 | PyObject * _argo0 = 0; | |
5479 | PyObject * _obj1 = 0; | |
5480 | char *_kwnames[] = { "self","text", NULL }; | |
5481 | ||
5482 | self = self; | |
5483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
5484 | return NULL; | |
5485 | if (_argo0) { | |
5486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
5488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
5489 | return NULL; | |
5490 | } | |
5491 | } | |
5492 | { | |
185d7c3e RD |
5493 | #if PYTHON_API_VERSION >= 1009 |
5494 | char* tmpPtr; int tmpSize; | |
5495 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5496 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5497 | return NULL; | |
5498 | } | |
5499 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5500 | return NULL; | |
5501 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5502 | #else | |
b1462dfa RD |
5503 | if (!PyString_Check(_obj1)) { |
5504 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5505 | return NULL; | |
5506 | } | |
185d7c3e RD |
5507 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5508 | #endif | |
b1462dfa RD |
5509 | } |
5510 | { | |
5511 | wxPy_BEGIN_ALLOW_THREADS; | |
5512 | wxTextCtrl_write(_arg0,*_arg1); | |
5513 | ||
5514 | wxPy_END_ALLOW_THREADS; | |
5515 | } Py_INCREF(Py_None); | |
5516 | _resultobj = Py_None; | |
5517 | { | |
5518 | if (_obj1) | |
5519 | delete _arg1; | |
5520 | } | |
5521 | return _resultobj; | |
5522 | } | |
5523 | ||
8ab979d7 RD |
5524 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
5525 | wxScrollBar *src; | |
5526 | wxControl *dest; | |
5527 | src = (wxScrollBar *) ptr; | |
5528 | dest = (wxControl *) src; | |
5529 | return (void *) dest; | |
5530 | } | |
5531 | ||
5532 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
5533 | wxScrollBar *src; | |
5534 | wxWindow *dest; | |
5535 | src = (wxScrollBar *) ptr; | |
5536 | dest = (wxWindow *) src; | |
5537 | return (void *) dest; | |
5538 | } | |
5539 | ||
5540 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
5541 | wxScrollBar *src; | |
5542 | wxEvtHandler *dest; | |
5543 | src = (wxScrollBar *) ptr; | |
5544 | dest = (wxEvtHandler *) src; | |
5545 | return (void *) dest; | |
5546 | } | |
5547 | ||
5548 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 5549 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5550 | PyObject * _resultobj; |
5551 | wxScrollBar * _result; | |
5552 | wxWindow * _arg0; | |
1d99702e | 5553 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
5554 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5555 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 5556 | long _arg4 = (long ) wxSB_HORIZONTAL; |
e508a2b6 | 5557 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
5558 | char * _arg6 = (char *) "scrollBar"; |
5559 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5560 | wxPoint temp; |
5561 | PyObject * _obj2 = 0; | |
5562 | wxSize temp0; | |
5563 | PyObject * _obj3 = 0; | |
1d99702e | 5564 | PyObject * _argo5 = 0; |
efc5f224 | 5565 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
5566 | char _ptemp[128]; |
5567 | ||
5568 | self = self; | |
2f90df85 | 5569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 5570 | return NULL; |
1d99702e RD |
5571 | if (_argo0) { |
5572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); |
5575 | return NULL; | |
5576 | } | |
5577 | } | |
2f90df85 RD |
5578 | if (_obj2) |
5579 | { | |
5580 | _arg2 = &temp; | |
5581 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5582 | return NULL; |
2f90df85 RD |
5583 | } |
5584 | if (_obj3) | |
5585 | { | |
5586 | _arg3 = &temp0; | |
5587 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5588 | return NULL; |
2f90df85 | 5589 | } |
1d99702e RD |
5590 | if (_argo5) { |
5591 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5592 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
5593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); |
5594 | return NULL; | |
5595 | } | |
5596 | } | |
cf694132 RD |
5597 | { |
5598 | wxPy_BEGIN_ALLOW_THREADS; | |
5599 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
5600 | ||
5601 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5602 | } if (_result) { |
5603 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
5604 | _resultobj = Py_BuildValue("s",_ptemp); | |
5605 | } else { | |
5606 | Py_INCREF(Py_None); | |
5607 | _resultobj = Py_None; | |
5608 | } | |
8ab979d7 RD |
5609 | return _resultobj; |
5610 | } | |
5611 | ||
5612 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) | |
efc5f224 | 5613 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5614 | PyObject * _resultobj; |
5615 | int _result; | |
5616 | wxScrollBar * _arg0; | |
1d99702e | 5617 | PyObject * _argo0 = 0; |
efc5f224 | 5618 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5619 | |
5620 | self = self; | |
efc5f224 | 5621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) |
8ab979d7 | 5622 | return NULL; |
1d99702e RD |
5623 | if (_argo0) { |
5624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
5626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); |
5627 | return NULL; | |
5628 | } | |
5629 | } | |
cf694132 RD |
5630 | { |
5631 | wxPy_BEGIN_ALLOW_THREADS; | |
5632 | _result = (int )wxScrollBar_GetRange(_arg0); | |
5633 | ||
5634 | wxPy_END_ALLOW_THREADS; | |
5635 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5636 | return _resultobj; |
5637 | } | |
5638 | ||
5639 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
efc5f224 | 5640 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5641 | PyObject * _resultobj; |
5642 | int _result; | |
5643 | wxScrollBar * _arg0; | |
1d99702e | 5644 | PyObject * _argo0 = 0; |
efc5f224 | 5645 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5646 | |
5647 | self = self; | |
efc5f224 | 5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) |
8ab979d7 | 5649 | return NULL; |
1d99702e RD |
5650 | if (_argo0) { |
5651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
5653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); |
5654 | return NULL; | |
5655 | } | |
5656 | } | |
cf694132 RD |
5657 | { |
5658 | wxPy_BEGIN_ALLOW_THREADS; | |
5659 | _result = (int )wxScrollBar_GetPageSize(_arg0); | |
5660 | ||
5661 | wxPy_END_ALLOW_THREADS; | |
5662 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5663 | return _resultobj; |
5664 | } | |
5665 | ||
b8b8dda7 | 5666 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) |
efc5f224 | 5667 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5668 | PyObject * _resultobj; |
5669 | int _result; | |
5670 | wxScrollBar * _arg0; | |
1d99702e | 5671 | PyObject * _argo0 = 0; |
efc5f224 | 5672 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5673 | |
5674 | self = self; | |
efc5f224 | 5675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) |
8ab979d7 | 5676 | return NULL; |
1d99702e RD |
5677 | if (_argo0) { |
5678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
b8b8dda7 | 5680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); |
8ab979d7 RD |
5681 | return NULL; |
5682 | } | |
5683 | } | |
cf694132 RD |
5684 | { |
5685 | wxPy_BEGIN_ALLOW_THREADS; | |
5686 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); | |
5687 | ||
5688 | wxPy_END_ALLOW_THREADS; | |
5689 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5690 | return _resultobj; |
5691 | } | |
5692 | ||
5693 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
efc5f224 | 5694 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5695 | PyObject * _resultobj; |
5696 | int _result; | |
5697 | wxScrollBar * _arg0; | |
1d99702e | 5698 | PyObject * _argo0 = 0; |
efc5f224 | 5699 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5700 | |
5701 | self = self; | |
efc5f224 | 5702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) |
8ab979d7 | 5703 | return NULL; |
1d99702e RD |
5704 | if (_argo0) { |
5705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
5707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); |
5708 | return NULL; | |
5709 | } | |
5710 | } | |
cf694132 RD |
5711 | { |
5712 | wxPy_BEGIN_ALLOW_THREADS; | |
5713 | _result = (int )wxScrollBar_GetThumbSize(_arg0); | |
5714 | ||
5715 | wxPy_END_ALLOW_THREADS; | |
5716 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5717 | return _resultobj; |
5718 | } | |
5719 | ||
b8b8dda7 | 5720 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
efc5f224 | 5721 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5722 | PyObject * _resultobj; |
5723 | wxScrollBar * _arg0; | |
5724 | int _arg1; | |
1d99702e | 5725 | PyObject * _argo0 = 0; |
efc5f224 | 5726 | char *_kwnames[] = { "self","viewStart", NULL }; |
8ab979d7 RD |
5727 | |
5728 | self = self; | |
efc5f224 | 5729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5730 | return NULL; |
1d99702e RD |
5731 | if (_argo0) { |
5732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
b8b8dda7 | 5734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); |
8ab979d7 RD |
5735 | return NULL; |
5736 | } | |
5737 | } | |
cf694132 RD |
5738 | { |
5739 | wxPy_BEGIN_ALLOW_THREADS; | |
5740 | wxScrollBar_SetThumbPosition(_arg0,_arg1); | |
5741 | ||
5742 | wxPy_END_ALLOW_THREADS; | |
5743 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5744 | _resultobj = Py_None; |
5745 | return _resultobj; | |
5746 | } | |
5747 | ||
5748 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 5749 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5750 | PyObject * _resultobj; |
5751 | wxScrollBar * _arg0; | |
5752 | int _arg1; | |
5753 | int _arg2; | |
5754 | int _arg3; | |
5755 | int _arg4; | |
1d99702e RD |
5756 | bool _arg5 = (bool ) TRUE; |
5757 | PyObject * _argo0 = 0; | |
5758 | int tempbool5 = (int) TRUE; | |
efc5f224 | 5759 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; |
8ab979d7 RD |
5760 | |
5761 | self = self; | |
efc5f224 | 5762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
8ab979d7 | 5763 | return NULL; |
1d99702e RD |
5764 | if (_argo0) { |
5765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
5767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); |
5768 | return NULL; | |
5769 | } | |
5770 | } | |
5771 | _arg5 = (bool ) tempbool5; | |
cf694132 RD |
5772 | { |
5773 | wxPy_BEGIN_ALLOW_THREADS; | |
5774 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
5775 | ||
5776 | wxPy_END_ALLOW_THREADS; | |
5777 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5778 | _resultobj = Py_None; |
5779 | return _resultobj; | |
5780 | } | |
5781 | ||
5782 | static void *SwigwxSpinButtonTowxControl(void *ptr) { | |
5783 | wxSpinButton *src; | |
5784 | wxControl *dest; | |
5785 | src = (wxSpinButton *) ptr; | |
5786 | dest = (wxControl *) src; | |
5787 | return (void *) dest; | |
5788 | } | |
5789 | ||
5790 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
5791 | wxSpinButton *src; | |
5792 | wxWindow *dest; | |
5793 | src = (wxSpinButton *) ptr; | |
5794 | dest = (wxWindow *) src; | |
5795 | return (void *) dest; | |
5796 | } | |
5797 | ||
5798 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
5799 | wxSpinButton *src; | |
5800 | wxEvtHandler *dest; | |
5801 | src = (wxSpinButton *) ptr; | |
5802 | dest = (wxEvtHandler *) src; | |
5803 | return (void *) dest; | |
5804 | } | |
5805 | ||
5806 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 5807 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5808 | PyObject * _resultobj; |
5809 | wxSpinButton * _result; | |
5810 | wxWindow * _arg0; | |
1d99702e | 5811 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
5812 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5813 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5814 | long _arg4 = (long ) wxSP_HORIZONTAL; |
5815 | char * _arg5 = (char *) "spinButton"; | |
5816 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5817 | wxPoint temp; |
5818 | PyObject * _obj2 = 0; | |
5819 | wxSize temp0; | |
5820 | PyObject * _obj3 = 0; | |
efc5f224 | 5821 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5822 | char _ptemp[128]; |
5823 | ||
5824 | self = self; | |
2f90df85 | 5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5826 | return NULL; |
1d99702e RD |
5827 | if (_argo0) { |
5828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); |
5831 | return NULL; | |
5832 | } | |
5833 | } | |
2f90df85 RD |
5834 | if (_obj2) |
5835 | { | |
5836 | _arg2 = &temp; | |
5837 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5838 | return NULL; |
2f90df85 RD |
5839 | } |
5840 | if (_obj3) | |
5841 | { | |
5842 | _arg3 = &temp0; | |
5843 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5844 | return NULL; |
2f90df85 | 5845 | } |
cf694132 RD |
5846 | { |
5847 | wxPy_BEGIN_ALLOW_THREADS; | |
5848 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5849 | ||
5850 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5851 | } if (_result) { |
5852 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
5853 | _resultobj = Py_BuildValue("s",_ptemp); | |
5854 | } else { | |
5855 | Py_INCREF(Py_None); | |
5856 | _resultobj = Py_None; | |
5857 | } | |
8ab979d7 RD |
5858 | return _resultobj; |
5859 | } | |
5860 | ||
5861 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) | |
efc5f224 | 5862 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5863 | PyObject * _resultobj; |
5864 | int _result; | |
5865 | wxSpinButton * _arg0; | |
1d99702e | 5866 | PyObject * _argo0 = 0; |
efc5f224 | 5867 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5868 | |
5869 | self = self; | |
efc5f224 | 5870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) |
8ab979d7 | 5871 | return NULL; |
1d99702e RD |
5872 | if (_argo0) { |
5873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
5875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); |
5876 | return NULL; | |
5877 | } | |
5878 | } | |
cf694132 RD |
5879 | { |
5880 | wxPy_BEGIN_ALLOW_THREADS; | |
5881 | _result = (int )wxSpinButton_GetMax(_arg0); | |
5882 | ||
5883 | wxPy_END_ALLOW_THREADS; | |
5884 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5885 | return _resultobj; |
5886 | } | |
5887 | ||
5888 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
efc5f224 | 5889 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5890 | PyObject * _resultobj; |
5891 | int _result; | |
5892 | wxSpinButton * _arg0; | |
1d99702e | 5893 | PyObject * _argo0 = 0; |
efc5f224 | 5894 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5895 | |
5896 | self = self; | |
efc5f224 | 5897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) |
8ab979d7 | 5898 | return NULL; |
1d99702e RD |
5899 | if (_argo0) { |
5900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
5902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); |
5903 | return NULL; | |
5904 | } | |
5905 | } | |
cf694132 RD |
5906 | { |
5907 | wxPy_BEGIN_ALLOW_THREADS; | |
5908 | _result = (int )wxSpinButton_GetMin(_arg0); | |
5909 | ||
5910 | wxPy_END_ALLOW_THREADS; | |
5911 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5912 | return _resultobj; |
5913 | } | |
5914 | ||
5915 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 5916 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5917 | PyObject * _resultobj; |
5918 | int _result; | |
5919 | wxSpinButton * _arg0; | |
1d99702e | 5920 | PyObject * _argo0 = 0; |
efc5f224 | 5921 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5922 | |
5923 | self = self; | |
efc5f224 | 5924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 5925 | return NULL; |
1d99702e RD |
5926 | if (_argo0) { |
5927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
5929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); |
5930 | return NULL; | |
5931 | } | |
5932 | } | |
cf694132 RD |
5933 | { |
5934 | wxPy_BEGIN_ALLOW_THREADS; | |
5935 | _result = (int )wxSpinButton_GetValue(_arg0); | |
5936 | ||
5937 | wxPy_END_ALLOW_THREADS; | |
5938 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5939 | return _resultobj; |
5940 | } | |
5941 | ||
5942 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 5943 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5944 | PyObject * _resultobj; |
5945 | wxSpinButton * _arg0; | |
5946 | int _arg1; | |
5947 | int _arg2; | |
1d99702e | 5948 | PyObject * _argo0 = 0; |
efc5f224 | 5949 | char *_kwnames[] = { "self","min","max", NULL }; |
8ab979d7 RD |
5950 | |
5951 | self = self; | |
efc5f224 | 5952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5953 | return NULL; |
1d99702e RD |
5954 | if (_argo0) { |
5955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
5957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); |
5958 | return NULL; | |
5959 | } | |
5960 | } | |
cf694132 RD |
5961 | { |
5962 | wxPy_BEGIN_ALLOW_THREADS; | |
5963 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); | |
5964 | ||
5965 | wxPy_END_ALLOW_THREADS; | |
5966 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5967 | _resultobj = Py_None; |
5968 | return _resultobj; | |
5969 | } | |
5970 | ||
5971 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 5972 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5973 | PyObject * _resultobj; |
5974 | wxSpinButton * _arg0; | |
5975 | int _arg1; | |
1d99702e | 5976 | PyObject * _argo0 = 0; |
efc5f224 | 5977 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
5978 | |
5979 | self = self; | |
efc5f224 | 5980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5981 | return NULL; |
1d99702e RD |
5982 | if (_argo0) { |
5983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
5985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); |
5986 | return NULL; | |
5987 | } | |
5988 | } | |
cf694132 RD |
5989 | { |
5990 | wxPy_BEGIN_ALLOW_THREADS; | |
5991 | wxSpinButton_SetValue(_arg0,_arg1); | |
5992 | ||
5993 | wxPy_END_ALLOW_THREADS; | |
5994 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5995 | _resultobj = Py_None; |
5996 | return _resultobj; | |
5997 | } | |
5998 | ||
5999 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { | |
6000 | wxStaticBitmap *src; | |
6001 | wxControl *dest; | |
6002 | src = (wxStaticBitmap *) ptr; | |
6003 | dest = (wxControl *) src; | |
6004 | return (void *) dest; | |
6005 | } | |
6006 | ||
6007 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
6008 | wxStaticBitmap *src; | |
6009 | wxWindow *dest; | |
6010 | src = (wxStaticBitmap *) ptr; | |
6011 | dest = (wxWindow *) src; | |
6012 | return (void *) dest; | |
6013 | } | |
6014 | ||
6015 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
6016 | wxStaticBitmap *src; | |
6017 | wxEvtHandler *dest; | |
6018 | src = (wxStaticBitmap *) ptr; | |
6019 | dest = (wxEvtHandler *) src; | |
6020 | return (void *) dest; | |
6021 | } | |
6022 | ||
6023 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 6024 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6025 | PyObject * _resultobj; |
6026 | wxStaticBitmap * _result; | |
6027 | wxWindow * _arg0; | |
6028 | wxWindowID _arg1; | |
6029 | wxBitmap * _arg2; | |
e508a2b6 RD |
6030 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6031 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6032 | long _arg5 = (long ) 0; |
6033 | char * _arg6 = (char *) "staticBitmap"; | |
6034 | PyObject * _argo0 = 0; | |
6035 | PyObject * _argo2 = 0; | |
2f90df85 RD |
6036 | wxPoint temp; |
6037 | PyObject * _obj3 = 0; | |
6038 | wxSize temp0; | |
6039 | PyObject * _obj4 = 0; | |
efc5f224 | 6040 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; |
8ab979d7 RD |
6041 | char _ptemp[128]; |
6042 | ||
6043 | self = self; | |
2f90df85 | 6044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 6045 | return NULL; |
1d99702e RD |
6046 | if (_argo0) { |
6047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); |
6050 | return NULL; | |
6051 | } | |
6052 | } | |
1d99702e RD |
6053 | if (_argo2) { |
6054 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6055 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8ab979d7 RD |
6056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); |
6057 | return NULL; | |
6058 | } | |
6059 | } | |
2f90df85 RD |
6060 | if (_obj3) |
6061 | { | |
6062 | _arg3 = &temp; | |
6063 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 6064 | return NULL; |
2f90df85 RD |
6065 | } |
6066 | if (_obj4) | |
6067 | { | |
6068 | _arg4 = &temp0; | |
6069 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 6070 | return NULL; |
2f90df85 | 6071 | } |
cf694132 RD |
6072 | { |
6073 | wxPy_BEGIN_ALLOW_THREADS; | |
6074 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
6075 | ||
6076 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6077 | } if (_result) { |
6078 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
6079 | _resultobj = Py_BuildValue("s",_ptemp); | |
6080 | } else { | |
6081 | Py_INCREF(Py_None); | |
6082 | _resultobj = Py_None; | |
6083 | } | |
8ab979d7 RD |
6084 | return _resultobj; |
6085 | } | |
6086 | ||
6087 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
efc5f224 | 6088 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6089 | PyObject * _resultobj; |
6090 | wxBitmap * _result; | |
6091 | wxStaticBitmap * _arg0; | |
1d99702e | 6092 | PyObject * _argo0 = 0; |
efc5f224 | 6093 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6094 | char _ptemp[128]; |
6095 | ||
6096 | self = self; | |
efc5f224 | 6097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) |
8ab979d7 | 6098 | return NULL; |
1d99702e RD |
6099 | if (_argo0) { |
6100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8ab979d7 RD |
6102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); |
6103 | return NULL; | |
6104 | } | |
6105 | } | |
cf694132 RD |
6106 | { |
6107 | wxPy_BEGIN_ALLOW_THREADS; | |
6108 | const wxBitmap & _result_ref = wxStaticBitmap_GetBitmap(_arg0); | |
8ab979d7 | 6109 | _result = (wxBitmap *) &_result_ref; |
cf694132 RD |
6110 | |
6111 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6112 | } if (_result) { |
6113 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6114 | _resultobj = Py_BuildValue("s",_ptemp); | |
6115 | } else { | |
6116 | Py_INCREF(Py_None); | |
6117 | _resultobj = Py_None; | |
6118 | } | |
8ab979d7 RD |
6119 | return _resultobj; |
6120 | } | |
6121 | ||
6122 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
efc5f224 | 6123 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6124 | PyObject * _resultobj; |
6125 | wxStaticBitmap * _arg0; | |
6126 | wxBitmap * _arg1; | |
1d99702e RD |
6127 | PyObject * _argo0 = 0; |
6128 | PyObject * _argo1 = 0; | |
efc5f224 | 6129 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
6130 | |
6131 | self = self; | |
efc5f224 | 6132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6133 | return NULL; |
1d99702e RD |
6134 | if (_argo0) { |
6135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8ab979d7 RD |
6137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); |
6138 | return NULL; | |
6139 | } | |
6140 | } | |
1d99702e RD |
6141 | if (_argo1) { |
6142 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6143 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
6144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); |
6145 | return NULL; | |
6146 | } | |
6147 | } | |
cf694132 RD |
6148 | { |
6149 | wxPy_BEGIN_ALLOW_THREADS; | |
6150 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); | |
6151 | ||
6152 | wxPy_END_ALLOW_THREADS; | |
6153 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6154 | _resultobj = Py_None; |
6155 | return _resultobj; | |
6156 | } | |
6157 | ||
8bf5d46e | 6158 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
efc5f224 | 6159 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
6160 | PyObject * _resultobj; |
6161 | wxStaticBitmap * _arg0; | |
6162 | wxIcon * _arg1; | |
1d99702e RD |
6163 | PyObject * _argo0 = 0; |
6164 | PyObject * _argo1 = 0; | |
efc5f224 | 6165 | char *_kwnames[] = { "self","icon", NULL }; |
8bf5d46e RD |
6166 | |
6167 | self = self; | |
efc5f224 | 6168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) |
8bf5d46e | 6169 | return NULL; |
1d99702e RD |
6170 | if (_argo0) { |
6171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8bf5d46e RD |
6173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); |
6174 | return NULL; | |
6175 | } | |
6176 | } | |
1d99702e RD |
6177 | if (_argo1) { |
6178 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6179 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8bf5d46e RD |
6180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); |
6181 | return NULL; | |
6182 | } | |
6183 | } | |
6184 | { | |
6185 | wxPy_BEGIN_ALLOW_THREADS; | |
6186 | wxStaticBitmap_SetIcon(_arg0,*_arg1); | |
6187 | ||
6188 | wxPy_END_ALLOW_THREADS; | |
6189 | } Py_INCREF(Py_None); | |
6190 | _resultobj = Py_None; | |
6191 | return _resultobj; | |
6192 | } | |
6193 | ||
8ab979d7 RD |
6194 | static void *SwigwxRadioBoxTowxControl(void *ptr) { |
6195 | wxRadioBox *src; | |
6196 | wxControl *dest; | |
6197 | src = (wxRadioBox *) ptr; | |
6198 | dest = (wxControl *) src; | |
6199 | return (void *) dest; | |
6200 | } | |
6201 | ||
6202 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
6203 | wxRadioBox *src; | |
6204 | wxWindow *dest; | |
6205 | src = (wxRadioBox *) ptr; | |
6206 | dest = (wxWindow *) src; | |
6207 | return (void *) dest; | |
6208 | } | |
6209 | ||
6210 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
6211 | wxRadioBox *src; | |
6212 | wxEvtHandler *dest; | |
6213 | src = (wxRadioBox *) ptr; | |
6214 | dest = (wxEvtHandler *) src; | |
6215 | return (void *) dest; | |
6216 | } | |
6217 | ||
6218 | #define new_wxRadioBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10) (new wxRadioBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10)) | |
efc5f224 | 6219 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6220 | PyObject * _resultobj; |
6221 | wxRadioBox * _result; | |
6222 | wxWindow * _arg0; | |
6223 | wxWindowID _arg1; | |
6224 | wxString * _arg2; | |
e508a2b6 RD |
6225 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6226 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6227 | int _arg5 = (int ) 0; |
6228 | wxString * _arg6 = (wxString *) NULL; | |
6229 | int _arg7 = (int ) 0; | |
6230 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
e508a2b6 | 6231 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6232 | char * _arg10 = (char *) "radioBox"; |
6233 | PyObject * _argo0 = 0; | |
8ab979d7 | 6234 | PyObject * _obj2 = 0; |
2f90df85 RD |
6235 | wxPoint temp; |
6236 | PyObject * _obj3 = 0; | |
6237 | wxSize temp0; | |
6238 | PyObject * _obj4 = 0; | |
8ab979d7 | 6239 | PyObject * _obj6 = 0; |
1d99702e | 6240 | PyObject * _argo9 = 0; |
eec92d76 | 6241 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
8ab979d7 RD |
6242 | char _ptemp[128]; |
6243 | ||
6244 | self = self; | |
2f90df85 | 6245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10)) |
8ab979d7 | 6246 | return NULL; |
1d99702e RD |
6247 | if (_argo0) { |
6248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); |
6251 | return NULL; | |
6252 | } | |
6253 | } | |
6254 | { | |
185d7c3e RD |
6255 | #if PYTHON_API_VERSION >= 1009 |
6256 | char* tmpPtr; int tmpSize; | |
6257 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6258 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6259 | return NULL; | |
6260 | } | |
6261 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6262 | return NULL; | |
6263 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6264 | #else | |
8ab979d7 RD |
6265 | if (!PyString_Check(_obj2)) { |
6266 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6267 | return NULL; | |
6268 | } | |
185d7c3e RD |
6269 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6270 | #endif | |
8ab979d7 | 6271 | } |
2f90df85 RD |
6272 | if (_obj3) |
6273 | { | |
6274 | _arg3 = &temp; | |
6275 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 6276 | return NULL; |
2f90df85 RD |
6277 | } |
6278 | if (_obj4) | |
6279 | { | |
6280 | _arg4 = &temp0; | |
6281 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 6282 | return NULL; |
2f90df85 | 6283 | } |
8ab979d7 RD |
6284 | if (_obj6) |
6285 | { | |
6286 | _arg6 = wxString_LIST_helper(_obj6); | |
6287 | if (_arg6 == NULL) { | |
6288 | return NULL; | |
6289 | } | |
6290 | } | |
1d99702e RD |
6291 | if (_argo9) { |
6292 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
6293 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
8ab979d7 RD |
6294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); |
6295 | return NULL; | |
6296 | } | |
6297 | } | |
6298 | { | |
cf694132 RD |
6299 | if (_obj6) { |
6300 | _arg5 = PyList_Size(_obj6); | |
6301 | } | |
6302 | else { | |
6303 | _arg5 = 0; | |
6304 | } | |
8ab979d7 | 6305 | } |
cf694132 RD |
6306 | { |
6307 | wxPy_BEGIN_ALLOW_THREADS; | |
6308 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); | |
6309 | ||
6310 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6311 | } if (_result) { |
6312 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
6313 | _resultobj = Py_BuildValue("s",_ptemp); | |
6314 | } else { | |
6315 | Py_INCREF(Py_None); | |
6316 | _resultobj = Py_None; | |
6317 | } | |
8ab979d7 RD |
6318 | { |
6319 | if (_obj2) | |
6320 | delete _arg2; | |
6321 | } | |
6322 | { | |
6323 | delete [] _arg6; | |
6324 | } | |
6325 | return _resultobj; | |
6326 | } | |
6327 | ||
0699c864 | 6328 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 6329 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6330 | PyObject * _resultobj; |
6331 | wxRadioBox * _arg0; | |
6332 | bool _arg1; | |
1d99702e | 6333 | PyObject * _argo0 = 0; |
8ab979d7 | 6334 | int tempbool1; |
efc5f224 | 6335 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
6336 | |
6337 | self = self; | |
efc5f224 | 6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 6339 | return NULL; |
1d99702e RD |
6340 | if (_argo0) { |
6341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 6343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); |
8ab979d7 RD |
6344 | return NULL; |
6345 | } | |
6346 | } | |
6347 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
6348 | { |
6349 | wxPy_BEGIN_ALLOW_THREADS; | |
6350 | wxRadioBox_Enable(_arg0,_arg1); | |
6351 | ||
6352 | wxPy_END_ALLOW_THREADS; | |
6353 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6354 | _resultobj = Py_None; |
6355 | return _resultobj; | |
6356 | } | |
6357 | ||
0699c864 | 6358 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 6359 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6360 | PyObject * _resultobj; |
6361 | wxRadioBox * _arg0; | |
6362 | int _arg1; | |
6363 | bool _arg2; | |
1d99702e | 6364 | PyObject * _argo0 = 0; |
8ab979d7 | 6365 | int tempbool2; |
efc5f224 | 6366 | char *_kwnames[] = { "self","n","enable", NULL }; |
8ab979d7 RD |
6367 | |
6368 | self = self; | |
efc5f224 | 6369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6370 | return NULL; |
1d99702e RD |
6371 | if (_argo0) { |
6372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 6374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); |
8ab979d7 RD |
6375 | return NULL; |
6376 | } | |
6377 | } | |
6378 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6379 | { |
6380 | wxPy_BEGIN_ALLOW_THREADS; | |
6381 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); | |
6382 | ||
6383 | wxPy_END_ALLOW_THREADS; | |
6384 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6385 | _resultobj = Py_None; |
6386 | return _resultobj; | |
6387 | } | |
6388 | ||
6389 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 6390 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6391 | PyObject * _resultobj; |
6392 | int _result; | |
6393 | wxRadioBox * _arg0; | |
6394 | wxString * _arg1; | |
1d99702e | 6395 | PyObject * _argo0 = 0; |
8ab979d7 | 6396 | PyObject * _obj1 = 0; |
efc5f224 | 6397 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
6398 | |
6399 | self = self; | |
efc5f224 | 6400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6401 | return NULL; |
1d99702e RD |
6402 | if (_argo0) { |
6403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); |
6406 | return NULL; | |
6407 | } | |
6408 | } | |
6409 | { | |
185d7c3e RD |
6410 | #if PYTHON_API_VERSION >= 1009 |
6411 | char* tmpPtr; int tmpSize; | |
6412 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6413 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6414 | return NULL; | |
6415 | } | |
6416 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6417 | return NULL; | |
6418 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6419 | #else | |
8ab979d7 RD |
6420 | if (!PyString_Check(_obj1)) { |
6421 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6422 | return NULL; | |
6423 | } | |
185d7c3e RD |
6424 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6425 | #endif | |
8ab979d7 | 6426 | } |
cf694132 RD |
6427 | { |
6428 | wxPy_BEGIN_ALLOW_THREADS; | |
6429 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); | |
6430 | ||
6431 | wxPy_END_ALLOW_THREADS; | |
6432 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6433 | { |
6434 | if (_obj1) | |
6435 | delete _arg1; | |
6436 | } | |
6437 | return _resultobj; | |
6438 | } | |
6439 | ||
0699c864 | 6440 | #define wxRadioBox_GetItemLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
efc5f224 | 6441 | static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6442 | PyObject * _resultobj; |
6443 | wxString * _result; | |
6444 | wxRadioBox * _arg0; | |
6445 | int _arg1; | |
1d99702e | 6446 | PyObject * _argo0 = 0; |
efc5f224 | 6447 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
6448 | |
6449 | self = self; | |
efc5f224 | 6450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetItemLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6451 | return NULL; |
1d99702e RD |
6452 | if (_argo0) { |
6453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 6455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetItemLabel. Expected _wxRadioBox_p."); |
8ab979d7 RD |
6456 | return NULL; |
6457 | } | |
6458 | } | |
8ab979d7 | 6459 | { |
cf694132 RD |
6460 | wxPy_BEGIN_ALLOW_THREADS; |
6461 | _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1)); | |
6462 | ||
6463 | wxPy_END_ALLOW_THREADS; | |
6464 | }{ | |
eec92d76 | 6465 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6466 | } |
6467 | { | |
6468 | delete _result; | |
6469 | } | |
6470 | return _resultobj; | |
6471 | } | |
6472 | ||
6473 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 6474 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6475 | PyObject * _resultobj; |
6476 | int _result; | |
6477 | wxRadioBox * _arg0; | |
1d99702e | 6478 | PyObject * _argo0 = 0; |
efc5f224 | 6479 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6480 | |
6481 | self = self; | |
efc5f224 | 6482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 6483 | return NULL; |
1d99702e RD |
6484 | if (_argo0) { |
6485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); |
6488 | return NULL; | |
6489 | } | |
6490 | } | |
cf694132 RD |
6491 | { |
6492 | wxPy_BEGIN_ALLOW_THREADS; | |
6493 | _result = (int )wxRadioBox_GetSelection(_arg0); | |
6494 | ||
6495 | wxPy_END_ALLOW_THREADS; | |
6496 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6497 | return _resultobj; |
6498 | } | |
6499 | ||
6500 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
efc5f224 | 6501 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6502 | PyObject * _resultobj; |
6503 | wxString * _result; | |
6504 | wxRadioBox * _arg0; | |
6505 | int _arg1; | |
1d99702e | 6506 | PyObject * _argo0 = 0; |
efc5f224 | 6507 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
6508 | |
6509 | self = self; | |
efc5f224 | 6510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6511 | return NULL; |
1d99702e RD |
6512 | if (_argo0) { |
6513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); |
6516 | return NULL; | |
6517 | } | |
6518 | } | |
8ab979d7 | 6519 | { |
cf694132 RD |
6520 | wxPy_BEGIN_ALLOW_THREADS; |
6521 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); | |
6522 | ||
6523 | wxPy_END_ALLOW_THREADS; | |
6524 | }{ | |
eec92d76 | 6525 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6526 | } |
6527 | { | |
6528 | delete _result; | |
6529 | } | |
6530 | return _resultobj; | |
6531 | } | |
6532 | ||
6533 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
efc5f224 | 6534 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6535 | PyObject * _resultobj; |
6536 | wxString * _result; | |
6537 | wxRadioBox * _arg0; | |
1d99702e | 6538 | PyObject * _argo0 = 0; |
efc5f224 | 6539 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6540 | |
6541 | self = self; | |
efc5f224 | 6542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 6543 | return NULL; |
1d99702e RD |
6544 | if (_argo0) { |
6545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); |
6548 | return NULL; | |
6549 | } | |
6550 | } | |
8ab979d7 | 6551 | { |
cf694132 RD |
6552 | wxPy_BEGIN_ALLOW_THREADS; |
6553 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); | |
6554 | ||
6555 | wxPy_END_ALLOW_THREADS; | |
6556 | }{ | |
eec92d76 | 6557 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6558 | } |
6559 | { | |
6560 | delete _result; | |
6561 | } | |
6562 | return _resultobj; | |
6563 | } | |
6564 | ||
6565 | #define wxRadioBox_Number(_swigobj) (_swigobj->Number()) | |
efc5f224 | 6566 | static PyObject *_wrap_wxRadioBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6567 | PyObject * _resultobj; |
6568 | int _result; | |
6569 | wxRadioBox * _arg0; | |
1d99702e | 6570 | PyObject * _argo0 = 0; |
efc5f224 | 6571 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6572 | |
6573 | self = self; | |
efc5f224 | 6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_Number",_kwnames,&_argo0)) |
8ab979d7 | 6575 | return NULL; |
1d99702e RD |
6576 | if (_argo0) { |
6577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Number. Expected _wxRadioBox_p."); |
6580 | return NULL; | |
6581 | } | |
6582 | } | |
cf694132 RD |
6583 | { |
6584 | wxPy_BEGIN_ALLOW_THREADS; | |
6585 | _result = (int )wxRadioBox_Number(_arg0); | |
6586 | ||
6587 | wxPy_END_ALLOW_THREADS; | |
6588 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6589 | return _resultobj; |
6590 | } | |
6591 | ||
0699c864 | 6592 | #define wxRadioBox_SetItemLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
efc5f224 | 6593 | static PyObject *_wrap_wxRadioBox_SetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6594 | PyObject * _resultobj; |
6595 | wxRadioBox * _arg0; | |
6596 | int _arg1; | |
6597 | wxString * _arg2; | |
1d99702e | 6598 | PyObject * _argo0 = 0; |
8ab979d7 | 6599 | PyObject * _obj2 = 0; |
efc5f224 | 6600 | char *_kwnames[] = { "self","n","label", NULL }; |
8ab979d7 RD |
6601 | |
6602 | self = self; | |
efc5f224 | 6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetItemLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 6604 | return NULL; |
1d99702e RD |
6605 | if (_argo0) { |
6606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 6608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetItemLabel. Expected _wxRadioBox_p."); |
8ab979d7 RD |
6609 | return NULL; |
6610 | } | |
6611 | } | |
6612 | { | |
185d7c3e RD |
6613 | #if PYTHON_API_VERSION >= 1009 |
6614 | char* tmpPtr; int tmpSize; | |
6615 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6616 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6617 | return NULL; | |
6618 | } | |
6619 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6620 | return NULL; | |
6621 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6622 | #else | |
8ab979d7 RD |
6623 | if (!PyString_Check(_obj2)) { |
6624 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6625 | return NULL; | |
6626 | } | |
185d7c3e RD |
6627 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6628 | #endif | |
8ab979d7 | 6629 | } |
cf694132 RD |
6630 | { |
6631 | wxPy_BEGIN_ALLOW_THREADS; | |
6632 | wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2); | |
6633 | ||
6634 | wxPy_END_ALLOW_THREADS; | |
6635 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6636 | _resultobj = Py_None; |
6637 | { | |
6638 | if (_obj2) | |
6639 | delete _arg2; | |
6640 | } | |
6641 | return _resultobj; | |
6642 | } | |
6643 | ||
6644 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 6645 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6646 | PyObject * _resultobj; |
6647 | wxRadioBox * _arg0; | |
6648 | int _arg1; | |
1d99702e | 6649 | PyObject * _argo0 = 0; |
efc5f224 | 6650 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
6651 | |
6652 | self = self; | |
efc5f224 | 6653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6654 | return NULL; |
1d99702e RD |
6655 | if (_argo0) { |
6656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); |
6659 | return NULL; | |
6660 | } | |
6661 | } | |
cf694132 RD |
6662 | { |
6663 | wxPy_BEGIN_ALLOW_THREADS; | |
6664 | wxRadioBox_SetSelection(_arg0,_arg1); | |
6665 | ||
6666 | wxPy_END_ALLOW_THREADS; | |
6667 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6668 | _resultobj = Py_None; |
6669 | return _resultobj; | |
6670 | } | |
6671 | ||
6672 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
efc5f224 | 6673 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6674 | PyObject * _resultobj; |
6675 | wxRadioBox * _arg0; | |
6676 | wxString * _arg1; | |
1d99702e | 6677 | PyObject * _argo0 = 0; |
8ab979d7 | 6678 | PyObject * _obj1 = 0; |
efc5f224 | 6679 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
6680 | |
6681 | self = self; | |
efc5f224 | 6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6683 | return NULL; |
1d99702e RD |
6684 | if (_argo0) { |
6685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); |
6688 | return NULL; | |
6689 | } | |
6690 | } | |
6691 | { | |
185d7c3e RD |
6692 | #if PYTHON_API_VERSION >= 1009 |
6693 | char* tmpPtr; int tmpSize; | |
6694 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6695 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6696 | return NULL; | |
6697 | } | |
6698 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6699 | return NULL; | |
6700 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6701 | #else | |
8ab979d7 RD |
6702 | if (!PyString_Check(_obj1)) { |
6703 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6704 | return NULL; | |
6705 | } | |
185d7c3e RD |
6706 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6707 | #endif | |
8ab979d7 | 6708 | } |
cf694132 RD |
6709 | { |
6710 | wxPy_BEGIN_ALLOW_THREADS; | |
6711 | wxRadioBox_SetStringSelection(_arg0,*_arg1); | |
6712 | ||
6713 | wxPy_END_ALLOW_THREADS; | |
6714 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6715 | _resultobj = Py_None; |
6716 | { | |
6717 | if (_obj1) | |
6718 | delete _arg1; | |
6719 | } | |
6720 | return _resultobj; | |
6721 | } | |
6722 | ||
6723 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 6724 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6725 | PyObject * _resultobj; |
6726 | wxRadioBox * _arg0; | |
6727 | bool _arg1; | |
1d99702e | 6728 | PyObject * _argo0 = 0; |
8ab979d7 | 6729 | int tempbool1; |
efc5f224 | 6730 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
6731 | |
6732 | self = self; | |
efc5f224 | 6733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 6734 | return NULL; |
1d99702e RD |
6735 | if (_argo0) { |
6736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); |
6739 | return NULL; | |
6740 | } | |
6741 | } | |
6742 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
6743 | { |
6744 | wxPy_BEGIN_ALLOW_THREADS; | |
6745 | wxRadioBox_Show(_arg0,_arg1); | |
6746 | ||
6747 | wxPy_END_ALLOW_THREADS; | |
6748 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6749 | _resultobj = Py_None; |
6750 | return _resultobj; | |
6751 | } | |
6752 | ||
6753 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
efc5f224 | 6754 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6755 | PyObject * _resultobj; |
6756 | wxRadioBox * _arg0; | |
6757 | int _arg1; | |
6758 | bool _arg2; | |
1d99702e | 6759 | PyObject * _argo0 = 0; |
8ab979d7 | 6760 | int tempbool2; |
efc5f224 | 6761 | char *_kwnames[] = { "self","item","show", NULL }; |
8ab979d7 RD |
6762 | |
6763 | self = self; | |
efc5f224 | 6764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6765 | return NULL; |
1d99702e RD |
6766 | if (_argo0) { |
6767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); |
6770 | return NULL; | |
6771 | } | |
6772 | } | |
6773 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6774 | { |
6775 | wxPy_BEGIN_ALLOW_THREADS; | |
6776 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); | |
6777 | ||
6778 | wxPy_END_ALLOW_THREADS; | |
6779 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6780 | _resultobj = Py_None; |
6781 | return _resultobj; | |
6782 | } | |
6783 | ||
6784 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
6785 | wxRadioButton *src; | |
6786 | wxControl *dest; | |
6787 | src = (wxRadioButton *) ptr; | |
6788 | dest = (wxControl *) src; | |
6789 | return (void *) dest; | |
6790 | } | |
6791 | ||
6792 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
6793 | wxRadioButton *src; | |
6794 | wxWindow *dest; | |
6795 | src = (wxRadioButton *) ptr; | |
6796 | dest = (wxWindow *) src; | |
6797 | return (void *) dest; | |
6798 | } | |
6799 | ||
6800 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
6801 | wxRadioButton *src; | |
6802 | wxEvtHandler *dest; | |
6803 | src = (wxRadioButton *) ptr; | |
6804 | dest = (wxEvtHandler *) src; | |
6805 | return (void *) dest; | |
6806 | } | |
6807 | ||
6808 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
efc5f224 | 6809 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6810 | PyObject * _resultobj; |
6811 | wxRadioButton * _result; | |
6812 | wxWindow * _arg0; | |
6813 | wxWindowID _arg1; | |
6814 | wxString * _arg2; | |
e508a2b6 RD |
6815 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6816 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6817 | long _arg5 = (long ) 0; |
e508a2b6 | 6818 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6819 | char * _arg7 = (char *) "radioButton"; |
6820 | PyObject * _argo0 = 0; | |
8ab979d7 | 6821 | PyObject * _obj2 = 0; |
2f90df85 RD |
6822 | wxPoint temp; |
6823 | PyObject * _obj3 = 0; | |
6824 | wxSize temp0; | |
6825 | PyObject * _obj4 = 0; | |
1d99702e | 6826 | PyObject * _argo6 = 0; |
efc5f224 | 6827 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6828 | char _ptemp[128]; |
6829 | ||
6830 | self = self; | |
2f90df85 | 6831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 6832 | return NULL; |
1d99702e RD |
6833 | if (_argo0) { |
6834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); |
6837 | return NULL; | |
6838 | } | |
6839 | } | |
6840 | { | |
185d7c3e RD |
6841 | #if PYTHON_API_VERSION >= 1009 |
6842 | char* tmpPtr; int tmpSize; | |
6843 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6844 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6845 | return NULL; | |
6846 | } | |
6847 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6848 | return NULL; | |
6849 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6850 | #else | |
8ab979d7 RD |
6851 | if (!PyString_Check(_obj2)) { |
6852 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6853 | return NULL; | |
6854 | } | |
185d7c3e RD |
6855 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6856 | #endif | |
8ab979d7 | 6857 | } |
2f90df85 RD |
6858 | if (_obj3) |
6859 | { | |
6860 | _arg3 = &temp; | |
6861 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 6862 | return NULL; |
2f90df85 RD |
6863 | } |
6864 | if (_obj4) | |
6865 | { | |
6866 | _arg4 = &temp0; | |
6867 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 6868 | return NULL; |
2f90df85 | 6869 | } |
1d99702e RD |
6870 | if (_argo6) { |
6871 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6872 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
6873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); |
6874 | return NULL; | |
6875 | } | |
6876 | } | |
cf694132 RD |
6877 | { |
6878 | wxPy_BEGIN_ALLOW_THREADS; | |
6879 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
6880 | ||
6881 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6882 | } if (_result) { |
6883 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
6884 | _resultobj = Py_BuildValue("s",_ptemp); | |
6885 | } else { | |
6886 | Py_INCREF(Py_None); | |
6887 | _resultobj = Py_None; | |
6888 | } | |
8ab979d7 RD |
6889 | { |
6890 | if (_obj2) | |
6891 | delete _arg2; | |
6892 | } | |
6893 | return _resultobj; | |
6894 | } | |
6895 | ||
6896 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 6897 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6898 | PyObject * _resultobj; |
6899 | bool _result; | |
6900 | wxRadioButton * _arg0; | |
1d99702e | 6901 | PyObject * _argo0 = 0; |
efc5f224 | 6902 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6903 | |
6904 | self = self; | |
efc5f224 | 6905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 6906 | return NULL; |
1d99702e RD |
6907 | if (_argo0) { |
6908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
8ab979d7 RD |
6910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); |
6911 | return NULL; | |
6912 | } | |
6913 | } | |
cf694132 RD |
6914 | { |
6915 | wxPy_BEGIN_ALLOW_THREADS; | |
6916 | _result = (bool )wxRadioButton_GetValue(_arg0); | |
6917 | ||
6918 | wxPy_END_ALLOW_THREADS; | |
6919 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6920 | return _resultobj; |
6921 | } | |
6922 | ||
6923 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 6924 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6925 | PyObject * _resultobj; |
6926 | wxRadioButton * _arg0; | |
6927 | bool _arg1; | |
1d99702e | 6928 | PyObject * _argo0 = 0; |
8ab979d7 | 6929 | int tempbool1; |
efc5f224 | 6930 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
6931 | |
6932 | self = self; | |
efc5f224 | 6933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 6934 | return NULL; |
1d99702e RD |
6935 | if (_argo0) { |
6936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
8ab979d7 RD |
6938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); |
6939 | return NULL; | |
6940 | } | |
6941 | } | |
6942 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
6943 | { |
6944 | wxPy_BEGIN_ALLOW_THREADS; | |
6945 | wxRadioButton_SetValue(_arg0,_arg1); | |
6946 | ||
6947 | wxPy_END_ALLOW_THREADS; | |
6948 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6949 | _resultobj = Py_None; |
6950 | return _resultobj; | |
6951 | } | |
6952 | ||
6953 | static void *SwigwxSliderTowxControl(void *ptr) { | |
6954 | wxSlider *src; | |
6955 | wxControl *dest; | |
6956 | src = (wxSlider *) ptr; | |
6957 | dest = (wxControl *) src; | |
6958 | return (void *) dest; | |
6959 | } | |
6960 | ||
6961 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
6962 | wxSlider *src; | |
6963 | wxWindow *dest; | |
6964 | src = (wxSlider *) ptr; | |
6965 | dest = (wxWindow *) src; | |
6966 | return (void *) dest; | |
6967 | } | |
6968 | ||
6969 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
6970 | wxSlider *src; | |
6971 | wxEvtHandler *dest; | |
6972 | src = (wxSlider *) ptr; | |
6973 | dest = (wxEvtHandler *) src; | |
6974 | return (void *) dest; | |
6975 | } | |
6976 | ||
6977 | #define new_wxSlider(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxSlider(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
efc5f224 | 6978 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6979 | PyObject * _resultobj; |
6980 | wxSlider * _result; | |
6981 | wxWindow * _arg0; | |
6982 | wxWindowID _arg1; | |
6983 | int _arg2; | |
6984 | int _arg3; | |
6985 | int _arg4; | |
e508a2b6 RD |
6986 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
6987 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6988 | long _arg7 = (long ) wxSL_HORIZONTAL; |
e508a2b6 | 6989 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6990 | char * _arg9 = (char *) "slider"; |
6991 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6992 | wxPoint temp; |
6993 | PyObject * _obj5 = 0; | |
6994 | wxSize temp0; | |
6995 | PyObject * _obj6 = 0; | |
1d99702e | 6996 | PyObject * _argo8 = 0; |
efc5f224 | 6997 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
8ab979d7 RD |
6998 | char _ptemp[128]; |
6999 | ||
7000 | self = self; | |
2f90df85 | 7001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9)) |
8ab979d7 | 7002 | return NULL; |
1d99702e RD |
7003 | if (_argo0) { |
7004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
7006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); |
7007 | return NULL; | |
7008 | } | |
7009 | } | |
2f90df85 RD |
7010 | if (_obj5) |
7011 | { | |
7012 | _arg5 = &temp; | |
7013 | if (! wxPoint_helper(_obj5, &_arg5)) | |
8ab979d7 | 7014 | return NULL; |
2f90df85 RD |
7015 | } |
7016 | if (_obj6) | |
7017 | { | |
7018 | _arg6 = &temp0; | |
7019 | if (! wxSize_helper(_obj6, &_arg6)) | |
8ab979d7 | 7020 | return NULL; |
2f90df85 | 7021 | } |
1d99702e RD |
7022 | if (_argo8) { |
7023 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
7024 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
8ab979d7 RD |
7025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); |
7026 | return NULL; | |
7027 | } | |
7028 | } | |
cf694132 RD |
7029 | { |
7030 | wxPy_BEGIN_ALLOW_THREADS; | |
7031 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); | |
7032 | ||
7033 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
7034 | } if (_result) { |
7035 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
7036 | _resultobj = Py_BuildValue("s",_ptemp); | |
7037 | } else { | |
7038 | Py_INCREF(Py_None); | |
7039 | _resultobj = Py_None; | |
7040 | } | |
8ab979d7 RD |
7041 | return _resultobj; |
7042 | } | |
7043 | ||
7044 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) | |
efc5f224 | 7045 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7046 | PyObject * _resultobj; |
7047 | wxSlider * _arg0; | |
1d99702e | 7048 | PyObject * _argo0 = 0; |
efc5f224 | 7049 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7050 | |
7051 | self = self; | |
efc5f224 | 7052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) |
8ab979d7 | 7053 | return NULL; |
1d99702e RD |
7054 | if (_argo0) { |
7055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); |
7058 | return NULL; | |
7059 | } | |
7060 | } | |
cf694132 RD |
7061 | { |
7062 | wxPy_BEGIN_ALLOW_THREADS; | |
7063 | wxSlider_ClearSel(_arg0); | |
7064 | ||
7065 | wxPy_END_ALLOW_THREADS; | |
7066 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7067 | _resultobj = Py_None; |
7068 | return _resultobj; | |
7069 | } | |
7070 | ||
7071 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
efc5f224 | 7072 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7073 | PyObject * _resultobj; |
7074 | wxSlider * _arg0; | |
1d99702e | 7075 | PyObject * _argo0 = 0; |
efc5f224 | 7076 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7077 | |
7078 | self = self; | |
efc5f224 | 7079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) |
8ab979d7 | 7080 | return NULL; |
1d99702e RD |
7081 | if (_argo0) { |
7082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); |
7085 | return NULL; | |
7086 | } | |
7087 | } | |
cf694132 RD |
7088 | { |
7089 | wxPy_BEGIN_ALLOW_THREADS; | |
7090 | wxSlider_ClearTicks(_arg0); | |
7091 | ||
7092 | wxPy_END_ALLOW_THREADS; | |
7093 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7094 | _resultobj = Py_None; |
7095 | return _resultobj; | |
7096 | } | |
7097 | ||
7098 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
efc5f224 | 7099 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7100 | PyObject * _resultobj; |
7101 | int _result; | |
7102 | wxSlider * _arg0; | |
1d99702e | 7103 | PyObject * _argo0 = 0; |
efc5f224 | 7104 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7105 | |
7106 | self = self; | |
efc5f224 | 7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) |
8ab979d7 | 7108 | return NULL; |
1d99702e RD |
7109 | if (_argo0) { |
7110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); |
7113 | return NULL; | |
7114 | } | |
7115 | } | |
cf694132 RD |
7116 | { |
7117 | wxPy_BEGIN_ALLOW_THREADS; | |
7118 | _result = (int )wxSlider_GetLineSize(_arg0); | |
7119 | ||
7120 | wxPy_END_ALLOW_THREADS; | |
7121 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7122 | return _resultobj; |
7123 | } | |
7124 | ||
7125 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
efc5f224 | 7126 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7127 | PyObject * _resultobj; |
7128 | int _result; | |
7129 | wxSlider * _arg0; | |
1d99702e | 7130 | PyObject * _argo0 = 0; |
efc5f224 | 7131 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7132 | |
7133 | self = self; | |
efc5f224 | 7134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) |
8ab979d7 | 7135 | return NULL; |
1d99702e RD |
7136 | if (_argo0) { |
7137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); |
7140 | return NULL; | |
7141 | } | |
7142 | } | |
cf694132 RD |
7143 | { |
7144 | wxPy_BEGIN_ALLOW_THREADS; | |
7145 | _result = (int )wxSlider_GetMax(_arg0); | |
7146 | ||
7147 | wxPy_END_ALLOW_THREADS; | |
7148 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7149 | return _resultobj; |
7150 | } | |
7151 | ||
7152 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
efc5f224 | 7153 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7154 | PyObject * _resultobj; |
7155 | int _result; | |
7156 | wxSlider * _arg0; | |
1d99702e | 7157 | PyObject * _argo0 = 0; |
efc5f224 | 7158 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7159 | |
7160 | self = self; | |
efc5f224 | 7161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) |
8ab979d7 | 7162 | return NULL; |
1d99702e RD |
7163 | if (_argo0) { |
7164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); |
7167 | return NULL; | |
7168 | } | |
7169 | } | |
cf694132 RD |
7170 | { |
7171 | wxPy_BEGIN_ALLOW_THREADS; | |
7172 | _result = (int )wxSlider_GetMin(_arg0); | |
7173 | ||
7174 | wxPy_END_ALLOW_THREADS; | |
7175 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7176 | return _resultobj; |
7177 | } | |
7178 | ||
7179 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
efc5f224 | 7180 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7181 | PyObject * _resultobj; |
7182 | int _result; | |
7183 | wxSlider * _arg0; | |
1d99702e | 7184 | PyObject * _argo0 = 0; |
efc5f224 | 7185 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7186 | |
7187 | self = self; | |
efc5f224 | 7188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) |
8ab979d7 | 7189 | return NULL; |
1d99702e RD |
7190 | if (_argo0) { |
7191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); |
7194 | return NULL; | |
7195 | } | |
7196 | } | |
cf694132 RD |
7197 | { |
7198 | wxPy_BEGIN_ALLOW_THREADS; | |
7199 | _result = (int )wxSlider_GetPageSize(_arg0); | |
7200 | ||
7201 | wxPy_END_ALLOW_THREADS; | |
7202 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7203 | return _resultobj; |
7204 | } | |
7205 | ||
7206 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
efc5f224 | 7207 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7208 | PyObject * _resultobj; |
7209 | int _result; | |
7210 | wxSlider * _arg0; | |
1d99702e | 7211 | PyObject * _argo0 = 0; |
efc5f224 | 7212 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7213 | |
7214 | self = self; | |
efc5f224 | 7215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) |
8ab979d7 | 7216 | return NULL; |
1d99702e RD |
7217 | if (_argo0) { |
7218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); |
7221 | return NULL; | |
7222 | } | |
7223 | } | |
cf694132 RD |
7224 | { |
7225 | wxPy_BEGIN_ALLOW_THREADS; | |
7226 | _result = (int )wxSlider_GetSelEnd(_arg0); | |
7227 | ||
7228 | wxPy_END_ALLOW_THREADS; | |
7229 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7230 | return _resultobj; |
7231 | } | |
7232 | ||
7233 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
efc5f224 | 7234 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7235 | PyObject * _resultobj; |
7236 | int _result; | |
7237 | wxSlider * _arg0; | |
1d99702e | 7238 | PyObject * _argo0 = 0; |
efc5f224 | 7239 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7240 | |
7241 | self = self; | |
efc5f224 | 7242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) |
8ab979d7 | 7243 | return NULL; |
1d99702e RD |
7244 | if (_argo0) { |
7245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); |
7248 | return NULL; | |
7249 | } | |
7250 | } | |
cf694132 RD |
7251 | { |
7252 | wxPy_BEGIN_ALLOW_THREADS; | |
7253 | _result = (int )wxSlider_GetSelStart(_arg0); | |
7254 | ||
7255 | wxPy_END_ALLOW_THREADS; | |
7256 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7257 | return _resultobj; |
7258 | } | |
7259 | ||
7260 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
efc5f224 | 7261 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7262 | PyObject * _resultobj; |
7263 | int _result; | |
7264 | wxSlider * _arg0; | |
1d99702e | 7265 | PyObject * _argo0 = 0; |
efc5f224 | 7266 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7267 | |
7268 | self = self; | |
efc5f224 | 7269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) |
8ab979d7 | 7270 | return NULL; |
1d99702e RD |
7271 | if (_argo0) { |
7272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); |
7275 | return NULL; | |
7276 | } | |
7277 | } | |
cf694132 RD |
7278 | { |
7279 | wxPy_BEGIN_ALLOW_THREADS; | |
7280 | _result = (int )wxSlider_GetThumbLength(_arg0); | |
7281 | ||
7282 | wxPy_END_ALLOW_THREADS; | |
7283 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7284 | return _resultobj; |
7285 | } | |
7286 | ||
7287 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
efc5f224 | 7288 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7289 | PyObject * _resultobj; |
7290 | int _result; | |
7291 | wxSlider * _arg0; | |
1d99702e | 7292 | PyObject * _argo0 = 0; |
efc5f224 | 7293 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7294 | |
7295 | self = self; | |
efc5f224 | 7296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) |
8ab979d7 | 7297 | return NULL; |
1d99702e RD |
7298 | if (_argo0) { |
7299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); |
7302 | return NULL; | |
7303 | } | |
7304 | } | |
cf694132 RD |
7305 | { |
7306 | wxPy_BEGIN_ALLOW_THREADS; | |
7307 | _result = (int )wxSlider_GetTickFreq(_arg0); | |
7308 | ||
7309 | wxPy_END_ALLOW_THREADS; | |
7310 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7311 | return _resultobj; |
7312 | } | |
7313 | ||
7314 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 7315 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7316 | PyObject * _resultobj; |
7317 | int _result; | |
7318 | wxSlider * _arg0; | |
1d99702e | 7319 | PyObject * _argo0 = 0; |
efc5f224 | 7320 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7321 | |
7322 | self = self; | |
efc5f224 | 7323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 7324 | return NULL; |
1d99702e RD |
7325 | if (_argo0) { |
7326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); |
7329 | return NULL; | |
7330 | } | |
7331 | } | |
cf694132 RD |
7332 | { |
7333 | wxPy_BEGIN_ALLOW_THREADS; | |
7334 | _result = (int )wxSlider_GetValue(_arg0); | |
7335 | ||
7336 | wxPy_END_ALLOW_THREADS; | |
7337 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7338 | return _resultobj; |
7339 | } | |
7340 | ||
7341 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 7342 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7343 | PyObject * _resultobj; |
7344 | wxSlider * _arg0; | |
7345 | int _arg1; | |
7346 | int _arg2; | |
1d99702e | 7347 | PyObject * _argo0 = 0; |
efc5f224 | 7348 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; |
8ab979d7 RD |
7349 | |
7350 | self = self; | |
efc5f224 | 7351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7352 | return NULL; |
1d99702e RD |
7353 | if (_argo0) { |
7354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); |
7357 | return NULL; | |
7358 | } | |
7359 | } | |
cf694132 RD |
7360 | { |
7361 | wxPy_BEGIN_ALLOW_THREADS; | |
7362 | wxSlider_SetRange(_arg0,_arg1,_arg2); | |
7363 | ||
7364 | wxPy_END_ALLOW_THREADS; | |
7365 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7366 | _resultobj = Py_None; |
7367 | return _resultobj; | |
7368 | } | |
7369 | ||
7370 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
efc5f224 | 7371 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7372 | PyObject * _resultobj; |
7373 | wxSlider * _arg0; | |
7374 | int _arg1; | |
7375 | int _arg2; | |
1d99702e | 7376 | PyObject * _argo0 = 0; |
efc5f224 | 7377 | char *_kwnames[] = { "self","n","pos", NULL }; |
8ab979d7 RD |
7378 | |
7379 | self = self; | |
efc5f224 | 7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7381 | return NULL; |
1d99702e RD |
7382 | if (_argo0) { |
7383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); |
7386 | return NULL; | |
7387 | } | |
7388 | } | |
cf694132 RD |
7389 | { |
7390 | wxPy_BEGIN_ALLOW_THREADS; | |
7391 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); | |
7392 | ||
7393 | wxPy_END_ALLOW_THREADS; | |
7394 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7395 | _resultobj = Py_None; |
7396 | return _resultobj; | |
7397 | } | |
7398 | ||
7399 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
efc5f224 | 7400 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7401 | PyObject * _resultobj; |
7402 | wxSlider * _arg0; | |
7403 | int _arg1; | |
1d99702e | 7404 | PyObject * _argo0 = 0; |
efc5f224 | 7405 | char *_kwnames[] = { "self","lineSize", NULL }; |
8ab979d7 RD |
7406 | |
7407 | self = self; | |
efc5f224 | 7408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7409 | return NULL; |
1d99702e RD |
7410 | if (_argo0) { |
7411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); |
7414 | return NULL; | |
7415 | } | |
7416 | } | |
cf694132 RD |
7417 | { |
7418 | wxPy_BEGIN_ALLOW_THREADS; | |
7419 | wxSlider_SetLineSize(_arg0,_arg1); | |
7420 | ||
7421 | wxPy_END_ALLOW_THREADS; | |
7422 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7423 | _resultobj = Py_None; |
7424 | return _resultobj; | |
7425 | } | |
7426 | ||
7427 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
efc5f224 | 7428 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7429 | PyObject * _resultobj; |
7430 | wxSlider * _arg0; | |
7431 | int _arg1; | |
1d99702e | 7432 | PyObject * _argo0 = 0; |
efc5f224 | 7433 | char *_kwnames[] = { "self","pageSize", NULL }; |
8ab979d7 RD |
7434 | |
7435 | self = self; | |
efc5f224 | 7436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7437 | return NULL; |
1d99702e RD |
7438 | if (_argo0) { |
7439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); |
7442 | return NULL; | |
7443 | } | |
7444 | } | |
cf694132 RD |
7445 | { |
7446 | wxPy_BEGIN_ALLOW_THREADS; | |
7447 | wxSlider_SetPageSize(_arg0,_arg1); | |
7448 | ||
7449 | wxPy_END_ALLOW_THREADS; | |
7450 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7451 | _resultobj = Py_None; |
7452 | return _resultobj; | |
7453 | } | |
7454 | ||
7455 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 7456 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7457 | PyObject * _resultobj; |
7458 | wxSlider * _arg0; | |
7459 | int _arg1; | |
7460 | int _arg2; | |
1d99702e | 7461 | PyObject * _argo0 = 0; |
efc5f224 | 7462 | char *_kwnames[] = { "self","startPos","endPos", NULL }; |
8ab979d7 RD |
7463 | |
7464 | self = self; | |
efc5f224 | 7465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7466 | return NULL; |
1d99702e RD |
7467 | if (_argo0) { |
7468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); |
7471 | return NULL; | |
7472 | } | |
7473 | } | |
cf694132 RD |
7474 | { |
7475 | wxPy_BEGIN_ALLOW_THREADS; | |
7476 | wxSlider_SetSelection(_arg0,_arg1,_arg2); | |
7477 | ||
7478 | wxPy_END_ALLOW_THREADS; | |
7479 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7480 | _resultobj = Py_None; |
7481 | return _resultobj; | |
7482 | } | |
7483 | ||
7484 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
efc5f224 | 7485 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7486 | PyObject * _resultobj; |
7487 | wxSlider * _arg0; | |
7488 | int _arg1; | |
1d99702e | 7489 | PyObject * _argo0 = 0; |
efc5f224 | 7490 | char *_kwnames[] = { "self","len", NULL }; |
8ab979d7 RD |
7491 | |
7492 | self = self; | |
efc5f224 | 7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7494 | return NULL; |
1d99702e RD |
7495 | if (_argo0) { |
7496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); |
7499 | return NULL; | |
7500 | } | |
7501 | } | |
cf694132 RD |
7502 | { |
7503 | wxPy_BEGIN_ALLOW_THREADS; | |
7504 | wxSlider_SetThumbLength(_arg0,_arg1); | |
7505 | ||
7506 | wxPy_END_ALLOW_THREADS; | |
7507 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7508 | _resultobj = Py_None; |
7509 | return _resultobj; | |
7510 | } | |
7511 | ||
7512 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
efc5f224 | 7513 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7514 | PyObject * _resultobj; |
7515 | wxSlider * _arg0; | |
7516 | int _arg1; | |
1d99702e | 7517 | PyObject * _argo0 = 0; |
efc5f224 | 7518 | char *_kwnames[] = { "self","tickPos", NULL }; |
8ab979d7 RD |
7519 | |
7520 | self = self; | |
efc5f224 | 7521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7522 | return NULL; |
1d99702e RD |
7523 | if (_argo0) { |
7524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); |
7527 | return NULL; | |
7528 | } | |
7529 | } | |
cf694132 RD |
7530 | { |
7531 | wxPy_BEGIN_ALLOW_THREADS; | |
7532 | wxSlider_SetTick(_arg0,_arg1); | |
7533 | ||
7534 | wxPy_END_ALLOW_THREADS; | |
7535 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7536 | _resultobj = Py_None; |
7537 | return _resultobj; | |
7538 | } | |
7539 | ||
7540 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 7541 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7542 | PyObject * _resultobj; |
7543 | wxSlider * _arg0; | |
7544 | int _arg1; | |
1d99702e | 7545 | PyObject * _argo0 = 0; |
efc5f224 | 7546 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
7547 | |
7548 | self = self; | |
efc5f224 | 7549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7550 | return NULL; |
1d99702e RD |
7551 | if (_argo0) { |
7552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); |
7555 | return NULL; | |
7556 | } | |
7557 | } | |
cf694132 RD |
7558 | { |
7559 | wxPy_BEGIN_ALLOW_THREADS; | |
7560 | wxSlider_SetValue(_arg0,_arg1); | |
7561 | ||
7562 | wxPy_END_ALLOW_THREADS; | |
7563 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7564 | _resultobj = Py_None; |
7565 | return _resultobj; | |
7566 | } | |
7567 | ||
f6bcfd97 BP |
7568 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { |
7569 | wxSpinCtrl *src; | |
7570 | wxSpinButton *dest; | |
7571 | src = (wxSpinCtrl *) ptr; | |
7572 | dest = (wxSpinButton *) src; | |
7573 | return (void *) dest; | |
7574 | } | |
7575 | ||
7576 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
7577 | wxSpinCtrl *src; | |
7578 | wxControl *dest; | |
7579 | src = (wxSpinCtrl *) ptr; | |
7580 | dest = (wxControl *) src; | |
7581 | return (void *) dest; | |
7582 | } | |
7583 | ||
7584 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
7585 | wxSpinCtrl *src; | |
7586 | wxWindow *dest; | |
7587 | src = (wxSpinCtrl *) ptr; | |
7588 | dest = (wxWindow *) src; | |
7589 | return (void *) dest; | |
7590 | } | |
7591 | ||
7592 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
7593 | wxSpinCtrl *src; | |
7594 | wxEvtHandler *dest; | |
7595 | src = (wxSpinCtrl *) ptr; | |
7596 | dest = (wxEvtHandler *) src; | |
7597 | return (void *) dest; | |
7598 | } | |
7599 | ||
7600 | #define new_wxSpinCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxSpinCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
7601 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7602 | PyObject * _resultobj; | |
7603 | wxSpinCtrl * _result; | |
7604 | wxWindow * _arg0; | |
7605 | wxWindowID _arg1 = (wxWindowID ) -1; | |
7606 | char * _arg2 = (char *) ""; | |
e508a2b6 RD |
7607 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
7608 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
f6bcfd97 BP |
7609 | long _arg5 = (long ) wxSP_ARROW_KEYS; |
7610 | int _arg6 = (int ) 0; | |
7611 | int _arg7 = (int ) 100; | |
7612 | int _arg8 = (int ) 0; | |
7613 | char * _arg9 = (char *) "wxSpinCtrl"; | |
7614 | PyObject * _argo0 = 0; | |
7615 | wxPoint temp; | |
7616 | PyObject * _obj3 = 0; | |
7617 | wxSize temp0; | |
7618 | PyObject * _obj4 = 0; | |
7619 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
7620 | char _ptemp[128]; | |
7621 | ||
7622 | self = self; | |
7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
7624 | return NULL; | |
7625 | if (_argo0) { | |
7626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
7628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
7629 | return NULL; | |
7630 | } | |
7631 | } | |
7632 | if (_obj3) | |
7633 | { | |
7634 | _arg3 = &temp; | |
7635 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7636 | return NULL; | |
7637 | } | |
7638 | if (_obj4) | |
7639 | { | |
7640 | _arg4 = &temp0; | |
7641 | if (! wxSize_helper(_obj4, &_arg4)) | |
7642 | return NULL; | |
7643 | } | |
7644 | { | |
7645 | wxPy_BEGIN_ALLOW_THREADS; | |
7646 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
7647 | ||
7648 | wxPy_END_ALLOW_THREADS; | |
7649 | } if (_result) { | |
7650 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
7651 | _resultobj = Py_BuildValue("s",_ptemp); | |
7652 | } else { | |
7653 | Py_INCREF(Py_None); | |
7654 | _resultobj = Py_None; | |
7655 | } | |
7656 | return _resultobj; | |
7657 | } | |
7658 | ||
c368d904 RD |
7659 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) |
7660 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7661 | PyObject * _resultobj; | |
7662 | int _result; | |
7663 | wxSpinCtrl * _arg0; | |
7664 | PyObject * _argo0 = 0; | |
7665 | char *_kwnames[] = { "self", NULL }; | |
7666 | ||
7667 | self = self; | |
7668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
7669 | return NULL; | |
7670 | if (_argo0) { | |
7671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
7673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
7674 | return NULL; | |
7675 | } | |
7676 | } | |
7677 | { | |
7678 | wxPy_BEGIN_ALLOW_THREADS; | |
7679 | _result = (int )wxSpinCtrl_GetMax(_arg0); | |
7680 | ||
7681 | wxPy_END_ALLOW_THREADS; | |
7682 | } _resultobj = Py_BuildValue("i",_result); | |
7683 | return _resultobj; | |
7684 | } | |
7685 | ||
7686 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
7687 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7688 | PyObject * _resultobj; | |
7689 | int _result; | |
7690 | wxSpinCtrl * _arg0; | |
7691 | PyObject * _argo0 = 0; | |
7692 | char *_kwnames[] = { "self", NULL }; | |
7693 | ||
7694 | self = self; | |
7695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
7696 | return NULL; | |
7697 | if (_argo0) { | |
7698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
7700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
7701 | return NULL; | |
7702 | } | |
7703 | } | |
7704 | { | |
7705 | wxPy_BEGIN_ALLOW_THREADS; | |
7706 | _result = (int )wxSpinCtrl_GetMin(_arg0); | |
7707 | ||
7708 | wxPy_END_ALLOW_THREADS; | |
7709 | } _resultobj = Py_BuildValue("i",_result); | |
7710 | return _resultobj; | |
7711 | } | |
7712 | ||
7713 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
7714 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7715 | PyObject * _resultobj; | |
7716 | int _result; | |
7717 | wxSpinCtrl * _arg0; | |
7718 | PyObject * _argo0 = 0; | |
7719 | char *_kwnames[] = { "self", NULL }; | |
7720 | ||
7721 | self = self; | |
7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
7723 | return NULL; | |
7724 | if (_argo0) { | |
7725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
7727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
7728 | return NULL; | |
7729 | } | |
7730 | } | |
7731 | { | |
7732 | wxPy_BEGIN_ALLOW_THREADS; | |
7733 | _result = (int )wxSpinCtrl_GetValue(_arg0); | |
7734 | ||
7735 | wxPy_END_ALLOW_THREADS; | |
7736 | } _resultobj = Py_BuildValue("i",_result); | |
7737 | return _resultobj; | |
7738 | } | |
7739 | ||
7740 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
7741 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7742 | PyObject * _resultobj; | |
7743 | wxSpinCtrl * _arg0; | |
7744 | int _arg1; | |
7745 | int _arg2; | |
7746 | PyObject * _argo0 = 0; | |
7747 | char *_kwnames[] = { "self","min","max", NULL }; | |
7748 | ||
7749 | self = self; | |
7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7751 | return NULL; | |
7752 | if (_argo0) { | |
7753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
7755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
7756 | return NULL; | |
7757 | } | |
7758 | } | |
7759 | { | |
7760 | wxPy_BEGIN_ALLOW_THREADS; | |
7761 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); | |
7762 | ||
7763 | wxPy_END_ALLOW_THREADS; | |
7764 | } Py_INCREF(Py_None); | |
7765 | _resultobj = Py_None; | |
7766 | return _resultobj; | |
7767 | } | |
7768 | ||
7769 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
7770 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7771 | PyObject * _resultobj; | |
7772 | wxSpinCtrl * _arg0; | |
7773 | int _arg1; | |
7774 | PyObject * _argo0 = 0; | |
7775 | char *_kwnames[] = { "self","value", NULL }; | |
7776 | ||
7777 | self = self; | |
7778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
7779 | return NULL; | |
7780 | if (_argo0) { | |
7781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
7783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
7784 | return NULL; | |
7785 | } | |
7786 | } | |
7787 | { | |
7788 | wxPy_BEGIN_ALLOW_THREADS; | |
7789 | wxSpinCtrl_SetValue(_arg0,_arg1); | |
7790 | ||
7791 | wxPy_END_ALLOW_THREADS; | |
7792 | } Py_INCREF(Py_None); | |
7793 | _resultobj = Py_None; | |
7794 | return _resultobj; | |
7795 | } | |
7796 | ||
8ab979d7 | 7797 | static PyMethodDef controlscMethods[] = { |
c368d904 RD |
7798 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
7799 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
7800 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
7801 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
7802 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 7803 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7804 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, |
7805 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
7806 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
7807 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7808 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
7809 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
7810 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
7811 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
7812 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
7813 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
7814 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
7815 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
7816 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
7817 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
7818 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
7819 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
7820 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
7821 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
7822 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
7823 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, | |
7824 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
7825 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
7826 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
7827 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
7828 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
7829 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
7830 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7831 | { "wxRadioBox_SetItemLabel", (PyCFunction) _wrap_wxRadioBox_SetItemLabel, METH_VARARGS | METH_KEYWORDS }, | |
7832 | { "wxRadioBox_Number", (PyCFunction) _wrap_wxRadioBox_Number, METH_VARARGS | METH_KEYWORDS }, | |
7833 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
7834 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
7835 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7836 | { "wxRadioBox_GetItemLabel", (PyCFunction) _wrap_wxRadioBox_GetItemLabel, METH_VARARGS | METH_KEYWORDS }, | |
7837 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
7838 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
7839 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
7840 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
7841 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
7842 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
7843 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
7844 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
7845 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
7846 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
7847 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
7848 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
7849 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
7850 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
7851 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
7852 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
26b9cf27 | 7853 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7854 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
7855 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
7856 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
7857 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
7858 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
7859 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
7860 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
7861 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7862 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, |
7863 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7864 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
7865 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
7866 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
7867 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
7868 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
7869 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
7870 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
7871 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
7872 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
7873 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
7874 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7875 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
7876 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
7877 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
7878 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
7879 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
7880 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
7881 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
7882 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
7883 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
7884 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
7885 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
7886 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
7887 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
7888 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
7889 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
7890 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
7891 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
7892 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
7893 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
7894 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
7895 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
7896 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 7897 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7898 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, |
7899 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
7900 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
7901 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
7902 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
7903 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7904 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
7905 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
7906 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
7907 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
7908 | { "wxListBox_Number", (PyCFunction) _wrap_wxListBox_Number, METH_VARARGS | METH_KEYWORDS }, | |
7909 | { "wxListBox_GetStringSelection", (PyCFunction) _wrap_wxListBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
7910 | { "wxListBox_GetString", (PyCFunction) _wrap_wxListBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 7911 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7912 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
7913 | { "wxListBox_GetSelection", (PyCFunction) _wrap_wxListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7914 | { "wxListBox_FindString", (PyCFunction) _wrap_wxListBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
7915 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
7916 | { "wxListBox_Delete", (PyCFunction) _wrap_wxListBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
7917 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
7918 | { "wxListBox_Append", (PyCFunction) _wrap_wxListBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
7919 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, | |
7920 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7921 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7922 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, | |
7923 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
7924 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
7925 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
7926 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
7927 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
7928 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
7929 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
7930 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
7931 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
7932 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
7933 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, | |
7934 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
7935 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
7936 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7937 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
7938 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
7939 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
7940 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
7941 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
7942 | { "wxComboBox_Number", (PyCFunction) _wrap_wxComboBox_Number, METH_VARARGS | METH_KEYWORDS }, | |
7943 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
7944 | { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
7945 | { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
7946 | { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7947 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
7948 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
7949 | { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
7950 | { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
7951 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
7952 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
7953 | { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
7954 | { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
7955 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, | |
7956 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
7957 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7958 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
7959 | { "wxChoice_Number", (PyCFunction) _wrap_wxChoice_Number, METH_VARARGS | METH_KEYWORDS }, | |
7960 | { "wxChoice_GetStringSelection", (PyCFunction) _wrap_wxChoice_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
7961 | { "wxChoice_GetString", (PyCFunction) _wrap_wxChoice_GetString, METH_VARARGS | METH_KEYWORDS }, | |
7962 | { "wxChoice_GetSelection", (PyCFunction) _wrap_wxChoice_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7963 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
7964 | { "wxChoice_FindString", (PyCFunction) _wrap_wxChoice_FindString, METH_VARARGS | METH_KEYWORDS }, | |
7965 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, | |
7966 | { "wxChoice_Append", (PyCFunction) _wrap_wxChoice_Append, METH_VARARGS | METH_KEYWORDS }, | |
7967 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, | |
7968 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
7969 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
7970 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
7971 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, |
7972 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
7973 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7974 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, |
7975 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
7976 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
7977 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
7978 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
7979 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
7980 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
7981 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
7982 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
7983 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
7984 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7985 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, |
7986 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, | |
7987 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7988 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7989 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 RD |
7990 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, |
7991 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
7992 | { NULL, NULL } |
7993 | }; | |
1d99702e RD |
7994 | #ifdef __cplusplus |
7995 | } | |
7996 | #endif | |
7997 | /* | |
7998 | * This table is used by the pointer type-checker | |
7999 | */ | |
8000 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
8001 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
8002 | { "_wxEvent","_class_wxEvent",0}, | |
8003 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
8004 | { "_signed_long","_long",0}, | |
8005 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
65dd82cb | 8006 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa | 8007 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
2f90df85 | 8008 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, |
b1462dfa | 8009 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
8010 | { "_wxPrintQuality","_int",0}, |
8011 | { "_wxPrintQuality","_signed_int",0}, | |
8012 | { "_wxPrintQuality","_unsigned_int",0}, | |
8013 | { "_wxPrintQuality","_wxWindowID",0}, | |
8014 | { "_wxPrintQuality","_uint",0}, | |
8015 | { "_wxPrintQuality","_EBool",0}, | |
8016 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 8017 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 8018 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
f6bcfd97 | 8019 | { "_wxSpinCtrl","_class_wxSpinCtrl",0}, |
1d99702e | 8020 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 8021 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e | 8022 | { "_class_wxMenuBar","_wxMenuBar",0}, |
f6bcfd97 BP |
8023 | { "_class_wxEvtHandler","_class_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
8024 | { "_class_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
1d99702e RD |
8025 | { "_class_wxEvtHandler","_class_wxSlider",SwigwxSliderTowxEvtHandler}, |
8026 | { "_class_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
8027 | { "_class_wxEvtHandler","_class_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
8028 | { "_class_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
8029 | { "_class_wxEvtHandler","_class_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
8030 | { "_class_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
8031 | { "_class_wxEvtHandler","_class_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
8032 | { "_class_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
8033 | { "_class_wxEvtHandler","_class_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
8034 | { "_class_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
8035 | { "_class_wxEvtHandler","_class_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
8036 | { "_class_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
8037 | { "_class_wxEvtHandler","_class_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
8038 | { "_class_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
8039 | { "_class_wxEvtHandler","_class_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
8040 | { "_class_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
8041 | { "_class_wxEvtHandler","_class_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
8042 | { "_class_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
8043 | { "_class_wxEvtHandler","_class_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
8044 | { "_class_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
8045 | { "_class_wxEvtHandler","_class_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
8046 | { "_class_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
8047 | { "_class_wxEvtHandler","_class_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
8048 | { "_class_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
8049 | { "_class_wxEvtHandler","_class_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
8050 | { "_class_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
8051 | { "_class_wxEvtHandler","_class_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
8052 | { "_class_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
8053 | { "_class_wxEvtHandler","_class_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
8054 | { "_class_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
8055 | { "_class_wxEvtHandler","_class_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
8056 | { "_class_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
8057 | { "_class_wxEvtHandler","_class_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
8058 | { "_class_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
8059 | { "_class_wxEvtHandler","_class_wxButton",SwigwxButtonTowxEvtHandler}, | |
8060 | { "_class_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
8061 | { "_class_wxEvtHandler","_class_wxControl",SwigwxControlTowxEvtHandler}, | |
8062 | { "_class_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
8063 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
8064 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
8065 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
8066 | { "_wxCursor","_class_wxCursor",0}, | |
8067 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, | |
8068 | { "_wxMask","_class_wxMask",0}, | |
8069 | { "_wxPen","_class_wxPen",0}, | |
8070 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
8071 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 8072 | { "_wxDataObject","_class_wxDataObject",0}, |
1d99702e | 8073 | { "_wxStaticBox","_class_wxStaticBox",0}, |
65dd82cb RD |
8074 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
8075 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
8076 | { "_wxChoice","_class_wxComboBox",SwigwxComboBoxTowxChoice}, |
8077 | { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, | |
8078 | { "_wxChoice","_class_wxChoice",0}, | |
8079 | { "_wxSlider","_class_wxSlider",0}, | |
1d99702e RD |
8080 | { "_long","_unsigned_long",0}, |
8081 | { "_long","_signed_long",0}, | |
8082 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 8083 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e RD |
8084 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, |
8085 | { "_wxBitmapButton","_class_wxBitmapButton",0}, | |
8086 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
b1462dfa | 8087 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e RD |
8088 | { "_class_wxGauge","_wxGauge",0}, |
8089 | { "_wxDC","_class_wxDC",0}, | |
b1462dfa | 8090 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
1d99702e | 8091 | { "_wxSpinEvent","_class_wxSpinEvent",0}, |
b1462dfa | 8092 | { "_size_t","_wxCoord",0}, |
1d99702e | 8093 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 8094 | { "_size_t","_time_t",0}, |
1d99702e RD |
8095 | { "_size_t","_unsigned_int",0}, |
8096 | { "_size_t","_int",0}, | |
8097 | { "_size_t","_wxWindowID",0}, | |
8098 | { "_size_t","_uint",0}, | |
8099 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
48115f4a | 8100 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
48115f4a | 8101 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, |
1d99702e RD |
8102 | { "_class_wxMenuItem","_wxMenuItem",0}, |
8103 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
8104 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
8105 | { "_wxPanel","_class_wxPanel",0}, | |
8106 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
8107 | { "_wxCheckBox","_class_wxCheckBox",0}, | |
8108 | { "_wxPyEvent","_class_wxPyEvent",0}, | |
8109 | { "_wxTextCtrl","_class_wxTextCtrl",0}, | |
8110 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 8111 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
8112 | { "_class_wxKeyEvent","_wxKeyEvent",0}, |
8113 | { "_wxColour","_class_wxColour",0}, | |
8114 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa | 8115 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
1d99702e RD |
8116 | { "_wxIdleEvent","_class_wxIdleEvent",0}, |
8117 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
b1462dfa | 8118 | { "_class_wxDataObject","_wxDataObject",0}, |
1d99702e RD |
8119 | { "_wxStaticLine","_class_wxStaticLine",0}, |
8120 | { "_wxBrush","_class_wxBrush",0}, | |
b1462dfa RD |
8121 | { "_wxDataFormat","_class_wxDataFormat",0}, |
8122 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
1d99702e | 8123 | { "_wxShowEvent","_class_wxShowEvent",0}, |
b1462dfa | 8124 | { "_uint","_wxCoord",0}, |
1d99702e | 8125 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 8126 | { "_uint","_time_t",0}, |
1d99702e RD |
8127 | { "_uint","_size_t",0}, |
8128 | { "_uint","_unsigned_int",0}, | |
8129 | { "_uint","_int",0}, | |
8130 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 8131 | { "_wxChar","_char",0}, |
2f90df85 | 8132 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
8133 | { "_class_wxEvent","_wxEvent",0}, |
8134 | { "_wxCheckListBox","_class_wxCheckListBox",0}, | |
8135 | { "_wxRect","_class_wxRect",0}, | |
8136 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
8137 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
8138 | { "_wxPoint","_class_wxPoint",0}, | |
8139 | { "_class_wxButton","_class_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
8140 | { "_class_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
8141 | { "_class_wxButton","_wxButton",0}, | |
8142 | { "_wxRadioBox","_class_wxRadioBox",0}, | |
f6bcfd97 BP |
8143 | { "_class_wxSpinCtrl","_wxSpinCtrl",0}, |
8144 | { "_char","_wxChar",0}, | |
1d99702e | 8145 | { "_wxBitmap","_class_wxBitmap",0}, |
1d99702e | 8146 | { "_wxWindowDC","_class_wxWindowDC",0}, |
f6bcfd97 | 8147 | { "_wxTimerEvent","_class_wxTimerEvent",0}, |
1d99702e | 8148 | { "_wxScrollBar","_class_wxScrollBar",0}, |
f6bcfd97 BP |
8149 | { "_wxSpinButton","_class_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
8150 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
1d99702e RD |
8151 | { "_wxSpinButton","_class_wxSpinButton",0}, |
8152 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
8153 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, | |
2f90df85 | 8154 | { "_class_wxValidator","_wxValidator",0}, |
1d99702e RD |
8155 | { "_class_wxPyEvent","_wxPyEvent",0}, |
8156 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
8157 | { "_class_wxStaticBitmap","_wxStaticBitmap",0}, | |
b1462dfa | 8158 | { "_wxDropTarget","_class_wxDropTarget",0}, |
1d99702e RD |
8159 | { "_class_wxStaticLine","_wxStaticLine",0}, |
8160 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
b1462dfa | 8161 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
8162 | { "_EBool","_wxPrintQuality",0}, |
8163 | { "_EBool","_signed_int",0}, | |
8164 | { "_EBool","_int",0}, | |
8165 | { "_EBool","_wxWindowID",0}, | |
8166 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 8167 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 8168 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, |
48115f4a | 8169 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, |
1d99702e RD |
8170 | { "_wxStaticText","_class_wxStaticText",0}, |
8171 | { "_wxFont","_class_wxFont",0}, | |
b1462dfa | 8172 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e | 8173 | { "_wxCloseEvent","_class_wxCloseEvent",0}, |
1d99702e RD |
8174 | { "_unsigned_long","_long",0}, |
8175 | { "_class_wxRect","_wxRect",0}, | |
8176 | { "_class_wxDC","_wxDC",0}, | |
d426c97e | 8177 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
48115f4a RD |
8178 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, |
8179 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, | |
1d99702e RD |
8180 | { "_wxFocusEvent","_class_wxFocusEvent",0}, |
8181 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
f6bcfd97 BP |
8182 | { "_class_wxTimerEvent","_wxTimerEvent",0}, |
8183 | { "_class_wxSpinButton","_class_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
8184 | { "_class_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
1d99702e RD |
8185 | { "_class_wxSpinButton","_wxSpinButton",0}, |
8186 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
8187 | { "_class_wxPanel","_wxPanel",0}, | |
8188 | { "_class_wxCheckBox","_wxCheckBox",0}, | |
8189 | { "_wxComboBox","_class_wxComboBox",0}, | |
8190 | { "_wxRadioButton","_class_wxRadioButton",0}, | |
b1462dfa | 8191 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
8192 | { "_signed_int","_wxPrintQuality",0}, |
8193 | { "_signed_int","_EBool",0}, | |
8194 | { "_signed_int","_wxWindowID",0}, | |
8195 | { "_signed_int","_int",0}, | |
8196 | { "_class_wxTextCtrl","_wxTextCtrl",0}, | |
8197 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
8198 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 8199 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
8200 | { "_wxMenu","_class_wxMenu",0}, |
8201 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
8202 | { "_wxListBox","_class_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
8203 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
8204 | { "_wxListBox","_class_wxListBox",0}, | |
8205 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
8206 | { "_WXTYPE","_short",0}, | |
8207 | { "_WXTYPE","_signed_short",0}, | |
8208 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 8209 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
8210 | { "_class_wxBrush","_wxBrush",0}, |
8211 | { "_unsigned_short","_WXTYPE",0}, | |
8212 | { "_unsigned_short","_short",0}, | |
f6bcfd97 BP |
8213 | { "_class_wxWindow","_class_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
8214 | { "_class_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
1d99702e RD |
8215 | { "_class_wxWindow","_class_wxSlider",SwigwxSliderTowxWindow}, |
8216 | { "_class_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
8217 | { "_class_wxWindow","_class_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
8218 | { "_class_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
8219 | { "_class_wxWindow","_class_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
8220 | { "_class_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
8221 | { "_class_wxWindow","_class_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
8222 | { "_class_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
8223 | { "_class_wxWindow","_class_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
8224 | { "_class_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
8225 | { "_class_wxWindow","_class_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
8226 | { "_class_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
8227 | { "_class_wxWindow","_class_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
8228 | { "_class_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
8229 | { "_class_wxWindow","_class_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
8230 | { "_class_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
8231 | { "_class_wxWindow","_class_wxListBox",SwigwxListBoxTowxWindow}, | |
8232 | { "_class_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
8233 | { "_class_wxWindow","_class_wxStaticText",SwigwxStaticTextTowxWindow}, | |
8234 | { "_class_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
8235 | { "_class_wxWindow","_class_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
8236 | { "_class_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
8237 | { "_class_wxWindow","_class_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
8238 | { "_class_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
8239 | { "_class_wxWindow","_class_wxGauge",SwigwxGaugeTowxWindow}, | |
8240 | { "_class_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
8241 | { "_class_wxWindow","_class_wxComboBox",SwigwxComboBoxTowxWindow}, | |
8242 | { "_class_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
8243 | { "_class_wxWindow","_class_wxChoice",SwigwxChoiceTowxWindow}, | |
8244 | { "_class_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
8245 | { "_class_wxWindow","_class_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
8246 | { "_class_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
8247 | { "_class_wxWindow","_class_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
8248 | { "_class_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
8249 | { "_class_wxWindow","_class_wxButton",SwigwxButtonTowxWindow}, | |
8250 | { "_class_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
8251 | { "_class_wxWindow","_class_wxControl",SwigwxControlTowxWindow}, | |
8252 | { "_class_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
8253 | { "_class_wxWindow","_wxWindow",0}, | |
8254 | { "_class_wxStaticText","_wxStaticText",0}, | |
8255 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 8256 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 8257 | { "_class_wxPyValidator","_wxPyValidator",0}, |
1d99702e | 8258 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
2abc0a0f | 8259 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
0569df0f | 8260 | { "_wxFontList","_class_wxFontList",0}, |
1d99702e | 8261 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
48115f4a | 8262 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, |
65dd82cb | 8263 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
8264 | { "_wxClientDC","_class_wxClientDC",0}, |
8265 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
8266 | { "_class_wxPoint","_wxPoint",0}, | |
8267 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
8268 | { "_class_wxRadioBox","_wxRadioBox",0}, | |
8269 | { "_signed_short","_WXTYPE",0}, | |
8270 | { "_signed_short","_short",0}, | |
8271 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 8272 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
8273 | { "_wxPaintDC","_class_wxPaintDC",0}, |
8274 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
8275 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
8276 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
8277 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
8278 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 8279 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
8280 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
8281 | { "_unsigned_char","_byte",0}, | |
8282 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
8283 | { "_class_wxMenu","_wxMenu",0}, | |
f6bcfd97 BP |
8284 | { "_wxControl","_class_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
8285 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
1d99702e RD |
8286 | { "_wxControl","_class_wxSlider",SwigwxSliderTowxControl}, |
8287 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
8288 | { "_wxControl","_class_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
8289 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
8290 | { "_wxControl","_class_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
8291 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
8292 | { "_wxControl","_class_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
8293 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
8294 | { "_wxControl","_class_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
8295 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
8296 | { "_wxControl","_class_wxScrollBar",SwigwxScrollBarTowxControl}, | |
8297 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
8298 | { "_wxControl","_class_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
8299 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
8300 | { "_wxControl","_class_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
8301 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
8302 | { "_wxControl","_class_wxListBox",SwigwxListBoxTowxControl}, | |
8303 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
8304 | { "_wxControl","_class_wxStaticText",SwigwxStaticTextTowxControl}, | |
8305 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
8306 | { "_wxControl","_class_wxStaticLine",SwigwxStaticLineTowxControl}, | |
8307 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
8308 | { "_wxControl","_class_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
8309 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
8310 | { "_wxControl","_class_wxGauge",SwigwxGaugeTowxControl}, | |
8311 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
8312 | { "_wxControl","_class_wxComboBox",SwigwxComboBoxTowxControl}, | |
8313 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
8314 | { "_wxControl","_class_wxChoice",SwigwxChoiceTowxControl}, | |
8315 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
8316 | { "_wxControl","_class_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
8317 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
8318 | { "_wxControl","_class_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
8319 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
8320 | { "_wxControl","_class_wxButton",SwigwxButtonTowxControl}, | |
8321 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
8322 | { "_wxControl","_class_wxControl",0}, | |
8323 | { "_class_wxListBox","_class_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
8324 | { "_class_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
8325 | { "_class_wxListBox","_wxListBox",0}, | |
b1462dfa | 8326 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 8327 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 8328 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
8329 | { "_unsigned_int","_size_t",0}, |
8330 | { "_unsigned_int","_uint",0}, | |
8331 | { "_unsigned_int","_wxWindowID",0}, | |
8332 | { "_unsigned_int","_int",0}, | |
8333 | { "_wxIcon","_class_wxIcon",0}, | |
8334 | { "_wxDialog","_class_wxDialog",0}, | |
8335 | { "_class_wxPen","_wxPen",0}, | |
8336 | { "_short","_WXTYPE",0}, | |
8337 | { "_short","_unsigned_short",0}, | |
8338 | { "_short","_signed_short",0}, | |
8339 | { "_class_wxStaticBox","_wxStaticBox",0}, | |
65dd82cb RD |
8340 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
8341 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e RD |
8342 | { "_class_wxScrollEvent","_wxScrollEvent",0}, |
8343 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
8344 | { "_class_wxChoice","_class_wxComboBox",SwigwxComboBoxTowxChoice}, | |
8345 | { "_class_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, | |
8346 | { "_class_wxChoice","_wxChoice",0}, | |
8347 | { "_class_wxSlider","_wxSlider",0}, | |
8348 | { "_class_wxImageList","_wxImageList",0}, | |
8349 | { "_class_wxBitmapButton","_wxBitmapButton",0}, | |
48115f4a | 8350 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
b1462dfa | 8351 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 8352 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 8353 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
8354 | { "_wxWindowID","_size_t",0}, |
8355 | { "_wxWindowID","_EBool",0}, | |
8356 | { "_wxWindowID","_uint",0}, | |
8357 | { "_wxWindowID","_int",0}, | |
8358 | { "_wxWindowID","_signed_int",0}, | |
8359 | { "_wxWindowID","_unsigned_int",0}, | |
d426c97e | 8360 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
b1462dfa | 8361 | { "_int","_wxCoord",0}, |
1d99702e | 8362 | { "_int","_wxPrintQuality",0}, |
c368d904 | 8363 | { "_int","_time_t",0}, |
1d99702e RD |
8364 | { "_int","_size_t",0}, |
8365 | { "_int","_EBool",0}, | |
8366 | { "_int","_uint",0}, | |
8367 | { "_int","_wxWindowID",0}, | |
8368 | { "_int","_unsigned_int",0}, | |
8369 | { "_int","_signed_int",0}, | |
8370 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
2f90df85 | 8371 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, |
1d99702e | 8372 | { "_class_wxSpinEvent","_wxSpinEvent",0}, |
48115f4a | 8373 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, |
c368d904 RD |
8374 | { "_time_t","_wxCoord",0}, |
8375 | { "_time_t","_wxPrintQuality",0}, | |
8376 | { "_time_t","_unsigned_int",0}, | |
8377 | { "_time_t","_int",0}, | |
8378 | { "_time_t","_wxWindowID",0}, | |
8379 | { "_time_t","_uint",0}, | |
8380 | { "_time_t","_size_t",0}, | |
48115f4a | 8381 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, |
1d99702e RD |
8382 | { "_wxButton","_class_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
8383 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
8384 | { "_wxButton","_class_wxButton",0}, | |
8385 | { "_wxSize","_class_wxSize",0}, | |
8386 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
65dd82cb | 8387 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e RD |
8388 | { "_class_wxPaintDC","_wxPaintDC",0}, |
8389 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
b1462dfa | 8390 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
1d99702e RD |
8391 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, |
8392 | { "_class_wxComboBox","_wxComboBox",0}, | |
8393 | { "_class_wxRadioButton","_wxRadioButton",0}, | |
2f90df85 | 8394 | { "_wxValidator","_class_wxValidator",0}, |
1d99702e RD |
8395 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
8396 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
f6bcfd97 BP |
8397 | { "_class_wxControl","_class_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
8398 | { "_class_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
1d99702e RD |
8399 | { "_class_wxControl","_class_wxSlider",SwigwxSliderTowxControl}, |
8400 | { "_class_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
8401 | { "_class_wxControl","_class_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
8402 | { "_class_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
8403 | { "_class_wxControl","_class_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
8404 | { "_class_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
8405 | { "_class_wxControl","_class_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
8406 | { "_class_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
8407 | { "_class_wxControl","_class_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
8408 | { "_class_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
8409 | { "_class_wxControl","_class_wxScrollBar",SwigwxScrollBarTowxControl}, | |
8410 | { "_class_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
8411 | { "_class_wxControl","_class_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
8412 | { "_class_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
8413 | { "_class_wxControl","_class_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
8414 | { "_class_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
8415 | { "_class_wxControl","_class_wxListBox",SwigwxListBoxTowxControl}, | |
8416 | { "_class_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
8417 | { "_class_wxControl","_class_wxStaticText",SwigwxStaticTextTowxControl}, | |
8418 | { "_class_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
8419 | { "_class_wxControl","_class_wxStaticLine",SwigwxStaticLineTowxControl}, | |
8420 | { "_class_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
8421 | { "_class_wxControl","_class_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
8422 | { "_class_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
8423 | { "_class_wxControl","_class_wxGauge",SwigwxGaugeTowxControl}, | |
8424 | { "_class_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
8425 | { "_class_wxControl","_class_wxComboBox",SwigwxComboBoxTowxControl}, | |
8426 | { "_class_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
8427 | { "_class_wxControl","_class_wxChoice",SwigwxChoiceTowxControl}, | |
8428 | { "_class_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
8429 | { "_class_wxControl","_class_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
8430 | { "_class_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
8431 | { "_class_wxControl","_class_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
8432 | { "_class_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
8433 | { "_class_wxControl","_class_wxButton",SwigwxButtonTowxControl}, | |
8434 | { "_class_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
8435 | { "_class_wxControl","_wxControl",0}, | |
8436 | { "_wxStaticBitmap","_class_wxStaticBitmap",0}, | |
8437 | { "_class_wxIcon","_wxIcon",0}, | |
8438 | { "_class_wxColour","_wxColour",0}, | |
8439 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
8440 | { "_wxPalette","_class_wxPalette",0}, | |
8441 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
b1462dfa RD |
8442 | { "_wxCoord","_int",0}, |
8443 | { "_wxCoord","_signed_int",0}, | |
8444 | { "_wxCoord","_unsigned_int",0}, | |
8445 | { "_wxCoord","_wxWindowID",0}, | |
8446 | { "_wxCoord","_uint",0}, | |
8447 | { "_wxCoord","_EBool",0}, | |
8448 | { "_wxCoord","_size_t",0}, | |
c368d904 | 8449 | { "_wxCoord","_time_t",0}, |
b1462dfa | 8450 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 8451 | { "_wxEraseEvent","_class_wxEraseEvent",0}, |
b1462dfa | 8452 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, |
1d99702e RD |
8453 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, |
8454 | { "_wxRegion","_class_wxRegion",0}, | |
8455 | { "_class_wxShowEvent","_wxShowEvent",0}, | |
b1462dfa | 8456 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
1d99702e RD |
8457 | { "_wxActivateEvent","_class_wxActivateEvent",0}, |
8458 | { "_wxGauge","_class_wxGauge",0}, | |
8459 | { "_class_wxCheckListBox","_wxCheckListBox",0}, | |
2abc0a0f | 8460 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
0569df0f | 8461 | { "_class_wxFontList","_wxFontList",0}, |
1d99702e RD |
8462 | { "_class_wxCommandEvent","_wxCommandEvent",0}, |
8463 | { "_class_wxClientDC","_wxClientDC",0}, | |
8464 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
b1462dfa | 8465 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
8466 | { "_class_wxSize","_wxSize",0}, |
8467 | { "_class_wxBitmap","_wxBitmap",0}, | |
8468 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 8469 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e | 8470 | { "_wxMenuBar","_class_wxMenuBar",0}, |
f6bcfd97 BP |
8471 | { "_wxEvtHandler","_class_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
8472 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
1d99702e RD |
8473 | { "_wxEvtHandler","_class_wxSlider",SwigwxSliderTowxEvtHandler}, |
8474 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
8475 | { "_wxEvtHandler","_class_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
8476 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
8477 | { "_wxEvtHandler","_class_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
8478 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
8479 | { "_wxEvtHandler","_class_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
8480 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
8481 | { "_wxEvtHandler","_class_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
8482 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
8483 | { "_wxEvtHandler","_class_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
8484 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
8485 | { "_wxEvtHandler","_class_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
8486 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
8487 | { "_wxEvtHandler","_class_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
8488 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
8489 | { "_wxEvtHandler","_class_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
8490 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
8491 | { "_wxEvtHandler","_class_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
8492 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
8493 | { "_wxEvtHandler","_class_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
8494 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
8495 | { "_wxEvtHandler","_class_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
8496 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
8497 | { "_wxEvtHandler","_class_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
8498 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
8499 | { "_wxEvtHandler","_class_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
8500 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
8501 | { "_wxEvtHandler","_class_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
8502 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
8503 | { "_wxEvtHandler","_class_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
8504 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
8505 | { "_wxEvtHandler","_class_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
8506 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
8507 | { "_wxEvtHandler","_class_wxButton",SwigwxButtonTowxEvtHandler}, | |
8508 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
8509 | { "_wxEvtHandler","_class_wxControl",SwigwxControlTowxEvtHandler}, | |
8510 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
8511 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
8512 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
8513 | { "_class_wxScrollBar","_wxScrollBar",0}, | |
1d99702e RD |
8514 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
8515 | { "_wxKeyEvent","_class_wxKeyEvent",0}, | |
8516 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
8517 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa | 8518 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
1d99702e | 8519 | { "_class_wxEraseEvent","_wxEraseEvent",0}, |
b1462dfa | 8520 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, |
f6bcfd97 BP |
8521 | { "_wxWindow","_class_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
8522 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
1d99702e RD |
8523 | { "_wxWindow","_class_wxSlider",SwigwxSliderTowxWindow}, |
8524 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
8525 | { "_wxWindow","_class_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
8526 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
8527 | { "_wxWindow","_class_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
8528 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
8529 | { "_wxWindow","_class_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
8530 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
8531 | { "_wxWindow","_class_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
8532 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
8533 | { "_wxWindow","_class_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
8534 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
8535 | { "_wxWindow","_class_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
8536 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
8537 | { "_wxWindow","_class_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
8538 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
8539 | { "_wxWindow","_class_wxListBox",SwigwxListBoxTowxWindow}, | |
8540 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
8541 | { "_wxWindow","_class_wxStaticText",SwigwxStaticTextTowxWindow}, | |
8542 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
8543 | { "_wxWindow","_class_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
8544 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
8545 | { "_wxWindow","_class_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
8546 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
8547 | { "_wxWindow","_class_wxGauge",SwigwxGaugeTowxWindow}, | |
8548 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
8549 | { "_wxWindow","_class_wxComboBox",SwigwxComboBoxTowxWindow}, | |
8550 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
8551 | { "_wxWindow","_class_wxChoice",SwigwxChoiceTowxWindow}, | |
8552 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
8553 | { "_wxWindow","_class_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
8554 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
8555 | { "_wxWindow","_class_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
8556 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
8557 | { "_wxWindow","_class_wxButton",SwigwxButtonTowxWindow}, | |
8558 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
8559 | { "_wxWindow","_class_wxControl",SwigwxControlTowxWindow}, | |
8560 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
8561 | { "_wxWindow","_class_wxWindow",0}, | |
48115f4a | 8562 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
1d99702e RD |
8563 | {0,0,0}}; |
8564 | ||
8ab979d7 RD |
8565 | static PyObject *SWIG_globals; |
8566 | #ifdef __cplusplus | |
8567 | extern "C" | |
8568 | #endif | |
1d99702e | 8569 | SWIGEXPORT(void) initcontrolsc() { |
8ab979d7 RD |
8570 | PyObject *m, *d; |
8571 | SWIG_globals = SWIG_newvarlink(); | |
8572 | m = Py_InitModule("controlsc", controlscMethods); | |
8573 | d = PyModule_GetDict(m); | |
2f90df85 RD |
8574 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
8575 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
1d99702e RD |
8576 | { |
8577 | int i; | |
8578 | for (i = 0; _swig_mapping[i].n1; i++) | |
8579 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8580 | } | |
8ab979d7 | 8581 | } |