]>
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> |
d1679124 | 64 | #include <wx/tglbtn.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 | |
78 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
79 | PyObject* o2; | |
80 | PyObject* o3; | |
81 | ||
e0672e2f | 82 | if (!target) { |
8ab979d7 | 83 | target = o; |
e0672e2f | 84 | } else if (target == Py_None) { |
8ab979d7 RD |
85 | Py_DECREF(Py_None); |
86 | target = o; | |
e0672e2f | 87 | } else { |
8ab979d7 RD |
88 | if (!PyTuple_Check(target)) { |
89 | o2 = target; | |
90 | target = PyTuple_New(1); | |
91 | PyTuple_SetItem(target, 0, o2); | |
92 | } | |
e0672e2f RD |
93 | o3 = PyTuple_New(1); |
94 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
95 | |
96 | o2 = target; | |
e0672e2f RD |
97 | target = PySequence_Concat(o2, o3); |
98 | Py_DECREF(o2); | |
8ab979d7 RD |
99 | Py_DECREF(o3); |
100 | } | |
101 | return target; | |
102 | } | |
103 | ||
794c5cb1 RD |
104 | #if PYTHON_API_VERSION >= 1009 |
105 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
106 | #else | |
107 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
108 | #endif | |
8ab979d7 | 109 | |
6999b0d8 RD |
110 | wxSize wxButton_GetDefaultSize() { |
111 | return wxButton::GetDefaultSize(); | |
112 | } | |
1d99702e RD |
113 | #ifdef __cplusplus |
114 | extern "C" { | |
115 | #endif | |
2f90df85 RD |
116 | static int _wrap_wxDefaultValidator_set(PyObject *val) { |
117 | ||
118 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
119 | return 1; | |
120 | } | |
121 | ||
122 | static PyObject *_wrap_wxDefaultValidator_get() { | |
123 | PyObject * pyobj; | |
124 | char ptemp[128]; | |
125 | ||
126 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
127 | pyobj = PyString_FromString(ptemp); | |
128 | return pyobj; | |
129 | } | |
130 | ||
6999b0d8 RD |
131 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
132 | PyObject * _resultobj; | |
133 | wxSize * _result; | |
134 | char *_kwnames[] = { NULL }; | |
135 | char _ptemp[128]; | |
136 | ||
137 | self = self; | |
138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
139 | return NULL; | |
140 | { | |
141 | wxPy_BEGIN_ALLOW_THREADS; | |
142 | _result = new wxSize (wxButton_GetDefaultSize()); | |
143 | ||
144 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 145 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
146 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
147 | _resultobj = Py_BuildValue("s",_ptemp); | |
148 | return _resultobj; | |
149 | } | |
150 | ||
8ab979d7 RD |
151 | static void *SwigwxControlTowxWindow(void *ptr) { |
152 | wxControl *src; | |
153 | wxWindow *dest; | |
154 | src = (wxControl *) ptr; | |
155 | dest = (wxWindow *) src; | |
156 | return (void *) dest; | |
157 | } | |
158 | ||
159 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
160 | wxControl *src; | |
161 | wxEvtHandler *dest; | |
162 | src = (wxControl *) ptr; | |
163 | dest = (wxEvtHandler *) src; | |
164 | return (void *) dest; | |
165 | } | |
166 | ||
9416aa89 RD |
167 | static void *SwigwxControlTowxObject(void *ptr) { |
168 | wxControl *src; | |
169 | wxObject *dest; | |
170 | src = (wxControl *) ptr; | |
171 | dest = (wxObject *) src; | |
172 | return (void *) dest; | |
173 | } | |
174 | ||
9b3d3bc4 | 175 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
6999b0d8 RD |
176 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
177 | PyObject * _resultobj; | |
178 | wxControl * _result; | |
9b3d3bc4 RD |
179 | wxWindow * _arg0; |
180 | wxWindowID _arg1; | |
e508a2b6 RD |
181 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
182 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
9b3d3bc4 | 183 | long _arg4 = (long ) 0; |
e508a2b6 | 184 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9b3d3bc4 RD |
185 | char * _arg6 = (char *) "control"; |
186 | PyObject * _argo0 = 0; | |
187 | wxPoint temp; | |
188 | PyObject * _obj2 = 0; | |
189 | wxSize temp0; | |
190 | PyObject * _obj3 = 0; | |
191 | PyObject * _argo5 = 0; | |
192 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
6999b0d8 RD |
193 | char _ptemp[128]; |
194 | ||
195 | self = self; | |
9b3d3bc4 RD |
196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
197 | return NULL; | |
198 | if (_argo0) { | |
199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
202 | return NULL; | |
203 | } | |
204 | } | |
205 | if (_obj2) | |
206 | { | |
207 | _arg2 = &temp; | |
208 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6999b0d8 | 209 | return NULL; |
9b3d3bc4 RD |
210 | } |
211 | if (_obj3) | |
212 | { | |
213 | _arg3 = &temp0; | |
214 | if (! wxSize_helper(_obj3, &_arg3)) | |
215 | return NULL; | |
216 | } | |
217 | if (_argo5) { | |
218 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
219 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
221 | return NULL; | |
222 | } | |
223 | } | |
6999b0d8 RD |
224 | { |
225 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 226 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
6999b0d8 RD |
227 | |
228 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 229 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
230 | } if (_result) { |
231 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
232 | _resultobj = Py_BuildValue("s",_ptemp); | |
233 | } else { | |
234 | Py_INCREF(Py_None); | |
235 | _resultobj = Py_None; | |
236 | } | |
237 | return _resultobj; | |
238 | } | |
239 | ||
8ab979d7 | 240 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) |
efc5f224 | 241 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
242 | PyObject * _resultobj; |
243 | wxControl * _arg0; | |
244 | wxCommandEvent * _arg1; | |
1d99702e RD |
245 | PyObject * _argo0 = 0; |
246 | PyObject * _argo1 = 0; | |
efc5f224 | 247 | char *_kwnames[] = { "self","event", NULL }; |
8ab979d7 RD |
248 | |
249 | self = self; | |
efc5f224 | 250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 251 | return NULL; |
1d99702e RD |
252 | if (_argo0) { |
253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); |
256 | return NULL; | |
257 | } | |
258 | } | |
1d99702e RD |
259 | if (_argo1) { |
260 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
261 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
8ab979d7 RD |
262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); |
263 | return NULL; | |
264 | } | |
265 | } | |
cf694132 RD |
266 | { |
267 | wxPy_BEGIN_ALLOW_THREADS; | |
268 | wxControl_Command(_arg0,*_arg1); | |
269 | ||
270 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 271 | if (PyErr_Occurred()) return NULL; |
cf694132 | 272 | } Py_INCREF(Py_None); |
8ab979d7 RD |
273 | _resultobj = Py_None; |
274 | return _resultobj; | |
275 | } | |
276 | ||
277 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
efc5f224 | 278 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
279 | PyObject * _resultobj; |
280 | wxString * _result; | |
281 | wxControl * _arg0; | |
1d99702e | 282 | PyObject * _argo0 = 0; |
efc5f224 | 283 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
284 | |
285 | self = self; | |
efc5f224 | 286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 287 | return NULL; |
1d99702e RD |
288 | if (_argo0) { |
289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); |
292 | return NULL; | |
293 | } | |
294 | } | |
8ab979d7 | 295 | { |
cf694132 RD |
296 | wxPy_BEGIN_ALLOW_THREADS; |
297 | _result = new wxString (wxControl_GetLabel(_arg0)); | |
298 | ||
299 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 300 | if (PyErr_Occurred()) return NULL; |
cf694132 | 301 | }{ |
eec92d76 | 302 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
303 | } |
304 | { | |
305 | delete _result; | |
306 | } | |
307 | return _resultobj; | |
308 | } | |
309 | ||
310 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
efc5f224 | 311 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
312 | PyObject * _resultobj; |
313 | wxControl * _arg0; | |
314 | wxString * _arg1; | |
1d99702e | 315 | PyObject * _argo0 = 0; |
8ab979d7 | 316 | PyObject * _obj1 = 0; |
efc5f224 | 317 | char *_kwnames[] = { "self","label", NULL }; |
8ab979d7 RD |
318 | |
319 | self = self; | |
efc5f224 | 320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 321 | return NULL; |
1d99702e RD |
322 | if (_argo0) { |
323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); |
326 | return NULL; | |
327 | } | |
328 | } | |
329 | { | |
185d7c3e RD |
330 | #if PYTHON_API_VERSION >= 1009 |
331 | char* tmpPtr; int tmpSize; | |
332 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 333 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
334 | return NULL; |
335 | } | |
336 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
337 | return NULL; | |
338 | _arg1 = new wxString(tmpPtr, tmpSize); | |
339 | #else | |
8ab979d7 RD |
340 | if (!PyString_Check(_obj1)) { |
341 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
342 | return NULL; | |
343 | } | |
185d7c3e RD |
344 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
345 | #endif | |
8ab979d7 | 346 | } |
cf694132 RD |
347 | { |
348 | wxPy_BEGIN_ALLOW_THREADS; | |
349 | wxControl_SetLabel(_arg0,*_arg1); | |
350 | ||
351 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 352 | if (PyErr_Occurred()) return NULL; |
cf694132 | 353 | } Py_INCREF(Py_None); |
8ab979d7 RD |
354 | _resultobj = Py_None; |
355 | { | |
356 | if (_obj1) | |
357 | delete _arg1; | |
358 | } | |
359 | return _resultobj; | |
360 | } | |
361 | ||
362 | static void *SwigwxButtonTowxControl(void *ptr) { | |
363 | wxButton *src; | |
364 | wxControl *dest; | |
365 | src = (wxButton *) ptr; | |
366 | dest = (wxControl *) src; | |
367 | return (void *) dest; | |
368 | } | |
369 | ||
370 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
371 | wxButton *src; | |
372 | wxWindow *dest; | |
373 | src = (wxButton *) ptr; | |
374 | dest = (wxWindow *) src; | |
375 | return (void *) dest; | |
376 | } | |
377 | ||
378 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
379 | wxButton *src; | |
380 | wxEvtHandler *dest; | |
381 | src = (wxButton *) ptr; | |
382 | dest = (wxEvtHandler *) src; | |
383 | return (void *) dest; | |
384 | } | |
385 | ||
9416aa89 RD |
386 | static void *SwigwxButtonTowxObject(void *ptr) { |
387 | wxButton *src; | |
388 | wxObject *dest; | |
389 | src = (wxButton *) ptr; | |
390 | dest = (wxObject *) src; | |
391 | return (void *) dest; | |
392 | } | |
393 | ||
8ab979d7 | 394 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 395 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
396 | PyObject * _resultobj; |
397 | wxButton * _result; | |
398 | wxWindow * _arg0; | |
399 | wxWindowID _arg1; | |
400 | wxString * _arg2; | |
e508a2b6 RD |
401 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
402 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 403 | long _arg5 = (long ) 0; |
e508a2b6 | 404 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
405 | char * _arg7 = (char *) "button"; |
406 | PyObject * _argo0 = 0; | |
8ab979d7 | 407 | PyObject * _obj2 = 0; |
2f90df85 RD |
408 | wxPoint temp; |
409 | PyObject * _obj3 = 0; | |
410 | wxSize temp0; | |
411 | PyObject * _obj4 = 0; | |
1d99702e | 412 | PyObject * _argo6 = 0; |
efc5f224 | 413 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
414 | char _ptemp[128]; |
415 | ||
416 | self = self; | |
2f90df85 | 417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 418 | return NULL; |
1d99702e RD |
419 | if (_argo0) { |
420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); |
423 | return NULL; | |
424 | } | |
425 | } | |
426 | { | |
185d7c3e RD |
427 | #if PYTHON_API_VERSION >= 1009 |
428 | char* tmpPtr; int tmpSize; | |
429 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 430 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
431 | return NULL; |
432 | } | |
433 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
434 | return NULL; | |
435 | _arg2 = new wxString(tmpPtr, tmpSize); | |
436 | #else | |
8ab979d7 RD |
437 | if (!PyString_Check(_obj2)) { |
438 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
439 | return NULL; | |
440 | } | |
185d7c3e RD |
441 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
442 | #endif | |
8ab979d7 | 443 | } |
2f90df85 RD |
444 | if (_obj3) |
445 | { | |
446 | _arg3 = &temp; | |
447 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 448 | return NULL; |
2f90df85 RD |
449 | } |
450 | if (_obj4) | |
451 | { | |
452 | _arg4 = &temp0; | |
453 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 454 | return NULL; |
2f90df85 | 455 | } |
1d99702e RD |
456 | if (_argo6) { |
457 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
458 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); |
460 | return NULL; | |
461 | } | |
462 | } | |
cf694132 RD |
463 | { |
464 | wxPy_BEGIN_ALLOW_THREADS; | |
465 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
466 | ||
467 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 468 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
469 | } if (_result) { |
470 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
471 | _resultobj = Py_BuildValue("s",_ptemp); | |
472 | } else { | |
473 | Py_INCREF(Py_None); | |
474 | _resultobj = Py_None; | |
475 | } | |
8ab979d7 RD |
476 | { |
477 | if (_obj2) | |
478 | delete _arg2; | |
479 | } | |
480 | return _resultobj; | |
481 | } | |
482 | ||
483 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) | |
efc5f224 | 484 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
485 | PyObject * _resultobj; |
486 | wxButton * _arg0; | |
1d99702e | 487 | PyObject * _argo0 = 0; |
efc5f224 | 488 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
489 | |
490 | self = self; | |
efc5f224 | 491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) |
8ab979d7 | 492 | return NULL; |
1d99702e RD |
493 | if (_argo0) { |
494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
8ab979d7 RD |
496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); |
497 | return NULL; | |
498 | } | |
499 | } | |
cf694132 RD |
500 | { |
501 | wxPy_BEGIN_ALLOW_THREADS; | |
502 | wxButton_SetDefault(_arg0); | |
503 | ||
504 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 505 | if (PyErr_Occurred()) return NULL; |
cf694132 | 506 | } Py_INCREF(Py_None); |
8ab979d7 RD |
507 | _resultobj = Py_None; |
508 | return _resultobj; | |
509 | } | |
510 | ||
9b3d3bc4 RD |
511 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
512 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
513 | PyObject * _resultobj; | |
514 | wxButton * _arg0; | |
515 | wxColour * _arg1; | |
516 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
517 | wxColour temp; |
518 | PyObject * _obj1 = 0; | |
9b3d3bc4 RD |
519 | char *_kwnames[] = { "self","colour", NULL }; |
520 | ||
521 | self = self; | |
f6bcfd97 | 522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
9b3d3bc4 RD |
523 | return NULL; |
524 | if (_argo0) { | |
525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
528 | return NULL; | |
529 | } | |
530 | } | |
f6bcfd97 BP |
531 | { |
532 | _arg1 = &temp; | |
533 | if (! wxColour_helper(_obj1, &_arg1)) | |
9b3d3bc4 | 534 | return NULL; |
f6bcfd97 | 535 | } |
9b3d3bc4 RD |
536 | { |
537 | wxPy_BEGIN_ALLOW_THREADS; | |
538 | wxButton_SetBackgroundColour(_arg0,*_arg1); | |
539 | ||
540 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 541 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
542 | } Py_INCREF(Py_None); |
543 | _resultobj = Py_None; | |
544 | return _resultobj; | |
545 | } | |
546 | ||
547 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
548 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
549 | PyObject * _resultobj; | |
550 | wxButton * _arg0; | |
551 | wxColour * _arg1; | |
552 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
553 | wxColour temp; |
554 | PyObject * _obj1 = 0; | |
9b3d3bc4 RD |
555 | char *_kwnames[] = { "self","colour", NULL }; |
556 | ||
557 | self = self; | |
f6bcfd97 | 558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9b3d3bc4 RD |
559 | return NULL; |
560 | if (_argo0) { | |
561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
564 | return NULL; | |
565 | } | |
566 | } | |
f6bcfd97 BP |
567 | { |
568 | _arg1 = &temp; | |
569 | if (! wxColour_helper(_obj1, &_arg1)) | |
9b3d3bc4 | 570 | return NULL; |
f6bcfd97 | 571 | } |
9b3d3bc4 RD |
572 | { |
573 | wxPy_BEGIN_ALLOW_THREADS; | |
574 | wxButton_SetForegroundColour(_arg0,*_arg1); | |
575 | ||
576 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 577 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
578 | } Py_INCREF(Py_None); |
579 | _resultobj = Py_None; | |
580 | return _resultobj; | |
581 | } | |
582 | ||
8ab979d7 RD |
583 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { |
584 | wxBitmapButton *src; | |
585 | wxButton *dest; | |
586 | src = (wxBitmapButton *) ptr; | |
587 | dest = (wxButton *) src; | |
588 | return (void *) dest; | |
589 | } | |
590 | ||
591 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
592 | wxBitmapButton *src; | |
593 | wxControl *dest; | |
594 | src = (wxBitmapButton *) ptr; | |
595 | dest = (wxControl *) src; | |
596 | return (void *) dest; | |
597 | } | |
598 | ||
599 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
600 | wxBitmapButton *src; | |
601 | wxWindow *dest; | |
602 | src = (wxBitmapButton *) ptr; | |
603 | dest = (wxWindow *) src; | |
604 | return (void *) dest; | |
605 | } | |
606 | ||
607 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
608 | wxBitmapButton *src; | |
609 | wxEvtHandler *dest; | |
610 | src = (wxBitmapButton *) ptr; | |
611 | dest = (wxEvtHandler *) src; | |
612 | return (void *) dest; | |
613 | } | |
614 | ||
9416aa89 RD |
615 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { |
616 | wxBitmapButton *src; | |
617 | wxObject *dest; | |
618 | src = (wxBitmapButton *) ptr; | |
619 | dest = (wxObject *) src; | |
620 | return (void *) dest; | |
621 | } | |
622 | ||
8ab979d7 | 623 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 624 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
625 | PyObject * _resultobj; |
626 | wxBitmapButton * _result; | |
627 | wxWindow * _arg0; | |
628 | wxWindowID _arg1; | |
629 | wxBitmap * _arg2; | |
e508a2b6 RD |
630 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
631 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 632 | long _arg5 = (long ) wxBU_AUTODRAW; |
e508a2b6 | 633 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
634 | char * _arg7 = (char *) "button"; |
635 | PyObject * _argo0 = 0; | |
636 | PyObject * _argo2 = 0; | |
2f90df85 RD |
637 | wxPoint temp; |
638 | PyObject * _obj3 = 0; | |
639 | wxSize temp0; | |
640 | PyObject * _obj4 = 0; | |
1d99702e | 641 | PyObject * _argo6 = 0; |
efc5f224 | 642 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
643 | char _ptemp[128]; |
644 | ||
645 | self = self; | |
2f90df85 | 646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 647 | return NULL; |
1d99702e RD |
648 | if (_argo0) { |
649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); |
652 | return NULL; | |
653 | } | |
654 | } | |
1d99702e RD |
655 | if (_argo2) { |
656 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
657 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8ab979d7 RD |
658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); |
659 | return NULL; | |
660 | } | |
661 | } | |
2f90df85 RD |
662 | if (_obj3) |
663 | { | |
664 | _arg3 = &temp; | |
665 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 666 | return NULL; |
2f90df85 RD |
667 | } |
668 | if (_obj4) | |
669 | { | |
670 | _arg4 = &temp0; | |
671 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 672 | return NULL; |
2f90df85 | 673 | } |
1d99702e RD |
674 | if (_argo6) { |
675 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
676 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); |
678 | return NULL; | |
679 | } | |
680 | } | |
cf694132 RD |
681 | { |
682 | wxPy_BEGIN_ALLOW_THREADS; | |
683 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
684 | ||
685 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 686 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
687 | } if (_result) { |
688 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
689 | _resultobj = Py_BuildValue("s",_ptemp); | |
690 | } else { | |
691 | Py_INCREF(Py_None); | |
692 | _resultobj = Py_None; | |
693 | } | |
8ab979d7 RD |
694 | return _resultobj; |
695 | } | |
696 | ||
697 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) | |
efc5f224 | 698 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
699 | PyObject * _resultobj; |
700 | wxBitmap * _result; | |
701 | wxBitmapButton * _arg0; | |
1d99702e | 702 | PyObject * _argo0 = 0; |
efc5f224 | 703 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
704 | char _ptemp[128]; |
705 | ||
706 | self = self; | |
efc5f224 | 707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) |
8ab979d7 | 708 | return NULL; |
1d99702e RD |
709 | if (_argo0) { |
710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); |
713 | return NULL; | |
714 | } | |
715 | } | |
cf694132 RD |
716 | { |
717 | wxPy_BEGIN_ALLOW_THREADS; | |
718 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapLabel(_arg0); | |
8ab979d7 | 719 | _result = (wxBitmap *) &_result_ref; |
cf694132 RD |
720 | |
721 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 722 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
723 | } if (_result) { |
724 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
725 | _resultobj = Py_BuildValue("s",_ptemp); | |
726 | } else { | |
727 | Py_INCREF(Py_None); | |
728 | _resultobj = Py_None; | |
729 | } | |
8ab979d7 RD |
730 | return _resultobj; |
731 | } | |
732 | ||
733 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) | |
efc5f224 | 734 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
735 | PyObject * _resultobj; |
736 | wxBitmap * _result; | |
737 | wxBitmapButton * _arg0; | |
1d99702e | 738 | PyObject * _argo0 = 0; |
efc5f224 | 739 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
740 | char _ptemp[128]; |
741 | ||
742 | self = self; | |
efc5f224 | 743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) |
8ab979d7 | 744 | return NULL; |
1d99702e RD |
745 | if (_argo0) { |
746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); |
749 | return NULL; | |
750 | } | |
751 | } | |
cf694132 RD |
752 | { |
753 | wxPy_BEGIN_ALLOW_THREADS; | |
754 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapDisabled(_arg0); | |
8ab979d7 | 755 | _result = (wxBitmap *) &_result_ref; |
cf694132 RD |
756 | |
757 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 758 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
759 | } if (_result) { |
760 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
761 | _resultobj = Py_BuildValue("s",_ptemp); | |
762 | } else { | |
763 | Py_INCREF(Py_None); | |
764 | _resultobj = Py_None; | |
765 | } | |
8ab979d7 RD |
766 | return _resultobj; |
767 | } | |
768 | ||
769 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
efc5f224 | 770 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
771 | PyObject * _resultobj; |
772 | wxBitmap * _result; | |
773 | wxBitmapButton * _arg0; | |
1d99702e | 774 | PyObject * _argo0 = 0; |
efc5f224 | 775 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
776 | char _ptemp[128]; |
777 | ||
778 | self = self; | |
efc5f224 | 779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) |
8ab979d7 | 780 | return NULL; |
1d99702e RD |
781 | if (_argo0) { |
782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); |
785 | return NULL; | |
786 | } | |
787 | } | |
cf694132 RD |
788 | { |
789 | wxPy_BEGIN_ALLOW_THREADS; | |
790 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapFocus(_arg0); | |
8ab979d7 | 791 | _result = (wxBitmap *) &_result_ref; |
cf694132 RD |
792 | |
793 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 794 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
795 | } if (_result) { |
796 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
797 | _resultobj = Py_BuildValue("s",_ptemp); | |
798 | } else { | |
799 | Py_INCREF(Py_None); | |
800 | _resultobj = Py_None; | |
801 | } | |
8ab979d7 RD |
802 | return _resultobj; |
803 | } | |
804 | ||
805 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
efc5f224 | 806 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
807 | PyObject * _resultobj; |
808 | wxBitmap * _result; | |
809 | wxBitmapButton * _arg0; | |
1d99702e | 810 | PyObject * _argo0 = 0; |
efc5f224 | 811 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
812 | char _ptemp[128]; |
813 | ||
814 | self = self; | |
efc5f224 | 815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) |
8ab979d7 | 816 | return NULL; |
1d99702e RD |
817 | if (_argo0) { |
818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); |
821 | return NULL; | |
822 | } | |
823 | } | |
cf694132 RD |
824 | { |
825 | wxPy_BEGIN_ALLOW_THREADS; | |
826 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapSelected(_arg0); | |
8ab979d7 | 827 | _result = (wxBitmap *) &_result_ref; |
cf694132 RD |
828 | |
829 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 830 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
831 | } if (_result) { |
832 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
833 | _resultobj = Py_BuildValue("s",_ptemp); | |
834 | } else { | |
835 | Py_INCREF(Py_None); | |
836 | _resultobj = Py_None; | |
837 | } | |
8ab979d7 RD |
838 | return _resultobj; |
839 | } | |
840 | ||
841 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
efc5f224 | 842 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
843 | PyObject * _resultobj; |
844 | wxBitmapButton * _arg0; | |
845 | wxBitmap * _arg1; | |
1d99702e RD |
846 | PyObject * _argo0 = 0; |
847 | PyObject * _argo1 = 0; | |
efc5f224 | 848 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
849 | |
850 | self = self; | |
efc5f224 | 851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 852 | return NULL; |
1d99702e RD |
853 | if (_argo0) { |
854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); |
857 | return NULL; | |
858 | } | |
859 | } | |
1d99702e RD |
860 | if (_argo1) { |
861 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
862 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); |
864 | return NULL; | |
865 | } | |
866 | } | |
cf694132 RD |
867 | { |
868 | wxPy_BEGIN_ALLOW_THREADS; | |
869 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); | |
870 | ||
871 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 872 | if (PyErr_Occurred()) return NULL; |
cf694132 | 873 | } Py_INCREF(Py_None); |
8ab979d7 RD |
874 | _resultobj = Py_None; |
875 | return _resultobj; | |
876 | } | |
877 | ||
878 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
efc5f224 | 879 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
880 | PyObject * _resultobj; |
881 | wxBitmapButton * _arg0; | |
882 | wxBitmap * _arg1; | |
1d99702e RD |
883 | PyObject * _argo0 = 0; |
884 | PyObject * _argo1 = 0; | |
efc5f224 | 885 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
886 | |
887 | self = self; | |
efc5f224 | 888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 889 | return NULL; |
1d99702e RD |
890 | if (_argo0) { |
891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); |
894 | return NULL; | |
895 | } | |
896 | } | |
1d99702e RD |
897 | if (_argo1) { |
898 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
899 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); |
901 | return NULL; | |
902 | } | |
903 | } | |
cf694132 RD |
904 | { |
905 | wxPy_BEGIN_ALLOW_THREADS; | |
906 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); | |
907 | ||
908 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 909 | if (PyErr_Occurred()) return NULL; |
cf694132 | 910 | } Py_INCREF(Py_None); |
8ab979d7 RD |
911 | _resultobj = Py_None; |
912 | return _resultobj; | |
913 | } | |
914 | ||
915 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
efc5f224 | 916 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
917 | PyObject * _resultobj; |
918 | wxBitmapButton * _arg0; | |
919 | wxBitmap * _arg1; | |
1d99702e RD |
920 | PyObject * _argo0 = 0; |
921 | PyObject * _argo1 = 0; | |
efc5f224 | 922 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
923 | |
924 | self = self; | |
efc5f224 | 925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 926 | return NULL; |
1d99702e RD |
927 | if (_argo0) { |
928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); |
931 | return NULL; | |
932 | } | |
933 | } | |
1d99702e RD |
934 | if (_argo1) { |
935 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
936 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); |
938 | return NULL; | |
939 | } | |
940 | } | |
cf694132 RD |
941 | { |
942 | wxPy_BEGIN_ALLOW_THREADS; | |
943 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); | |
944 | ||
945 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 946 | if (PyErr_Occurred()) return NULL; |
cf694132 | 947 | } Py_INCREF(Py_None); |
8ab979d7 RD |
948 | _resultobj = Py_None; |
949 | return _resultobj; | |
950 | } | |
951 | ||
952 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) | |
efc5f224 | 953 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
954 | PyObject * _resultobj; |
955 | wxBitmapButton * _arg0; | |
956 | wxBitmap * _arg1; | |
1d99702e RD |
957 | PyObject * _argo0 = 0; |
958 | PyObject * _argo1 = 0; | |
efc5f224 | 959 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
960 | |
961 | self = self; | |
efc5f224 | 962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 963 | return NULL; |
1d99702e RD |
964 | if (_argo0) { |
965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); |
968 | return NULL; | |
969 | } | |
970 | } | |
1d99702e RD |
971 | if (_argo1) { |
972 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
973 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); |
975 | return NULL; | |
976 | } | |
977 | } | |
cf694132 RD |
978 | { |
979 | wxPy_BEGIN_ALLOW_THREADS; | |
980 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); | |
981 | ||
982 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 983 | if (PyErr_Occurred()) return NULL; |
cf694132 | 984 | } Py_INCREF(Py_None); |
8ab979d7 RD |
985 | _resultobj = Py_None; |
986 | return _resultobj; | |
987 | } | |
988 | ||
f6bcfd97 BP |
989 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
990 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
991 | PyObject * _resultobj; | |
992 | wxBitmapButton * _arg0; | |
993 | int _arg1; | |
994 | int _arg2; | |
995 | PyObject * _argo0 = 0; | |
996 | char *_kwnames[] = { "self","x","y", NULL }; | |
997 | ||
998 | self = self; | |
999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1000 | return NULL; | |
1001 | if (_argo0) { | |
1002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1005 | return NULL; | |
1006 | } | |
1007 | } | |
1008 | { | |
1009 | wxPy_BEGIN_ALLOW_THREADS; | |
1010 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); | |
1011 | ||
1012 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1013 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1014 | } Py_INCREF(Py_None); |
1015 | _resultobj = Py_None; | |
1016 | return _resultobj; | |
1017 | } | |
1018 | ||
1019 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1020 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1021 | PyObject * _resultobj; | |
1022 | int _result; | |
1023 | wxBitmapButton * _arg0; | |
1024 | PyObject * _argo0 = 0; | |
1025 | char *_kwnames[] = { "self", NULL }; | |
1026 | ||
1027 | self = self; | |
1028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1029 | return NULL; | |
1030 | if (_argo0) { | |
1031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1034 | return NULL; | |
1035 | } | |
1036 | } | |
1037 | { | |
1038 | wxPy_BEGIN_ALLOW_THREADS; | |
1039 | _result = (int )wxBitmapButton_GetMarginX(_arg0); | |
1040 | ||
1041 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1042 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1043 | } _resultobj = Py_BuildValue("i",_result); |
1044 | return _resultobj; | |
1045 | } | |
1046 | ||
1047 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1048 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1049 | PyObject * _resultobj; | |
1050 | int _result; | |
1051 | wxBitmapButton * _arg0; | |
1052 | PyObject * _argo0 = 0; | |
1053 | char *_kwnames[] = { "self", NULL }; | |
1054 | ||
1055 | self = self; | |
1056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1057 | return NULL; | |
1058 | if (_argo0) { | |
1059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1062 | return NULL; | |
1063 | } | |
1064 | } | |
1065 | { | |
1066 | wxPy_BEGIN_ALLOW_THREADS; | |
1067 | _result = (int )wxBitmapButton_GetMarginY(_arg0); | |
1068 | ||
1069 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1070 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1071 | } _resultobj = Py_BuildValue("i",_result); |
1072 | return _resultobj; | |
1073 | } | |
1074 | ||
8ab979d7 RD |
1075 | static void *SwigwxCheckBoxTowxControl(void *ptr) { |
1076 | wxCheckBox *src; | |
1077 | wxControl *dest; | |
1078 | src = (wxCheckBox *) ptr; | |
1079 | dest = (wxControl *) src; | |
1080 | return (void *) dest; | |
1081 | } | |
1082 | ||
1083 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1084 | wxCheckBox *src; | |
1085 | wxWindow *dest; | |
1086 | src = (wxCheckBox *) ptr; | |
1087 | dest = (wxWindow *) src; | |
1088 | return (void *) dest; | |
1089 | } | |
1090 | ||
1091 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1092 | wxCheckBox *src; | |
1093 | wxEvtHandler *dest; | |
1094 | src = (wxCheckBox *) ptr; | |
1095 | dest = (wxEvtHandler *) src; | |
1096 | return (void *) dest; | |
1097 | } | |
1098 | ||
9416aa89 RD |
1099 | static void *SwigwxCheckBoxTowxObject(void *ptr) { |
1100 | wxCheckBox *src; | |
1101 | wxObject *dest; | |
1102 | src = (wxCheckBox *) ptr; | |
1103 | dest = (wxObject *) src; | |
1104 | return (void *) dest; | |
1105 | } | |
1106 | ||
8ab979d7 | 1107 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 1108 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1109 | PyObject * _resultobj; |
1110 | wxCheckBox * _result; | |
1111 | wxWindow * _arg0; | |
1112 | wxWindowID _arg1; | |
1113 | wxString * _arg2; | |
e508a2b6 RD |
1114 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1115 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 1116 | long _arg5 = (long ) 0; |
e508a2b6 | 1117 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
1118 | char * _arg7 = (char *) "checkBox"; |
1119 | PyObject * _argo0 = 0; | |
8ab979d7 | 1120 | PyObject * _obj2 = 0; |
2f90df85 RD |
1121 | wxPoint temp; |
1122 | PyObject * _obj3 = 0; | |
1123 | wxSize temp0; | |
1124 | PyObject * _obj4 = 0; | |
1d99702e | 1125 | PyObject * _argo6 = 0; |
efc5f224 | 1126 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; |
8ab979d7 RD |
1127 | char _ptemp[128]; |
1128 | ||
1129 | self = self; | |
2f90df85 | 1130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 1131 | return NULL; |
1d99702e RD |
1132 | if (_argo0) { |
1133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); |
1136 | return NULL; | |
1137 | } | |
1138 | } | |
1139 | { | |
185d7c3e RD |
1140 | #if PYTHON_API_VERSION >= 1009 |
1141 | char* tmpPtr; int tmpSize; | |
1142 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 1143 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1144 | return NULL; |
1145 | } | |
1146 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1147 | return NULL; | |
1148 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1149 | #else | |
8ab979d7 RD |
1150 | if (!PyString_Check(_obj2)) { |
1151 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1152 | return NULL; | |
1153 | } | |
185d7c3e RD |
1154 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1155 | #endif | |
8ab979d7 | 1156 | } |
2f90df85 RD |
1157 | if (_obj3) |
1158 | { | |
1159 | _arg3 = &temp; | |
1160 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 1161 | return NULL; |
2f90df85 RD |
1162 | } |
1163 | if (_obj4) | |
1164 | { | |
1165 | _arg4 = &temp0; | |
1166 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 1167 | return NULL; |
2f90df85 | 1168 | } |
1d99702e RD |
1169 | if (_argo6) { |
1170 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1171 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
1172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); |
1173 | return NULL; | |
1174 | } | |
1175 | } | |
cf694132 RD |
1176 | { |
1177 | wxPy_BEGIN_ALLOW_THREADS; | |
1178 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
1179 | ||
1180 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1181 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1182 | } if (_result) { |
1183 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1184 | _resultobj = Py_BuildValue("s",_ptemp); | |
1185 | } else { | |
1186 | Py_INCREF(Py_None); | |
1187 | _resultobj = Py_None; | |
1188 | } | |
8ab979d7 RD |
1189 | { |
1190 | if (_obj2) | |
1191 | delete _arg2; | |
1192 | } | |
1193 | return _resultobj; | |
1194 | } | |
1195 | ||
1196 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 1197 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1198 | PyObject * _resultobj; |
1199 | bool _result; | |
1200 | wxCheckBox * _arg0; | |
1d99702e | 1201 | PyObject * _argo0 = 0; |
efc5f224 | 1202 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1203 | |
1204 | self = self; | |
efc5f224 | 1205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 1206 | return NULL; |
1d99702e RD |
1207 | if (_argo0) { |
1208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
8ab979d7 RD |
1210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); |
1211 | return NULL; | |
1212 | } | |
1213 | } | |
cf694132 RD |
1214 | { |
1215 | wxPy_BEGIN_ALLOW_THREADS; | |
1216 | _result = (bool )wxCheckBox_GetValue(_arg0); | |
1217 | ||
1218 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1219 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1220 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1221 | return _resultobj; |
1222 | } | |
1223 | ||
1224 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 1225 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1226 | PyObject * _resultobj; |
1227 | wxCheckBox * _arg0; | |
1228 | bool _arg1; | |
1d99702e | 1229 | PyObject * _argo0 = 0; |
8ab979d7 | 1230 | int tempbool1; |
efc5f224 | 1231 | char *_kwnames[] = { "self","state", NULL }; |
8ab979d7 RD |
1232 | |
1233 | self = self; | |
efc5f224 | 1234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1235 | return NULL; |
1d99702e RD |
1236 | if (_argo0) { |
1237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
8ab979d7 RD |
1239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); |
1240 | return NULL; | |
1241 | } | |
1242 | } | |
1243 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1244 | { |
1245 | wxPy_BEGIN_ALLOW_THREADS; | |
1246 | wxCheckBox_SetValue(_arg0,_arg1); | |
1247 | ||
1248 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1249 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1250 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1251 | _resultobj = Py_None; |
1252 | return _resultobj; | |
1253 | } | |
1254 | ||
1255 | static void *SwigwxChoiceTowxControl(void *ptr) { | |
1256 | wxChoice *src; | |
1257 | wxControl *dest; | |
1258 | src = (wxChoice *) ptr; | |
1259 | dest = (wxControl *) src; | |
1260 | return (void *) dest; | |
1261 | } | |
1262 | ||
1263 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
1264 | wxChoice *src; | |
1265 | wxWindow *dest; | |
1266 | src = (wxChoice *) ptr; | |
1267 | dest = (wxWindow *) src; | |
1268 | return (void *) dest; | |
1269 | } | |
1270 | ||
1271 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
1272 | wxChoice *src; | |
1273 | wxEvtHandler *dest; | |
1274 | src = (wxChoice *) ptr; | |
1275 | dest = (wxEvtHandler *) src; | |
1276 | return (void *) dest; | |
1277 | } | |
1278 | ||
9416aa89 RD |
1279 | static void *SwigwxChoiceTowxObject(void *ptr) { |
1280 | wxChoice *src; | |
1281 | wxObject *dest; | |
1282 | src = (wxChoice *) ptr; | |
1283 | dest = (wxObject *) src; | |
1284 | return (void *) dest; | |
1285 | } | |
1286 | ||
8ab979d7 | 1287 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
efc5f224 | 1288 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1289 | PyObject * _resultobj; |
1290 | wxChoice * _result; | |
1291 | wxWindow * _arg0; | |
1292 | wxWindowID _arg1; | |
e508a2b6 RD |
1293 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
1294 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
1295 | int _arg4 = (int ) 0; |
1296 | wxString * _arg5 = (wxString *) NULL; | |
1297 | long _arg6 = (long ) 0; | |
e508a2b6 | 1298 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
1299 | char * _arg8 = (char *) "choice"; |
1300 | PyObject * _argo0 = 0; | |
2f90df85 RD |
1301 | wxPoint temp; |
1302 | PyObject * _obj2 = 0; | |
1303 | wxSize temp0; | |
1304 | PyObject * _obj3 = 0; | |
8ab979d7 | 1305 | PyObject * _obj5 = 0; |
1d99702e | 1306 | PyObject * _argo7 = 0; |
eec92d76 | 1307 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
1308 | char _ptemp[128]; |
1309 | ||
1310 | self = self; | |
2f90df85 | 1311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
8ab979d7 | 1312 | return NULL; |
1d99702e RD |
1313 | if (_argo0) { |
1314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); |
1317 | return NULL; | |
1318 | } | |
1319 | } | |
2f90df85 RD |
1320 | if (_obj2) |
1321 | { | |
1322 | _arg2 = &temp; | |
1323 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 1324 | return NULL; |
2f90df85 RD |
1325 | } |
1326 | if (_obj3) | |
1327 | { | |
1328 | _arg3 = &temp0; | |
1329 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 1330 | return NULL; |
2f90df85 | 1331 | } |
8ab979d7 RD |
1332 | if (_obj5) |
1333 | { | |
1334 | _arg5 = wxString_LIST_helper(_obj5); | |
1335 | if (_arg5 == NULL) { | |
1336 | return NULL; | |
1337 | } | |
1338 | } | |
1d99702e RD |
1339 | if (_argo7) { |
1340 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1341 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
8ab979d7 RD |
1342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); |
1343 | return NULL; | |
1344 | } | |
1345 | } | |
1346 | { | |
cf694132 RD |
1347 | if (_obj5) { |
1348 | _arg4 = PyList_Size(_obj5); | |
1349 | } | |
1350 | else { | |
1351 | _arg4 = 0; | |
1352 | } | |
8ab979d7 | 1353 | } |
cf694132 RD |
1354 | { |
1355 | wxPy_BEGIN_ALLOW_THREADS; | |
1356 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
1357 | ||
1358 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1359 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1360 | } if (_result) { |
1361 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
1362 | _resultobj = Py_BuildValue("s",_ptemp); | |
1363 | } else { | |
1364 | Py_INCREF(Py_None); | |
1365 | _resultobj = Py_None; | |
1366 | } | |
8ab979d7 RD |
1367 | { |
1368 | delete [] _arg5; | |
1369 | } | |
1370 | return _resultobj; | |
1371 | } | |
1372 | ||
1373 | #define wxChoice_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
efc5f224 | 1374 | static PyObject *_wrap_wxChoice_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1375 | PyObject * _resultobj; |
1376 | wxChoice * _arg0; | |
1377 | wxString * _arg1; | |
1d99702e | 1378 | PyObject * _argo0 = 0; |
8ab979d7 | 1379 | PyObject * _obj1 = 0; |
efc5f224 | 1380 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
1381 | |
1382 | self = self; | |
efc5f224 | 1383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_Append",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1384 | return NULL; |
1d99702e RD |
1385 | if (_argo0) { |
1386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Append. Expected _wxChoice_p."); |
1389 | return NULL; | |
1390 | } | |
1391 | } | |
1392 | { | |
185d7c3e RD |
1393 | #if PYTHON_API_VERSION >= 1009 |
1394 | char* tmpPtr; int tmpSize; | |
1395 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1396 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1397 | return NULL; |
1398 | } | |
1399 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1400 | return NULL; | |
1401 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1402 | #else | |
8ab979d7 RD |
1403 | if (!PyString_Check(_obj1)) { |
1404 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1405 | return NULL; | |
1406 | } | |
185d7c3e RD |
1407 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1408 | #endif | |
8ab979d7 | 1409 | } |
cf694132 RD |
1410 | { |
1411 | wxPy_BEGIN_ALLOW_THREADS; | |
1412 | wxChoice_Append(_arg0,*_arg1); | |
1413 | ||
1414 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1415 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1416 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1417 | _resultobj = Py_None; |
1418 | { | |
1419 | if (_obj1) | |
1420 | delete _arg1; | |
1421 | } | |
1422 | return _resultobj; | |
1423 | } | |
1424 | ||
1425 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) | |
efc5f224 | 1426 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1427 | PyObject * _resultobj; |
1428 | wxChoice * _arg0; | |
1d99702e | 1429 | PyObject * _argo0 = 0; |
efc5f224 | 1430 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1431 | |
1432 | self = self; | |
efc5f224 | 1433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) |
8ab979d7 | 1434 | return NULL; |
1d99702e RD |
1435 | if (_argo0) { |
1436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); |
1439 | return NULL; | |
1440 | } | |
1441 | } | |
cf694132 RD |
1442 | { |
1443 | wxPy_BEGIN_ALLOW_THREADS; | |
1444 | wxChoice_Clear(_arg0); | |
1445 | ||
1446 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1447 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1448 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1449 | _resultobj = Py_None; |
1450 | return _resultobj; | |
1451 | } | |
1452 | ||
1453 | #define wxChoice_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 1454 | static PyObject *_wrap_wxChoice_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1455 | PyObject * _resultobj; |
1456 | int _result; | |
1457 | wxChoice * _arg0; | |
1458 | wxString * _arg1; | |
1d99702e | 1459 | PyObject * _argo0 = 0; |
8ab979d7 | 1460 | PyObject * _obj1 = 0; |
efc5f224 | 1461 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
1462 | |
1463 | self = self; | |
efc5f224 | 1464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1465 | return NULL; |
1d99702e RD |
1466 | if (_argo0) { |
1467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_FindString. Expected _wxChoice_p."); |
1470 | return NULL; | |
1471 | } | |
1472 | } | |
1473 | { | |
185d7c3e RD |
1474 | #if PYTHON_API_VERSION >= 1009 |
1475 | char* tmpPtr; int tmpSize; | |
1476 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1477 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1478 | return NULL; |
1479 | } | |
1480 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1481 | return NULL; | |
1482 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1483 | #else | |
8ab979d7 RD |
1484 | if (!PyString_Check(_obj1)) { |
1485 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1486 | return NULL; | |
1487 | } | |
185d7c3e RD |
1488 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1489 | #endif | |
8ab979d7 | 1490 | } |
cf694132 RD |
1491 | { |
1492 | wxPy_BEGIN_ALLOW_THREADS; | |
1493 | _result = (int )wxChoice_FindString(_arg0,*_arg1); | |
1494 | ||
1495 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1496 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1497 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1498 | { |
1499 | if (_obj1) | |
1500 | delete _arg1; | |
1501 | } | |
1502 | return _resultobj; | |
1503 | } | |
1504 | ||
1505 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) | |
efc5f224 | 1506 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1507 | PyObject * _resultobj; |
1508 | int _result; | |
1509 | wxChoice * _arg0; | |
1d99702e | 1510 | PyObject * _argo0 = 0; |
efc5f224 | 1511 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1512 | |
1513 | self = self; | |
efc5f224 | 1514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) |
8ab979d7 | 1515 | return NULL; |
1d99702e RD |
1516 | if (_argo0) { |
1517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); |
1520 | return NULL; | |
1521 | } | |
1522 | } | |
cf694132 RD |
1523 | { |
1524 | wxPy_BEGIN_ALLOW_THREADS; | |
1525 | _result = (int )wxChoice_GetColumns(_arg0); | |
1526 | ||
1527 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1528 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1529 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1530 | return _resultobj; |
1531 | } | |
1532 | ||
1533 | #define wxChoice_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 1534 | static PyObject *_wrap_wxChoice_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1535 | PyObject * _resultobj; |
1536 | int _result; | |
1537 | wxChoice * _arg0; | |
1d99702e | 1538 | PyObject * _argo0 = 0; |
efc5f224 | 1539 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1540 | |
1541 | self = self; | |
efc5f224 | 1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 1543 | return NULL; |
1d99702e RD |
1544 | if (_argo0) { |
1545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetSelection. Expected _wxChoice_p."); |
1548 | return NULL; | |
1549 | } | |
1550 | } | |
cf694132 RD |
1551 | { |
1552 | wxPy_BEGIN_ALLOW_THREADS; | |
1553 | _result = (int )wxChoice_GetSelection(_arg0); | |
1554 | ||
1555 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1556 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1557 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1558 | return _resultobj; |
1559 | } | |
1560 | ||
1561 | #define wxChoice_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
efc5f224 | 1562 | static PyObject *_wrap_wxChoice_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1563 | PyObject * _resultobj; |
1564 | wxString * _result; | |
1565 | wxChoice * _arg0; | |
1566 | int _arg1; | |
1d99702e | 1567 | PyObject * _argo0 = 0; |
efc5f224 | 1568 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
1569 | |
1570 | self = self; | |
efc5f224 | 1571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1572 | return NULL; |
1d99702e RD |
1573 | if (_argo0) { |
1574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetString. Expected _wxChoice_p."); |
1577 | return NULL; | |
1578 | } | |
1579 | } | |
8ab979d7 | 1580 | { |
cf694132 RD |
1581 | wxPy_BEGIN_ALLOW_THREADS; |
1582 | _result = new wxString (wxChoice_GetString(_arg0,_arg1)); | |
1583 | ||
1584 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1585 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1586 | }{ |
eec92d76 | 1587 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1588 | } |
1589 | { | |
1590 | delete _result; | |
1591 | } | |
1592 | return _resultobj; | |
1593 | } | |
1594 | ||
1595 | #define wxChoice_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
efc5f224 | 1596 | static PyObject *_wrap_wxChoice_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1597 | PyObject * _resultobj; |
1598 | wxString * _result; | |
1599 | wxChoice * _arg0; | |
1d99702e | 1600 | PyObject * _argo0 = 0; |
efc5f224 | 1601 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1602 | |
1603 | self = self; | |
efc5f224 | 1604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 1605 | return NULL; |
1d99702e RD |
1606 | if (_argo0) { |
1607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetStringSelection. Expected _wxChoice_p."); |
1610 | return NULL; | |
1611 | } | |
1612 | } | |
8ab979d7 | 1613 | { |
cf694132 RD |
1614 | wxPy_BEGIN_ALLOW_THREADS; |
1615 | _result = new wxString (wxChoice_GetStringSelection(_arg0)); | |
1616 | ||
1617 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1618 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1619 | }{ |
eec92d76 | 1620 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1621 | } |
1622 | { | |
1623 | delete _result; | |
1624 | } | |
1625 | return _resultobj; | |
1626 | } | |
1627 | ||
1628 | #define wxChoice_Number(_swigobj) (_swigobj->Number()) | |
efc5f224 | 1629 | static PyObject *_wrap_wxChoice_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1630 | PyObject * _resultobj; |
1631 | int _result; | |
1632 | wxChoice * _arg0; | |
1d99702e | 1633 | PyObject * _argo0 = 0; |
efc5f224 | 1634 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1635 | |
1636 | self = self; | |
efc5f224 | 1637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Number",_kwnames,&_argo0)) |
8ab979d7 | 1638 | return NULL; |
1d99702e RD |
1639 | if (_argo0) { |
1640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Number. Expected _wxChoice_p."); |
1643 | return NULL; | |
1644 | } | |
1645 | } | |
cf694132 RD |
1646 | { |
1647 | wxPy_BEGIN_ALLOW_THREADS; | |
1648 | _result = (int )wxChoice_Number(_arg0); | |
1649 | ||
1650 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1651 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1652 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1653 | return _resultobj; |
1654 | } | |
1655 | ||
1656 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
efc5f224 | 1657 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1658 | PyObject * _resultobj; |
1659 | wxChoice * _arg0; | |
1d99702e RD |
1660 | int _arg1 = (int ) 1; |
1661 | PyObject * _argo0 = 0; | |
efc5f224 | 1662 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
1663 | |
1664 | self = self; | |
efc5f224 | 1665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1666 | return NULL; |
1d99702e RD |
1667 | if (_argo0) { |
1668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); |
1671 | return NULL; | |
1672 | } | |
1673 | } | |
cf694132 RD |
1674 | { |
1675 | wxPy_BEGIN_ALLOW_THREADS; | |
1676 | wxChoice_SetColumns(_arg0,_arg1); | |
1677 | ||
1678 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1679 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1680 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1681 | _resultobj = Py_None; |
1682 | return _resultobj; | |
1683 | } | |
1684 | ||
1685 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 1686 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1687 | PyObject * _resultobj; |
1688 | wxChoice * _arg0; | |
1689 | int _arg1; | |
1d99702e | 1690 | PyObject * _argo0 = 0; |
efc5f224 | 1691 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
1692 | |
1693 | self = self; | |
efc5f224 | 1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1695 | return NULL; |
1d99702e RD |
1696 | if (_argo0) { |
1697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); |
1700 | return NULL; | |
1701 | } | |
1702 | } | |
cf694132 RD |
1703 | { |
1704 | wxPy_BEGIN_ALLOW_THREADS; | |
1705 | wxChoice_SetSelection(_arg0,_arg1); | |
1706 | ||
1707 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1708 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1709 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1710 | _resultobj = Py_None; |
1711 | return _resultobj; | |
1712 | } | |
1713 | ||
1714 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
efc5f224 | 1715 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1716 | PyObject * _resultobj; |
1717 | wxChoice * _arg0; | |
1718 | wxString * _arg1; | |
1d99702e | 1719 | PyObject * _argo0 = 0; |
8ab979d7 | 1720 | PyObject * _obj1 = 0; |
efc5f224 | 1721 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
1722 | |
1723 | self = self; | |
efc5f224 | 1724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1725 | return NULL; |
1d99702e RD |
1726 | if (_argo0) { |
1727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
1729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); |
1730 | return NULL; | |
1731 | } | |
1732 | } | |
1733 | { | |
185d7c3e RD |
1734 | #if PYTHON_API_VERSION >= 1009 |
1735 | char* tmpPtr; int tmpSize; | |
1736 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1737 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1738 | return NULL; |
1739 | } | |
1740 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1741 | return NULL; | |
1742 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1743 | #else | |
8ab979d7 RD |
1744 | if (!PyString_Check(_obj1)) { |
1745 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1746 | return NULL; | |
1747 | } | |
185d7c3e RD |
1748 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1749 | #endif | |
8ab979d7 | 1750 | } |
cf694132 RD |
1751 | { |
1752 | wxPy_BEGIN_ALLOW_THREADS; | |
1753 | wxChoice_SetStringSelection(_arg0,*_arg1); | |
1754 | ||
1755 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1756 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1757 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1758 | _resultobj = Py_None; |
1759 | { | |
1760 | if (_obj1) | |
1761 | delete _arg1; | |
1762 | } | |
1763 | return _resultobj; | |
1764 | } | |
1765 | ||
bb0054cd RD |
1766 | static void *SwigwxComboBoxTowxChoice(void *ptr) { |
1767 | wxComboBox *src; | |
1768 | wxChoice *dest; | |
1769 | src = (wxComboBox *) ptr; | |
1770 | dest = (wxChoice *) src; | |
1771 | return (void *) dest; | |
1772 | } | |
1773 | ||
8ab979d7 RD |
1774 | static void *SwigwxComboBoxTowxControl(void *ptr) { |
1775 | wxComboBox *src; | |
1776 | wxControl *dest; | |
1777 | src = (wxComboBox *) ptr; | |
1778 | dest = (wxControl *) src; | |
1779 | return (void *) dest; | |
1780 | } | |
1781 | ||
1782 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
1783 | wxComboBox *src; | |
1784 | wxWindow *dest; | |
1785 | src = (wxComboBox *) ptr; | |
1786 | dest = (wxWindow *) src; | |
1787 | return (void *) dest; | |
1788 | } | |
1789 | ||
1790 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
1791 | wxComboBox *src; | |
1792 | wxEvtHandler *dest; | |
1793 | src = (wxComboBox *) ptr; | |
1794 | dest = (wxEvtHandler *) src; | |
1795 | return (void *) dest; | |
1796 | } | |
1797 | ||
9416aa89 RD |
1798 | static void *SwigwxComboBoxTowxObject(void *ptr) { |
1799 | wxComboBox *src; | |
1800 | wxObject *dest; | |
1801 | src = (wxComboBox *) ptr; | |
1802 | dest = (wxObject *) src; | |
1803 | return (void *) dest; | |
1804 | } | |
1805 | ||
8ab979d7 | 1806 | #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 | 1807 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1808 | PyObject * _resultobj; |
1809 | wxComboBox * _result; | |
1810 | wxWindow * _arg0; | |
1811 | wxWindowID _arg1; | |
1d99702e | 1812 | char * _arg2 = (char *) ""; |
e508a2b6 RD |
1813 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1814 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
1815 | int _arg5 = (int ) 0; |
1816 | wxString * _arg6 = (wxString *) NULL; | |
1817 | long _arg7 = (long ) 0; | |
e508a2b6 | 1818 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
1819 | char * _arg9 = (char *) "comboBox"; |
1820 | PyObject * _argo0 = 0; | |
2f90df85 RD |
1821 | wxPoint temp; |
1822 | PyObject * _obj3 = 0; | |
1823 | wxSize temp0; | |
1824 | PyObject * _obj4 = 0; | |
8ab979d7 | 1825 | PyObject * _obj6 = 0; |
1d99702e | 1826 | PyObject * _argo8 = 0; |
eec92d76 | 1827 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
1828 | char _ptemp[128]; |
1829 | ||
1830 | self = self; | |
2f90df85 | 1831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
8ab979d7 | 1832 | return NULL; |
1d99702e RD |
1833 | if (_argo0) { |
1834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); |
1837 | return NULL; | |
1838 | } | |
1839 | } | |
2f90df85 RD |
1840 | if (_obj3) |
1841 | { | |
1842 | _arg3 = &temp; | |
1843 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 1844 | return NULL; |
2f90df85 RD |
1845 | } |
1846 | if (_obj4) | |
1847 | { | |
1848 | _arg4 = &temp0; | |
1849 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 1850 | return NULL; |
2f90df85 | 1851 | } |
8ab979d7 RD |
1852 | if (_obj6) |
1853 | { | |
1854 | _arg6 = wxString_LIST_helper(_obj6); | |
1855 | if (_arg6 == NULL) { | |
1856 | return NULL; | |
1857 | } | |
1858 | } | |
1d99702e RD |
1859 | if (_argo8) { |
1860 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
1861 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
8ab979d7 RD |
1862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); |
1863 | return NULL; | |
1864 | } | |
1865 | } | |
1866 | { | |
cf694132 RD |
1867 | if (_obj6) { |
1868 | _arg5 = PyList_Size(_obj6); | |
1869 | } | |
1870 | else { | |
1871 | _arg5 = 0; | |
1872 | } | |
8ab979d7 | 1873 | } |
cf694132 RD |
1874 | { |
1875 | wxPy_BEGIN_ALLOW_THREADS; | |
1876 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
1877 | ||
1878 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1879 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1880 | } if (_result) { |
1881 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
1882 | _resultobj = Py_BuildValue("s",_ptemp); | |
1883 | } else { | |
1884 | Py_INCREF(Py_None); | |
1885 | _resultobj = Py_None; | |
1886 | } | |
8ab979d7 RD |
1887 | { |
1888 | delete [] _arg6; | |
1889 | } | |
1890 | return _resultobj; | |
1891 | } | |
1892 | ||
1893 | #define wxComboBox_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
efc5f224 | 1894 | static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1895 | PyObject * _resultobj; |
1896 | wxComboBox * _arg0; | |
1897 | wxString * _arg1; | |
1d99702e | 1898 | PyObject * _argo0 = 0; |
8ab979d7 | 1899 | PyObject * _obj1 = 0; |
efc5f224 | 1900 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
1901 | |
1902 | self = self; | |
efc5f224 | 1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_Append",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1904 | return NULL; |
1d99702e RD |
1905 | if (_argo0) { |
1906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
1908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p."); |
1909 | return NULL; | |
1910 | } | |
1911 | } | |
1912 | { | |
185d7c3e RD |
1913 | #if PYTHON_API_VERSION >= 1009 |
1914 | char* tmpPtr; int tmpSize; | |
1915 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1916 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1917 | return NULL; |
1918 | } | |
1919 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1920 | return NULL; | |
1921 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1922 | #else | |
8ab979d7 RD |
1923 | if (!PyString_Check(_obj1)) { |
1924 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1925 | return NULL; | |
1926 | } | |
185d7c3e RD |
1927 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1928 | #endif | |
8ab979d7 | 1929 | } |
cf694132 RD |
1930 | { |
1931 | wxPy_BEGIN_ALLOW_THREADS; | |
1932 | wxComboBox_Append(_arg0,*_arg1); | |
1933 | ||
1934 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1935 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1936 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1937 | _resultobj = Py_None; |
1938 | { | |
1939 | if (_obj1) | |
1940 | delete _arg1; | |
1941 | } | |
1942 | return _resultobj; | |
1943 | } | |
1944 | ||
1945 | #define wxComboBox_Clear(_swigobj) (_swigobj->Clear()) | |
efc5f224 | 1946 | static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1947 | PyObject * _resultobj; |
1948 | wxComboBox * _arg0; | |
1d99702e | 1949 | PyObject * _argo0 = 0; |
efc5f224 | 1950 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1951 | |
1952 | self = self; | |
efc5f224 | 1953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0)) |
8ab979d7 | 1954 | return NULL; |
1d99702e RD |
1955 | if (_argo0) { |
1956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
1958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p."); |
1959 | return NULL; | |
1960 | } | |
1961 | } | |
cf694132 RD |
1962 | { |
1963 | wxPy_BEGIN_ALLOW_THREADS; | |
1964 | wxComboBox_Clear(_arg0); | |
1965 | ||
1966 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1967 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1968 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1969 | _resultobj = Py_None; |
1970 | return _resultobj; | |
1971 | } | |
1972 | ||
1973 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) | |
efc5f224 | 1974 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1975 | PyObject * _resultobj; |
1976 | wxComboBox * _arg0; | |
1d99702e | 1977 | PyObject * _argo0 = 0; |
efc5f224 | 1978 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1979 | |
1980 | self = self; | |
efc5f224 | 1981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) |
8ab979d7 | 1982 | return NULL; |
1d99702e RD |
1983 | if (_argo0) { |
1984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
1986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); |
1987 | return NULL; | |
1988 | } | |
1989 | } | |
cf694132 RD |
1990 | { |
1991 | wxPy_BEGIN_ALLOW_THREADS; | |
1992 | wxComboBox_Copy(_arg0); | |
1993 | ||
1994 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1995 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1996 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1997 | _resultobj = Py_None; |
1998 | return _resultobj; | |
1999 | } | |
2000 | ||
2001 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
efc5f224 | 2002 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2003 | PyObject * _resultobj; |
2004 | wxComboBox * _arg0; | |
1d99702e | 2005 | PyObject * _argo0 = 0; |
efc5f224 | 2006 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2007 | |
2008 | self = self; | |
efc5f224 | 2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) |
8ab979d7 | 2010 | return NULL; |
1d99702e RD |
2011 | if (_argo0) { |
2012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); |
2015 | return NULL; | |
2016 | } | |
2017 | } | |
cf694132 RD |
2018 | { |
2019 | wxPy_BEGIN_ALLOW_THREADS; | |
2020 | wxComboBox_Cut(_arg0); | |
2021 | ||
2022 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2023 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2024 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2025 | _resultobj = Py_None; |
2026 | return _resultobj; | |
2027 | } | |
2028 | ||
2029 | #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
efc5f224 | 2030 | static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2031 | PyObject * _resultobj; |
2032 | wxComboBox * _arg0; | |
2033 | int _arg1; | |
1d99702e | 2034 | PyObject * _argo0 = 0; |
efc5f224 | 2035 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
2036 | |
2037 | self = self; | |
efc5f224 | 2038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2039 | return NULL; |
1d99702e RD |
2040 | if (_argo0) { |
2041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p."); |
2044 | return NULL; | |
2045 | } | |
2046 | } | |
cf694132 RD |
2047 | { |
2048 | wxPy_BEGIN_ALLOW_THREADS; | |
2049 | wxComboBox_Delete(_arg0,_arg1); | |
2050 | ||
2051 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2052 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2053 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2054 | _resultobj = Py_None; |
2055 | return _resultobj; | |
2056 | } | |
2057 | ||
2058 | #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 2059 | static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2060 | PyObject * _resultobj; |
2061 | int _result; | |
2062 | wxComboBox * _arg0; | |
2063 | wxString * _arg1; | |
1d99702e | 2064 | PyObject * _argo0 = 0; |
8ab979d7 | 2065 | PyObject * _obj1 = 0; |
efc5f224 | 2066 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2067 | |
2068 | self = self; | |
efc5f224 | 2069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2070 | return NULL; |
1d99702e RD |
2071 | if (_argo0) { |
2072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p."); |
2075 | return NULL; | |
2076 | } | |
2077 | } | |
2078 | { | |
185d7c3e RD |
2079 | #if PYTHON_API_VERSION >= 1009 |
2080 | char* tmpPtr; int tmpSize; | |
2081 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2082 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2083 | return NULL; |
2084 | } | |
2085 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2086 | return NULL; | |
2087 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2088 | #else | |
8ab979d7 RD |
2089 | if (!PyString_Check(_obj1)) { |
2090 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2091 | return NULL; | |
2092 | } | |
185d7c3e RD |
2093 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2094 | #endif | |
8ab979d7 | 2095 | } |
cf694132 RD |
2096 | { |
2097 | wxPy_BEGIN_ALLOW_THREADS; | |
2098 | _result = (int )wxComboBox_FindString(_arg0,*_arg1); | |
2099 | ||
2100 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2101 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2102 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2103 | { |
2104 | if (_obj1) | |
2105 | delete _arg1; | |
2106 | } | |
2107 | return _resultobj; | |
2108 | } | |
2109 | ||
2110 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
efc5f224 | 2111 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2112 | PyObject * _resultobj; |
2113 | long _result; | |
2114 | wxComboBox * _arg0; | |
1d99702e | 2115 | PyObject * _argo0 = 0; |
efc5f224 | 2116 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2117 | |
2118 | self = self; | |
efc5f224 | 2119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) |
8ab979d7 | 2120 | return NULL; |
1d99702e RD |
2121 | if (_argo0) { |
2122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); |
2125 | return NULL; | |
2126 | } | |
2127 | } | |
cf694132 RD |
2128 | { |
2129 | wxPy_BEGIN_ALLOW_THREADS; | |
2130 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); | |
2131 | ||
2132 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2133 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2134 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2135 | return _resultobj; |
2136 | } | |
2137 | ||
2138 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
efc5f224 | 2139 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2140 | PyObject * _resultobj; |
2141 | long _result; | |
2142 | wxComboBox * _arg0; | |
1d99702e | 2143 | PyObject * _argo0 = 0; |
efc5f224 | 2144 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2145 | |
2146 | self = self; | |
efc5f224 | 2147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) |
8ab979d7 | 2148 | return NULL; |
1d99702e RD |
2149 | if (_argo0) { |
2150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); |
2153 | return NULL; | |
2154 | } | |
2155 | } | |
cf694132 RD |
2156 | { |
2157 | wxPy_BEGIN_ALLOW_THREADS; | |
2158 | _result = (long )wxComboBox_GetLastPosition(_arg0); | |
2159 | ||
2160 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2161 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2162 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2163 | return _resultobj; |
2164 | } | |
2165 | ||
2166 | #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 2167 | static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2168 | PyObject * _resultobj; |
2169 | int _result; | |
2170 | wxComboBox * _arg0; | |
1d99702e | 2171 | PyObject * _argo0 = 0; |
efc5f224 | 2172 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2173 | |
2174 | self = self; | |
efc5f224 | 2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 2176 | return NULL; |
1d99702e RD |
2177 | if (_argo0) { |
2178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p."); |
2181 | return NULL; | |
2182 | } | |
2183 | } | |
cf694132 RD |
2184 | { |
2185 | wxPy_BEGIN_ALLOW_THREADS; | |
2186 | _result = (int )wxComboBox_GetSelection(_arg0); | |
2187 | ||
2188 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2190 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2191 | return _resultobj; |
2192 | } | |
2193 | ||
2194 | #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
efc5f224 | 2195 | static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2196 | PyObject * _resultobj; |
2197 | wxString * _result; | |
2198 | wxComboBox * _arg0; | |
2199 | int _arg1; | |
1d99702e | 2200 | PyObject * _argo0 = 0; |
efc5f224 | 2201 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
2202 | |
2203 | self = self; | |
efc5f224 | 2204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2205 | return NULL; |
1d99702e RD |
2206 | if (_argo0) { |
2207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p."); |
2210 | return NULL; | |
2211 | } | |
2212 | } | |
8ab979d7 | 2213 | { |
cf694132 RD |
2214 | wxPy_BEGIN_ALLOW_THREADS; |
2215 | _result = new wxString (wxComboBox_GetString(_arg0,_arg1)); | |
2216 | ||
2217 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2218 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2219 | }{ |
eec92d76 | 2220 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2221 | } |
2222 | { | |
2223 | delete _result; | |
2224 | } | |
2225 | return _resultobj; | |
2226 | } | |
2227 | ||
2228 | #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
efc5f224 | 2229 | static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2230 | PyObject * _resultobj; |
2231 | wxString * _result; | |
2232 | wxComboBox * _arg0; | |
1d99702e | 2233 | PyObject * _argo0 = 0; |
efc5f224 | 2234 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2235 | |
2236 | self = self; | |
efc5f224 | 2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 2238 | return NULL; |
1d99702e RD |
2239 | if (_argo0) { |
2240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p."); |
2243 | return NULL; | |
2244 | } | |
2245 | } | |
8ab979d7 | 2246 | { |
cf694132 RD |
2247 | wxPy_BEGIN_ALLOW_THREADS; |
2248 | _result = new wxString (wxComboBox_GetStringSelection(_arg0)); | |
2249 | ||
2250 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2251 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2252 | }{ |
eec92d76 | 2253 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2254 | } |
2255 | { | |
2256 | delete _result; | |
2257 | } | |
2258 | return _resultobj; | |
2259 | } | |
2260 | ||
2261 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 2262 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2263 | PyObject * _resultobj; |
2264 | wxString * _result; | |
2265 | wxComboBox * _arg0; | |
1d99702e | 2266 | PyObject * _argo0 = 0; |
efc5f224 | 2267 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2268 | |
2269 | self = self; | |
efc5f224 | 2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 2271 | return NULL; |
1d99702e RD |
2272 | if (_argo0) { |
2273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); |
2276 | return NULL; | |
2277 | } | |
2278 | } | |
8ab979d7 | 2279 | { |
cf694132 RD |
2280 | wxPy_BEGIN_ALLOW_THREADS; |
2281 | _result = new wxString (wxComboBox_GetValue(_arg0)); | |
2282 | ||
2283 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2284 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2285 | }{ |
eec92d76 | 2286 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2287 | } |
2288 | { | |
2289 | delete _result; | |
2290 | } | |
2291 | return _resultobj; | |
2292 | } | |
2293 | ||
2294 | #define wxComboBox_Number(_swigobj) (_swigobj->Number()) | |
efc5f224 | 2295 | static PyObject *_wrap_wxComboBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2296 | PyObject * _resultobj; |
2297 | int _result; | |
2298 | wxComboBox * _arg0; | |
1d99702e | 2299 | PyObject * _argo0 = 0; |
efc5f224 | 2300 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2301 | |
2302 | self = self; | |
efc5f224 | 2303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Number",_kwnames,&_argo0)) |
8ab979d7 | 2304 | return NULL; |
1d99702e RD |
2305 | if (_argo0) { |
2306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Number. Expected _wxComboBox_p."); |
2309 | return NULL; | |
2310 | } | |
2311 | } | |
cf694132 RD |
2312 | { |
2313 | wxPy_BEGIN_ALLOW_THREADS; | |
2314 | _result = (int )wxComboBox_Number(_arg0); | |
2315 | ||
2316 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2317 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2318 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2319 | return _resultobj; |
2320 | } | |
2321 | ||
2322 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) | |
efc5f224 | 2323 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2324 | PyObject * _resultobj; |
2325 | wxComboBox * _arg0; | |
1d99702e | 2326 | PyObject * _argo0 = 0; |
efc5f224 | 2327 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2328 | |
2329 | self = self; | |
efc5f224 | 2330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) |
8ab979d7 | 2331 | return NULL; |
1d99702e RD |
2332 | if (_argo0) { |
2333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); |
2336 | return NULL; | |
2337 | } | |
2338 | } | |
cf694132 RD |
2339 | { |
2340 | wxPy_BEGIN_ALLOW_THREADS; | |
2341 | wxComboBox_Paste(_arg0); | |
2342 | ||
2343 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2344 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2345 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2346 | _resultobj = Py_None; |
2347 | return _resultobj; | |
2348 | } | |
2349 | ||
2350 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2351 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2352 | PyObject * _resultobj; |
2353 | wxComboBox * _arg0; | |
2354 | long _arg1; | |
2355 | long _arg2; | |
2356 | wxString * _arg3; | |
1d99702e | 2357 | PyObject * _argo0 = 0; |
8ab979d7 | 2358 | PyObject * _obj3 = 0; |
efc5f224 | 2359 | char *_kwnames[] = { "self","from","to","text", NULL }; |
8ab979d7 RD |
2360 | |
2361 | self = self; | |
efc5f224 | 2362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 2363 | return NULL; |
1d99702e RD |
2364 | if (_argo0) { |
2365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); |
2368 | return NULL; | |
2369 | } | |
2370 | } | |
2371 | { | |
185d7c3e RD |
2372 | #if PYTHON_API_VERSION >= 1009 |
2373 | char* tmpPtr; int tmpSize; | |
2374 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 2375 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2376 | return NULL; |
2377 | } | |
2378 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2379 | return NULL; | |
2380 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2381 | #else | |
8ab979d7 RD |
2382 | if (!PyString_Check(_obj3)) { |
2383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2384 | return NULL; | |
2385 | } | |
185d7c3e RD |
2386 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2387 | #endif | |
8ab979d7 | 2388 | } |
cf694132 RD |
2389 | { |
2390 | wxPy_BEGIN_ALLOW_THREADS; | |
2391 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); | |
2392 | ||
2393 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2394 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2395 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2396 | _resultobj = Py_None; |
2397 | { | |
2398 | if (_obj3) | |
2399 | delete _arg3; | |
2400 | } | |
2401 | return _resultobj; | |
2402 | } | |
2403 | ||
2404 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
efc5f224 | 2405 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2406 | PyObject * _resultobj; |
2407 | wxComboBox * _arg0; | |
2408 | long _arg1; | |
2409 | long _arg2; | |
1d99702e | 2410 | PyObject * _argo0 = 0; |
efc5f224 | 2411 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
2412 | |
2413 | self = self; | |
efc5f224 | 2414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2415 | return NULL; |
1d99702e RD |
2416 | if (_argo0) { |
2417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); |
2420 | return NULL; | |
2421 | } | |
2422 | } | |
cf694132 RD |
2423 | { |
2424 | wxPy_BEGIN_ALLOW_THREADS; | |
2425 | wxComboBox_Remove(_arg0,_arg1,_arg2); | |
2426 | ||
2427 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2428 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2429 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2430 | _resultobj = Py_None; |
2431 | return _resultobj; | |
2432 | } | |
2433 | ||
2434 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
efc5f224 | 2435 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2436 | PyObject * _resultobj; |
2437 | wxComboBox * _arg0; | |
2438 | long _arg1; | |
1d99702e | 2439 | PyObject * _argo0 = 0; |
efc5f224 | 2440 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
2441 | |
2442 | self = self; | |
efc5f224 | 2443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2444 | return NULL; |
1d99702e RD |
2445 | if (_argo0) { |
2446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); |
2449 | return NULL; | |
2450 | } | |
2451 | } | |
cf694132 RD |
2452 | { |
2453 | wxPy_BEGIN_ALLOW_THREADS; | |
2454 | wxComboBox_SetInsertionPoint(_arg0,_arg1); | |
2455 | ||
2456 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2457 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2458 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2459 | _resultobj = Py_None; |
2460 | return _resultobj; | |
2461 | } | |
2462 | ||
2463 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
efc5f224 | 2464 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2465 | PyObject * _resultobj; |
2466 | wxComboBox * _arg0; | |
1d99702e | 2467 | PyObject * _argo0 = 0; |
efc5f224 | 2468 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2469 | |
2470 | self = self; | |
efc5f224 | 2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) |
8ab979d7 | 2472 | return NULL; |
1d99702e RD |
2473 | if (_argo0) { |
2474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); |
2477 | return NULL; | |
2478 | } | |
2479 | } | |
cf694132 RD |
2480 | { |
2481 | wxPy_BEGIN_ALLOW_THREADS; | |
2482 | wxComboBox_SetInsertionPointEnd(_arg0); | |
2483 | ||
2484 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2485 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2486 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2487 | _resultobj = Py_None; |
2488 | return _resultobj; | |
2489 | } | |
2490 | ||
1d99702e | 2491 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
efc5f224 | 2492 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
1d99702e RD |
2493 | PyObject * _resultobj; |
2494 | wxComboBox * _arg0; | |
2495 | int _arg1; | |
2496 | PyObject * _argo0 = 0; | |
efc5f224 | 2497 | char *_kwnames[] = { "self","n", NULL }; |
1d99702e RD |
2498 | |
2499 | self = self; | |
efc5f224 | 2500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
1d99702e RD |
2501 | return NULL; |
2502 | if (_argo0) { | |
2503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
2506 | return NULL; | |
2507 | } | |
2508 | } | |
2509 | { | |
2510 | wxPy_BEGIN_ALLOW_THREADS; | |
2511 | wxComboBox_SetSelection(_arg0,_arg1); | |
2512 | ||
2513 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2514 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2515 | } Py_INCREF(Py_None); |
2516 | _resultobj = Py_None; | |
2517 | return _resultobj; | |
2518 | } | |
2519 | ||
8ab979d7 | 2520 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) |
efc5f224 | 2521 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2522 | PyObject * _resultobj; |
2523 | wxComboBox * _arg0; | |
2524 | long _arg1; | |
2525 | long _arg2; | |
1d99702e | 2526 | PyObject * _argo0 = 0; |
efc5f224 | 2527 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
2528 | |
2529 | self = self; | |
efc5f224 | 2530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2531 | return NULL; |
1d99702e RD |
2532 | if (_argo0) { |
2533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); |
2536 | return NULL; | |
2537 | } | |
2538 | } | |
cf694132 RD |
2539 | { |
2540 | wxPy_BEGIN_ALLOW_THREADS; | |
2541 | wxComboBox_SetMark(_arg0,_arg1,_arg2); | |
2542 | ||
2543 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2544 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2545 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2546 | _resultobj = Py_None; |
2547 | return _resultobj; | |
2548 | } | |
2549 | ||
2550 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 2551 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2552 | PyObject * _resultobj; |
2553 | wxComboBox * _arg0; | |
2554 | wxString * _arg1; | |
1d99702e | 2555 | PyObject * _argo0 = 0; |
8ab979d7 | 2556 | PyObject * _obj1 = 0; |
efc5f224 | 2557 | char *_kwnames[] = { "self","text", NULL }; |
8ab979d7 RD |
2558 | |
2559 | self = self; | |
efc5f224 | 2560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2561 | return NULL; |
1d99702e RD |
2562 | if (_argo0) { |
2563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); |
2566 | return NULL; | |
2567 | } | |
2568 | } | |
2569 | { | |
185d7c3e RD |
2570 | #if PYTHON_API_VERSION >= 1009 |
2571 | char* tmpPtr; int tmpSize; | |
2572 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2573 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2574 | return NULL; |
2575 | } | |
2576 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2577 | return NULL; | |
2578 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2579 | #else | |
8ab979d7 RD |
2580 | if (!PyString_Check(_obj1)) { |
2581 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2582 | return NULL; | |
2583 | } | |
185d7c3e RD |
2584 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2585 | #endif | |
8ab979d7 | 2586 | } |
cf694132 RD |
2587 | { |
2588 | wxPy_BEGIN_ALLOW_THREADS; | |
2589 | wxComboBox_SetValue(_arg0,*_arg1); | |
2590 | ||
2591 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2592 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2593 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2594 | _resultobj = Py_None; |
2595 | { | |
2596 | if (_obj1) | |
2597 | delete _arg1; | |
2598 | } | |
2599 | return _resultobj; | |
2600 | } | |
2601 | ||
2602 | static void *SwigwxGaugeTowxControl(void *ptr) { | |
2603 | wxGauge *src; | |
2604 | wxControl *dest; | |
2605 | src = (wxGauge *) ptr; | |
2606 | dest = (wxControl *) src; | |
2607 | return (void *) dest; | |
2608 | } | |
2609 | ||
2610 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
2611 | wxGauge *src; | |
2612 | wxWindow *dest; | |
2613 | src = (wxGauge *) ptr; | |
2614 | dest = (wxWindow *) src; | |
2615 | return (void *) dest; | |
2616 | } | |
2617 | ||
2618 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
2619 | wxGauge *src; | |
2620 | wxEvtHandler *dest; | |
2621 | src = (wxGauge *) ptr; | |
2622 | dest = (wxEvtHandler *) src; | |
2623 | return (void *) dest; | |
2624 | } | |
2625 | ||
9416aa89 RD |
2626 | static void *SwigwxGaugeTowxObject(void *ptr) { |
2627 | wxGauge *src; | |
2628 | wxObject *dest; | |
2629 | src = (wxGauge *) ptr; | |
2630 | dest = (wxObject *) src; | |
2631 | return (void *) dest; | |
2632 | } | |
2633 | ||
8ab979d7 | 2634 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 2635 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2636 | PyObject * _resultobj; |
2637 | wxGauge * _result; | |
2638 | wxWindow * _arg0; | |
2639 | wxWindowID _arg1; | |
2640 | int _arg2; | |
e508a2b6 RD |
2641 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2642 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 2643 | long _arg5 = (long ) wxGA_HORIZONTAL; |
e508a2b6 | 2644 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2645 | char * _arg7 = (char *) "gauge"; |
2646 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2647 | wxPoint temp; |
2648 | PyObject * _obj3 = 0; | |
2649 | wxSize temp0; | |
2650 | PyObject * _obj4 = 0; | |
1d99702e | 2651 | PyObject * _argo6 = 0; |
efc5f224 | 2652 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2653 | char _ptemp[128]; |
2654 | ||
2655 | self = self; | |
2f90df85 | 2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 2657 | return NULL; |
1d99702e RD |
2658 | if (_argo0) { |
2659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); |
2662 | return NULL; | |
2663 | } | |
2664 | } | |
2f90df85 RD |
2665 | if (_obj3) |
2666 | { | |
2667 | _arg3 = &temp; | |
2668 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 2669 | return NULL; |
2f90df85 RD |
2670 | } |
2671 | if (_obj4) | |
2672 | { | |
2673 | _arg4 = &temp0; | |
2674 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 2675 | return NULL; |
2f90df85 | 2676 | } |
1d99702e RD |
2677 | if (_argo6) { |
2678 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2679 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
2680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); |
2681 | return NULL; | |
2682 | } | |
2683 | } | |
cf694132 RD |
2684 | { |
2685 | wxPy_BEGIN_ALLOW_THREADS; | |
2686 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
2687 | ||
2688 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2689 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2690 | } if (_result) { |
2691 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
2692 | _resultobj = Py_BuildValue("s",_ptemp); | |
2693 | } else { | |
2694 | Py_INCREF(Py_None); | |
2695 | _resultobj = Py_None; | |
2696 | } | |
8ab979d7 RD |
2697 | return _resultobj; |
2698 | } | |
2699 | ||
2700 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) | |
efc5f224 | 2701 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2702 | PyObject * _resultobj; |
2703 | int _result; | |
2704 | wxGauge * _arg0; | |
1d99702e | 2705 | PyObject * _argo0 = 0; |
efc5f224 | 2706 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2707 | |
2708 | self = self; | |
efc5f224 | 2709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) |
8ab979d7 | 2710 | return NULL; |
1d99702e RD |
2711 | if (_argo0) { |
2712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); |
2715 | return NULL; | |
2716 | } | |
2717 | } | |
cf694132 RD |
2718 | { |
2719 | wxPy_BEGIN_ALLOW_THREADS; | |
2720 | _result = (int )wxGauge_GetBezelFace(_arg0); | |
2721 | ||
2722 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2723 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2724 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2725 | return _resultobj; |
2726 | } | |
2727 | ||
2728 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
efc5f224 | 2729 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2730 | PyObject * _resultobj; |
2731 | int _result; | |
2732 | wxGauge * _arg0; | |
1d99702e | 2733 | PyObject * _argo0 = 0; |
efc5f224 | 2734 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2735 | |
2736 | self = self; | |
efc5f224 | 2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) |
8ab979d7 | 2738 | return NULL; |
1d99702e RD |
2739 | if (_argo0) { |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); |
2743 | return NULL; | |
2744 | } | |
2745 | } | |
cf694132 RD |
2746 | { |
2747 | wxPy_BEGIN_ALLOW_THREADS; | |
2748 | _result = (int )wxGauge_GetRange(_arg0); | |
2749 | ||
2750 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2751 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2752 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2753 | return _resultobj; |
2754 | } | |
2755 | ||
2756 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
efc5f224 | 2757 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2758 | PyObject * _resultobj; |
2759 | int _result; | |
2760 | wxGauge * _arg0; | |
1d99702e | 2761 | PyObject * _argo0 = 0; |
efc5f224 | 2762 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2763 | |
2764 | self = self; | |
efc5f224 | 2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) |
8ab979d7 | 2766 | return NULL; |
1d99702e RD |
2767 | if (_argo0) { |
2768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); |
2771 | return NULL; | |
2772 | } | |
2773 | } | |
cf694132 RD |
2774 | { |
2775 | wxPy_BEGIN_ALLOW_THREADS; | |
2776 | _result = (int )wxGauge_GetShadowWidth(_arg0); | |
2777 | ||
2778 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2779 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2780 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2781 | return _resultobj; |
2782 | } | |
2783 | ||
2784 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 2785 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2786 | PyObject * _resultobj; |
2787 | int _result; | |
2788 | wxGauge * _arg0; | |
1d99702e | 2789 | PyObject * _argo0 = 0; |
efc5f224 | 2790 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2791 | |
2792 | self = self; | |
efc5f224 | 2793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 2794 | return NULL; |
1d99702e RD |
2795 | if (_argo0) { |
2796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); |
2799 | return NULL; | |
2800 | } | |
2801 | } | |
cf694132 RD |
2802 | { |
2803 | wxPy_BEGIN_ALLOW_THREADS; | |
2804 | _result = (int )wxGauge_GetValue(_arg0); | |
2805 | ||
2806 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2807 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2808 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2809 | return _resultobj; |
2810 | } | |
2811 | ||
2812 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
efc5f224 | 2813 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2814 | PyObject * _resultobj; |
2815 | wxGauge * _arg0; | |
2816 | int _arg1; | |
1d99702e | 2817 | PyObject * _argo0 = 0; |
efc5f224 | 2818 | char *_kwnames[] = { "self","width", NULL }; |
8ab979d7 RD |
2819 | |
2820 | self = self; | |
efc5f224 | 2821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2822 | return NULL; |
1d99702e RD |
2823 | if (_argo0) { |
2824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); |
2827 | return NULL; | |
2828 | } | |
2829 | } | |
cf694132 RD |
2830 | { |
2831 | wxPy_BEGIN_ALLOW_THREADS; | |
2832 | wxGauge_SetBezelFace(_arg0,_arg1); | |
2833 | ||
2834 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2835 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2836 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2837 | _resultobj = Py_None; |
2838 | return _resultobj; | |
2839 | } | |
2840 | ||
2841 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
efc5f224 | 2842 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2843 | PyObject * _resultobj; |
2844 | wxGauge * _arg0; | |
2845 | int _arg1; | |
1d99702e | 2846 | PyObject * _argo0 = 0; |
efc5f224 | 2847 | char *_kwnames[] = { "self","range", NULL }; |
8ab979d7 RD |
2848 | |
2849 | self = self; | |
efc5f224 | 2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2851 | return NULL; |
1d99702e RD |
2852 | if (_argo0) { |
2853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); |
2856 | return NULL; | |
2857 | } | |
2858 | } | |
cf694132 RD |
2859 | { |
2860 | wxPy_BEGIN_ALLOW_THREADS; | |
2861 | wxGauge_SetRange(_arg0,_arg1); | |
2862 | ||
2863 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2864 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2865 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2866 | _resultobj = Py_None; |
2867 | return _resultobj; | |
2868 | } | |
2869 | ||
2870 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
efc5f224 | 2871 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2872 | PyObject * _resultobj; |
2873 | wxGauge * _arg0; | |
2874 | int _arg1; | |
1d99702e | 2875 | PyObject * _argo0 = 0; |
efc5f224 | 2876 | char *_kwnames[] = { "self","width", NULL }; |
8ab979d7 RD |
2877 | |
2878 | self = self; | |
efc5f224 | 2879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2880 | return NULL; |
1d99702e RD |
2881 | if (_argo0) { |
2882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); |
2885 | return NULL; | |
2886 | } | |
2887 | } | |
cf694132 RD |
2888 | { |
2889 | wxPy_BEGIN_ALLOW_THREADS; | |
2890 | wxGauge_SetShadowWidth(_arg0,_arg1); | |
2891 | ||
2892 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2893 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2894 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2895 | _resultobj = Py_None; |
2896 | return _resultobj; | |
2897 | } | |
2898 | ||
2899 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 2900 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2901 | PyObject * _resultobj; |
2902 | wxGauge * _arg0; | |
2903 | int _arg1; | |
1d99702e | 2904 | PyObject * _argo0 = 0; |
efc5f224 | 2905 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
2906 | |
2907 | self = self; | |
efc5f224 | 2908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2909 | return NULL; |
1d99702e RD |
2910 | if (_argo0) { |
2911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
2913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); |
2914 | return NULL; | |
2915 | } | |
2916 | } | |
cf694132 RD |
2917 | { |
2918 | wxPy_BEGIN_ALLOW_THREADS; | |
2919 | wxGauge_SetValue(_arg0,_arg1); | |
2920 | ||
2921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2922 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2923 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2924 | _resultobj = Py_None; |
2925 | return _resultobj; | |
2926 | } | |
2927 | ||
2928 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
2929 | wxStaticBox *src; | |
2930 | wxControl *dest; | |
2931 | src = (wxStaticBox *) ptr; | |
2932 | dest = (wxControl *) src; | |
2933 | return (void *) dest; | |
2934 | } | |
2935 | ||
2936 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
2937 | wxStaticBox *src; | |
2938 | wxWindow *dest; | |
2939 | src = (wxStaticBox *) ptr; | |
2940 | dest = (wxWindow *) src; | |
2941 | return (void *) dest; | |
2942 | } | |
2943 | ||
2944 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
2945 | wxStaticBox *src; | |
2946 | wxEvtHandler *dest; | |
2947 | src = (wxStaticBox *) ptr; | |
2948 | dest = (wxEvtHandler *) src; | |
2949 | return (void *) dest; | |
2950 | } | |
2951 | ||
9416aa89 RD |
2952 | static void *SwigwxStaticBoxTowxObject(void *ptr) { |
2953 | wxStaticBox *src; | |
2954 | wxObject *dest; | |
2955 | src = (wxStaticBox *) ptr; | |
2956 | dest = (wxObject *) src; | |
2957 | return (void *) dest; | |
2958 | } | |
2959 | ||
8ab979d7 | 2960 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2961 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2962 | PyObject * _resultobj; |
2963 | wxStaticBox * _result; | |
2964 | wxWindow * _arg0; | |
2965 | wxWindowID _arg1; | |
2966 | wxString * _arg2; | |
e508a2b6 RD |
2967 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2968 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
2969 | long _arg5 = (long ) 0; |
2970 | char * _arg6 = (char *) "staticBox"; | |
2971 | PyObject * _argo0 = 0; | |
8ab979d7 | 2972 | PyObject * _obj2 = 0; |
2f90df85 RD |
2973 | wxPoint temp; |
2974 | PyObject * _obj3 = 0; | |
2975 | wxSize temp0; | |
2976 | PyObject * _obj4 = 0; | |
efc5f224 | 2977 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
8ab979d7 RD |
2978 | char _ptemp[128]; |
2979 | ||
2980 | self = self; | |
2f90df85 | 2981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 2982 | return NULL; |
1d99702e RD |
2983 | if (_argo0) { |
2984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); |
2987 | return NULL; | |
2988 | } | |
2989 | } | |
2990 | { | |
185d7c3e RD |
2991 | #if PYTHON_API_VERSION >= 1009 |
2992 | char* tmpPtr; int tmpSize; | |
2993 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 2994 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2995 | return NULL; |
2996 | } | |
2997 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2998 | return NULL; | |
2999 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3000 | #else | |
8ab979d7 RD |
3001 | if (!PyString_Check(_obj2)) { |
3002 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3003 | return NULL; | |
3004 | } | |
185d7c3e RD |
3005 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3006 | #endif | |
8ab979d7 | 3007 | } |
2f90df85 RD |
3008 | if (_obj3) |
3009 | { | |
3010 | _arg3 = &temp; | |
3011 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 3012 | return NULL; |
2f90df85 RD |
3013 | } |
3014 | if (_obj4) | |
3015 | { | |
3016 | _arg4 = &temp0; | |
3017 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 3018 | return NULL; |
2f90df85 | 3019 | } |
cf694132 RD |
3020 | { |
3021 | wxPy_BEGIN_ALLOW_THREADS; | |
3022 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
3023 | ||
3024 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3025 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3026 | } if (_result) { |
3027 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3028 | _resultobj = Py_BuildValue("s",_ptemp); | |
3029 | } else { | |
3030 | Py_INCREF(Py_None); | |
3031 | _resultobj = Py_None; | |
3032 | } | |
8ab979d7 RD |
3033 | { |
3034 | if (_obj2) | |
3035 | delete _arg2; | |
3036 | } | |
3037 | return _resultobj; | |
3038 | } | |
3039 | ||
8bf5d46e RD |
3040 | static void *SwigwxStaticLineTowxControl(void *ptr) { |
3041 | wxStaticLine *src; | |
3042 | wxControl *dest; | |
3043 | src = (wxStaticLine *) ptr; | |
3044 | dest = (wxControl *) src; | |
3045 | return (void *) dest; | |
3046 | } | |
3047 | ||
3048 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
3049 | wxStaticLine *src; | |
3050 | wxWindow *dest; | |
3051 | src = (wxStaticLine *) ptr; | |
3052 | dest = (wxWindow *) src; | |
3053 | return (void *) dest; | |
3054 | } | |
3055 | ||
3056 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
3057 | wxStaticLine *src; | |
3058 | wxEvtHandler *dest; | |
3059 | src = (wxStaticLine *) ptr; | |
3060 | dest = (wxEvtHandler *) src; | |
3061 | return (void *) dest; | |
3062 | } | |
3063 | ||
9416aa89 RD |
3064 | static void *SwigwxStaticLineTowxObject(void *ptr) { |
3065 | wxStaticLine *src; | |
3066 | wxObject *dest; | |
3067 | src = (wxStaticLine *) ptr; | |
3068 | dest = (wxObject *) src; | |
3069 | return (void *) dest; | |
3070 | } | |
3071 | ||
8bf5d46e | 3072 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 3073 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3074 | PyObject * _resultobj; |
3075 | wxStaticLine * _result; | |
3076 | wxWindow * _arg0; | |
3077 | wxWindowID _arg1; | |
e508a2b6 RD |
3078 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3079 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
3080 | long _arg4 = (long ) wxLI_HORIZONTAL; |
3081 | char * _arg5 = (char *) "staticLine"; | |
3082 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3083 | wxPoint temp; |
3084 | PyObject * _obj2 = 0; | |
3085 | wxSize temp0; | |
3086 | PyObject * _obj3 = 0; | |
efc5f224 | 3087 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8bf5d46e RD |
3088 | char _ptemp[128]; |
3089 | ||
3090 | self = self; | |
2f90df85 | 3091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8bf5d46e | 3092 | return NULL; |
1d99702e RD |
3093 | if (_argo0) { |
3094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); |
3097 | return NULL; | |
3098 | } | |
3099 | } | |
2f90df85 RD |
3100 | if (_obj2) |
3101 | { | |
3102 | _arg2 = &temp; | |
3103 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3104 | return NULL; |
2f90df85 RD |
3105 | } |
3106 | if (_obj3) | |
3107 | { | |
3108 | _arg3 = &temp0; | |
3109 | if (! wxSize_helper(_obj3, &_arg3)) | |
8bf5d46e | 3110 | return NULL; |
2f90df85 | 3111 | } |
8bf5d46e RD |
3112 | { |
3113 | wxPy_BEGIN_ALLOW_THREADS; | |
3114 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
3115 | ||
3116 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3117 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3118 | } if (_result) { |
3119 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
3120 | _resultobj = Py_BuildValue("s",_ptemp); | |
3121 | } else { | |
3122 | Py_INCREF(Py_None); | |
3123 | _resultobj = Py_None; | |
3124 | } | |
8bf5d46e RD |
3125 | return _resultobj; |
3126 | } | |
3127 | ||
8ab979d7 RD |
3128 | static void *SwigwxStaticTextTowxControl(void *ptr) { |
3129 | wxStaticText *src; | |
3130 | wxControl *dest; | |
3131 | src = (wxStaticText *) ptr; | |
3132 | dest = (wxControl *) src; | |
3133 | return (void *) dest; | |
3134 | } | |
3135 | ||
3136 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
3137 | wxStaticText *src; | |
3138 | wxWindow *dest; | |
3139 | src = (wxStaticText *) ptr; | |
3140 | dest = (wxWindow *) src; | |
3141 | return (void *) dest; | |
3142 | } | |
3143 | ||
3144 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
3145 | wxStaticText *src; | |
3146 | wxEvtHandler *dest; | |
3147 | src = (wxStaticText *) ptr; | |
3148 | dest = (wxEvtHandler *) src; | |
3149 | return (void *) dest; | |
3150 | } | |
3151 | ||
9416aa89 RD |
3152 | static void *SwigwxStaticTextTowxObject(void *ptr) { |
3153 | wxStaticText *src; | |
3154 | wxObject *dest; | |
3155 | src = (wxStaticText *) ptr; | |
3156 | dest = (wxObject *) src; | |
3157 | return (void *) dest; | |
3158 | } | |
3159 | ||
8ab979d7 | 3160 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 3161 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3162 | PyObject * _resultobj; |
3163 | wxStaticText * _result; | |
3164 | wxWindow * _arg0; | |
3165 | wxWindowID _arg1; | |
3166 | wxString * _arg2; | |
e508a2b6 RD |
3167 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3168 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
3169 | long _arg5 = (long ) 0; |
3170 | char * _arg6 = (char *) "staticText"; | |
3171 | PyObject * _argo0 = 0; | |
8ab979d7 | 3172 | PyObject * _obj2 = 0; |
2f90df85 RD |
3173 | wxPoint temp; |
3174 | PyObject * _obj3 = 0; | |
3175 | wxSize temp0; | |
3176 | PyObject * _obj4 = 0; | |
efc5f224 | 3177 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
8ab979d7 RD |
3178 | char _ptemp[128]; |
3179 | ||
3180 | self = self; | |
2f90df85 | 3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 3182 | return NULL; |
1d99702e RD |
3183 | if (_argo0) { |
3184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); |
3187 | return NULL; | |
3188 | } | |
3189 | } | |
3190 | { | |
185d7c3e RD |
3191 | #if PYTHON_API_VERSION >= 1009 |
3192 | char* tmpPtr; int tmpSize; | |
3193 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3194 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3195 | return NULL; |
3196 | } | |
3197 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3198 | return NULL; | |
3199 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3200 | #else | |
8ab979d7 RD |
3201 | if (!PyString_Check(_obj2)) { |
3202 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3203 | return NULL; | |
3204 | } | |
185d7c3e RD |
3205 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3206 | #endif | |
8ab979d7 | 3207 | } |
2f90df85 RD |
3208 | if (_obj3) |
3209 | { | |
3210 | _arg3 = &temp; | |
3211 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 3212 | return NULL; |
2f90df85 RD |
3213 | } |
3214 | if (_obj4) | |
3215 | { | |
3216 | _arg4 = &temp0; | |
3217 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 3218 | return NULL; |
2f90df85 | 3219 | } |
cf694132 RD |
3220 | { |
3221 | wxPy_BEGIN_ALLOW_THREADS; | |
3222 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
3223 | ||
3224 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3225 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3226 | } if (_result) { |
3227 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
3228 | _resultobj = Py_BuildValue("s",_ptemp); | |
3229 | } else { | |
3230 | Py_INCREF(Py_None); | |
3231 | _resultobj = Py_None; | |
3232 | } | |
8ab979d7 RD |
3233 | { |
3234 | if (_obj2) | |
3235 | delete _arg2; | |
3236 | } | |
3237 | return _resultobj; | |
3238 | } | |
3239 | ||
3240 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
efc5f224 | 3241 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3242 | PyObject * _resultobj; |
3243 | wxString * _result; | |
3244 | wxStaticText * _arg0; | |
1d99702e | 3245 | PyObject * _argo0 = 0; |
efc5f224 | 3246 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3247 | |
3248 | self = self; | |
efc5f224 | 3249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 3250 | return NULL; |
1d99702e RD |
3251 | if (_argo0) { |
3252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
8ab979d7 RD |
3254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); |
3255 | return NULL; | |
3256 | } | |
3257 | } | |
8ab979d7 | 3258 | { |
cf694132 RD |
3259 | wxPy_BEGIN_ALLOW_THREADS; |
3260 | _result = new wxString (wxStaticText_GetLabel(_arg0)); | |
3261 | ||
3262 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3263 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3264 | }{ |
eec92d76 | 3265 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3266 | } |
3267 | { | |
3268 | delete _result; | |
3269 | } | |
3270 | return _resultobj; | |
3271 | } | |
3272 | ||
3273 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
efc5f224 | 3274 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3275 | PyObject * _resultobj; |
3276 | wxStaticText * _arg0; | |
3277 | wxString * _arg1; | |
1d99702e | 3278 | PyObject * _argo0 = 0; |
8ab979d7 | 3279 | PyObject * _obj1 = 0; |
efc5f224 | 3280 | char *_kwnames[] = { "self","label", NULL }; |
8ab979d7 RD |
3281 | |
3282 | self = self; | |
efc5f224 | 3283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3284 | return NULL; |
1d99702e RD |
3285 | if (_argo0) { |
3286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
8ab979d7 RD |
3288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); |
3289 | return NULL; | |
3290 | } | |
3291 | } | |
3292 | { | |
185d7c3e RD |
3293 | #if PYTHON_API_VERSION >= 1009 |
3294 | char* tmpPtr; int tmpSize; | |
3295 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 3296 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3297 | return NULL; |
3298 | } | |
3299 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3300 | return NULL; | |
3301 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3302 | #else | |
8ab979d7 RD |
3303 | if (!PyString_Check(_obj1)) { |
3304 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3305 | return NULL; | |
3306 | } | |
185d7c3e RD |
3307 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3308 | #endif | |
8ab979d7 | 3309 | } |
cf694132 RD |
3310 | { |
3311 | wxPy_BEGIN_ALLOW_THREADS; | |
3312 | wxStaticText_SetLabel(_arg0,*_arg1); | |
3313 | ||
3314 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3315 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3316 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3317 | _resultobj = Py_None; |
3318 | { | |
3319 | if (_obj1) | |
3320 | delete _arg1; | |
3321 | } | |
3322 | return _resultobj; | |
3323 | } | |
3324 | ||
3325 | static void *SwigwxListBoxTowxControl(void *ptr) { | |
3326 | wxListBox *src; | |
3327 | wxControl *dest; | |
3328 | src = (wxListBox *) ptr; | |
3329 | dest = (wxControl *) src; | |
3330 | return (void *) dest; | |
3331 | } | |
3332 | ||
3333 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
3334 | wxListBox *src; | |
3335 | wxWindow *dest; | |
3336 | src = (wxListBox *) ptr; | |
3337 | dest = (wxWindow *) src; | |
3338 | return (void *) dest; | |
3339 | } | |
3340 | ||
3341 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
3342 | wxListBox *src; | |
3343 | wxEvtHandler *dest; | |
3344 | src = (wxListBox *) ptr; | |
3345 | dest = (wxEvtHandler *) src; | |
3346 | return (void *) dest; | |
3347 | } | |
3348 | ||
9416aa89 RD |
3349 | static void *SwigwxListBoxTowxObject(void *ptr) { |
3350 | wxListBox *src; | |
3351 | wxObject *dest; | |
3352 | src = (wxListBox *) ptr; | |
3353 | dest = (wxObject *) src; | |
3354 | return (void *) dest; | |
3355 | } | |
3356 | ||
8ab979d7 | 3357 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
efc5f224 | 3358 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3359 | PyObject * _resultobj; |
3360 | wxListBox * _result; | |
3361 | wxWindow * _arg0; | |
3362 | wxWindowID _arg1; | |
e508a2b6 RD |
3363 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3364 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
8ab979d7 | 3365 | int _arg4; |
1d99702e RD |
3366 | wxString * _arg5 = (wxString *) NULL; |
3367 | long _arg6 = (long ) 0; | |
e508a2b6 | 3368 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
3369 | char * _arg8 = (char *) "listBox"; |
3370 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3371 | wxPoint temp; |
3372 | PyObject * _obj2 = 0; | |
3373 | wxSize temp0; | |
3374 | PyObject * _obj3 = 0; | |
8ab979d7 | 3375 | PyObject * _obj5 = 0; |
1d99702e | 3376 | PyObject * _argo7 = 0; |
eec92d76 | 3377 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
3378 | char _ptemp[128]; |
3379 | ||
3380 | self = self; | |
2f90df85 | 3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
8ab979d7 | 3382 | return NULL; |
1d99702e RD |
3383 | if (_argo0) { |
3384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); |
3387 | return NULL; | |
3388 | } | |
3389 | } | |
2f90df85 RD |
3390 | if (_obj2) |
3391 | { | |
3392 | _arg2 = &temp; | |
3393 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3394 | return NULL; |
2f90df85 RD |
3395 | } |
3396 | if (_obj3) | |
3397 | { | |
3398 | _arg3 = &temp0; | |
3399 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 3400 | return NULL; |
2f90df85 | 3401 | } |
8ab979d7 RD |
3402 | if (_obj5) |
3403 | { | |
3404 | _arg5 = wxString_LIST_helper(_obj5); | |
3405 | if (_arg5 == NULL) { | |
3406 | return NULL; | |
3407 | } | |
3408 | } | |
1d99702e RD |
3409 | if (_argo7) { |
3410 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3411 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
8ab979d7 RD |
3412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); |
3413 | return NULL; | |
3414 | } | |
3415 | } | |
3416 | { | |
cf694132 RD |
3417 | if (_obj5) { |
3418 | _arg4 = PyList_Size(_obj5); | |
3419 | } | |
3420 | else { | |
3421 | _arg4 = 0; | |
3422 | } | |
8ab979d7 | 3423 | } |
cf694132 RD |
3424 | { |
3425 | wxPy_BEGIN_ALLOW_THREADS; | |
3426 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
3427 | ||
3428 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3429 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3430 | } if (_result) { |
3431 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
3432 | _resultobj = Py_BuildValue("s",_ptemp); | |
3433 | } else { | |
3434 | Py_INCREF(Py_None); | |
3435 | _resultobj = Py_None; | |
3436 | } | |
8ab979d7 RD |
3437 | { |
3438 | delete [] _arg5; | |
3439 | } | |
3440 | return _resultobj; | |
3441 | } | |
3442 | ||
3443 | #define wxListBox_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
efc5f224 | 3444 | static PyObject *_wrap_wxListBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3445 | PyObject * _resultobj; |
3446 | wxListBox * _arg0; | |
3447 | wxString * _arg1; | |
1d99702e | 3448 | PyObject * _argo0 = 0; |
8ab979d7 | 3449 | PyObject * _obj1 = 0; |
efc5f224 | 3450 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3451 | |
3452 | self = self; | |
efc5f224 | 3453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Append",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3454 | return NULL; |
1d99702e RD |
3455 | if (_argo0) { |
3456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Append. Expected _wxListBox_p."); |
3459 | return NULL; | |
3460 | } | |
3461 | } | |
3462 | { | |
185d7c3e RD |
3463 | #if PYTHON_API_VERSION >= 1009 |
3464 | char* tmpPtr; int tmpSize; | |
3465 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 3466 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3467 | return NULL; |
3468 | } | |
3469 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3470 | return NULL; | |
3471 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3472 | #else | |
8ab979d7 RD |
3473 | if (!PyString_Check(_obj1)) { |
3474 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3475 | return NULL; | |
3476 | } | |
185d7c3e RD |
3477 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3478 | #endif | |
8ab979d7 | 3479 | } |
cf694132 RD |
3480 | { |
3481 | wxPy_BEGIN_ALLOW_THREADS; | |
3482 | wxListBox_Append(_arg0,*_arg1); | |
3483 | ||
3484 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3485 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3486 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3487 | _resultobj = Py_None; |
3488 | { | |
3489 | if (_obj1) | |
3490 | delete _arg1; | |
3491 | } | |
3492 | return _resultobj; | |
3493 | } | |
3494 | ||
3495 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) | |
efc5f224 | 3496 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3497 | PyObject * _resultobj; |
3498 | wxListBox * _arg0; | |
1d99702e | 3499 | PyObject * _argo0 = 0; |
efc5f224 | 3500 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3501 | |
3502 | self = self; | |
efc5f224 | 3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) |
8ab979d7 | 3504 | return NULL; |
1d99702e RD |
3505 | if (_argo0) { |
3506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); |
3509 | return NULL; | |
3510 | } | |
3511 | } | |
cf694132 RD |
3512 | { |
3513 | wxPy_BEGIN_ALLOW_THREADS; | |
3514 | wxListBox_Clear(_arg0); | |
3515 | ||
3516 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3517 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3518 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3519 | _resultobj = Py_None; |
3520 | return _resultobj; | |
3521 | } | |
3522 | ||
3523 | #define wxListBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
efc5f224 | 3524 | static PyObject *_wrap_wxListBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3525 | PyObject * _resultobj; |
3526 | wxListBox * _arg0; | |
3527 | int _arg1; | |
1d99702e | 3528 | PyObject * _argo0 = 0; |
efc5f224 | 3529 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
3530 | |
3531 | self = self; | |
efc5f224 | 3532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3533 | return NULL; |
1d99702e RD |
3534 | if (_argo0) { |
3535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Delete. Expected _wxListBox_p."); |
3538 | return NULL; | |
3539 | } | |
3540 | } | |
cf694132 RD |
3541 | { |
3542 | wxPy_BEGIN_ALLOW_THREADS; | |
3543 | wxListBox_Delete(_arg0,_arg1); | |
3544 | ||
3545 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3546 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3547 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3548 | _resultobj = Py_None; |
3549 | return _resultobj; | |
3550 | } | |
3551 | ||
3552 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) | |
efc5f224 | 3553 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3554 | PyObject * _resultobj; |
3555 | wxListBox * _arg0; | |
3556 | int _arg1; | |
1d99702e | 3557 | PyObject * _argo0 = 0; |
efc5f224 | 3558 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
3559 | |
3560 | self = self; | |
efc5f224 | 3561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3562 | return NULL; |
1d99702e RD |
3563 | if (_argo0) { |
3564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); |
3567 | return NULL; | |
3568 | } | |
3569 | } | |
cf694132 RD |
3570 | { |
3571 | wxPy_BEGIN_ALLOW_THREADS; | |
3572 | wxListBox_Deselect(_arg0,_arg1); | |
3573 | ||
3574 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3575 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3576 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3577 | _resultobj = Py_None; |
3578 | return _resultobj; | |
3579 | } | |
3580 | ||
3581 | #define wxListBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 3582 | static PyObject *_wrap_wxListBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3583 | PyObject * _resultobj; |
3584 | int _result; | |
3585 | wxListBox * _arg0; | |
3586 | wxString * _arg1; | |
1d99702e | 3587 | PyObject * _argo0 = 0; |
8ab979d7 | 3588 | PyObject * _obj1 = 0; |
efc5f224 | 3589 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
3590 | |
3591 | self = self; | |
efc5f224 | 3592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3593 | return NULL; |
1d99702e RD |
3594 | if (_argo0) { |
3595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_FindString. Expected _wxListBox_p."); |
3598 | return NULL; | |
3599 | } | |
3600 | } | |
3601 | { | |
185d7c3e RD |
3602 | #if PYTHON_API_VERSION >= 1009 |
3603 | char* tmpPtr; int tmpSize; | |
3604 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 3605 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3606 | return NULL; |
3607 | } | |
3608 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3609 | return NULL; | |
3610 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3611 | #else | |
8ab979d7 RD |
3612 | if (!PyString_Check(_obj1)) { |
3613 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3614 | return NULL; | |
3615 | } | |
185d7c3e RD |
3616 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3617 | #endif | |
8ab979d7 | 3618 | } |
cf694132 RD |
3619 | { |
3620 | wxPy_BEGIN_ALLOW_THREADS; | |
3621 | _result = (int )wxListBox_FindString(_arg0,*_arg1); | |
3622 | ||
3623 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3624 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3625 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3626 | { |
3627 | if (_obj1) | |
3628 | delete _arg1; | |
3629 | } | |
3630 | return _resultobj; | |
3631 | } | |
3632 | ||
3633 | #define wxListBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 3634 | static PyObject *_wrap_wxListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3635 | PyObject * _resultobj; |
3636 | int _result; | |
3637 | wxListBox * _arg0; | |
1d99702e | 3638 | PyObject * _argo0 = 0; |
efc5f224 | 3639 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3640 | |
3641 | self = self; | |
efc5f224 | 3642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 3643 | return NULL; |
1d99702e RD |
3644 | if (_argo0) { |
3645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelection. Expected _wxListBox_p."); |
3648 | return NULL; | |
3649 | } | |
3650 | } | |
cf694132 RD |
3651 | { |
3652 | wxPy_BEGIN_ALLOW_THREADS; | |
3653 | _result = (int )wxListBox_GetSelection(_arg0); | |
3654 | ||
3655 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3656 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
3657 | } _resultobj = Py_BuildValue("i",_result); |
3658 | return _resultobj; | |
3659 | } | |
3660 | ||
3661 | static PyObject * wxListBox_GetSelections(wxListBox *self) { | |
3662 | wxArrayInt lst; | |
3663 | self->GetSelections(lst); | |
3664 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
f6bcfd97 | 3665 | for(size_t i=0; i<lst.GetCount(); i++) { |
cf694132 RD |
3666 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
3667 | } | |
3668 | return tup; | |
3669 | } | |
efc5f224 | 3670 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
3671 | PyObject * _resultobj; |
3672 | PyObject * _result; | |
3673 | wxListBox * _arg0; | |
1d99702e | 3674 | PyObject * _argo0 = 0; |
efc5f224 | 3675 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
3676 | |
3677 | self = self; | |
efc5f224 | 3678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) |
cf694132 | 3679 | return NULL; |
1d99702e RD |
3680 | if (_argo0) { |
3681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
cf694132 RD |
3683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); |
3684 | return NULL; | |
3685 | } | |
3686 | } | |
3687 | { | |
3688 | wxPy_BEGIN_ALLOW_THREADS; | |
3689 | _result = (PyObject *)wxListBox_GetSelections(_arg0); | |
3690 | ||
3691 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3692 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
3693 | }{ |
3694 | _resultobj = _result; | |
3695 | } | |
8ab979d7 RD |
3696 | return _resultobj; |
3697 | } | |
3698 | ||
2f90df85 RD |
3699 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
3700 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3701 | PyObject * _resultobj; | |
3702 | wxListBox * _arg0; | |
3703 | int _arg1; | |
3704 | wxString * _arg2; | |
3705 | int _arg3; | |
3706 | PyObject * _argo0 = 0; | |
3707 | PyObject * _obj2 = 0; | |
eec92d76 | 3708 | char *_kwnames[] = { "self","choices","pos", NULL }; |
2f90df85 RD |
3709 | |
3710 | self = self; | |
3711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
3712 | return NULL; | |
3713 | if (_argo0) { | |
3714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
3716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
3717 | return NULL; | |
3718 | } | |
3719 | } | |
3720 | { | |
3721 | _arg2 = wxString_LIST_helper(_obj2); | |
3722 | if (_arg2 == NULL) { | |
3723 | return NULL; | |
3724 | } | |
3725 | } | |
3726 | { | |
3727 | if (_obj2) { | |
3728 | _arg1 = PyList_Size(_obj2); | |
3729 | } | |
3730 | else { | |
3731 | _arg1 = 0; | |
3732 | } | |
3733 | } | |
3734 | { | |
3735 | wxPy_BEGIN_ALLOW_THREADS; | |
3736 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
3737 | ||
3738 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3739 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3740 | } Py_INCREF(Py_None); |
3741 | _resultobj = Py_None; | |
3742 | { | |
3743 | delete [] _arg2; | |
3744 | } | |
3745 | return _resultobj; | |
3746 | } | |
3747 | ||
8ab979d7 | 3748 | #define wxListBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) |
efc5f224 | 3749 | static PyObject *_wrap_wxListBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3750 | PyObject * _resultobj; |
3751 | wxString * _result; | |
3752 | wxListBox * _arg0; | |
3753 | int _arg1; | |
1d99702e | 3754 | PyObject * _argo0 = 0; |
efc5f224 | 3755 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
3756 | |
3757 | self = self; | |
efc5f224 | 3758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3759 | return NULL; |
1d99702e RD |
3760 | if (_argo0) { |
3761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetString. Expected _wxListBox_p."); |
3764 | return NULL; | |
3765 | } | |
3766 | } | |
8ab979d7 | 3767 | { |
cf694132 RD |
3768 | wxPy_BEGIN_ALLOW_THREADS; |
3769 | _result = new wxString (wxListBox_GetString(_arg0,_arg1)); | |
3770 | ||
3771 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3772 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3773 | }{ |
eec92d76 | 3774 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3775 | } |
3776 | { | |
3777 | delete _result; | |
3778 | } | |
3779 | return _resultobj; | |
3780 | } | |
3781 | ||
3782 | #define wxListBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
efc5f224 | 3783 | static PyObject *_wrap_wxListBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3784 | PyObject * _resultobj; |
3785 | wxString * _result; | |
3786 | wxListBox * _arg0; | |
1d99702e | 3787 | PyObject * _argo0 = 0; |
efc5f224 | 3788 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3789 | |
3790 | self = self; | |
efc5f224 | 3791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 3792 | return NULL; |
1d99702e RD |
3793 | if (_argo0) { |
3794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetStringSelection. Expected _wxListBox_p."); |
3797 | return NULL; | |
3798 | } | |
3799 | } | |
8ab979d7 | 3800 | { |
cf694132 RD |
3801 | wxPy_BEGIN_ALLOW_THREADS; |
3802 | _result = new wxString (wxListBox_GetStringSelection(_arg0)); | |
3803 | ||
3804 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3805 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3806 | }{ |
eec92d76 | 3807 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3808 | } |
3809 | { | |
3810 | delete _result; | |
3811 | } | |
3812 | return _resultobj; | |
3813 | } | |
3814 | ||
3815 | #define wxListBox_Number(_swigobj) (_swigobj->Number()) | |
efc5f224 | 3816 | static PyObject *_wrap_wxListBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3817 | PyObject * _resultobj; |
3818 | int _result; | |
3819 | wxListBox * _arg0; | |
1d99702e | 3820 | PyObject * _argo0 = 0; |
efc5f224 | 3821 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3822 | |
3823 | self = self; | |
efc5f224 | 3824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Number",_kwnames,&_argo0)) |
8ab979d7 | 3825 | return NULL; |
1d99702e RD |
3826 | if (_argo0) { |
3827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Number. Expected _wxListBox_p."); |
3830 | return NULL; | |
3831 | } | |
3832 | } | |
cf694132 RD |
3833 | { |
3834 | wxPy_BEGIN_ALLOW_THREADS; | |
3835 | _result = (int )wxListBox_Number(_arg0); | |
3836 | ||
3837 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3838 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3839 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3840 | return _resultobj; |
3841 | } | |
3842 | ||
3843 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
efc5f224 | 3844 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3845 | PyObject * _resultobj; |
3846 | bool _result; | |
3847 | wxListBox * _arg0; | |
3848 | int _arg1; | |
1d99702e | 3849 | PyObject * _argo0 = 0; |
efc5f224 | 3850 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
3851 | |
3852 | self = self; | |
efc5f224 | 3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3854 | return NULL; |
1d99702e RD |
3855 | if (_argo0) { |
3856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); |
3859 | return NULL; | |
3860 | } | |
3861 | } | |
cf694132 RD |
3862 | { |
3863 | wxPy_BEGIN_ALLOW_THREADS; | |
3864 | _result = (bool )wxListBox_Selected(_arg0,_arg1); | |
3865 | ||
3866 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3867 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3868 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3869 | return _resultobj; |
3870 | } | |
3871 | ||
3872 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
efc5f224 | 3873 | static PyObject *_wrap_wxListBox_Set(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; |
eec92d76 | 3880 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
3881 | |
3882 | self = self; | |
efc5f224 | 3883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_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_Set. Expected _wxListBox_p."); |
3889 | return NULL; | |
3890 | } | |
3891 | } | |
3892 | if (_obj2) | |
3893 | { | |
3894 | _arg2 = wxString_LIST_helper(_obj2); | |
3895 | if (_arg2 == NULL) { | |
3896 | return NULL; | |
3897 | } | |
3898 | } | |
3899 | { | |
cf694132 RD |
3900 | if (_obj2) { |
3901 | _arg1 = PyList_Size(_obj2); | |
3902 | } | |
3903 | else { | |
3904 | _arg1 = 0; | |
3905 | } | |
8ab979d7 | 3906 | } |
cf694132 RD |
3907 | { |
3908 | wxPy_BEGIN_ALLOW_THREADS; | |
3909 | wxListBox_Set(_arg0,_arg1,_arg2); | |
3910 | ||
3911 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3912 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3913 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3914 | _resultobj = Py_None; |
3915 | { | |
3916 | delete [] _arg2; | |
3917 | } | |
3918 | return _resultobj; | |
3919 | } | |
3920 | ||
3921 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
efc5f224 | 3922 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3923 | PyObject * _resultobj; |
3924 | wxListBox * _arg0; | |
3925 | int _arg1; | |
1d99702e | 3926 | PyObject * _argo0 = 0; |
efc5f224 | 3927 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
3928 | |
3929 | self = self; | |
efc5f224 | 3930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3931 | return NULL; |
1d99702e RD |
3932 | if (_argo0) { |
3933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); |
3936 | return NULL; | |
3937 | } | |
3938 | } | |
cf694132 RD |
3939 | { |
3940 | wxPy_BEGIN_ALLOW_THREADS; | |
3941 | wxListBox_SetFirstItem(_arg0,_arg1); | |
3942 | ||
3943 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3944 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3945 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3946 | _resultobj = Py_None; |
3947 | return _resultobj; | |
3948 | } | |
3949 | ||
3950 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
efc5f224 | 3951 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3952 | PyObject * _resultobj; |
3953 | wxListBox * _arg0; | |
3954 | wxString * _arg1; | |
1d99702e | 3955 | PyObject * _argo0 = 0; |
8ab979d7 | 3956 | PyObject * _obj1 = 0; |
efc5f224 | 3957 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
3958 | |
3959 | self = self; | |
efc5f224 | 3960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3961 | return NULL; |
1d99702e RD |
3962 | if (_argo0) { |
3963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
3965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); |
3966 | return NULL; | |
3967 | } | |
3968 | } | |
3969 | { | |
185d7c3e RD |
3970 | #if PYTHON_API_VERSION >= 1009 |
3971 | char* tmpPtr; int tmpSize; | |
3972 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 3973 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3974 | return NULL; |
3975 | } | |
3976 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3977 | return NULL; | |
3978 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3979 | #else | |
8ab979d7 RD |
3980 | if (!PyString_Check(_obj1)) { |
3981 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3982 | return NULL; | |
3983 | } | |
185d7c3e RD |
3984 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3985 | #endif | |
8ab979d7 | 3986 | } |
cf694132 RD |
3987 | { |
3988 | wxPy_BEGIN_ALLOW_THREADS; | |
3989 | wxListBox_SetFirstItemStr(_arg0,*_arg1); | |
3990 | ||
3991 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3992 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3993 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3994 | _resultobj = Py_None; |
3995 | { | |
3996 | if (_obj1) | |
3997 | delete _arg1; | |
3998 | } | |
3999 | return _resultobj; | |
4000 | } | |
4001 | ||
4002 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 4003 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4004 | PyObject * _resultobj; |
4005 | wxListBox * _arg0; | |
4006 | int _arg1; | |
1d99702e RD |
4007 | bool _arg2 = (bool ) TRUE; |
4008 | PyObject * _argo0 = 0; | |
4009 | int tempbool2 = (int) TRUE; | |
efc5f224 | 4010 | char *_kwnames[] = { "self","n","select", NULL }; |
8ab979d7 RD |
4011 | |
4012 | self = self; | |
efc5f224 | 4013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 4014 | return NULL; |
1d99702e RD |
4015 | if (_argo0) { |
4016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); |
4019 | return NULL; | |
4020 | } | |
4021 | } | |
4022 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
4023 | { |
4024 | wxPy_BEGIN_ALLOW_THREADS; | |
4025 | wxListBox_SetSelection(_arg0,_arg1,_arg2); | |
4026 | ||
4027 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4028 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4029 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4030 | _resultobj = Py_None; |
4031 | return _resultobj; | |
4032 | } | |
4033 | ||
4034 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
efc5f224 | 4035 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4036 | PyObject * _resultobj; |
4037 | wxListBox * _arg0; | |
4038 | int _arg1; | |
4039 | wxString * _arg2; | |
1d99702e | 4040 | PyObject * _argo0 = 0; |
8ab979d7 | 4041 | PyObject * _obj2 = 0; |
efc5f224 | 4042 | char *_kwnames[] = { "self","n","string", NULL }; |
8ab979d7 RD |
4043 | |
4044 | self = self; | |
efc5f224 | 4045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4046 | return NULL; |
1d99702e RD |
4047 | if (_argo0) { |
4048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); |
4051 | return NULL; | |
4052 | } | |
4053 | } | |
4054 | { | |
185d7c3e RD |
4055 | #if PYTHON_API_VERSION >= 1009 |
4056 | char* tmpPtr; int tmpSize; | |
4057 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 4058 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4059 | return NULL; |
4060 | } | |
4061 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4062 | return NULL; | |
4063 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4064 | #else | |
8ab979d7 RD |
4065 | if (!PyString_Check(_obj2)) { |
4066 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4067 | return NULL; | |
4068 | } | |
185d7c3e RD |
4069 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4070 | #endif | |
8ab979d7 | 4071 | } |
cf694132 RD |
4072 | { |
4073 | wxPy_BEGIN_ALLOW_THREADS; | |
4074 | wxListBox_SetString(_arg0,_arg1,*_arg2); | |
4075 | ||
4076 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4077 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4078 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4079 | _resultobj = Py_None; |
4080 | { | |
4081 | if (_obj2) | |
4082 | delete _arg2; | |
4083 | } | |
4084 | return _resultobj; | |
4085 | } | |
4086 | ||
4087 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 4088 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4089 | PyObject * _resultobj; |
4090 | wxListBox * _arg0; | |
4091 | wxString * _arg1; | |
1d99702e RD |
4092 | bool _arg2 = (bool ) TRUE; |
4093 | PyObject * _argo0 = 0; | |
8ab979d7 | 4094 | PyObject * _obj1 = 0; |
1d99702e | 4095 | int tempbool2 = (int) TRUE; |
efc5f224 | 4096 | char *_kwnames[] = { "self","string","select", NULL }; |
8ab979d7 RD |
4097 | |
4098 | self = self; | |
efc5f224 | 4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 4100 | return NULL; |
1d99702e RD |
4101 | if (_argo0) { |
4102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); |
4105 | return NULL; | |
4106 | } | |
4107 | } | |
4108 | { | |
185d7c3e RD |
4109 | #if PYTHON_API_VERSION >= 1009 |
4110 | char* tmpPtr; int tmpSize; | |
4111 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4112 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4113 | return NULL; |
4114 | } | |
4115 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4116 | return NULL; | |
4117 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4118 | #else | |
8ab979d7 RD |
4119 | if (!PyString_Check(_obj1)) { |
4120 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4121 | return NULL; | |
4122 | } | |
185d7c3e RD |
4123 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4124 | #endif | |
8ab979d7 RD |
4125 | } |
4126 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
4127 | { |
4128 | wxPy_BEGIN_ALLOW_THREADS; | |
4129 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); | |
4130 | ||
4131 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4132 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4133 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4134 | _resultobj = Py_None; |
4135 | { | |
4136 | if (_obj1) | |
4137 | delete _arg1; | |
4138 | } | |
4139 | return _resultobj; | |
4140 | } | |
4141 | ||
9c039d08 RD |
4142 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { |
4143 | wxCheckListBox *src; | |
4144 | wxListBox *dest; | |
4145 | src = (wxCheckListBox *) ptr; | |
4146 | dest = (wxListBox *) src; | |
4147 | return (void *) dest; | |
4148 | } | |
4149 | ||
4150 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { | |
4151 | wxCheckListBox *src; | |
4152 | wxControl *dest; | |
4153 | src = (wxCheckListBox *) ptr; | |
4154 | dest = (wxControl *) src; | |
4155 | return (void *) dest; | |
4156 | } | |
4157 | ||
4158 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
4159 | wxCheckListBox *src; | |
4160 | wxWindow *dest; | |
4161 | src = (wxCheckListBox *) ptr; | |
4162 | dest = (wxWindow *) src; | |
4163 | return (void *) dest; | |
4164 | } | |
4165 | ||
4166 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
4167 | wxCheckListBox *src; | |
4168 | wxEvtHandler *dest; | |
4169 | src = (wxCheckListBox *) ptr; | |
4170 | dest = (wxEvtHandler *) src; | |
4171 | return (void *) dest; | |
4172 | } | |
4173 | ||
9416aa89 RD |
4174 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { |
4175 | wxCheckListBox *src; | |
4176 | wxObject *dest; | |
4177 | src = (wxCheckListBox *) ptr; | |
4178 | dest = (wxObject *) src; | |
4179 | return (void *) dest; | |
4180 | } | |
4181 | ||
9c039d08 | 4182 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
efc5f224 | 4183 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
4184 | PyObject * _resultobj; |
4185 | wxCheckListBox * _result; | |
4186 | wxWindow * _arg0; | |
4187 | wxWindowID _arg1; | |
e508a2b6 RD |
4188 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
4189 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
4190 | int _arg4 = (int ) 0; |
4191 | wxString * _arg5 = (wxString *) NULL; | |
4192 | long _arg6 = (long ) 0; | |
e508a2b6 | 4193 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
4194 | char * _arg8 = (char *) "listBox"; |
4195 | PyObject * _argo0 = 0; | |
2f90df85 RD |
4196 | wxPoint temp; |
4197 | PyObject * _obj2 = 0; | |
4198 | wxSize temp0; | |
4199 | PyObject * _obj3 = 0; | |
9c039d08 | 4200 | PyObject * _obj5 = 0; |
1d99702e | 4201 | PyObject * _argo7 = 0; |
eec92d76 | 4202 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
9c039d08 RD |
4203 | char _ptemp[128]; |
4204 | ||
4205 | self = self; | |
2f90df85 | 4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
9c039d08 | 4207 | return NULL; |
1d99702e RD |
4208 | if (_argo0) { |
4209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9c039d08 RD |
4211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); |
4212 | return NULL; | |
4213 | } | |
4214 | } | |
2f90df85 RD |
4215 | if (_obj2) |
4216 | { | |
4217 | _arg2 = &temp; | |
4218 | if (! wxPoint_helper(_obj2, &_arg2)) | |
9c039d08 | 4219 | return NULL; |
2f90df85 RD |
4220 | } |
4221 | if (_obj3) | |
4222 | { | |
4223 | _arg3 = &temp0; | |
4224 | if (! wxSize_helper(_obj3, &_arg3)) | |
9c039d08 | 4225 | return NULL; |
2f90df85 | 4226 | } |
9c039d08 RD |
4227 | if (_obj5) |
4228 | { | |
4229 | _arg5 = wxString_LIST_helper(_obj5); | |
4230 | if (_arg5 == NULL) { | |
4231 | return NULL; | |
4232 | } | |
4233 | } | |
1d99702e RD |
4234 | if (_argo7) { |
4235 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4236 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9c039d08 RD |
4237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); |
4238 | return NULL; | |
4239 | } | |
4240 | } | |
4241 | { | |
cf694132 RD |
4242 | if (_obj5) { |
4243 | _arg4 = PyList_Size(_obj5); | |
4244 | } | |
4245 | else { | |
4246 | _arg4 = 0; | |
4247 | } | |
9c039d08 | 4248 | } |
cf694132 RD |
4249 | { |
4250 | wxPy_BEGIN_ALLOW_THREADS; | |
4251 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
4252 | ||
4253 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4254 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4255 | } if (_result) { |
4256 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
4257 | _resultobj = Py_BuildValue("s",_ptemp); | |
4258 | } else { | |
4259 | Py_INCREF(Py_None); | |
4260 | _resultobj = Py_None; | |
4261 | } | |
9c039d08 RD |
4262 | { |
4263 | delete [] _arg5; | |
4264 | } | |
4265 | return _resultobj; | |
4266 | } | |
4267 | ||
4268 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
efc5f224 | 4269 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
4270 | PyObject * _resultobj; |
4271 | bool _result; | |
4272 | wxCheckListBox * _arg0; | |
4273 | int _arg1; | |
1d99702e | 4274 | PyObject * _argo0 = 0; |
efc5f224 | 4275 | char *_kwnames[] = { "self","uiIndex", NULL }; |
9c039d08 RD |
4276 | |
4277 | self = self; | |
efc5f224 | 4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 4279 | return NULL; |
1d99702e RD |
4280 | if (_argo0) { |
4281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
4283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); |
4284 | return NULL; | |
4285 | } | |
4286 | } | |
cf694132 RD |
4287 | { |
4288 | wxPy_BEGIN_ALLOW_THREADS; | |
4289 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); | |
4290 | ||
4291 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4292 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4293 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
4294 | return _resultobj; |
4295 | } | |
4296 | ||
4297 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 4298 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
4299 | PyObject * _resultobj; |
4300 | wxCheckListBox * _arg0; | |
4301 | int _arg1; | |
694759cf | 4302 | int _arg2 = (int ) TRUE; |
1d99702e | 4303 | PyObject * _argo0 = 0; |
efc5f224 | 4304 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; |
9c039d08 RD |
4305 | |
4306 | self = self; | |
694759cf | 4307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) |
9c039d08 | 4308 | return NULL; |
1d99702e RD |
4309 | if (_argo0) { |
4310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
4312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); |
4313 | return NULL; | |
4314 | } | |
4315 | } | |
cf694132 RD |
4316 | { |
4317 | wxPy_BEGIN_ALLOW_THREADS; | |
4318 | wxCheckListBox_Check(_arg0,_arg1,_arg2); | |
4319 | ||
4320 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4321 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4322 | } Py_INCREF(Py_None); |
9c039d08 RD |
4323 | _resultobj = Py_None; |
4324 | return _resultobj; | |
4325 | } | |
4326 | ||
694759cf RD |
4327 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
4328 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4329 | PyObject * _resultobj; | |
4330 | wxCheckListBox * _arg0; | |
4331 | int _arg1; | |
4332 | wxString * _arg2; | |
4333 | int _arg3; | |
4334 | PyObject * _argo0 = 0; | |
4335 | PyObject * _obj2 = 0; | |
eec92d76 | 4336 | char *_kwnames[] = { "self","choices","pos", NULL }; |
694759cf RD |
4337 | |
4338 | self = self; | |
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4340 | return NULL; | |
4341 | if (_argo0) { | |
4342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
4348 | { | |
4349 | _arg2 = wxString_LIST_helper(_obj2); | |
4350 | if (_arg2 == NULL) { | |
4351 | return NULL; | |
4352 | } | |
4353 | } | |
4354 | { | |
4355 | if (_obj2) { | |
4356 | _arg1 = PyList_Size(_obj2); | |
4357 | } | |
4358 | else { | |
4359 | _arg1 = 0; | |
4360 | } | |
4361 | } | |
4362 | { | |
4363 | wxPy_BEGIN_ALLOW_THREADS; | |
4364 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
4365 | ||
4366 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4367 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
4368 | } Py_INCREF(Py_None); |
4369 | _resultobj = Py_None; | |
4370 | { | |
4371 | delete [] _arg2; | |
4372 | } | |
4373 | return _resultobj; | |
4374 | } | |
4375 | ||
9c039d08 | 4376 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) |
efc5f224 | 4377 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
4378 | PyObject * _resultobj; |
4379 | int _result; | |
4380 | wxCheckListBox * _arg0; | |
1d99702e | 4381 | PyObject * _argo0 = 0; |
efc5f224 | 4382 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
4383 | |
4384 | self = self; | |
efc5f224 | 4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) |
9c039d08 | 4386 | return NULL; |
1d99702e RD |
4387 | if (_argo0) { |
4388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
4390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); |
4391 | return NULL; | |
4392 | } | |
4393 | } | |
cf694132 RD |
4394 | { |
4395 | wxPy_BEGIN_ALLOW_THREADS; | |
4396 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); | |
4397 | ||
4398 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4399 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4400 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
4401 | return _resultobj; |
4402 | } | |
4403 | ||
8ab979d7 RD |
4404 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
4405 | wxTextCtrl *src; | |
4406 | wxControl *dest; | |
4407 | src = (wxTextCtrl *) ptr; | |
4408 | dest = (wxControl *) src; | |
4409 | return (void *) dest; | |
4410 | } | |
4411 | ||
4412 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
4413 | wxTextCtrl *src; | |
4414 | wxWindow *dest; | |
4415 | src = (wxTextCtrl *) ptr; | |
4416 | dest = (wxWindow *) src; | |
4417 | return (void *) dest; | |
4418 | } | |
4419 | ||
4420 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
4421 | wxTextCtrl *src; | |
4422 | wxEvtHandler *dest; | |
4423 | src = (wxTextCtrl *) ptr; | |
4424 | dest = (wxEvtHandler *) src; | |
4425 | return (void *) dest; | |
4426 | } | |
4427 | ||
9416aa89 RD |
4428 | static void *SwigwxTextCtrlTowxObject(void *ptr) { |
4429 | wxTextCtrl *src; | |
4430 | wxObject *dest; | |
4431 | src = (wxTextCtrl *) ptr; | |
4432 | dest = (wxObject *) src; | |
4433 | return (void *) dest; | |
4434 | } | |
4435 | ||
8ab979d7 | 4436 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 4437 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4438 | PyObject * _resultobj; |
4439 | wxTextCtrl * _result; | |
4440 | wxWindow * _arg0; | |
4441 | wxWindowID _arg1; | |
1d99702e | 4442 | char * _arg2 = (char *) ""; |
e508a2b6 RD |
4443 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4444 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 4445 | long _arg5 = (long ) 0; |
e508a2b6 | 4446 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
4447 | char * _arg7 = (char *) "text"; |
4448 | PyObject * _argo0 = 0; | |
2f90df85 RD |
4449 | wxPoint temp; |
4450 | PyObject * _obj3 = 0; | |
4451 | wxSize temp0; | |
4452 | PyObject * _obj4 = 0; | |
1d99702e | 4453 | PyObject * _argo6 = 0; |
efc5f224 | 4454 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
4455 | char _ptemp[128]; |
4456 | ||
4457 | self = self; | |
2f90df85 | 4458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 4459 | return NULL; |
1d99702e RD |
4460 | if (_argo0) { |
4461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); |
4464 | return NULL; | |
4465 | } | |
4466 | } | |
2f90df85 RD |
4467 | if (_obj3) |
4468 | { | |
4469 | _arg3 = &temp; | |
4470 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 4471 | return NULL; |
2f90df85 RD |
4472 | } |
4473 | if (_obj4) | |
4474 | { | |
4475 | _arg4 = &temp0; | |
4476 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 4477 | return NULL; |
2f90df85 | 4478 | } |
1d99702e RD |
4479 | if (_argo6) { |
4480 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
4481 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
4482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); |
4483 | return NULL; | |
4484 | } | |
4485 | } | |
cf694132 RD |
4486 | { |
4487 | wxPy_BEGIN_ALLOW_THREADS; | |
4488 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
4489 | ||
4490 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4491 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4492 | } if (_result) { |
4493 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
4494 | _resultobj = Py_BuildValue("s",_ptemp); | |
4495 | } else { | |
4496 | Py_INCREF(Py_None); | |
4497 | _resultobj = Py_None; | |
4498 | } | |
8ab979d7 RD |
4499 | return _resultobj; |
4500 | } | |
4501 | ||
4502 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) | |
efc5f224 | 4503 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4504 | PyObject * _resultobj; |
4505 | wxTextCtrl * _arg0; | |
1d99702e | 4506 | PyObject * _argo0 = 0; |
efc5f224 | 4507 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4508 | |
4509 | self = self; | |
efc5f224 | 4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
8ab979d7 | 4511 | return NULL; |
1d99702e RD |
4512 | if (_argo0) { |
4513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
4516 | return NULL; | |
4517 | } | |
4518 | } | |
cf694132 RD |
4519 | { |
4520 | wxPy_BEGIN_ALLOW_THREADS; | |
4521 | wxTextCtrl_Clear(_arg0); | |
4522 | ||
4523 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4524 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4525 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4526 | _resultobj = Py_None; |
4527 | return _resultobj; | |
4528 | } | |
4529 | ||
4530 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) | |
efc5f224 | 4531 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4532 | PyObject * _resultobj; |
4533 | wxTextCtrl * _arg0; | |
1d99702e | 4534 | PyObject * _argo0 = 0; |
efc5f224 | 4535 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4536 | |
4537 | self = self; | |
efc5f224 | 4538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
8ab979d7 | 4539 | return NULL; |
1d99702e RD |
4540 | if (_argo0) { |
4541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
4544 | return NULL; | |
4545 | } | |
4546 | } | |
cf694132 RD |
4547 | { |
4548 | wxPy_BEGIN_ALLOW_THREADS; | |
4549 | wxTextCtrl_Copy(_arg0); | |
4550 | ||
4551 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4552 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4553 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4554 | _resultobj = Py_None; |
4555 | return _resultobj; | |
4556 | } | |
4557 | ||
4558 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) | |
efc5f224 | 4559 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4560 | PyObject * _resultobj; |
4561 | wxTextCtrl * _arg0; | |
1d99702e | 4562 | PyObject * _argo0 = 0; |
efc5f224 | 4563 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4564 | |
4565 | self = self; | |
efc5f224 | 4566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
8ab979d7 | 4567 | return NULL; |
1d99702e RD |
4568 | if (_argo0) { |
4569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
4572 | return NULL; | |
4573 | } | |
4574 | } | |
cf694132 RD |
4575 | { |
4576 | wxPy_BEGIN_ALLOW_THREADS; | |
4577 | wxTextCtrl_Cut(_arg0); | |
4578 | ||
4579 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4580 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4581 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4582 | _resultobj = Py_None; |
4583 | return _resultobj; | |
4584 | } | |
4585 | ||
4586 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) | |
efc5f224 | 4587 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4588 | PyObject * _resultobj; |
4589 | wxTextCtrl * _arg0; | |
1d99702e | 4590 | PyObject * _argo0 = 0; |
efc5f224 | 4591 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4592 | |
4593 | self = self; | |
efc5f224 | 4594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
8ab979d7 | 4595 | return NULL; |
1d99702e RD |
4596 | if (_argo0) { |
4597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
4600 | return NULL; | |
4601 | } | |
4602 | } | |
cf694132 RD |
4603 | { |
4604 | wxPy_BEGIN_ALLOW_THREADS; | |
4605 | wxTextCtrl_DiscardEdits(_arg0); | |
4606 | ||
4607 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4608 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4609 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4610 | _resultobj = Py_None; |
4611 | return _resultobj; | |
4612 | } | |
4613 | ||
4614 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
efc5f224 | 4615 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4616 | PyObject * _resultobj; |
4617 | long _result; | |
4618 | wxTextCtrl * _arg0; | |
1d99702e | 4619 | PyObject * _argo0 = 0; |
efc5f224 | 4620 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4621 | |
4622 | self = self; | |
efc5f224 | 4623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
8ab979d7 | 4624 | return NULL; |
1d99702e RD |
4625 | if (_argo0) { |
4626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
4629 | return NULL; | |
4630 | } | |
4631 | } | |
cf694132 RD |
4632 | { |
4633 | wxPy_BEGIN_ALLOW_THREADS; | |
4634 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); | |
4635 | ||
4636 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4637 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4638 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4639 | return _resultobj; |
4640 | } | |
4641 | ||
4642 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
efc5f224 | 4643 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4644 | PyObject * _resultobj; |
4645 | long _result; | |
4646 | wxTextCtrl * _arg0; | |
1d99702e | 4647 | PyObject * _argo0 = 0; |
efc5f224 | 4648 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4649 | |
4650 | self = self; | |
efc5f224 | 4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
8ab979d7 | 4652 | return NULL; |
1d99702e RD |
4653 | if (_argo0) { |
4654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
4657 | return NULL; | |
4658 | } | |
4659 | } | |
cf694132 RD |
4660 | { |
4661 | wxPy_BEGIN_ALLOW_THREADS; | |
4662 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); | |
4663 | ||
4664 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4665 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4666 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4667 | return _resultobj; |
4668 | } | |
4669 | ||
4670 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) | |
efc5f224 | 4671 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4672 | PyObject * _resultobj; |
4673 | int _result; | |
4674 | wxTextCtrl * _arg0; | |
4675 | long _arg1; | |
1d99702e | 4676 | PyObject * _argo0 = 0; |
efc5f224 | 4677 | char *_kwnames[] = { "self","lineNo", NULL }; |
8ab979d7 RD |
4678 | |
4679 | self = self; | |
efc5f224 | 4680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4681 | return NULL; |
1d99702e RD |
4682 | if (_argo0) { |
4683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
4686 | return NULL; | |
4687 | } | |
4688 | } | |
cf694132 RD |
4689 | { |
4690 | wxPy_BEGIN_ALLOW_THREADS; | |
4691 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); | |
4692 | ||
4693 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4694 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4695 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4696 | return _resultobj; |
4697 | } | |
4698 | ||
4699 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) | |
efc5f224 | 4700 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4701 | PyObject * _resultobj; |
4702 | wxString * _result; | |
4703 | wxTextCtrl * _arg0; | |
4704 | long _arg1; | |
1d99702e | 4705 | PyObject * _argo0 = 0; |
efc5f224 | 4706 | char *_kwnames[] = { "self","lineNo", NULL }; |
8ab979d7 RD |
4707 | |
4708 | self = self; | |
efc5f224 | 4709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4710 | return NULL; |
1d99702e RD |
4711 | if (_argo0) { |
4712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
4715 | return NULL; | |
4716 | } | |
4717 | } | |
8ab979d7 | 4718 | { |
cf694132 RD |
4719 | wxPy_BEGIN_ALLOW_THREADS; |
4720 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); | |
4721 | ||
4722 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4723 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4724 | }{ |
eec92d76 | 4725 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
4726 | } |
4727 | { | |
4728 | delete _result; | |
4729 | } | |
4730 | return _resultobj; | |
4731 | } | |
4732 | ||
4733 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) | |
efc5f224 | 4734 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4735 | PyObject * _resultobj; |
4736 | int _result; | |
4737 | wxTextCtrl * _arg0; | |
1d99702e | 4738 | PyObject * _argo0 = 0; |
efc5f224 | 4739 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4740 | |
4741 | self = self; | |
efc5f224 | 4742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
8ab979d7 | 4743 | return NULL; |
1d99702e RD |
4744 | if (_argo0) { |
4745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
4748 | return NULL; | |
4749 | } | |
4750 | } | |
cf694132 RD |
4751 | { |
4752 | wxPy_BEGIN_ALLOW_THREADS; | |
4753 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); | |
4754 | ||
4755 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4756 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4757 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4758 | return _resultobj; |
4759 | } | |
4760 | ||
4761 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 4762 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4763 | PyObject * _resultobj; |
4764 | wxString * _result; | |
4765 | wxTextCtrl * _arg0; | |
1d99702e | 4766 | PyObject * _argo0 = 0; |
efc5f224 | 4767 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4768 | |
4769 | self = self; | |
efc5f224 | 4770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 4771 | return NULL; |
1d99702e RD |
4772 | if (_argo0) { |
4773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
4776 | return NULL; | |
4777 | } | |
4778 | } | |
8ab979d7 | 4779 | { |
cf694132 RD |
4780 | wxPy_BEGIN_ALLOW_THREADS; |
4781 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); | |
4782 | ||
4783 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4784 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4785 | }{ |
eec92d76 | 4786 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
4787 | } |
4788 | { | |
4789 | delete _result; | |
4790 | } | |
4791 | return _resultobj; | |
4792 | } | |
4793 | ||
4794 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) | |
efc5f224 | 4795 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4796 | PyObject * _resultobj; |
4797 | bool _result; | |
4798 | wxTextCtrl * _arg0; | |
1d99702e | 4799 | PyObject * _argo0 = 0; |
efc5f224 | 4800 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4801 | |
4802 | self = self; | |
efc5f224 | 4803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
8ab979d7 | 4804 | return NULL; |
1d99702e RD |
4805 | if (_argo0) { |
4806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
4809 | return NULL; | |
4810 | } | |
4811 | } | |
cf694132 RD |
4812 | { |
4813 | wxPy_BEGIN_ALLOW_THREADS; | |
4814 | _result = (bool )wxTextCtrl_IsModified(_arg0); | |
4815 | ||
4816 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4817 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4818 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4819 | return _resultobj; |
4820 | } | |
4821 | ||
4822 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
efc5f224 | 4823 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4824 | PyObject * _resultobj; |
4825 | bool _result; | |
4826 | wxTextCtrl * _arg0; | |
4827 | wxString * _arg1; | |
1d99702e | 4828 | PyObject * _argo0 = 0; |
8ab979d7 | 4829 | PyObject * _obj1 = 0; |
efc5f224 | 4830 | char *_kwnames[] = { "self","filename", NULL }; |
8ab979d7 RD |
4831 | |
4832 | self = self; | |
efc5f224 | 4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4834 | return NULL; |
1d99702e RD |
4835 | if (_argo0) { |
4836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); |
4839 | return NULL; | |
4840 | } | |
4841 | } | |
4842 | { | |
185d7c3e RD |
4843 | #if PYTHON_API_VERSION >= 1009 |
4844 | char* tmpPtr; int tmpSize; | |
4845 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4846 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4847 | return NULL; |
4848 | } | |
4849 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4850 | return NULL; | |
4851 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4852 | #else | |
8ab979d7 RD |
4853 | if (!PyString_Check(_obj1)) { |
4854 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4855 | return NULL; | |
4856 | } | |
185d7c3e RD |
4857 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4858 | #endif | |
8ab979d7 | 4859 | } |
cf694132 RD |
4860 | { |
4861 | wxPy_BEGIN_ALLOW_THREADS; | |
4862 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); | |
4863 | ||
4864 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4865 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4866 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4867 | { |
4868 | if (_obj1) | |
4869 | delete _arg1; | |
4870 | } | |
4871 | return _resultobj; | |
4872 | } | |
4873 | ||
4874 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) | |
efc5f224 | 4875 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4876 | PyObject * _resultobj; |
4877 | wxTextCtrl * _arg0; | |
1d99702e | 4878 | PyObject * _argo0 = 0; |
efc5f224 | 4879 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4880 | |
4881 | self = self; | |
efc5f224 | 4882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
8ab979d7 | 4883 | return NULL; |
1d99702e RD |
4884 | if (_argo0) { |
4885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
4888 | return NULL; | |
4889 | } | |
4890 | } | |
cf694132 RD |
4891 | { |
4892 | wxPy_BEGIN_ALLOW_THREADS; | |
4893 | wxTextCtrl_Paste(_arg0); | |
4894 | ||
4895 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4896 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4897 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4898 | _resultobj = Py_None; |
4899 | return _resultobj; | |
4900 | } | |
4901 | ||
4902 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4903 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4904 | PyObject * _resultobj; |
4905 | wxTextCtrl * _arg0; | |
4906 | long _arg1; | |
4907 | long * _arg2; | |
4908 | long temp; | |
4909 | long * _arg3; | |
4910 | long temp0; | |
1d99702e | 4911 | PyObject * _argo0 = 0; |
efc5f224 | 4912 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4913 | |
4914 | self = self; | |
4915 | { | |
4916 | _arg2 = &temp; | |
4917 | } | |
4918 | { | |
4919 | _arg3 = &temp0; | |
4920 | } | |
efc5f224 | 4921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4922 | return NULL; |
1d99702e RD |
4923 | if (_argo0) { |
4924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
4927 | return NULL; | |
4928 | } | |
4929 | } | |
cf694132 RD |
4930 | { |
4931 | wxPy_BEGIN_ALLOW_THREADS; | |
4932 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); | |
4933 | ||
4934 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4935 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4936 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4937 | _resultobj = Py_None; |
4938 | { | |
4939 | PyObject *o; | |
4940 | o = PyInt_FromLong((long) (*_arg2)); | |
4941 | _resultobj = t_output_helper(_resultobj, o); | |
4942 | } | |
4943 | { | |
4944 | PyObject *o; | |
4945 | o = PyInt_FromLong((long) (*_arg3)); | |
4946 | _resultobj = t_output_helper(_resultobj, o); | |
4947 | } | |
4948 | return _resultobj; | |
4949 | } | |
4950 | ||
4951 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
efc5f224 | 4952 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4953 | PyObject * _resultobj; |
4954 | wxTextCtrl * _arg0; | |
4955 | long _arg1; | |
4956 | long _arg2; | |
1d99702e | 4957 | PyObject * _argo0 = 0; |
efc5f224 | 4958 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
4959 | |
4960 | self = self; | |
efc5f224 | 4961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4962 | return NULL; |
1d99702e RD |
4963 | if (_argo0) { |
4964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); |
4967 | return NULL; | |
4968 | } | |
4969 | } | |
cf694132 RD |
4970 | { |
4971 | wxPy_BEGIN_ALLOW_THREADS; | |
4972 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); | |
4973 | ||
4974 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4975 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4976 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4977 | _resultobj = Py_None; |
4978 | return _resultobj; | |
4979 | } | |
4980 | ||
4981 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4982 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4983 | PyObject * _resultobj; |
4984 | wxTextCtrl * _arg0; | |
4985 | long _arg1; | |
4986 | long _arg2; | |
4987 | wxString * _arg3; | |
1d99702e | 4988 | PyObject * _argo0 = 0; |
8ab979d7 | 4989 | PyObject * _obj3 = 0; |
efc5f224 | 4990 | char *_kwnames[] = { "self","from","to","value", NULL }; |
8ab979d7 RD |
4991 | |
4992 | self = self; | |
efc5f224 | 4993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 4994 | return NULL; |
1d99702e RD |
4995 | if (_argo0) { |
4996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
4998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
4999 | return NULL; | |
5000 | } | |
5001 | } | |
5002 | { | |
185d7c3e RD |
5003 | #if PYTHON_API_VERSION >= 1009 |
5004 | char* tmpPtr; int tmpSize; | |
5005 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 5006 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5007 | return NULL; |
5008 | } | |
5009 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
5010 | return NULL; | |
5011 | _arg3 = new wxString(tmpPtr, tmpSize); | |
5012 | #else | |
8ab979d7 RD |
5013 | if (!PyString_Check(_obj3)) { |
5014 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5015 | return NULL; | |
5016 | } | |
185d7c3e RD |
5017 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
5018 | #endif | |
8ab979d7 | 5019 | } |
cf694132 RD |
5020 | { |
5021 | wxPy_BEGIN_ALLOW_THREADS; | |
5022 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); | |
5023 | ||
5024 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5025 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5026 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5027 | _resultobj = Py_None; |
5028 | { | |
5029 | if (_obj3) | |
5030 | delete _arg3; | |
5031 | } | |
5032 | return _resultobj; | |
5033 | } | |
5034 | ||
5035 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) | |
efc5f224 | 5036 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5037 | PyObject * _resultobj; |
5038 | bool _result; | |
5039 | wxTextCtrl * _arg0; | |
5040 | wxString * _arg1; | |
1d99702e | 5041 | PyObject * _argo0 = 0; |
8ab979d7 | 5042 | PyObject * _obj1 = 0; |
efc5f224 | 5043 | char *_kwnames[] = { "self","filename", NULL }; |
8ab979d7 RD |
5044 | |
5045 | self = self; | |
efc5f224 | 5046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5047 | return NULL; |
1d99702e RD |
5048 | if (_argo0) { |
5049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
5052 | return NULL; | |
5053 | } | |
5054 | } | |
5055 | { | |
185d7c3e RD |
5056 | #if PYTHON_API_VERSION >= 1009 |
5057 | char* tmpPtr; int tmpSize; | |
5058 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5059 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5060 | return NULL; |
5061 | } | |
5062 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5063 | return NULL; | |
5064 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5065 | #else | |
8ab979d7 RD |
5066 | if (!PyString_Check(_obj1)) { |
5067 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5068 | return NULL; | |
5069 | } | |
185d7c3e RD |
5070 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5071 | #endif | |
8ab979d7 | 5072 | } |
cf694132 RD |
5073 | { |
5074 | wxPy_BEGIN_ALLOW_THREADS; | |
5075 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); | |
5076 | ||
5077 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5078 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5079 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5080 | { |
5081 | if (_obj1) | |
5082 | delete _arg1; | |
5083 | } | |
5084 | return _resultobj; | |
5085 | } | |
5086 | ||
5087 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
efc5f224 | 5088 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5089 | PyObject * _resultobj; |
5090 | wxTextCtrl * _arg0; | |
5091 | bool _arg1; | |
1d99702e | 5092 | PyObject * _argo0 = 0; |
8ab979d7 | 5093 | int tempbool1; |
efc5f224 | 5094 | char *_kwnames[] = { "self","editable", NULL }; |
8ab979d7 RD |
5095 | |
5096 | self = self; | |
efc5f224 | 5097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5098 | return NULL; |
1d99702e RD |
5099 | if (_argo0) { |
5100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
5103 | return NULL; | |
5104 | } | |
5105 | } | |
5106 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5107 | { |
5108 | wxPy_BEGIN_ALLOW_THREADS; | |
5109 | wxTextCtrl_SetEditable(_arg0,_arg1); | |
5110 | ||
5111 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5112 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5113 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5114 | _resultobj = Py_None; |
5115 | return _resultobj; | |
5116 | } | |
5117 | ||
5118 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
efc5f224 | 5119 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5120 | PyObject * _resultobj; |
5121 | wxTextCtrl * _arg0; | |
5122 | long _arg1; | |
1d99702e | 5123 | PyObject * _argo0 = 0; |
efc5f224 | 5124 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
5125 | |
5126 | self = self; | |
efc5f224 | 5127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5128 | return NULL; |
1d99702e RD |
5129 | if (_argo0) { |
5130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
5133 | return NULL; | |
5134 | } | |
5135 | } | |
cf694132 RD |
5136 | { |
5137 | wxPy_BEGIN_ALLOW_THREADS; | |
5138 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); | |
5139 | ||
5140 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5142 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5143 | _resultobj = Py_None; |
5144 | return _resultobj; | |
5145 | } | |
5146 | ||
5147 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
efc5f224 | 5148 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5149 | PyObject * _resultobj; |
5150 | wxTextCtrl * _arg0; | |
1d99702e | 5151 | PyObject * _argo0 = 0; |
efc5f224 | 5152 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5153 | |
5154 | self = self; | |
efc5f224 | 5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
8ab979d7 | 5156 | return NULL; |
1d99702e RD |
5157 | if (_argo0) { |
5158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
5161 | return NULL; | |
5162 | } | |
5163 | } | |
cf694132 RD |
5164 | { |
5165 | wxPy_BEGIN_ALLOW_THREADS; | |
5166 | wxTextCtrl_SetInsertionPointEnd(_arg0); | |
5167 | ||
5168 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5169 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5170 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5171 | _resultobj = Py_None; |
5172 | return _resultobj; | |
5173 | } | |
5174 | ||
5175 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 5176 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5177 | PyObject * _resultobj; |
5178 | wxTextCtrl * _arg0; | |
5179 | long _arg1; | |
5180 | long _arg2; | |
1d99702e | 5181 | PyObject * _argo0 = 0; |
efc5f224 | 5182 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
5183 | |
5184 | self = self; | |
efc5f224 | 5185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5186 | return NULL; |
1d99702e RD |
5187 | if (_argo0) { |
5188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); |
5191 | return NULL; | |
5192 | } | |
5193 | } | |
cf694132 RD |
5194 | { |
5195 | wxPy_BEGIN_ALLOW_THREADS; | |
5196 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); | |
5197 | ||
5198 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5199 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5200 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5201 | _resultobj = Py_None; |
5202 | return _resultobj; | |
5203 | } | |
5204 | ||
5205 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 5206 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5207 | PyObject * _resultobj; |
5208 | wxTextCtrl * _arg0; | |
5209 | wxString * _arg1; | |
1d99702e | 5210 | PyObject * _argo0 = 0; |
8ab979d7 | 5211 | PyObject * _obj1 = 0; |
efc5f224 | 5212 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
5213 | |
5214 | self = self; | |
efc5f224 | 5215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5216 | return NULL; |
1d99702e RD |
5217 | if (_argo0) { |
5218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
5221 | return NULL; | |
5222 | } | |
5223 | } | |
5224 | { | |
185d7c3e RD |
5225 | #if PYTHON_API_VERSION >= 1009 |
5226 | char* tmpPtr; int tmpSize; | |
5227 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5228 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5229 | return NULL; |
5230 | } | |
5231 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5232 | return NULL; | |
5233 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5234 | #else | |
8ab979d7 RD |
5235 | if (!PyString_Check(_obj1)) { |
5236 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5237 | return NULL; | |
5238 | } | |
185d7c3e RD |
5239 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5240 | #endif | |
8ab979d7 | 5241 | } |
cf694132 RD |
5242 | { |
5243 | wxPy_BEGIN_ALLOW_THREADS; | |
5244 | wxTextCtrl_SetValue(_arg0,*_arg1); | |
5245 | ||
5246 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5247 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5248 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5249 | _resultobj = Py_None; |
5250 | { | |
5251 | if (_obj1) | |
5252 | delete _arg1; | |
5253 | } | |
5254 | return _resultobj; | |
5255 | } | |
5256 | ||
5257 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
efc5f224 | 5258 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5259 | PyObject * _resultobj; |
5260 | wxTextCtrl * _arg0; | |
5261 | long _arg1; | |
1d99702e | 5262 | PyObject * _argo0 = 0; |
efc5f224 | 5263 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
5264 | |
5265 | self = self; | |
efc5f224 | 5266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5267 | return NULL; |
1d99702e RD |
5268 | if (_argo0) { |
5269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); |
5272 | return NULL; | |
5273 | } | |
5274 | } | |
cf694132 RD |
5275 | { |
5276 | wxPy_BEGIN_ALLOW_THREADS; | |
5277 | wxTextCtrl_ShowPosition(_arg0,_arg1); | |
5278 | ||
5279 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5280 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5281 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5282 | _resultobj = Py_None; |
5283 | return _resultobj; | |
5284 | } | |
5285 | ||
5286 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) | |
efc5f224 | 5287 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5288 | PyObject * _resultobj; |
5289 | wxTextCtrl * _arg0; | |
5290 | wxString * _arg1; | |
1d99702e | 5291 | PyObject * _argo0 = 0; |
8ab979d7 | 5292 | PyObject * _obj1 = 0; |
efc5f224 | 5293 | char *_kwnames[] = { "self","text", NULL }; |
8ab979d7 RD |
5294 | |
5295 | self = self; | |
efc5f224 | 5296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5297 | return NULL; |
1d99702e RD |
5298 | if (_argo0) { |
5299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
5302 | return NULL; | |
5303 | } | |
5304 | } | |
5305 | { | |
185d7c3e RD |
5306 | #if PYTHON_API_VERSION >= 1009 |
5307 | char* tmpPtr; int tmpSize; | |
5308 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5309 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5310 | return NULL; |
5311 | } | |
5312 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5313 | return NULL; | |
5314 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5315 | #else | |
8ab979d7 RD |
5316 | if (!PyString_Check(_obj1)) { |
5317 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5318 | return NULL; | |
5319 | } | |
185d7c3e RD |
5320 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5321 | #endif | |
cf694132 RD |
5322 | } |
5323 | { | |
5324 | wxPy_BEGIN_ALLOW_THREADS; | |
5325 | wxTextCtrl_WriteText(_arg0,*_arg1); | |
5326 | ||
5327 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5328 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
5329 | } Py_INCREF(Py_None); |
5330 | _resultobj = Py_None; | |
5331 | { | |
5332 | if (_obj1) | |
5333 | delete _arg1; | |
5334 | } | |
5335 | return _resultobj; | |
5336 | } | |
5337 | ||
5338 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) | |
efc5f224 | 5339 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5340 | PyObject * _resultobj; |
5341 | wxTextCtrl * _arg0; | |
5342 | wxString * _arg1; | |
1d99702e | 5343 | PyObject * _argo0 = 0; |
cf694132 | 5344 | PyObject * _obj1 = 0; |
efc5f224 | 5345 | char *_kwnames[] = { "self","text", NULL }; |
cf694132 RD |
5346 | |
5347 | self = self; | |
efc5f224 | 5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
cf694132 | 5349 | return NULL; |
1d99702e RD |
5350 | if (_argo0) { |
5351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
cf694132 RD |
5353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
5354 | return NULL; | |
5355 | } | |
5356 | } | |
5357 | { | |
185d7c3e RD |
5358 | #if PYTHON_API_VERSION >= 1009 |
5359 | char* tmpPtr; int tmpSize; | |
5360 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5361 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5362 | return NULL; |
5363 | } | |
5364 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5365 | return NULL; | |
5366 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5367 | #else | |
cf694132 RD |
5368 | if (!PyString_Check(_obj1)) { |
5369 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5370 | return NULL; | |
5371 | } | |
185d7c3e RD |
5372 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5373 | #endif | |
8ab979d7 | 5374 | } |
cf694132 RD |
5375 | { |
5376 | wxPy_BEGIN_ALLOW_THREADS; | |
5377 | wxTextCtrl_AppendText(_arg0,*_arg1); | |
5378 | ||
5379 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5381 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5382 | _resultobj = Py_None; |
5383 | { | |
5384 | if (_obj1) | |
5385 | delete _arg1; | |
5386 | } | |
5387 | return _resultobj; | |
5388 | } | |
5389 | ||
5390 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) | |
efc5f224 | 5391 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5392 | PyObject * _resultobj; |
5393 | long _result; | |
5394 | wxTextCtrl * _arg0; | |
5395 | long _arg1; | |
5396 | long _arg2; | |
1d99702e | 5397 | PyObject * _argo0 = 0; |
efc5f224 | 5398 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
5399 | |
5400 | self = self; | |
efc5f224 | 5401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5402 | return NULL; |
1d99702e RD |
5403 | if (_argo0) { |
5404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
5406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
5407 | return NULL; | |
5408 | } | |
5409 | } | |
cf694132 RD |
5410 | { |
5411 | wxPy_BEGIN_ALLOW_THREADS; | |
5412 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); | |
5413 | ||
5414 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5415 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5416 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5417 | return _resultobj; |
5418 | } | |
5419 | ||
c127177f | 5420 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) |
efc5f224 | 5421 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5422 | PyObject * _resultobj; |
5423 | bool _result; | |
5424 | wxTextCtrl * _arg0; | |
1d99702e | 5425 | PyObject * _argo0 = 0; |
efc5f224 | 5426 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5427 | |
5428 | self = self; | |
efc5f224 | 5429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) |
c127177f | 5430 | return NULL; |
1d99702e RD |
5431 | if (_argo0) { |
5432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); |
5435 | return NULL; | |
5436 | } | |
5437 | } | |
5438 | { | |
5439 | wxPy_BEGIN_ALLOW_THREADS; | |
5440 | _result = (bool )wxTextCtrl_CanCopy(_arg0); | |
5441 | ||
5442 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5443 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
5444 | } _resultobj = Py_BuildValue("i",_result); |
5445 | return _resultobj; | |
5446 | } | |
5447 | ||
5448 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
efc5f224 | 5449 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5450 | PyObject * _resultobj; |
5451 | bool _result; | |
5452 | wxTextCtrl * _arg0; | |
1d99702e | 5453 | PyObject * _argo0 = 0; |
efc5f224 | 5454 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5455 | |
5456 | self = self; | |
efc5f224 | 5457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) |
c127177f | 5458 | return NULL; |
1d99702e RD |
5459 | if (_argo0) { |
5460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); |
5463 | return NULL; | |
5464 | } | |
5465 | } | |
5466 | { | |
5467 | wxPy_BEGIN_ALLOW_THREADS; | |
5468 | _result = (bool )wxTextCtrl_CanCut(_arg0); | |
5469 | ||
5470 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5471 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
5472 | } _resultobj = Py_BuildValue("i",_result); |
5473 | return _resultobj; | |
5474 | } | |
5475 | ||
5476 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
efc5f224 | 5477 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5478 | PyObject * _resultobj; |
5479 | bool _result; | |
5480 | wxTextCtrl * _arg0; | |
1d99702e | 5481 | PyObject * _argo0 = 0; |
efc5f224 | 5482 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5483 | |
5484 | self = self; | |
efc5f224 | 5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) |
c127177f | 5486 | return NULL; |
1d99702e RD |
5487 | if (_argo0) { |
5488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); |
5491 | return NULL; | |
5492 | } | |
5493 | } | |
5494 | { | |
5495 | wxPy_BEGIN_ALLOW_THREADS; | |
5496 | _result = (bool )wxTextCtrl_CanPaste(_arg0); | |
5497 | ||
5498 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5499 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
5500 | } _resultobj = Py_BuildValue("i",_result); |
5501 | return _resultobj; | |
5502 | } | |
5503 | ||
5504 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) | |
efc5f224 | 5505 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5506 | PyObject * _resultobj; |
5507 | bool _result; | |
5508 | wxTextCtrl * _arg0; | |
1d99702e | 5509 | PyObject * _argo0 = 0; |
efc5f224 | 5510 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5511 | |
5512 | self = self; | |
efc5f224 | 5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
c127177f | 5514 | return NULL; |
1d99702e RD |
5515 | if (_argo0) { |
5516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
5519 | return NULL; | |
5520 | } | |
5521 | } | |
5522 | { | |
5523 | wxPy_BEGIN_ALLOW_THREADS; | |
5524 | _result = (bool )wxTextCtrl_CanRedo(_arg0); | |
5525 | ||
5526 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5527 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
5528 | } _resultobj = Py_BuildValue("i",_result); |
5529 | return _resultobj; | |
5530 | } | |
5531 | ||
5532 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) | |
efc5f224 | 5533 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5534 | PyObject * _resultobj; |
5535 | bool _result; | |
5536 | wxTextCtrl * _arg0; | |
1d99702e | 5537 | PyObject * _argo0 = 0; |
efc5f224 | 5538 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5539 | |
5540 | self = self; | |
efc5f224 | 5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
c127177f | 5542 | return NULL; |
1d99702e RD |
5543 | if (_argo0) { |
5544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
5547 | return NULL; | |
5548 | } | |
5549 | } | |
5550 | { | |
5551 | wxPy_BEGIN_ALLOW_THREADS; | |
5552 | _result = (bool )wxTextCtrl_CanUndo(_arg0); | |
5553 | ||
5554 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5555 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
5556 | } _resultobj = Py_BuildValue("i",_result); |
5557 | return _resultobj; | |
5558 | } | |
5559 | ||
5560 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 5561 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5562 | PyObject * _resultobj; |
5563 | wxTextCtrl * _arg0; | |
5564 | long * _arg1; | |
5565 | long temp; | |
5566 | long * _arg2; | |
5567 | long temp0; | |
1d99702e | 5568 | PyObject * _argo0 = 0; |
efc5f224 | 5569 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5570 | |
5571 | self = self; | |
5572 | { | |
5573 | _arg1 = &temp; | |
5574 | } | |
5575 | { | |
5576 | _arg2 = &temp0; | |
5577 | } | |
efc5f224 | 5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) |
c127177f | 5579 | return NULL; |
1d99702e RD |
5580 | if (_argo0) { |
5581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
5584 | return NULL; | |
5585 | } | |
5586 | } | |
5587 | { | |
5588 | wxPy_BEGIN_ALLOW_THREADS; | |
5589 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); | |
5590 | ||
5591 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5592 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
5593 | } Py_INCREF(Py_None); |
5594 | _resultobj = Py_None; | |
5595 | { | |
5596 | PyObject *o; | |
5597 | o = PyInt_FromLong((long) (*_arg1)); | |
5598 | _resultobj = t_output_helper(_resultobj, o); | |
5599 | } | |
5600 | { | |
5601 | PyObject *o; | |
5602 | o = PyInt_FromLong((long) (*_arg2)); | |
5603 | _resultobj = t_output_helper(_resultobj, o); | |
5604 | } | |
5605 | return _resultobj; | |
5606 | } | |
5607 | ||
5608 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) | |
efc5f224 | 5609 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
5610 | PyObject * _resultobj; |
5611 | bool _result; | |
5612 | wxTextCtrl * _arg0; | |
1d99702e | 5613 | PyObject * _argo0 = 0; |
efc5f224 | 5614 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
5615 | |
5616 | self = self; | |
efc5f224 | 5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
c127177f | 5618 | return NULL; |
1d99702e RD |
5619 | if (_argo0) { |
5620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
5622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
5623 | return NULL; | |
5624 | } | |
5625 | } | |
5626 | { | |
5627 | wxPy_BEGIN_ALLOW_THREADS; | |
5628 | _result = (bool )wxTextCtrl_IsEditable(_arg0); | |
5629 | ||
5630 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5631 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
5632 | } _resultobj = Py_BuildValue("i",_result); |
5633 | return _resultobj; | |
5634 | } | |
5635 | ||
b1462dfa RD |
5636 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
5637 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5638 | PyObject * _resultobj; | |
5639 | wxTextCtrl * _arg0; | |
5640 | PyObject * _argo0 = 0; | |
5641 | char *_kwnames[] = { "self", NULL }; | |
5642 | ||
5643 | self = self; | |
5644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) | |
5645 | return NULL; | |
5646 | if (_argo0) { | |
5647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
5649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); | |
5650 | return NULL; | |
5651 | } | |
5652 | } | |
5653 | { | |
5654 | wxPy_BEGIN_ALLOW_THREADS; | |
5655 | wxTextCtrl_Undo(_arg0); | |
5656 | ||
5657 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5658 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5659 | } Py_INCREF(Py_None); |
5660 | _resultobj = Py_None; | |
5661 | return _resultobj; | |
5662 | } | |
5663 | ||
5664 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) | |
5665 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5666 | PyObject * _resultobj; | |
5667 | wxTextCtrl * _arg0; | |
5668 | PyObject * _argo0 = 0; | |
5669 | char *_kwnames[] = { "self", NULL }; | |
5670 | ||
5671 | self = self; | |
5672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) | |
5673 | return NULL; | |
5674 | if (_argo0) { | |
5675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
5677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); | |
5678 | return NULL; | |
5679 | } | |
5680 | } | |
5681 | { | |
5682 | wxPy_BEGIN_ALLOW_THREADS; | |
5683 | wxTextCtrl_Redo(_arg0); | |
5684 | ||
5685 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5686 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5687 | } Py_INCREF(Py_None); |
5688 | _resultobj = Py_None; | |
5689 | return _resultobj; | |
5690 | } | |
5691 | ||
5692 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { | |
5693 | self->AppendText(text + '\n'); | |
5694 | } | |
5695 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5696 | PyObject * _resultobj; | |
5697 | wxTextCtrl * _arg0; | |
5698 | wxString * _arg1; | |
5699 | PyObject * _argo0 = 0; | |
5700 | PyObject * _obj1 = 0; | |
5701 | char *_kwnames[] = { "self","text", NULL }; | |
5702 | ||
5703 | self = self; | |
5704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
5705 | return NULL; | |
5706 | if (_argo0) { | |
5707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
5709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
5710 | return NULL; | |
5711 | } | |
5712 | } | |
5713 | { | |
185d7c3e RD |
5714 | #if PYTHON_API_VERSION >= 1009 |
5715 | char* tmpPtr; int tmpSize; | |
5716 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5717 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5718 | return NULL; |
5719 | } | |
5720 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5721 | return NULL; | |
5722 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5723 | #else | |
b1462dfa RD |
5724 | if (!PyString_Check(_obj1)) { |
5725 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5726 | return NULL; | |
5727 | } | |
185d7c3e RD |
5728 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5729 | #endif | |
b1462dfa RD |
5730 | } |
5731 | { | |
5732 | wxPy_BEGIN_ALLOW_THREADS; | |
5733 | wxTextCtrl_write(_arg0,*_arg1); | |
5734 | ||
5735 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5736 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5737 | } Py_INCREF(Py_None); |
5738 | _resultobj = Py_None; | |
5739 | { | |
5740 | if (_obj1) | |
5741 | delete _arg1; | |
5742 | } | |
5743 | return _resultobj; | |
5744 | } | |
5745 | ||
8ab979d7 RD |
5746 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
5747 | wxScrollBar *src; | |
5748 | wxControl *dest; | |
5749 | src = (wxScrollBar *) ptr; | |
5750 | dest = (wxControl *) src; | |
5751 | return (void *) dest; | |
5752 | } | |
5753 | ||
5754 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
5755 | wxScrollBar *src; | |
5756 | wxWindow *dest; | |
5757 | src = (wxScrollBar *) ptr; | |
5758 | dest = (wxWindow *) src; | |
5759 | return (void *) dest; | |
5760 | } | |
5761 | ||
5762 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
5763 | wxScrollBar *src; | |
5764 | wxEvtHandler *dest; | |
5765 | src = (wxScrollBar *) ptr; | |
5766 | dest = (wxEvtHandler *) src; | |
5767 | return (void *) dest; | |
5768 | } | |
5769 | ||
9416aa89 RD |
5770 | static void *SwigwxScrollBarTowxObject(void *ptr) { |
5771 | wxScrollBar *src; | |
5772 | wxObject *dest; | |
5773 | src = (wxScrollBar *) ptr; | |
5774 | dest = (wxObject *) src; | |
5775 | return (void *) dest; | |
5776 | } | |
5777 | ||
8ab979d7 | 5778 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5779 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5780 | PyObject * _resultobj; |
5781 | wxScrollBar * _result; | |
5782 | wxWindow * _arg0; | |
1d99702e | 5783 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
5784 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5785 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 5786 | long _arg4 = (long ) wxSB_HORIZONTAL; |
e508a2b6 | 5787 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
5788 | char * _arg6 = (char *) "scrollBar"; |
5789 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5790 | wxPoint temp; |
5791 | PyObject * _obj2 = 0; | |
5792 | wxSize temp0; | |
5793 | PyObject * _obj3 = 0; | |
1d99702e | 5794 | PyObject * _argo5 = 0; |
efc5f224 | 5795 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
5796 | char _ptemp[128]; |
5797 | ||
5798 | self = self; | |
2f90df85 | 5799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 5800 | return NULL; |
1d99702e RD |
5801 | if (_argo0) { |
5802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); |
5805 | return NULL; | |
5806 | } | |
5807 | } | |
2f90df85 RD |
5808 | if (_obj2) |
5809 | { | |
5810 | _arg2 = &temp; | |
5811 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5812 | return NULL; |
2f90df85 RD |
5813 | } |
5814 | if (_obj3) | |
5815 | { | |
5816 | _arg3 = &temp0; | |
5817 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5818 | return NULL; |
2f90df85 | 5819 | } |
1d99702e RD |
5820 | if (_argo5) { |
5821 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5822 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
5823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); |
5824 | return NULL; | |
5825 | } | |
5826 | } | |
cf694132 RD |
5827 | { |
5828 | wxPy_BEGIN_ALLOW_THREADS; | |
5829 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
5830 | ||
5831 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5832 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5833 | } if (_result) { |
5834 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
5835 | _resultobj = Py_BuildValue("s",_ptemp); | |
5836 | } else { | |
5837 | Py_INCREF(Py_None); | |
5838 | _resultobj = Py_None; | |
5839 | } | |
8ab979d7 RD |
5840 | return _resultobj; |
5841 | } | |
5842 | ||
5843 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) | |
efc5f224 | 5844 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5845 | PyObject * _resultobj; |
5846 | int _result; | |
5847 | wxScrollBar * _arg0; | |
1d99702e | 5848 | PyObject * _argo0 = 0; |
efc5f224 | 5849 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5850 | |
5851 | self = self; | |
efc5f224 | 5852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) |
8ab979d7 | 5853 | return NULL; |
1d99702e RD |
5854 | if (_argo0) { |
5855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
5857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); |
5858 | return NULL; | |
5859 | } | |
5860 | } | |
cf694132 RD |
5861 | { |
5862 | wxPy_BEGIN_ALLOW_THREADS; | |
5863 | _result = (int )wxScrollBar_GetRange(_arg0); | |
5864 | ||
5865 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5866 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5867 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5868 | return _resultobj; |
5869 | } | |
5870 | ||
5871 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
efc5f224 | 5872 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5873 | PyObject * _resultobj; |
5874 | int _result; | |
5875 | wxScrollBar * _arg0; | |
1d99702e | 5876 | PyObject * _argo0 = 0; |
efc5f224 | 5877 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5878 | |
5879 | self = self; | |
efc5f224 | 5880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) |
8ab979d7 | 5881 | return NULL; |
1d99702e RD |
5882 | if (_argo0) { |
5883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
5885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); |
5886 | return NULL; | |
5887 | } | |
5888 | } | |
cf694132 RD |
5889 | { |
5890 | wxPy_BEGIN_ALLOW_THREADS; | |
5891 | _result = (int )wxScrollBar_GetPageSize(_arg0); | |
5892 | ||
5893 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5894 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5895 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5896 | return _resultobj; |
5897 | } | |
5898 | ||
b8b8dda7 | 5899 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) |
efc5f224 | 5900 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5901 | PyObject * _resultobj; |
5902 | int _result; | |
5903 | wxScrollBar * _arg0; | |
1d99702e | 5904 | PyObject * _argo0 = 0; |
efc5f224 | 5905 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5906 | |
5907 | self = self; | |
efc5f224 | 5908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) |
8ab979d7 | 5909 | return NULL; |
1d99702e RD |
5910 | if (_argo0) { |
5911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
b8b8dda7 | 5913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); |
8ab979d7 RD |
5914 | return NULL; |
5915 | } | |
5916 | } | |
cf694132 RD |
5917 | { |
5918 | wxPy_BEGIN_ALLOW_THREADS; | |
5919 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); | |
5920 | ||
5921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5922 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5923 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5924 | return _resultobj; |
5925 | } | |
5926 | ||
5927 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
efc5f224 | 5928 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5929 | PyObject * _resultobj; |
5930 | int _result; | |
5931 | wxScrollBar * _arg0; | |
1d99702e | 5932 | PyObject * _argo0 = 0; |
efc5f224 | 5933 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5934 | |
5935 | self = self; | |
efc5f224 | 5936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) |
8ab979d7 | 5937 | return NULL; |
1d99702e RD |
5938 | if (_argo0) { |
5939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
5941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); |
5942 | return NULL; | |
5943 | } | |
5944 | } | |
cf694132 RD |
5945 | { |
5946 | wxPy_BEGIN_ALLOW_THREADS; | |
5947 | _result = (int )wxScrollBar_GetThumbSize(_arg0); | |
5948 | ||
5949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5950 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5951 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5952 | return _resultobj; |
5953 | } | |
5954 | ||
b8b8dda7 | 5955 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
efc5f224 | 5956 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5957 | PyObject * _resultobj; |
5958 | wxScrollBar * _arg0; | |
5959 | int _arg1; | |
1d99702e | 5960 | PyObject * _argo0 = 0; |
efc5f224 | 5961 | char *_kwnames[] = { "self","viewStart", NULL }; |
8ab979d7 RD |
5962 | |
5963 | self = self; | |
efc5f224 | 5964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5965 | return NULL; |
1d99702e RD |
5966 | if (_argo0) { |
5967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
b8b8dda7 | 5969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); |
8ab979d7 RD |
5970 | return NULL; |
5971 | } | |
5972 | } | |
cf694132 RD |
5973 | { |
5974 | wxPy_BEGIN_ALLOW_THREADS; | |
5975 | wxScrollBar_SetThumbPosition(_arg0,_arg1); | |
5976 | ||
5977 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5978 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5979 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5980 | _resultobj = Py_None; |
5981 | return _resultobj; | |
5982 | } | |
5983 | ||
5984 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 5985 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5986 | PyObject * _resultobj; |
5987 | wxScrollBar * _arg0; | |
5988 | int _arg1; | |
5989 | int _arg2; | |
5990 | int _arg3; | |
5991 | int _arg4; | |
1d99702e RD |
5992 | bool _arg5 = (bool ) TRUE; |
5993 | PyObject * _argo0 = 0; | |
5994 | int tempbool5 = (int) TRUE; | |
efc5f224 | 5995 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; |
8ab979d7 RD |
5996 | |
5997 | self = self; | |
efc5f224 | 5998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
8ab979d7 | 5999 | return NULL; |
1d99702e RD |
6000 | if (_argo0) { |
6001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
6003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); |
6004 | return NULL; | |
6005 | } | |
6006 | } | |
6007 | _arg5 = (bool ) tempbool5; | |
cf694132 RD |
6008 | { |
6009 | wxPy_BEGIN_ALLOW_THREADS; | |
6010 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6011 | ||
6012 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6013 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6014 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6015 | _resultobj = Py_None; |
6016 | return _resultobj; | |
6017 | } | |
6018 | ||
6019 | static void *SwigwxSpinButtonTowxControl(void *ptr) { | |
6020 | wxSpinButton *src; | |
6021 | wxControl *dest; | |
6022 | src = (wxSpinButton *) ptr; | |
6023 | dest = (wxControl *) src; | |
6024 | return (void *) dest; | |
6025 | } | |
6026 | ||
6027 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
6028 | wxSpinButton *src; | |
6029 | wxWindow *dest; | |
6030 | src = (wxSpinButton *) ptr; | |
6031 | dest = (wxWindow *) src; | |
6032 | return (void *) dest; | |
6033 | } | |
6034 | ||
6035 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
6036 | wxSpinButton *src; | |
6037 | wxEvtHandler *dest; | |
6038 | src = (wxSpinButton *) ptr; | |
6039 | dest = (wxEvtHandler *) src; | |
6040 | return (void *) dest; | |
6041 | } | |
6042 | ||
9416aa89 RD |
6043 | static void *SwigwxSpinButtonTowxObject(void *ptr) { |
6044 | wxSpinButton *src; | |
6045 | wxObject *dest; | |
6046 | src = (wxSpinButton *) ptr; | |
6047 | dest = (wxObject *) src; | |
6048 | return (void *) dest; | |
6049 | } | |
6050 | ||
8ab979d7 | 6051 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6052 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6053 | PyObject * _resultobj; |
6054 | wxSpinButton * _result; | |
6055 | wxWindow * _arg0; | |
1d99702e | 6056 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6057 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6058 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6059 | long _arg4 = (long ) wxSP_HORIZONTAL; |
6060 | char * _arg5 = (char *) "spinButton"; | |
6061 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6062 | wxPoint temp; |
6063 | PyObject * _obj2 = 0; | |
6064 | wxSize temp0; | |
6065 | PyObject * _obj3 = 0; | |
efc5f224 | 6066 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6067 | char _ptemp[128]; |
6068 | ||
6069 | self = self; | |
2f90df85 | 6070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6071 | return NULL; |
1d99702e RD |
6072 | if (_argo0) { |
6073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); |
6076 | return NULL; | |
6077 | } | |
6078 | } | |
2f90df85 RD |
6079 | if (_obj2) |
6080 | { | |
6081 | _arg2 = &temp; | |
6082 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6083 | return NULL; |
2f90df85 RD |
6084 | } |
6085 | if (_obj3) | |
6086 | { | |
6087 | _arg3 = &temp0; | |
6088 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6089 | return NULL; |
2f90df85 | 6090 | } |
cf694132 RD |
6091 | { |
6092 | wxPy_BEGIN_ALLOW_THREADS; | |
6093 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6094 | ||
6095 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6096 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6097 | } if (_result) { |
6098 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
6099 | _resultobj = Py_BuildValue("s",_ptemp); | |
6100 | } else { | |
6101 | Py_INCREF(Py_None); | |
6102 | _resultobj = Py_None; | |
6103 | } | |
8ab979d7 RD |
6104 | return _resultobj; |
6105 | } | |
6106 | ||
6107 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) | |
efc5f224 | 6108 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6109 | PyObject * _resultobj; |
6110 | int _result; | |
6111 | wxSpinButton * _arg0; | |
1d99702e | 6112 | PyObject * _argo0 = 0; |
efc5f224 | 6113 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6114 | |
6115 | self = self; | |
efc5f224 | 6116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) |
8ab979d7 | 6117 | return NULL; |
1d99702e RD |
6118 | if (_argo0) { |
6119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
6121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); |
6122 | return NULL; | |
6123 | } | |
6124 | } | |
cf694132 RD |
6125 | { |
6126 | wxPy_BEGIN_ALLOW_THREADS; | |
6127 | _result = (int )wxSpinButton_GetMax(_arg0); | |
6128 | ||
6129 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6130 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6131 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6132 | return _resultobj; |
6133 | } | |
6134 | ||
6135 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
efc5f224 | 6136 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6137 | PyObject * _resultobj; |
6138 | int _result; | |
6139 | wxSpinButton * _arg0; | |
1d99702e | 6140 | PyObject * _argo0 = 0; |
efc5f224 | 6141 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6142 | |
6143 | self = self; | |
efc5f224 | 6144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) |
8ab979d7 | 6145 | return NULL; |
1d99702e RD |
6146 | if (_argo0) { |
6147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
6149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); |
6150 | return NULL; | |
6151 | } | |
6152 | } | |
cf694132 RD |
6153 | { |
6154 | wxPy_BEGIN_ALLOW_THREADS; | |
6155 | _result = (int )wxSpinButton_GetMin(_arg0); | |
6156 | ||
6157 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6158 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6159 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6160 | return _resultobj; |
6161 | } | |
6162 | ||
6163 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 6164 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6165 | PyObject * _resultobj; |
6166 | int _result; | |
6167 | wxSpinButton * _arg0; | |
1d99702e | 6168 | PyObject * _argo0 = 0; |
efc5f224 | 6169 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6170 | |
6171 | self = self; | |
efc5f224 | 6172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 6173 | return NULL; |
1d99702e RD |
6174 | if (_argo0) { |
6175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
6177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); |
6178 | return NULL; | |
6179 | } | |
6180 | } | |
cf694132 RD |
6181 | { |
6182 | wxPy_BEGIN_ALLOW_THREADS; | |
6183 | _result = (int )wxSpinButton_GetValue(_arg0); | |
6184 | ||
6185 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6186 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6187 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6188 | return _resultobj; |
6189 | } | |
6190 | ||
6191 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 6192 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6193 | PyObject * _resultobj; |
6194 | wxSpinButton * _arg0; | |
6195 | int _arg1; | |
6196 | int _arg2; | |
1d99702e | 6197 | PyObject * _argo0 = 0; |
efc5f224 | 6198 | char *_kwnames[] = { "self","min","max", NULL }; |
8ab979d7 RD |
6199 | |
6200 | self = self; | |
efc5f224 | 6201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6202 | return NULL; |
1d99702e RD |
6203 | if (_argo0) { |
6204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
6206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); |
6207 | return NULL; | |
6208 | } | |
6209 | } | |
cf694132 RD |
6210 | { |
6211 | wxPy_BEGIN_ALLOW_THREADS; | |
6212 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); | |
6213 | ||
6214 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6215 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6216 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6217 | _resultobj = Py_None; |
6218 | return _resultobj; | |
6219 | } | |
6220 | ||
6221 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 6222 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6223 | PyObject * _resultobj; |
6224 | wxSpinButton * _arg0; | |
6225 | int _arg1; | |
1d99702e | 6226 | PyObject * _argo0 = 0; |
efc5f224 | 6227 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
6228 | |
6229 | self = self; | |
efc5f224 | 6230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6231 | return NULL; |
1d99702e RD |
6232 | if (_argo0) { |
6233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
6235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); |
6236 | return NULL; | |
6237 | } | |
6238 | } | |
cf694132 RD |
6239 | { |
6240 | wxPy_BEGIN_ALLOW_THREADS; | |
6241 | wxSpinButton_SetValue(_arg0,_arg1); | |
6242 | ||
6243 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6244 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6245 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6246 | _resultobj = Py_None; |
6247 | return _resultobj; | |
6248 | } | |
6249 | ||
6250 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { | |
6251 | wxStaticBitmap *src; | |
6252 | wxControl *dest; | |
6253 | src = (wxStaticBitmap *) ptr; | |
6254 | dest = (wxControl *) src; | |
6255 | return (void *) dest; | |
6256 | } | |
6257 | ||
6258 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
6259 | wxStaticBitmap *src; | |
6260 | wxWindow *dest; | |
6261 | src = (wxStaticBitmap *) ptr; | |
6262 | dest = (wxWindow *) src; | |
6263 | return (void *) dest; | |
6264 | } | |
6265 | ||
6266 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
6267 | wxStaticBitmap *src; | |
6268 | wxEvtHandler *dest; | |
6269 | src = (wxStaticBitmap *) ptr; | |
6270 | dest = (wxEvtHandler *) src; | |
6271 | return (void *) dest; | |
6272 | } | |
6273 | ||
9416aa89 RD |
6274 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { |
6275 | wxStaticBitmap *src; | |
6276 | wxObject *dest; | |
6277 | src = (wxStaticBitmap *) ptr; | |
6278 | dest = (wxObject *) src; | |
6279 | return (void *) dest; | |
6280 | } | |
6281 | ||
8ab979d7 | 6282 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6283 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6284 | PyObject * _resultobj; |
6285 | wxStaticBitmap * _result; | |
6286 | wxWindow * _arg0; | |
6287 | wxWindowID _arg1; | |
6288 | wxBitmap * _arg2; | |
e508a2b6 RD |
6289 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6290 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6291 | long _arg5 = (long ) 0; |
6292 | char * _arg6 = (char *) "staticBitmap"; | |
6293 | PyObject * _argo0 = 0; | |
6294 | PyObject * _argo2 = 0; | |
2f90df85 RD |
6295 | wxPoint temp; |
6296 | PyObject * _obj3 = 0; | |
6297 | wxSize temp0; | |
6298 | PyObject * _obj4 = 0; | |
efc5f224 | 6299 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; |
8ab979d7 RD |
6300 | char _ptemp[128]; |
6301 | ||
6302 | self = self; | |
2f90df85 | 6303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 6304 | return NULL; |
1d99702e RD |
6305 | if (_argo0) { |
6306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); |
6309 | return NULL; | |
6310 | } | |
6311 | } | |
1d99702e RD |
6312 | if (_argo2) { |
6313 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6314 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8ab979d7 RD |
6315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); |
6316 | return NULL; | |
6317 | } | |
6318 | } | |
2f90df85 RD |
6319 | if (_obj3) |
6320 | { | |
6321 | _arg3 = &temp; | |
6322 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 6323 | return NULL; |
2f90df85 RD |
6324 | } |
6325 | if (_obj4) | |
6326 | { | |
6327 | _arg4 = &temp0; | |
6328 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 6329 | return NULL; |
2f90df85 | 6330 | } |
cf694132 RD |
6331 | { |
6332 | wxPy_BEGIN_ALLOW_THREADS; | |
6333 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
6334 | ||
6335 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6336 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6337 | } if (_result) { |
6338 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
6339 | _resultobj = Py_BuildValue("s",_ptemp); | |
6340 | } else { | |
6341 | Py_INCREF(Py_None); | |
6342 | _resultobj = Py_None; | |
6343 | } | |
8ab979d7 RD |
6344 | return _resultobj; |
6345 | } | |
6346 | ||
6347 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
efc5f224 | 6348 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6349 | PyObject * _resultobj; |
6350 | wxBitmap * _result; | |
6351 | wxStaticBitmap * _arg0; | |
1d99702e | 6352 | PyObject * _argo0 = 0; |
efc5f224 | 6353 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6354 | char _ptemp[128]; |
6355 | ||
6356 | self = self; | |
efc5f224 | 6357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) |
8ab979d7 | 6358 | return NULL; |
1d99702e RD |
6359 | if (_argo0) { |
6360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8ab979d7 RD |
6362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); |
6363 | return NULL; | |
6364 | } | |
6365 | } | |
cf694132 RD |
6366 | { |
6367 | wxPy_BEGIN_ALLOW_THREADS; | |
6368 | const wxBitmap & _result_ref = wxStaticBitmap_GetBitmap(_arg0); | |
8ab979d7 | 6369 | _result = (wxBitmap *) &_result_ref; |
cf694132 RD |
6370 | |
6371 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6372 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6373 | } if (_result) { |
6374 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6375 | _resultobj = Py_BuildValue("s",_ptemp); | |
6376 | } else { | |
6377 | Py_INCREF(Py_None); | |
6378 | _resultobj = Py_None; | |
6379 | } | |
8ab979d7 RD |
6380 | return _resultobj; |
6381 | } | |
6382 | ||
6383 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
efc5f224 | 6384 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6385 | PyObject * _resultobj; |
6386 | wxStaticBitmap * _arg0; | |
6387 | wxBitmap * _arg1; | |
1d99702e RD |
6388 | PyObject * _argo0 = 0; |
6389 | PyObject * _argo1 = 0; | |
efc5f224 | 6390 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
6391 | |
6392 | self = self; | |
efc5f224 | 6393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6394 | return NULL; |
1d99702e RD |
6395 | if (_argo0) { |
6396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8ab979d7 RD |
6398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); |
6399 | return NULL; | |
6400 | } | |
6401 | } | |
1d99702e RD |
6402 | if (_argo1) { |
6403 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6404 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
6405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); |
6406 | return NULL; | |
6407 | } | |
6408 | } | |
cf694132 RD |
6409 | { |
6410 | wxPy_BEGIN_ALLOW_THREADS; | |
6411 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); | |
6412 | ||
6413 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6414 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6415 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6416 | _resultobj = Py_None; |
6417 | return _resultobj; | |
6418 | } | |
6419 | ||
8bf5d46e | 6420 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
efc5f224 | 6421 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
6422 | PyObject * _resultobj; |
6423 | wxStaticBitmap * _arg0; | |
6424 | wxIcon * _arg1; | |
1d99702e RD |
6425 | PyObject * _argo0 = 0; |
6426 | PyObject * _argo1 = 0; | |
efc5f224 | 6427 | char *_kwnames[] = { "self","icon", NULL }; |
8bf5d46e RD |
6428 | |
6429 | self = self; | |
efc5f224 | 6430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) |
8bf5d46e | 6431 | return NULL; |
1d99702e RD |
6432 | if (_argo0) { |
6433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8bf5d46e RD |
6435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); |
6436 | return NULL; | |
6437 | } | |
6438 | } | |
1d99702e RD |
6439 | if (_argo1) { |
6440 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6441 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8bf5d46e RD |
6442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); |
6443 | return NULL; | |
6444 | } | |
6445 | } | |
6446 | { | |
6447 | wxPy_BEGIN_ALLOW_THREADS; | |
6448 | wxStaticBitmap_SetIcon(_arg0,*_arg1); | |
6449 | ||
6450 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6451 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
6452 | } Py_INCREF(Py_None); |
6453 | _resultobj = Py_None; | |
6454 | return _resultobj; | |
6455 | } | |
6456 | ||
8ab979d7 RD |
6457 | static void *SwigwxRadioBoxTowxControl(void *ptr) { |
6458 | wxRadioBox *src; | |
6459 | wxControl *dest; | |
6460 | src = (wxRadioBox *) ptr; | |
6461 | dest = (wxControl *) src; | |
6462 | return (void *) dest; | |
6463 | } | |
6464 | ||
6465 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
6466 | wxRadioBox *src; | |
6467 | wxWindow *dest; | |
6468 | src = (wxRadioBox *) ptr; | |
6469 | dest = (wxWindow *) src; | |
6470 | return (void *) dest; | |
6471 | } | |
6472 | ||
6473 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
6474 | wxRadioBox *src; | |
6475 | wxEvtHandler *dest; | |
6476 | src = (wxRadioBox *) ptr; | |
6477 | dest = (wxEvtHandler *) src; | |
6478 | return (void *) dest; | |
6479 | } | |
6480 | ||
9416aa89 RD |
6481 | static void *SwigwxRadioBoxTowxObject(void *ptr) { |
6482 | wxRadioBox *src; | |
6483 | wxObject *dest; | |
6484 | src = (wxRadioBox *) ptr; | |
6485 | dest = (wxObject *) src; | |
6486 | return (void *) dest; | |
6487 | } | |
6488 | ||
8ab979d7 | 6489 | #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 | 6490 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6491 | PyObject * _resultobj; |
6492 | wxRadioBox * _result; | |
6493 | wxWindow * _arg0; | |
6494 | wxWindowID _arg1; | |
6495 | wxString * _arg2; | |
e508a2b6 RD |
6496 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6497 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6498 | int _arg5 = (int ) 0; |
6499 | wxString * _arg6 = (wxString *) NULL; | |
6500 | int _arg7 = (int ) 0; | |
6501 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
e508a2b6 | 6502 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6503 | char * _arg10 = (char *) "radioBox"; |
6504 | PyObject * _argo0 = 0; | |
8ab979d7 | 6505 | PyObject * _obj2 = 0; |
2f90df85 RD |
6506 | wxPoint temp; |
6507 | PyObject * _obj3 = 0; | |
6508 | wxSize temp0; | |
6509 | PyObject * _obj4 = 0; | |
8ab979d7 | 6510 | PyObject * _obj6 = 0; |
1d99702e | 6511 | PyObject * _argo9 = 0; |
eec92d76 | 6512 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
8ab979d7 RD |
6513 | char _ptemp[128]; |
6514 | ||
6515 | self = self; | |
2f90df85 | 6516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10)) |
8ab979d7 | 6517 | return NULL; |
1d99702e RD |
6518 | if (_argo0) { |
6519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); |
6522 | return NULL; | |
6523 | } | |
6524 | } | |
6525 | { | |
185d7c3e RD |
6526 | #if PYTHON_API_VERSION >= 1009 |
6527 | char* tmpPtr; int tmpSize; | |
6528 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6529 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6530 | return NULL; |
6531 | } | |
6532 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6533 | return NULL; | |
6534 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6535 | #else | |
8ab979d7 RD |
6536 | if (!PyString_Check(_obj2)) { |
6537 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6538 | return NULL; | |
6539 | } | |
185d7c3e RD |
6540 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6541 | #endif | |
8ab979d7 | 6542 | } |
2f90df85 RD |
6543 | if (_obj3) |
6544 | { | |
6545 | _arg3 = &temp; | |
6546 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 6547 | return NULL; |
2f90df85 RD |
6548 | } |
6549 | if (_obj4) | |
6550 | { | |
6551 | _arg4 = &temp0; | |
6552 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 6553 | return NULL; |
2f90df85 | 6554 | } |
8ab979d7 RD |
6555 | if (_obj6) |
6556 | { | |
6557 | _arg6 = wxString_LIST_helper(_obj6); | |
6558 | if (_arg6 == NULL) { | |
6559 | return NULL; | |
6560 | } | |
6561 | } | |
1d99702e RD |
6562 | if (_argo9) { |
6563 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
6564 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
8ab979d7 RD |
6565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); |
6566 | return NULL; | |
6567 | } | |
6568 | } | |
6569 | { | |
cf694132 RD |
6570 | if (_obj6) { |
6571 | _arg5 = PyList_Size(_obj6); | |
6572 | } | |
6573 | else { | |
6574 | _arg5 = 0; | |
6575 | } | |
8ab979d7 | 6576 | } |
cf694132 RD |
6577 | { |
6578 | wxPy_BEGIN_ALLOW_THREADS; | |
6579 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); | |
6580 | ||
6581 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6582 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6583 | } if (_result) { |
6584 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
6585 | _resultobj = Py_BuildValue("s",_ptemp); | |
6586 | } else { | |
6587 | Py_INCREF(Py_None); | |
6588 | _resultobj = Py_None; | |
6589 | } | |
8ab979d7 RD |
6590 | { |
6591 | if (_obj2) | |
6592 | delete _arg2; | |
6593 | } | |
6594 | { | |
6595 | delete [] _arg6; | |
6596 | } | |
6597 | return _resultobj; | |
6598 | } | |
6599 | ||
0699c864 | 6600 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 6601 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6602 | PyObject * _resultobj; |
6603 | wxRadioBox * _arg0; | |
6604 | bool _arg1; | |
1d99702e | 6605 | PyObject * _argo0 = 0; |
8ab979d7 | 6606 | int tempbool1; |
efc5f224 | 6607 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
6608 | |
6609 | self = self; | |
efc5f224 | 6610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 6611 | return NULL; |
1d99702e RD |
6612 | if (_argo0) { |
6613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 6615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); |
8ab979d7 RD |
6616 | return NULL; |
6617 | } | |
6618 | } | |
6619 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
6620 | { |
6621 | wxPy_BEGIN_ALLOW_THREADS; | |
6622 | wxRadioBox_Enable(_arg0,_arg1); | |
6623 | ||
6624 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6625 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6626 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6627 | _resultobj = Py_None; |
6628 | return _resultobj; | |
6629 | } | |
6630 | ||
0699c864 | 6631 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 6632 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6633 | PyObject * _resultobj; |
6634 | wxRadioBox * _arg0; | |
6635 | int _arg1; | |
6636 | bool _arg2; | |
1d99702e | 6637 | PyObject * _argo0 = 0; |
8ab979d7 | 6638 | int tempbool2; |
efc5f224 | 6639 | char *_kwnames[] = { "self","n","enable", NULL }; |
8ab979d7 RD |
6640 | |
6641 | self = self; | |
efc5f224 | 6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 6643 | return NULL; |
1d99702e RD |
6644 | if (_argo0) { |
6645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 6647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); |
8ab979d7 RD |
6648 | return NULL; |
6649 | } | |
6650 | } | |
6651 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6652 | { |
6653 | wxPy_BEGIN_ALLOW_THREADS; | |
6654 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); | |
6655 | ||
6656 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6657 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6658 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6659 | _resultobj = Py_None; |
6660 | return _resultobj; | |
6661 | } | |
6662 | ||
6663 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 6664 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6665 | PyObject * _resultobj; |
6666 | int _result; | |
6667 | wxRadioBox * _arg0; | |
6668 | wxString * _arg1; | |
1d99702e | 6669 | PyObject * _argo0 = 0; |
8ab979d7 | 6670 | PyObject * _obj1 = 0; |
efc5f224 | 6671 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
6672 | |
6673 | self = self; | |
efc5f224 | 6674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6675 | return NULL; |
1d99702e RD |
6676 | if (_argo0) { |
6677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); |
6680 | return NULL; | |
6681 | } | |
6682 | } | |
6683 | { | |
185d7c3e RD |
6684 | #if PYTHON_API_VERSION >= 1009 |
6685 | char* tmpPtr; int tmpSize; | |
6686 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 6687 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6688 | return NULL; |
6689 | } | |
6690 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6691 | return NULL; | |
6692 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6693 | #else | |
8ab979d7 RD |
6694 | if (!PyString_Check(_obj1)) { |
6695 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6696 | return NULL; | |
6697 | } | |
185d7c3e RD |
6698 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6699 | #endif | |
8ab979d7 | 6700 | } |
cf694132 RD |
6701 | { |
6702 | wxPy_BEGIN_ALLOW_THREADS; | |
6703 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); | |
6704 | ||
6705 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6706 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6707 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6708 | { |
6709 | if (_obj1) | |
6710 | delete _arg1; | |
6711 | } | |
6712 | return _resultobj; | |
6713 | } | |
6714 | ||
0699c864 | 6715 | #define wxRadioBox_GetItemLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
efc5f224 | 6716 | static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6717 | PyObject * _resultobj; |
6718 | wxString * _result; | |
6719 | wxRadioBox * _arg0; | |
6720 | int _arg1; | |
1d99702e | 6721 | PyObject * _argo0 = 0; |
efc5f224 | 6722 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
6723 | |
6724 | self = self; | |
efc5f224 | 6725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetItemLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6726 | return NULL; |
1d99702e RD |
6727 | if (_argo0) { |
6728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 6730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetItemLabel. Expected _wxRadioBox_p."); |
8ab979d7 RD |
6731 | return NULL; |
6732 | } | |
6733 | } | |
8ab979d7 | 6734 | { |
cf694132 RD |
6735 | wxPy_BEGIN_ALLOW_THREADS; |
6736 | _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1)); | |
6737 | ||
6738 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6739 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6740 | }{ |
eec92d76 | 6741 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6742 | } |
6743 | { | |
6744 | delete _result; | |
6745 | } | |
6746 | return _resultobj; | |
6747 | } | |
6748 | ||
6749 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 6750 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6751 | PyObject * _resultobj; |
6752 | int _result; | |
6753 | wxRadioBox * _arg0; | |
1d99702e | 6754 | PyObject * _argo0 = 0; |
efc5f224 | 6755 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6756 | |
6757 | self = self; | |
efc5f224 | 6758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 6759 | return NULL; |
1d99702e RD |
6760 | if (_argo0) { |
6761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); |
6764 | return NULL; | |
6765 | } | |
6766 | } | |
cf694132 RD |
6767 | { |
6768 | wxPy_BEGIN_ALLOW_THREADS; | |
6769 | _result = (int )wxRadioBox_GetSelection(_arg0); | |
6770 | ||
6771 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6772 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6773 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6774 | return _resultobj; |
6775 | } | |
6776 | ||
6777 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
efc5f224 | 6778 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6779 | PyObject * _resultobj; |
6780 | wxString * _result; | |
6781 | wxRadioBox * _arg0; | |
6782 | int _arg1; | |
1d99702e | 6783 | PyObject * _argo0 = 0; |
efc5f224 | 6784 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
6785 | |
6786 | self = self; | |
efc5f224 | 6787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6788 | return NULL; |
1d99702e RD |
6789 | if (_argo0) { |
6790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); |
6793 | return NULL; | |
6794 | } | |
6795 | } | |
8ab979d7 | 6796 | { |
cf694132 RD |
6797 | wxPy_BEGIN_ALLOW_THREADS; |
6798 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); | |
6799 | ||
6800 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6801 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6802 | }{ |
eec92d76 | 6803 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6804 | } |
6805 | { | |
6806 | delete _result; | |
6807 | } | |
6808 | return _resultobj; | |
6809 | } | |
6810 | ||
6811 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
efc5f224 | 6812 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6813 | PyObject * _resultobj; |
6814 | wxString * _result; | |
6815 | wxRadioBox * _arg0; | |
1d99702e | 6816 | PyObject * _argo0 = 0; |
efc5f224 | 6817 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6818 | |
6819 | self = self; | |
efc5f224 | 6820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 6821 | return NULL; |
1d99702e RD |
6822 | if (_argo0) { |
6823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); |
6826 | return NULL; | |
6827 | } | |
6828 | } | |
8ab979d7 | 6829 | { |
cf694132 RD |
6830 | wxPy_BEGIN_ALLOW_THREADS; |
6831 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); | |
6832 | ||
6833 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6834 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6835 | }{ |
eec92d76 | 6836 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
6837 | } |
6838 | { | |
6839 | delete _result; | |
6840 | } | |
6841 | return _resultobj; | |
6842 | } | |
6843 | ||
6844 | #define wxRadioBox_Number(_swigobj) (_swigobj->Number()) | |
efc5f224 | 6845 | static PyObject *_wrap_wxRadioBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6846 | PyObject * _resultobj; |
6847 | int _result; | |
6848 | wxRadioBox * _arg0; | |
1d99702e | 6849 | PyObject * _argo0 = 0; |
efc5f224 | 6850 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6851 | |
6852 | self = self; | |
efc5f224 | 6853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_Number",_kwnames,&_argo0)) |
8ab979d7 | 6854 | return NULL; |
1d99702e RD |
6855 | if (_argo0) { |
6856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Number. Expected _wxRadioBox_p."); |
6859 | return NULL; | |
6860 | } | |
6861 | } | |
cf694132 RD |
6862 | { |
6863 | wxPy_BEGIN_ALLOW_THREADS; | |
6864 | _result = (int )wxRadioBox_Number(_arg0); | |
6865 | ||
6866 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6867 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6868 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6869 | return _resultobj; |
6870 | } | |
6871 | ||
0699c864 | 6872 | #define wxRadioBox_SetItemLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
efc5f224 | 6873 | static PyObject *_wrap_wxRadioBox_SetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6874 | PyObject * _resultobj; |
6875 | wxRadioBox * _arg0; | |
6876 | int _arg1; | |
6877 | wxString * _arg2; | |
1d99702e | 6878 | PyObject * _argo0 = 0; |
8ab979d7 | 6879 | PyObject * _obj2 = 0; |
efc5f224 | 6880 | char *_kwnames[] = { "self","n","label", NULL }; |
8ab979d7 RD |
6881 | |
6882 | self = self; | |
efc5f224 | 6883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetItemLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 6884 | return NULL; |
1d99702e RD |
6885 | if (_argo0) { |
6886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 6888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetItemLabel. Expected _wxRadioBox_p."); |
8ab979d7 RD |
6889 | return NULL; |
6890 | } | |
6891 | } | |
6892 | { | |
185d7c3e RD |
6893 | #if PYTHON_API_VERSION >= 1009 |
6894 | char* tmpPtr; int tmpSize; | |
6895 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6896 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6897 | return NULL; |
6898 | } | |
6899 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6900 | return NULL; | |
6901 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6902 | #else | |
8ab979d7 RD |
6903 | if (!PyString_Check(_obj2)) { |
6904 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6905 | return NULL; | |
6906 | } | |
185d7c3e RD |
6907 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6908 | #endif | |
8ab979d7 | 6909 | } |
cf694132 RD |
6910 | { |
6911 | wxPy_BEGIN_ALLOW_THREADS; | |
6912 | wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2); | |
6913 | ||
6914 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6915 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6916 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6917 | _resultobj = Py_None; |
6918 | { | |
6919 | if (_obj2) | |
6920 | delete _arg2; | |
6921 | } | |
6922 | return _resultobj; | |
6923 | } | |
6924 | ||
6925 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 6926 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6927 | PyObject * _resultobj; |
6928 | wxRadioBox * _arg0; | |
6929 | int _arg1; | |
1d99702e | 6930 | PyObject * _argo0 = 0; |
efc5f224 | 6931 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
6932 | |
6933 | self = self; | |
efc5f224 | 6934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6935 | return NULL; |
1d99702e RD |
6936 | if (_argo0) { |
6937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); |
6940 | return NULL; | |
6941 | } | |
6942 | } | |
cf694132 RD |
6943 | { |
6944 | wxPy_BEGIN_ALLOW_THREADS; | |
6945 | wxRadioBox_SetSelection(_arg0,_arg1); | |
6946 | ||
6947 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6948 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6949 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6950 | _resultobj = Py_None; |
6951 | return _resultobj; | |
6952 | } | |
6953 | ||
6954 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
efc5f224 | 6955 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6956 | PyObject * _resultobj; |
6957 | wxRadioBox * _arg0; | |
6958 | wxString * _arg1; | |
1d99702e | 6959 | PyObject * _argo0 = 0; |
8ab979d7 | 6960 | PyObject * _obj1 = 0; |
efc5f224 | 6961 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
6962 | |
6963 | self = self; | |
efc5f224 | 6964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6965 | return NULL; |
1d99702e RD |
6966 | if (_argo0) { |
6967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
6969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); |
6970 | return NULL; | |
6971 | } | |
6972 | } | |
6973 | { | |
185d7c3e RD |
6974 | #if PYTHON_API_VERSION >= 1009 |
6975 | char* tmpPtr; int tmpSize; | |
6976 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 6977 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6978 | return NULL; |
6979 | } | |
6980 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6981 | return NULL; | |
6982 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6983 | #else | |
8ab979d7 RD |
6984 | if (!PyString_Check(_obj1)) { |
6985 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6986 | return NULL; | |
6987 | } | |
185d7c3e RD |
6988 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6989 | #endif | |
8ab979d7 | 6990 | } |
cf694132 RD |
6991 | { |
6992 | wxPy_BEGIN_ALLOW_THREADS; | |
6993 | wxRadioBox_SetStringSelection(_arg0,*_arg1); | |
6994 | ||
6995 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6996 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6997 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6998 | _resultobj = Py_None; |
6999 | { | |
7000 | if (_obj1) | |
7001 | delete _arg1; | |
7002 | } | |
7003 | return _resultobj; | |
7004 | } | |
7005 | ||
7006 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 7007 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7008 | PyObject * _resultobj; |
7009 | wxRadioBox * _arg0; | |
7010 | bool _arg1; | |
1d99702e | 7011 | PyObject * _argo0 = 0; |
8ab979d7 | 7012 | int tempbool1; |
efc5f224 | 7013 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
7014 | |
7015 | self = self; | |
efc5f224 | 7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 7017 | return NULL; |
1d99702e RD |
7018 | if (_argo0) { |
7019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
7021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); |
7022 | return NULL; | |
7023 | } | |
7024 | } | |
7025 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
7026 | { |
7027 | wxPy_BEGIN_ALLOW_THREADS; | |
7028 | wxRadioBox_Show(_arg0,_arg1); | |
7029 | ||
7030 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7031 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7032 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7033 | _resultobj = Py_None; |
7034 | return _resultobj; | |
7035 | } | |
7036 | ||
7037 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
efc5f224 | 7038 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7039 | PyObject * _resultobj; |
7040 | wxRadioBox * _arg0; | |
7041 | int _arg1; | |
7042 | bool _arg2; | |
1d99702e | 7043 | PyObject * _argo0 = 0; |
8ab979d7 | 7044 | int tempbool2; |
efc5f224 | 7045 | char *_kwnames[] = { "self","item","show", NULL }; |
8ab979d7 RD |
7046 | |
7047 | self = self; | |
efc5f224 | 7048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7049 | return NULL; |
1d99702e RD |
7050 | if (_argo0) { |
7051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
7053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); |
7054 | return NULL; | |
7055 | } | |
7056 | } | |
7057 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7058 | { |
7059 | wxPy_BEGIN_ALLOW_THREADS; | |
7060 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); | |
7061 | ||
7062 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7063 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7064 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7065 | _resultobj = Py_None; |
7066 | return _resultobj; | |
7067 | } | |
7068 | ||
7069 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
7070 | wxRadioButton *src; | |
7071 | wxControl *dest; | |
7072 | src = (wxRadioButton *) ptr; | |
7073 | dest = (wxControl *) src; | |
7074 | return (void *) dest; | |
7075 | } | |
7076 | ||
7077 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
7078 | wxRadioButton *src; | |
7079 | wxWindow *dest; | |
7080 | src = (wxRadioButton *) ptr; | |
7081 | dest = (wxWindow *) src; | |
7082 | return (void *) dest; | |
7083 | } | |
7084 | ||
7085 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
7086 | wxRadioButton *src; | |
7087 | wxEvtHandler *dest; | |
7088 | src = (wxRadioButton *) ptr; | |
7089 | dest = (wxEvtHandler *) src; | |
7090 | return (void *) dest; | |
7091 | } | |
7092 | ||
9416aa89 RD |
7093 | static void *SwigwxRadioButtonTowxObject(void *ptr) { |
7094 | wxRadioButton *src; | |
7095 | wxObject *dest; | |
7096 | src = (wxRadioButton *) ptr; | |
7097 | dest = (wxObject *) src; | |
7098 | return (void *) dest; | |
7099 | } | |
7100 | ||
8ab979d7 | 7101 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 7102 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7103 | PyObject * _resultobj; |
7104 | wxRadioButton * _result; | |
7105 | wxWindow * _arg0; | |
7106 | wxWindowID _arg1; | |
7107 | wxString * _arg2; | |
e508a2b6 RD |
7108 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
7109 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 7110 | long _arg5 = (long ) 0; |
e508a2b6 | 7111 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
7112 | char * _arg7 = (char *) "radioButton"; |
7113 | PyObject * _argo0 = 0; | |
8ab979d7 | 7114 | PyObject * _obj2 = 0; |
2f90df85 RD |
7115 | wxPoint temp; |
7116 | PyObject * _obj3 = 0; | |
7117 | wxSize temp0; | |
7118 | PyObject * _obj4 = 0; | |
1d99702e | 7119 | PyObject * _argo6 = 0; |
efc5f224 | 7120 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
7121 | char _ptemp[128]; |
7122 | ||
7123 | self = self; | |
2f90df85 | 7124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 7125 | return NULL; |
1d99702e RD |
7126 | if (_argo0) { |
7127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
7129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); |
7130 | return NULL; | |
7131 | } | |
7132 | } | |
7133 | { | |
185d7c3e RD |
7134 | #if PYTHON_API_VERSION >= 1009 |
7135 | char* tmpPtr; int tmpSize; | |
7136 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7137 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7138 | return NULL; |
7139 | } | |
7140 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7141 | return NULL; | |
7142 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7143 | #else | |
8ab979d7 RD |
7144 | if (!PyString_Check(_obj2)) { |
7145 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7146 | return NULL; | |
7147 | } | |
185d7c3e RD |
7148 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7149 | #endif | |
8ab979d7 | 7150 | } |
2f90df85 RD |
7151 | if (_obj3) |
7152 | { | |
7153 | _arg3 = &temp; | |
7154 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 7155 | return NULL; |
2f90df85 RD |
7156 | } |
7157 | if (_obj4) | |
7158 | { | |
7159 | _arg4 = &temp0; | |
7160 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 7161 | return NULL; |
2f90df85 | 7162 | } |
1d99702e RD |
7163 | if (_argo6) { |
7164 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7165 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
7166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); |
7167 | return NULL; | |
7168 | } | |
7169 | } | |
cf694132 RD |
7170 | { |
7171 | wxPy_BEGIN_ALLOW_THREADS; | |
7172 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
7173 | ||
7174 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7175 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7176 | } if (_result) { |
7177 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
7178 | _resultobj = Py_BuildValue("s",_ptemp); | |
7179 | } else { | |
7180 | Py_INCREF(Py_None); | |
7181 | _resultobj = Py_None; | |
7182 | } | |
8ab979d7 RD |
7183 | { |
7184 | if (_obj2) | |
7185 | delete _arg2; | |
7186 | } | |
7187 | return _resultobj; | |
7188 | } | |
7189 | ||
7190 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 7191 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7192 | PyObject * _resultobj; |
7193 | bool _result; | |
7194 | wxRadioButton * _arg0; | |
1d99702e | 7195 | PyObject * _argo0 = 0; |
efc5f224 | 7196 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7197 | |
7198 | self = self; | |
efc5f224 | 7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 7200 | return NULL; |
1d99702e RD |
7201 | if (_argo0) { |
7202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
8ab979d7 RD |
7204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); |
7205 | return NULL; | |
7206 | } | |
7207 | } | |
cf694132 RD |
7208 | { |
7209 | wxPy_BEGIN_ALLOW_THREADS; | |
7210 | _result = (bool )wxRadioButton_GetValue(_arg0); | |
7211 | ||
7212 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7213 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7214 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7215 | return _resultobj; |
7216 | } | |
7217 | ||
7218 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 7219 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7220 | PyObject * _resultobj; |
7221 | wxRadioButton * _arg0; | |
7222 | bool _arg1; | |
1d99702e | 7223 | PyObject * _argo0 = 0; |
8ab979d7 | 7224 | int tempbool1; |
efc5f224 | 7225 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
7226 | |
7227 | self = self; | |
efc5f224 | 7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 7229 | return NULL; |
1d99702e RD |
7230 | if (_argo0) { |
7231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
8ab979d7 RD |
7233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); |
7234 | return NULL; | |
7235 | } | |
7236 | } | |
7237 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
7238 | { |
7239 | wxPy_BEGIN_ALLOW_THREADS; | |
7240 | wxRadioButton_SetValue(_arg0,_arg1); | |
7241 | ||
7242 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7243 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7244 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7245 | _resultobj = Py_None; |
7246 | return _resultobj; | |
7247 | } | |
7248 | ||
7249 | static void *SwigwxSliderTowxControl(void *ptr) { | |
7250 | wxSlider *src; | |
7251 | wxControl *dest; | |
7252 | src = (wxSlider *) ptr; | |
7253 | dest = (wxControl *) src; | |
7254 | return (void *) dest; | |
7255 | } | |
7256 | ||
7257 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
7258 | wxSlider *src; | |
7259 | wxWindow *dest; | |
7260 | src = (wxSlider *) ptr; | |
7261 | dest = (wxWindow *) src; | |
7262 | return (void *) dest; | |
7263 | } | |
7264 | ||
7265 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
7266 | wxSlider *src; | |
7267 | wxEvtHandler *dest; | |
7268 | src = (wxSlider *) ptr; | |
7269 | dest = (wxEvtHandler *) src; | |
7270 | return (void *) dest; | |
7271 | } | |
7272 | ||
9416aa89 RD |
7273 | static void *SwigwxSliderTowxObject(void *ptr) { |
7274 | wxSlider *src; | |
7275 | wxObject *dest; | |
7276 | src = (wxSlider *) ptr; | |
7277 | dest = (wxObject *) src; | |
7278 | return (void *) dest; | |
7279 | } | |
7280 | ||
8ab979d7 | 7281 | #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 | 7282 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7283 | PyObject * _resultobj; |
7284 | wxSlider * _result; | |
7285 | wxWindow * _arg0; | |
7286 | wxWindowID _arg1; | |
7287 | int _arg2; | |
7288 | int _arg3; | |
7289 | int _arg4; | |
e508a2b6 RD |
7290 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
7291 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
1d99702e | 7292 | long _arg7 = (long ) wxSL_HORIZONTAL; |
e508a2b6 | 7293 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
7294 | char * _arg9 = (char *) "slider"; |
7295 | PyObject * _argo0 = 0; | |
2f90df85 RD |
7296 | wxPoint temp; |
7297 | PyObject * _obj5 = 0; | |
7298 | wxSize temp0; | |
7299 | PyObject * _obj6 = 0; | |
1d99702e | 7300 | PyObject * _argo8 = 0; |
efc5f224 | 7301 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
8ab979d7 RD |
7302 | char _ptemp[128]; |
7303 | ||
7304 | self = self; | |
2f90df85 | 7305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9)) |
8ab979d7 | 7306 | return NULL; |
1d99702e RD |
7307 | if (_argo0) { |
7308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
7310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); |
7311 | return NULL; | |
7312 | } | |
7313 | } | |
2f90df85 RD |
7314 | if (_obj5) |
7315 | { | |
7316 | _arg5 = &temp; | |
7317 | if (! wxPoint_helper(_obj5, &_arg5)) | |
8ab979d7 | 7318 | return NULL; |
2f90df85 RD |
7319 | } |
7320 | if (_obj6) | |
7321 | { | |
7322 | _arg6 = &temp0; | |
7323 | if (! wxSize_helper(_obj6, &_arg6)) | |
8ab979d7 | 7324 | return NULL; |
2f90df85 | 7325 | } |
1d99702e RD |
7326 | if (_argo8) { |
7327 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
7328 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
8ab979d7 RD |
7329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); |
7330 | return NULL; | |
7331 | } | |
7332 | } | |
cf694132 RD |
7333 | { |
7334 | wxPy_BEGIN_ALLOW_THREADS; | |
7335 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); | |
7336 | ||
7337 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7338 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7339 | } if (_result) { |
7340 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
7341 | _resultobj = Py_BuildValue("s",_ptemp); | |
7342 | } else { | |
7343 | Py_INCREF(Py_None); | |
7344 | _resultobj = Py_None; | |
7345 | } | |
8ab979d7 RD |
7346 | return _resultobj; |
7347 | } | |
7348 | ||
7349 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) | |
efc5f224 | 7350 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7351 | PyObject * _resultobj; |
7352 | wxSlider * _arg0; | |
1d99702e | 7353 | PyObject * _argo0 = 0; |
efc5f224 | 7354 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7355 | |
7356 | self = self; | |
efc5f224 | 7357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) |
8ab979d7 | 7358 | return NULL; |
1d99702e RD |
7359 | if (_argo0) { |
7360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); |
7363 | return NULL; | |
7364 | } | |
7365 | } | |
cf694132 RD |
7366 | { |
7367 | wxPy_BEGIN_ALLOW_THREADS; | |
7368 | wxSlider_ClearSel(_arg0); | |
7369 | ||
7370 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7371 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7372 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7373 | _resultobj = Py_None; |
7374 | return _resultobj; | |
7375 | } | |
7376 | ||
7377 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
efc5f224 | 7378 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7379 | PyObject * _resultobj; |
7380 | wxSlider * _arg0; | |
1d99702e | 7381 | PyObject * _argo0 = 0; |
efc5f224 | 7382 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7383 | |
7384 | self = self; | |
efc5f224 | 7385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) |
8ab979d7 | 7386 | return NULL; |
1d99702e RD |
7387 | if (_argo0) { |
7388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); |
7391 | return NULL; | |
7392 | } | |
7393 | } | |
cf694132 RD |
7394 | { |
7395 | wxPy_BEGIN_ALLOW_THREADS; | |
7396 | wxSlider_ClearTicks(_arg0); | |
7397 | ||
7398 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7399 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7400 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7401 | _resultobj = Py_None; |
7402 | return _resultobj; | |
7403 | } | |
7404 | ||
7405 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
efc5f224 | 7406 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7407 | PyObject * _resultobj; |
7408 | int _result; | |
7409 | wxSlider * _arg0; | |
1d99702e | 7410 | PyObject * _argo0 = 0; |
efc5f224 | 7411 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7412 | |
7413 | self = self; | |
efc5f224 | 7414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) |
8ab979d7 | 7415 | return NULL; |
1d99702e RD |
7416 | if (_argo0) { |
7417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); |
7420 | return NULL; | |
7421 | } | |
7422 | } | |
cf694132 RD |
7423 | { |
7424 | wxPy_BEGIN_ALLOW_THREADS; | |
7425 | _result = (int )wxSlider_GetLineSize(_arg0); | |
7426 | ||
7427 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7428 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7429 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7430 | return _resultobj; |
7431 | } | |
7432 | ||
7433 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
efc5f224 | 7434 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7435 | PyObject * _resultobj; |
7436 | int _result; | |
7437 | wxSlider * _arg0; | |
1d99702e | 7438 | PyObject * _argo0 = 0; |
efc5f224 | 7439 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7440 | |
7441 | self = self; | |
efc5f224 | 7442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) |
8ab979d7 | 7443 | return NULL; |
1d99702e RD |
7444 | if (_argo0) { |
7445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); |
7448 | return NULL; | |
7449 | } | |
7450 | } | |
cf694132 RD |
7451 | { |
7452 | wxPy_BEGIN_ALLOW_THREADS; | |
7453 | _result = (int )wxSlider_GetMax(_arg0); | |
7454 | ||
7455 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7456 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7457 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7458 | return _resultobj; |
7459 | } | |
7460 | ||
7461 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
efc5f224 | 7462 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7463 | PyObject * _resultobj; |
7464 | int _result; | |
7465 | wxSlider * _arg0; | |
1d99702e | 7466 | PyObject * _argo0 = 0; |
efc5f224 | 7467 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7468 | |
7469 | self = self; | |
efc5f224 | 7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) |
8ab979d7 | 7471 | return NULL; |
1d99702e RD |
7472 | if (_argo0) { |
7473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
cf694132 RD |
7479 | { |
7480 | wxPy_BEGIN_ALLOW_THREADS; | |
7481 | _result = (int )wxSlider_GetMin(_arg0); | |
7482 | ||
7483 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7484 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7485 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7486 | return _resultobj; |
7487 | } | |
7488 | ||
7489 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
efc5f224 | 7490 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7491 | PyObject * _resultobj; |
7492 | int _result; | |
7493 | wxSlider * _arg0; | |
1d99702e | 7494 | PyObject * _argo0 = 0; |
efc5f224 | 7495 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7496 | |
7497 | self = self; | |
efc5f224 | 7498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) |
8ab979d7 | 7499 | return NULL; |
1d99702e RD |
7500 | if (_argo0) { |
7501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); |
7504 | return NULL; | |
7505 | } | |
7506 | } | |
cf694132 RD |
7507 | { |
7508 | wxPy_BEGIN_ALLOW_THREADS; | |
7509 | _result = (int )wxSlider_GetPageSize(_arg0); | |
7510 | ||
7511 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7512 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7513 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7514 | return _resultobj; |
7515 | } | |
7516 | ||
7517 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
efc5f224 | 7518 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7519 | PyObject * _resultobj; |
7520 | int _result; | |
7521 | wxSlider * _arg0; | |
1d99702e | 7522 | PyObject * _argo0 = 0; |
efc5f224 | 7523 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7524 | |
7525 | self = self; | |
efc5f224 | 7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) |
8ab979d7 | 7527 | return NULL; |
1d99702e RD |
7528 | if (_argo0) { |
7529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); |
7532 | return NULL; | |
7533 | } | |
7534 | } | |
cf694132 RD |
7535 | { |
7536 | wxPy_BEGIN_ALLOW_THREADS; | |
7537 | _result = (int )wxSlider_GetSelEnd(_arg0); | |
7538 | ||
7539 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7540 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7541 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7542 | return _resultobj; |
7543 | } | |
7544 | ||
7545 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
efc5f224 | 7546 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7547 | PyObject * _resultobj; |
7548 | int _result; | |
7549 | wxSlider * _arg0; | |
1d99702e | 7550 | PyObject * _argo0 = 0; |
efc5f224 | 7551 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7552 | |
7553 | self = self; | |
efc5f224 | 7554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) |
8ab979d7 | 7555 | return NULL; |
1d99702e RD |
7556 | if (_argo0) { |
7557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); |
7560 | return NULL; | |
7561 | } | |
7562 | } | |
cf694132 RD |
7563 | { |
7564 | wxPy_BEGIN_ALLOW_THREADS; | |
7565 | _result = (int )wxSlider_GetSelStart(_arg0); | |
7566 | ||
7567 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7568 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7569 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7570 | return _resultobj; |
7571 | } | |
7572 | ||
7573 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
efc5f224 | 7574 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7575 | PyObject * _resultobj; |
7576 | int _result; | |
7577 | wxSlider * _arg0; | |
1d99702e | 7578 | PyObject * _argo0 = 0; |
efc5f224 | 7579 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7580 | |
7581 | self = self; | |
efc5f224 | 7582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) |
8ab979d7 | 7583 | return NULL; |
1d99702e RD |
7584 | if (_argo0) { |
7585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); |
7588 | return NULL; | |
7589 | } | |
7590 | } | |
cf694132 RD |
7591 | { |
7592 | wxPy_BEGIN_ALLOW_THREADS; | |
7593 | _result = (int )wxSlider_GetThumbLength(_arg0); | |
7594 | ||
7595 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7596 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7597 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7598 | return _resultobj; |
7599 | } | |
7600 | ||
7601 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
efc5f224 | 7602 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7603 | PyObject * _resultobj; |
7604 | int _result; | |
7605 | wxSlider * _arg0; | |
1d99702e | 7606 | PyObject * _argo0 = 0; |
efc5f224 | 7607 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7608 | |
7609 | self = self; | |
efc5f224 | 7610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) |
8ab979d7 | 7611 | return NULL; |
1d99702e RD |
7612 | if (_argo0) { |
7613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); |
7616 | return NULL; | |
7617 | } | |
7618 | } | |
cf694132 RD |
7619 | { |
7620 | wxPy_BEGIN_ALLOW_THREADS; | |
7621 | _result = (int )wxSlider_GetTickFreq(_arg0); | |
7622 | ||
7623 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7624 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7625 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7626 | return _resultobj; |
7627 | } | |
7628 | ||
7629 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 7630 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7631 | PyObject * _resultobj; |
7632 | int _result; | |
7633 | wxSlider * _arg0; | |
1d99702e | 7634 | PyObject * _argo0 = 0; |
efc5f224 | 7635 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7636 | |
7637 | self = self; | |
efc5f224 | 7638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 7639 | return NULL; |
1d99702e RD |
7640 | if (_argo0) { |
7641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); |
7644 | return NULL; | |
7645 | } | |
7646 | } | |
cf694132 RD |
7647 | { |
7648 | wxPy_BEGIN_ALLOW_THREADS; | |
7649 | _result = (int )wxSlider_GetValue(_arg0); | |
7650 | ||
7651 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7652 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7653 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7654 | return _resultobj; |
7655 | } | |
7656 | ||
7657 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 7658 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7659 | PyObject * _resultobj; |
7660 | wxSlider * _arg0; | |
7661 | int _arg1; | |
7662 | int _arg2; | |
1d99702e | 7663 | PyObject * _argo0 = 0; |
efc5f224 | 7664 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; |
8ab979d7 RD |
7665 | |
7666 | self = self; | |
efc5f224 | 7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7668 | return NULL; |
1d99702e RD |
7669 | if (_argo0) { |
7670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); |
7673 | return NULL; | |
7674 | } | |
7675 | } | |
cf694132 RD |
7676 | { |
7677 | wxPy_BEGIN_ALLOW_THREADS; | |
7678 | wxSlider_SetRange(_arg0,_arg1,_arg2); | |
7679 | ||
7680 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7681 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7682 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7683 | _resultobj = Py_None; |
7684 | return _resultobj; | |
7685 | } | |
7686 | ||
7687 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
efc5f224 | 7688 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7689 | PyObject * _resultobj; |
7690 | wxSlider * _arg0; | |
7691 | int _arg1; | |
7692 | int _arg2; | |
1d99702e | 7693 | PyObject * _argo0 = 0; |
efc5f224 | 7694 | char *_kwnames[] = { "self","n","pos", NULL }; |
8ab979d7 RD |
7695 | |
7696 | self = self; | |
efc5f224 | 7697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7698 | return NULL; |
1d99702e RD |
7699 | if (_argo0) { |
7700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); |
7703 | return NULL; | |
7704 | } | |
7705 | } | |
cf694132 RD |
7706 | { |
7707 | wxPy_BEGIN_ALLOW_THREADS; | |
7708 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); | |
7709 | ||
7710 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7711 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7712 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7713 | _resultobj = Py_None; |
7714 | return _resultobj; | |
7715 | } | |
7716 | ||
7717 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
efc5f224 | 7718 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7719 | PyObject * _resultobj; |
7720 | wxSlider * _arg0; | |
7721 | int _arg1; | |
1d99702e | 7722 | PyObject * _argo0 = 0; |
efc5f224 | 7723 | char *_kwnames[] = { "self","lineSize", NULL }; |
8ab979d7 RD |
7724 | |
7725 | self = self; | |
efc5f224 | 7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7727 | return NULL; |
1d99702e RD |
7728 | if (_argo0) { |
7729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); |
7732 | return NULL; | |
7733 | } | |
7734 | } | |
cf694132 RD |
7735 | { |
7736 | wxPy_BEGIN_ALLOW_THREADS; | |
7737 | wxSlider_SetLineSize(_arg0,_arg1); | |
7738 | ||
7739 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7740 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7741 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7742 | _resultobj = Py_None; |
7743 | return _resultobj; | |
7744 | } | |
7745 | ||
7746 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
efc5f224 | 7747 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7748 | PyObject * _resultobj; |
7749 | wxSlider * _arg0; | |
7750 | int _arg1; | |
1d99702e | 7751 | PyObject * _argo0 = 0; |
efc5f224 | 7752 | char *_kwnames[] = { "self","pageSize", NULL }; |
8ab979d7 RD |
7753 | |
7754 | self = self; | |
efc5f224 | 7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7756 | return NULL; |
1d99702e RD |
7757 | if (_argo0) { |
7758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); |
7761 | return NULL; | |
7762 | } | |
7763 | } | |
cf694132 RD |
7764 | { |
7765 | wxPy_BEGIN_ALLOW_THREADS; | |
7766 | wxSlider_SetPageSize(_arg0,_arg1); | |
7767 | ||
7768 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7769 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7770 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7771 | _resultobj = Py_None; |
7772 | return _resultobj; | |
7773 | } | |
7774 | ||
7775 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 7776 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7777 | PyObject * _resultobj; |
7778 | wxSlider * _arg0; | |
7779 | int _arg1; | |
7780 | int _arg2; | |
1d99702e | 7781 | PyObject * _argo0 = 0; |
efc5f224 | 7782 | char *_kwnames[] = { "self","startPos","endPos", NULL }; |
8ab979d7 RD |
7783 | |
7784 | self = self; | |
efc5f224 | 7785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7786 | return NULL; |
1d99702e RD |
7787 | if (_argo0) { |
7788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); |
7791 | return NULL; | |
7792 | } | |
7793 | } | |
cf694132 RD |
7794 | { |
7795 | wxPy_BEGIN_ALLOW_THREADS; | |
7796 | wxSlider_SetSelection(_arg0,_arg1,_arg2); | |
7797 | ||
7798 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7799 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7800 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7801 | _resultobj = Py_None; |
7802 | return _resultobj; | |
7803 | } | |
7804 | ||
7805 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
efc5f224 | 7806 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7807 | PyObject * _resultobj; |
7808 | wxSlider * _arg0; | |
7809 | int _arg1; | |
1d99702e | 7810 | PyObject * _argo0 = 0; |
efc5f224 | 7811 | char *_kwnames[] = { "self","len", NULL }; |
8ab979d7 RD |
7812 | |
7813 | self = self; | |
efc5f224 | 7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7815 | return NULL; |
1d99702e RD |
7816 | if (_argo0) { |
7817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); |
7820 | return NULL; | |
7821 | } | |
7822 | } | |
cf694132 RD |
7823 | { |
7824 | wxPy_BEGIN_ALLOW_THREADS; | |
7825 | wxSlider_SetThumbLength(_arg0,_arg1); | |
7826 | ||
7827 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7828 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7829 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7830 | _resultobj = Py_None; |
7831 | return _resultobj; | |
7832 | } | |
7833 | ||
7834 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
efc5f224 | 7835 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7836 | PyObject * _resultobj; |
7837 | wxSlider * _arg0; | |
7838 | int _arg1; | |
1d99702e | 7839 | PyObject * _argo0 = 0; |
efc5f224 | 7840 | char *_kwnames[] = { "self","tickPos", NULL }; |
8ab979d7 RD |
7841 | |
7842 | self = self; | |
efc5f224 | 7843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7844 | return NULL; |
1d99702e RD |
7845 | if (_argo0) { |
7846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); |
7849 | return NULL; | |
7850 | } | |
7851 | } | |
cf694132 RD |
7852 | { |
7853 | wxPy_BEGIN_ALLOW_THREADS; | |
7854 | wxSlider_SetTick(_arg0,_arg1); | |
7855 | ||
7856 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7857 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7858 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7859 | _resultobj = Py_None; |
7860 | return _resultobj; | |
7861 | } | |
7862 | ||
7863 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 7864 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7865 | PyObject * _resultobj; |
7866 | wxSlider * _arg0; | |
7867 | int _arg1; | |
1d99702e | 7868 | PyObject * _argo0 = 0; |
efc5f224 | 7869 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
7870 | |
7871 | self = self; | |
efc5f224 | 7872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7873 | return NULL; |
1d99702e RD |
7874 | if (_argo0) { |
7875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
7877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); |
7878 | return NULL; | |
7879 | } | |
7880 | } | |
cf694132 RD |
7881 | { |
7882 | wxPy_BEGIN_ALLOW_THREADS; | |
7883 | wxSlider_SetValue(_arg0,_arg1); | |
7884 | ||
7885 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7886 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7887 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7888 | _resultobj = Py_None; |
7889 | return _resultobj; | |
7890 | } | |
7891 | ||
f6bcfd97 BP |
7892 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { |
7893 | wxSpinCtrl *src; | |
7894 | wxSpinButton *dest; | |
7895 | src = (wxSpinCtrl *) ptr; | |
7896 | dest = (wxSpinButton *) src; | |
7897 | return (void *) dest; | |
7898 | } | |
7899 | ||
7900 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
7901 | wxSpinCtrl *src; | |
7902 | wxControl *dest; | |
7903 | src = (wxSpinCtrl *) ptr; | |
7904 | dest = (wxControl *) src; | |
7905 | return (void *) dest; | |
7906 | } | |
7907 | ||
7908 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
7909 | wxSpinCtrl *src; | |
7910 | wxWindow *dest; | |
7911 | src = (wxSpinCtrl *) ptr; | |
7912 | dest = (wxWindow *) src; | |
7913 | return (void *) dest; | |
7914 | } | |
7915 | ||
7916 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
7917 | wxSpinCtrl *src; | |
7918 | wxEvtHandler *dest; | |
7919 | src = (wxSpinCtrl *) ptr; | |
7920 | dest = (wxEvtHandler *) src; | |
7921 | return (void *) dest; | |
7922 | } | |
7923 | ||
9416aa89 RD |
7924 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { |
7925 | wxSpinCtrl *src; | |
7926 | wxObject *dest; | |
7927 | src = (wxSpinCtrl *) ptr; | |
7928 | dest = (wxObject *) src; | |
7929 | return (void *) dest; | |
7930 | } | |
7931 | ||
f6bcfd97 BP |
7932 | #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)) |
7933 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7934 | PyObject * _resultobj; | |
7935 | wxSpinCtrl * _result; | |
7936 | wxWindow * _arg0; | |
7937 | wxWindowID _arg1 = (wxWindowID ) -1; | |
7938 | char * _arg2 = (char *) ""; | |
e508a2b6 RD |
7939 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
7940 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
f6bcfd97 BP |
7941 | long _arg5 = (long ) wxSP_ARROW_KEYS; |
7942 | int _arg6 = (int ) 0; | |
7943 | int _arg7 = (int ) 100; | |
7944 | int _arg8 = (int ) 0; | |
7945 | char * _arg9 = (char *) "wxSpinCtrl"; | |
7946 | PyObject * _argo0 = 0; | |
7947 | wxPoint temp; | |
7948 | PyObject * _obj3 = 0; | |
7949 | wxSize temp0; | |
7950 | PyObject * _obj4 = 0; | |
7951 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
7952 | char _ptemp[128]; | |
7953 | ||
7954 | self = self; | |
7955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
7956 | return NULL; | |
7957 | if (_argo0) { | |
7958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
7960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
7961 | return NULL; | |
7962 | } | |
7963 | } | |
7964 | if (_obj3) | |
7965 | { | |
7966 | _arg3 = &temp; | |
7967 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7968 | return NULL; | |
7969 | } | |
7970 | if (_obj4) | |
7971 | { | |
7972 | _arg4 = &temp0; | |
7973 | if (! wxSize_helper(_obj4, &_arg4)) | |
7974 | return NULL; | |
7975 | } | |
7976 | { | |
7977 | wxPy_BEGIN_ALLOW_THREADS; | |
7978 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
7979 | ||
7980 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7981 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7982 | } if (_result) { |
7983 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
7984 | _resultobj = Py_BuildValue("s",_ptemp); | |
7985 | } else { | |
7986 | Py_INCREF(Py_None); | |
7987 | _resultobj = Py_None; | |
7988 | } | |
7989 | return _resultobj; | |
7990 | } | |
7991 | ||
c368d904 RD |
7992 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) |
7993 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7994 | PyObject * _resultobj; | |
7995 | int _result; | |
7996 | wxSpinCtrl * _arg0; | |
7997 | PyObject * _argo0 = 0; | |
7998 | char *_kwnames[] = { "self", NULL }; | |
7999 | ||
8000 | self = self; | |
8001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
8002 | return NULL; | |
8003 | if (_argo0) { | |
8004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
8006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
8007 | return NULL; | |
8008 | } | |
8009 | } | |
8010 | { | |
8011 | wxPy_BEGIN_ALLOW_THREADS; | |
8012 | _result = (int )wxSpinCtrl_GetMax(_arg0); | |
8013 | ||
8014 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8015 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
8016 | } _resultobj = Py_BuildValue("i",_result); |
8017 | return _resultobj; | |
8018 | } | |
8019 | ||
8020 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
8021 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8022 | PyObject * _resultobj; | |
8023 | int _result; | |
8024 | wxSpinCtrl * _arg0; | |
8025 | PyObject * _argo0 = 0; | |
8026 | char *_kwnames[] = { "self", NULL }; | |
8027 | ||
8028 | self = self; | |
8029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
8030 | return NULL; | |
8031 | if (_argo0) { | |
8032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
8034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
8035 | return NULL; | |
8036 | } | |
8037 | } | |
8038 | { | |
8039 | wxPy_BEGIN_ALLOW_THREADS; | |
8040 | _result = (int )wxSpinCtrl_GetMin(_arg0); | |
8041 | ||
8042 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8043 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
8044 | } _resultobj = Py_BuildValue("i",_result); |
8045 | return _resultobj; | |
8046 | } | |
8047 | ||
8048 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
8049 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8050 | PyObject * _resultobj; | |
8051 | int _result; | |
8052 | wxSpinCtrl * _arg0; | |
8053 | PyObject * _argo0 = 0; | |
8054 | char *_kwnames[] = { "self", NULL }; | |
8055 | ||
8056 | self = self; | |
8057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
8058 | return NULL; | |
8059 | if (_argo0) { | |
8060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
8062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
8063 | return NULL; | |
8064 | } | |
8065 | } | |
8066 | { | |
8067 | wxPy_BEGIN_ALLOW_THREADS; | |
8068 | _result = (int )wxSpinCtrl_GetValue(_arg0); | |
8069 | ||
8070 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8071 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
8072 | } _resultobj = Py_BuildValue("i",_result); |
8073 | return _resultobj; | |
8074 | } | |
8075 | ||
8076 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
8077 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8078 | PyObject * _resultobj; | |
8079 | wxSpinCtrl * _arg0; | |
8080 | int _arg1; | |
8081 | int _arg2; | |
8082 | PyObject * _argo0 = 0; | |
8083 | char *_kwnames[] = { "self","min","max", NULL }; | |
8084 | ||
8085 | self = self; | |
8086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8087 | return NULL; | |
8088 | if (_argo0) { | |
8089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
8091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
8092 | return NULL; | |
8093 | } | |
8094 | } | |
8095 | { | |
8096 | wxPy_BEGIN_ALLOW_THREADS; | |
8097 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); | |
8098 | ||
8099 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8100 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
8101 | } Py_INCREF(Py_None); |
8102 | _resultobj = Py_None; | |
8103 | return _resultobj; | |
8104 | } | |
8105 | ||
8106 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
8107 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8108 | PyObject * _resultobj; | |
8109 | wxSpinCtrl * _arg0; | |
8110 | int _arg1; | |
8111 | PyObject * _argo0 = 0; | |
8112 | char *_kwnames[] = { "self","value", NULL }; | |
8113 | ||
8114 | self = self; | |
8115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
8116 | return NULL; | |
8117 | if (_argo0) { | |
8118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
8120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
8121 | return NULL; | |
8122 | } | |
8123 | } | |
8124 | { | |
8125 | wxPy_BEGIN_ALLOW_THREADS; | |
8126 | wxSpinCtrl_SetValue(_arg0,_arg1); | |
8127 | ||
8128 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8129 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
8130 | } Py_INCREF(Py_None); |
8131 | _resultobj = Py_None; | |
8132 | return _resultobj; | |
8133 | } | |
8134 | ||
d1679124 RD |
8135 | static void *SwigwxToggleButtonTowxControl(void *ptr) { |
8136 | wxToggleButton *src; | |
8137 | wxControl *dest; | |
8138 | src = (wxToggleButton *) ptr; | |
8139 | dest = (wxControl *) src; | |
8140 | return (void *) dest; | |
8141 | } | |
8142 | ||
8143 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
8144 | wxToggleButton *src; | |
8145 | wxWindow *dest; | |
8146 | src = (wxToggleButton *) ptr; | |
8147 | dest = (wxWindow *) src; | |
8148 | return (void *) dest; | |
8149 | } | |
8150 | ||
8151 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
8152 | wxToggleButton *src; | |
8153 | wxEvtHandler *dest; | |
8154 | src = (wxToggleButton *) ptr; | |
8155 | dest = (wxEvtHandler *) src; | |
8156 | return (void *) dest; | |
8157 | } | |
8158 | ||
9416aa89 RD |
8159 | static void *SwigwxToggleButtonTowxObject(void *ptr) { |
8160 | wxToggleButton *src; | |
8161 | wxObject *dest; | |
8162 | src = (wxToggleButton *) ptr; | |
8163 | dest = (wxObject *) src; | |
8164 | return (void *) dest; | |
8165 | } | |
8166 | ||
d1679124 RD |
8167 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
8168 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8169 | PyObject * _resultobj; | |
8170 | wxToggleButton * _result; | |
8171 | wxWindow * _arg0; | |
8172 | wxWindowID _arg1; | |
8173 | wxString * _arg2; | |
8174 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8175 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8176 | long _arg5 = (long ) 0; | |
8177 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
8178 | char * _arg7 = (char *) "toggle"; | |
8179 | PyObject * _argo0 = 0; | |
8180 | PyObject * _obj2 = 0; | |
8181 | wxPoint temp; | |
8182 | PyObject * _obj3 = 0; | |
8183 | wxSize temp0; | |
8184 | PyObject * _obj4 = 0; | |
8185 | PyObject * _argo6 = 0; | |
8186 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
8187 | char _ptemp[128]; | |
8188 | ||
8189 | self = self; | |
8190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
8191 | return NULL; | |
8192 | if (_argo0) { | |
8193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
8196 | return NULL; | |
8197 | } | |
8198 | } | |
8199 | { | |
8200 | #if PYTHON_API_VERSION >= 1009 | |
8201 | char* tmpPtr; int tmpSize; | |
8202 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8203 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
d1679124 RD |
8204 | return NULL; |
8205 | } | |
8206 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8207 | return NULL; | |
8208 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8209 | #else | |
8210 | if (!PyString_Check(_obj2)) { | |
8211 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8212 | return NULL; | |
8213 | } | |
8214 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8215 | #endif | |
8216 | } | |
8217 | if (_obj3) | |
8218 | { | |
8219 | _arg3 = &temp; | |
8220 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8221 | return NULL; | |
8222 | } | |
8223 | if (_obj4) | |
8224 | { | |
8225 | _arg4 = &temp0; | |
8226 | if (! wxSize_helper(_obj4, &_arg4)) | |
8227 | return NULL; | |
8228 | } | |
8229 | if (_argo6) { | |
8230 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8231 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
8233 | return NULL; | |
8234 | } | |
8235 | } | |
8236 | { | |
8237 | wxPy_BEGIN_ALLOW_THREADS; | |
8238 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
8239 | ||
8240 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8241 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
8242 | } if (_result) { |
8243 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
8244 | _resultobj = Py_BuildValue("s",_ptemp); | |
8245 | } else { | |
8246 | Py_INCREF(Py_None); | |
8247 | _resultobj = Py_None; | |
8248 | } | |
8249 | { | |
8250 | if (_obj2) | |
8251 | delete _arg2; | |
8252 | } | |
8253 | return _resultobj; | |
8254 | } | |
8255 | ||
8256 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
8257 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8258 | PyObject * _resultobj; | |
8259 | wxToggleButton * _arg0; | |
8260 | bool _arg1; | |
8261 | PyObject * _argo0 = 0; | |
8262 | int tempbool1; | |
8263 | char *_kwnames[] = { "self","value", NULL }; | |
8264 | ||
8265 | self = self; | |
8266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
8267 | return NULL; | |
8268 | if (_argo0) { | |
8269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
8271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
8272 | return NULL; | |
8273 | } | |
8274 | } | |
8275 | _arg1 = (bool ) tempbool1; | |
8276 | { | |
8277 | wxPy_BEGIN_ALLOW_THREADS; | |
8278 | wxToggleButton_SetValue(_arg0,_arg1); | |
8279 | ||
8280 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8281 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
8282 | } Py_INCREF(Py_None); |
8283 | _resultobj = Py_None; | |
8284 | return _resultobj; | |
8285 | } | |
8286 | ||
8287 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
8288 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8289 | PyObject * _resultobj; | |
8290 | bool _result; | |
8291 | wxToggleButton * _arg0; | |
8292 | PyObject * _argo0 = 0; | |
8293 | char *_kwnames[] = { "self", NULL }; | |
8294 | ||
8295 | self = self; | |
8296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
8297 | return NULL; | |
8298 | if (_argo0) { | |
8299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
8301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
8302 | return NULL; | |
8303 | } | |
8304 | } | |
8305 | { | |
8306 | wxPy_BEGIN_ALLOW_THREADS; | |
8307 | _result = (bool )wxToggleButton_GetValue(_arg0); | |
8308 | ||
8309 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8310 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
8311 | } _resultobj = Py_BuildValue("i",_result); |
8312 | return _resultobj; | |
8313 | } | |
8314 | ||
8315 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
8316 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8317 | PyObject * _resultobj; | |
8318 | wxToggleButton * _arg0; | |
8319 | wxString * _arg1; | |
8320 | PyObject * _argo0 = 0; | |
8321 | PyObject * _obj1 = 0; | |
8322 | char *_kwnames[] = { "self","label", NULL }; | |
8323 | ||
8324 | self = self; | |
8325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
8326 | return NULL; | |
8327 | if (_argo0) { | |
8328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
8330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
8331 | return NULL; | |
8332 | } | |
8333 | } | |
8334 | { | |
8335 | #if PYTHON_API_VERSION >= 1009 | |
8336 | char* tmpPtr; int tmpSize; | |
8337 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8338 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
d1679124 RD |
8339 | return NULL; |
8340 | } | |
8341 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8342 | return NULL; | |
8343 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8344 | #else | |
8345 | if (!PyString_Check(_obj1)) { | |
8346 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8347 | return NULL; | |
8348 | } | |
8349 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8350 | #endif | |
8351 | } | |
8352 | { | |
8353 | wxPy_BEGIN_ALLOW_THREADS; | |
8354 | wxToggleButton_SetLabel(_arg0,*_arg1); | |
8355 | ||
8356 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8357 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
8358 | } Py_INCREF(Py_None); |
8359 | _resultobj = Py_None; | |
8360 | { | |
8361 | if (_obj1) | |
8362 | delete _arg1; | |
8363 | } | |
8364 | return _resultobj; | |
8365 | } | |
8366 | ||
8ab979d7 | 8367 | static PyMethodDef controlscMethods[] = { |
d1679124 RD |
8368 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
8369 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8370 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8371 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
8372 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
8373 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
8374 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8375 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
8376 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8377 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8378 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, |
8379 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
8380 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
8381 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8382 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
8383 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
8384 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
8385 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
8386 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8387 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
8388 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
8389 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
8390 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
8391 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
8392 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
8393 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
8394 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
8395 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
8396 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
8397 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, | |
8398 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8399 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8400 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
8401 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
8402 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
8403 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8404 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8405 | { "wxRadioBox_SetItemLabel", (PyCFunction) _wrap_wxRadioBox_SetItemLabel, METH_VARARGS | METH_KEYWORDS }, | |
8406 | { "wxRadioBox_Number", (PyCFunction) _wrap_wxRadioBox_Number, METH_VARARGS | METH_KEYWORDS }, | |
8407 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8408 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
8409 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8410 | { "wxRadioBox_GetItemLabel", (PyCFunction) _wrap_wxRadioBox_GetItemLabel, METH_VARARGS | METH_KEYWORDS }, | |
8411 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
8412 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
8413 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
8414 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
8415 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
8416 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
8417 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
8418 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
8419 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8420 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
8421 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8422 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
8423 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
8424 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
8425 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
8426 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
26b9cf27 | 8427 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8428 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
8429 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
8430 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
8431 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
8432 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
8433 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
8434 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
8435 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8436 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, |
8437 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8438 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
8439 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
8440 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
8441 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
8442 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
8443 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
8444 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
8445 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
8446 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
8447 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8448 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8449 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
8450 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
8451 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
8452 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
8453 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8454 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
8455 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
8456 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
8457 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
8458 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
8459 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8460 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
8461 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
8462 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
8463 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
8464 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
8465 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
8466 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
8467 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
8468 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8469 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
8470 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 8471 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8472 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, |
8473 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
8474 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
8475 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8476 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
8477 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8478 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
8479 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
8480 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
8481 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
8482 | { "wxListBox_Number", (PyCFunction) _wrap_wxListBox_Number, METH_VARARGS | METH_KEYWORDS }, | |
8483 | { "wxListBox_GetStringSelection", (PyCFunction) _wrap_wxListBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8484 | { "wxListBox_GetString", (PyCFunction) _wrap_wxListBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 8485 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8486 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
8487 | { "wxListBox_GetSelection", (PyCFunction) _wrap_wxListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8488 | { "wxListBox_FindString", (PyCFunction) _wrap_wxListBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
8489 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
8490 | { "wxListBox_Delete", (PyCFunction) _wrap_wxListBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
8491 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8492 | { "wxListBox_Append", (PyCFunction) _wrap_wxListBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
8493 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, | |
8494 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8495 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8496 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, | |
8497 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
8498 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
8499 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8500 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
8501 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
8502 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
8503 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8504 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
8505 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
8506 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
8507 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, | |
8508 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8509 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
8510 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8511 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
8512 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
8513 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
8514 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8515 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
8516 | { "wxComboBox_Number", (PyCFunction) _wrap_wxComboBox_Number, METH_VARARGS | METH_KEYWORDS }, | |
8517 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8518 | { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8519 | { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
8520 | { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8521 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
8522 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
8523 | { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
8524 | { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
8525 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
8526 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
8527 | { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8528 | { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
8529 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, | |
8530 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8531 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8532 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
8533 | { "wxChoice_Number", (PyCFunction) _wrap_wxChoice_Number, METH_VARARGS | METH_KEYWORDS }, | |
8534 | { "wxChoice_GetStringSelection", (PyCFunction) _wrap_wxChoice_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8535 | { "wxChoice_GetString", (PyCFunction) _wrap_wxChoice_GetString, METH_VARARGS | METH_KEYWORDS }, | |
8536 | { "wxChoice_GetSelection", (PyCFunction) _wrap_wxChoice_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8537 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
8538 | { "wxChoice_FindString", (PyCFunction) _wrap_wxChoice_FindString, METH_VARARGS | METH_KEYWORDS }, | |
8539 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8540 | { "wxChoice_Append", (PyCFunction) _wrap_wxChoice_Append, METH_VARARGS | METH_KEYWORDS }, | |
8541 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, | |
8542 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8543 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8544 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8545 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, |
8546 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
8547 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8548 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, |
8549 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
8550 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
8551 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
8552 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
8553 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
8554 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
8555 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
8556 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
8557 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
8558 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8559 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, |
8560 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, | |
8561 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8562 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8563 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 RD |
8564 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, |
8565 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
8566 | { NULL, NULL } |
8567 | }; | |
1d99702e RD |
8568 | #ifdef __cplusplus |
8569 | } | |
8570 | #endif | |
8571 | /* | |
8572 | * This table is used by the pointer type-checker | |
8573 | */ | |
8574 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 8575 | { "_signed_long","_long",0}, |
b1462dfa | 8576 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
8577 | { "_wxPrintQuality","_int",0}, |
8578 | { "_wxPrintQuality","_signed_int",0}, | |
8579 | { "_wxPrintQuality","_unsigned_int",0}, | |
8580 | { "_wxPrintQuality","_wxWindowID",0}, | |
8581 | { "_wxPrintQuality","_uint",0}, | |
8582 | { "_wxPrintQuality","_EBool",0}, | |
8583 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 8584 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 8585 | { "_byte","_unsigned_char",0}, |
1d99702e | 8586 | { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, |
1d99702e RD |
8587 | { "_long","_unsigned_long",0}, |
8588 | { "_long","_signed_long",0}, | |
b1462dfa | 8589 | { "_size_t","_wxCoord",0}, |
1d99702e | 8590 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 8591 | { "_size_t","_time_t",0}, |
1d99702e RD |
8592 | { "_size_t","_unsigned_int",0}, |
8593 | { "_size_t","_int",0}, | |
8594 | { "_size_t","_wxWindowID",0}, | |
8595 | { "_size_t","_uint",0}, | |
b1462dfa | 8596 | { "_uint","_wxCoord",0}, |
1d99702e | 8597 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 8598 | { "_uint","_time_t",0}, |
1d99702e RD |
8599 | { "_uint","_size_t",0}, |
8600 | { "_uint","_unsigned_int",0}, | |
8601 | { "_uint","_int",0}, | |
8602 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 8603 | { "_wxChar","_char",0}, |
f6bcfd97 | 8604 | { "_char","_wxChar",0}, |
f6bcfd97 | 8605 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
b1462dfa | 8606 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
8607 | { "_EBool","_wxPrintQuality",0}, |
8608 | { "_EBool","_signed_int",0}, | |
8609 | { "_EBool","_int",0}, | |
8610 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 8611 | { "_unsigned_long","_long",0}, |
b1462dfa | 8612 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
8613 | { "_signed_int","_wxPrintQuality",0}, |
8614 | { "_signed_int","_EBool",0}, | |
8615 | { "_signed_int","_wxWindowID",0}, | |
8616 | { "_signed_int","_int",0}, | |
1d99702e | 8617 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
1d99702e RD |
8618 | { "_WXTYPE","_short",0}, |
8619 | { "_WXTYPE","_signed_short",0}, | |
8620 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
8621 | { "_unsigned_short","_WXTYPE",0}, |
8622 | { "_unsigned_short","_short",0}, | |
9416aa89 | 8623 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, |
9416aa89 | 8624 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, |
9416aa89 | 8625 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, |
9416aa89 | 8626 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, |
9416aa89 | 8627 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, |
9416aa89 | 8628 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, |
9416aa89 | 8629 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, |
9416aa89 | 8630 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, |
9416aa89 | 8631 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, |
9416aa89 | 8632 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, |
9416aa89 | 8633 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, |
9416aa89 | 8634 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, |
9416aa89 | 8635 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, |
9416aa89 | 8636 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, |
9416aa89 | 8637 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, |
9416aa89 | 8638 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, |
9416aa89 | 8639 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, |
9416aa89 | 8640 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, |
9416aa89 | 8641 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, |
9416aa89 | 8642 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, |
9416aa89 | 8643 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, |
1d99702e RD |
8644 | { "_signed_short","_WXTYPE",0}, |
8645 | { "_signed_short","_short",0}, | |
1d99702e | 8646 | { "_unsigned_char","_byte",0}, |
d1679124 | 8647 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, |
f6bcfd97 | 8648 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
1d99702e | 8649 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, |
1d99702e | 8650 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, |
1d99702e | 8651 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, |
1d99702e | 8652 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, |
1d99702e | 8653 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, |
1d99702e | 8654 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, |
1d99702e | 8655 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, |
1d99702e | 8656 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, |
1d99702e | 8657 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, |
1d99702e | 8658 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, |
1d99702e | 8659 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, |
1d99702e | 8660 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, |
1d99702e | 8661 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, |
1d99702e | 8662 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, |
1d99702e | 8663 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, |
1d99702e | 8664 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, |
1d99702e | 8665 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, |
1d99702e | 8666 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, |
b1462dfa | 8667 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 8668 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 8669 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
8670 | { "_unsigned_int","_size_t",0}, |
8671 | { "_unsigned_int","_uint",0}, | |
8672 | { "_unsigned_int","_wxWindowID",0}, | |
8673 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
8674 | { "_short","_WXTYPE",0}, |
8675 | { "_short","_unsigned_short",0}, | |
8676 | { "_short","_signed_short",0}, | |
b1462dfa | 8677 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 8678 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 8679 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
8680 | { "_wxWindowID","_size_t",0}, |
8681 | { "_wxWindowID","_EBool",0}, | |
8682 | { "_wxWindowID","_uint",0}, | |
8683 | { "_wxWindowID","_int",0}, | |
8684 | { "_wxWindowID","_signed_int",0}, | |
8685 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 8686 | { "_int","_wxCoord",0}, |
1d99702e | 8687 | { "_int","_wxPrintQuality",0}, |
c368d904 | 8688 | { "_int","_time_t",0}, |
1d99702e RD |
8689 | { "_int","_size_t",0}, |
8690 | { "_int","_EBool",0}, | |
8691 | { "_int","_uint",0}, | |
8692 | { "_int","_wxWindowID",0}, | |
8693 | { "_int","_unsigned_int",0}, | |
8694 | { "_int","_signed_int",0}, | |
c368d904 RD |
8695 | { "_time_t","_wxCoord",0}, |
8696 | { "_time_t","_wxPrintQuality",0}, | |
8697 | { "_time_t","_unsigned_int",0}, | |
8698 | { "_time_t","_int",0}, | |
8699 | { "_time_t","_wxWindowID",0}, | |
8700 | { "_time_t","_uint",0}, | |
8701 | { "_time_t","_size_t",0}, | |
1d99702e | 8702 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
b1462dfa RD |
8703 | { "_wxCoord","_int",0}, |
8704 | { "_wxCoord","_signed_int",0}, | |
8705 | { "_wxCoord","_unsigned_int",0}, | |
8706 | { "_wxCoord","_wxWindowID",0}, | |
8707 | { "_wxCoord","_uint",0}, | |
8708 | { "_wxCoord","_EBool",0}, | |
8709 | { "_wxCoord","_size_t",0}, | |
c368d904 | 8710 | { "_wxCoord","_time_t",0}, |
b1462dfa | 8711 | { "_wxCoord","_wxPrintQuality",0}, |
d1679124 | 8712 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
f6bcfd97 | 8713 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
1d99702e | 8714 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, |
1d99702e | 8715 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, |
1d99702e | 8716 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, |
1d99702e | 8717 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, |
1d99702e | 8718 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, |
1d99702e | 8719 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, |
1d99702e | 8720 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, |
1d99702e | 8721 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, |
1d99702e | 8722 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, |
1d99702e | 8723 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, |
1d99702e | 8724 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, |
1d99702e | 8725 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, |
1d99702e | 8726 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, |
1d99702e | 8727 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, |
1d99702e | 8728 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, |
1d99702e | 8729 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, |
1d99702e | 8730 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, |
1d99702e | 8731 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, |
1d99702e | 8732 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, |
d1679124 | 8733 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
f6bcfd97 | 8734 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
1d99702e | 8735 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, |
1d99702e | 8736 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, |
1d99702e | 8737 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, |
1d99702e | 8738 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, |
1d99702e | 8739 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, |
1d99702e | 8740 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, |
1d99702e | 8741 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, |
1d99702e | 8742 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, |
1d99702e | 8743 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, |
1d99702e | 8744 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, |
1d99702e | 8745 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, |
1d99702e | 8746 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, |
1d99702e | 8747 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, |
1d99702e | 8748 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, |
1d99702e | 8749 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, |
1d99702e | 8750 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, |
1d99702e | 8751 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, |
1d99702e | 8752 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, |
1d99702e | 8753 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, |
1d99702e RD |
8754 | {0,0,0}}; |
8755 | ||
8ab979d7 RD |
8756 | static PyObject *SWIG_globals; |
8757 | #ifdef __cplusplus | |
8758 | extern "C" | |
8759 | #endif | |
1d99702e | 8760 | SWIGEXPORT(void) initcontrolsc() { |
8ab979d7 RD |
8761 | PyObject *m, *d; |
8762 | SWIG_globals = SWIG_newvarlink(); | |
8763 | m = Py_InitModule("controlsc", controlscMethods); | |
8764 | d = PyModule_GetDict(m); | |
2f90df85 RD |
8765 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
8766 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
d1679124 | 8767 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
1d99702e RD |
8768 | { |
8769 | int i; | |
8770 | for (i = 0; _swig_mapping[i].n1; i++) | |
8771 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8772 | } | |
8ab979d7 | 8773 | } |