]>
Commit | Line | Data |
---|---|---|
70551f47 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/controls.cpp |
70551f47 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
70551f47 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) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
70551f47 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
1c09ae54 | 30 | # define SWIGEXPORT(a) a _export |
70551f47 | 31 | # else |
1c09ae54 | 32 | # define SWIGEXPORT(a) a |
70551f47 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1c09ae54 | 36 | # define SWIGEXPORT(a) a |
70551f47 RD |
37 | #endif |
38 | ||
1c09ae54 RD |
39 | #include "Python.h" |
40 | ||
70551f47 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
1c09ae54 | 44 | |
70551f47 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 *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
70551f47 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
70551f47 RD |
54 | #define SWIG_init initcontrolsc |
55 | ||
56 | #define SWIG_name "controlsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/slider.h> | |
62bd0874 | 60 | #include <wx/spinbutt.h> |
f6bcfd97 | 61 | #include <wx/spinctrl.h> |
ab9bc19b | 62 | #include <wx/dynarray.h> |
8bf5d46e | 63 | #include <wx/statline.h> |
7a446686 | 64 | #include <wx/tglbtn.h> |
70551f47 RD |
65 | |
66 | #ifdef __WXMSW__ | |
b26e2dc4 RD |
67 | #if wxUSE_OWNER_DRAWN |
68 | #include <wx/checklst.h> | |
69 | #endif | |
70551f47 RD |
70 | #endif |
71 | ||
c95e68d8 RD |
72 | #ifdef __WXGTK__ |
73 | #include <wx/checklst.h> | |
74 | #endif | |
75 | ||
d24a34bb | 76 | |
70551f47 RD |
77 | |
78 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
79 | PyObject* o2; | |
80 | PyObject* o3; | |
81 | ||
1c09ae54 | 82 | if (!target) { |
70551f47 | 83 | target = o; |
1c09ae54 | 84 | } else if (target == Py_None) { |
70551f47 RD |
85 | Py_DECREF(Py_None); |
86 | target = o; | |
1c09ae54 | 87 | } else { |
70551f47 RD |
88 | if (!PyTuple_Check(target)) { |
89 | o2 = target; | |
90 | target = PyTuple_New(1); | |
91 | PyTuple_SetItem(target, 0, o2); | |
92 | } | |
1c09ae54 RD |
93 | o3 = PyTuple_New(1); |
94 | PyTuple_SetItem(o3, 0, o); | |
70551f47 RD |
95 | |
96 | o2 = target; | |
1c09ae54 RD |
97 | target = PySequence_Concat(o2, o3); |
98 | Py_DECREF(o2); | |
70551f47 RD |
99 | Py_DECREF(o3); |
100 | } | |
101 | return target; | |
102 | } | |
103 | ||
7a446686 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 | |
2d091820 RD |
109 | #ifdef __cplusplus |
110 | extern "C" { | |
111 | #endif | |
37f6a977 RD |
112 | static int _wrap_wxDefaultValidator_set(PyObject *val) { |
113 | ||
114 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
115 | return 1; | |
116 | } | |
117 | ||
118 | static PyObject *_wrap_wxDefaultValidator_get() { | |
119 | PyObject * pyobj; | |
120 | char ptemp[128]; | |
121 | ||
122 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
123 | pyobj = PyString_FromString(ptemp); | |
124 | return pyobj; | |
125 | } | |
126 | ||
70551f47 RD |
127 | static void *SwigwxControlTowxWindow(void *ptr) { |
128 | wxControl *src; | |
129 | wxWindow *dest; | |
130 | src = (wxControl *) ptr; | |
131 | dest = (wxWindow *) src; | |
132 | return (void *) dest; | |
133 | } | |
134 | ||
135 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
136 | wxControl *src; | |
137 | wxEvtHandler *dest; | |
138 | src = (wxControl *) ptr; | |
139 | dest = (wxEvtHandler *) src; | |
140 | return (void *) dest; | |
141 | } | |
142 | ||
9df61a29 RD |
143 | static void *SwigwxControlTowxObject(void *ptr) { |
144 | wxControl *src; | |
145 | wxObject *dest; | |
146 | src = (wxControl *) ptr; | |
147 | dest = (wxObject *) src; | |
148 | return (void *) dest; | |
149 | } | |
150 | ||
ab2208b5 | 151 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
56f5d962 RD |
152 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
153 | PyObject * _resultobj; | |
154 | wxControl * _result; | |
ab2208b5 RD |
155 | wxWindow * _arg0; |
156 | wxWindowID _arg1; | |
b68dc582 RD |
157 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
158 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
ab2208b5 | 159 | long _arg4 = (long ) 0; |
b68dc582 | 160 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
ab2208b5 | 161 | char * _arg6 = (char *) "control"; |
56f5d962 | 162 | PyObject * _argo0 = 0; |
56f5d962 | 163 | wxPoint temp; |
ab2208b5 | 164 | PyObject * _obj2 = 0; |
56f5d962 | 165 | wxSize temp0; |
ab2208b5 RD |
166 | PyObject * _obj3 = 0; |
167 | PyObject * _argo5 = 0; | |
168 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
169 | char _ptemp[128]; | |
56f5d962 RD |
170 | |
171 | self = self; | |
ab2208b5 | 172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
56f5d962 RD |
173 | return NULL; |
174 | if (_argo0) { | |
175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 RD |
176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
56f5d962 RD |
178 | return NULL; |
179 | } | |
180 | } | |
ab2208b5 | 181 | if (_obj2) |
56f5d962 | 182 | { |
ab2208b5 RD |
183 | _arg2 = &temp; |
184 | if (! wxPoint_helper(_obj2, &_arg2)) | |
56f5d962 RD |
185 | return NULL; |
186 | } | |
ab2208b5 | 187 | if (_obj3) |
56f5d962 | 188 | { |
ab2208b5 RD |
189 | _arg3 = &temp0; |
190 | if (! wxSize_helper(_obj3, &_arg3)) | |
56f5d962 RD |
191 | return NULL; |
192 | } | |
ab2208b5 RD |
193 | if (_argo5) { |
194 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
195 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
56f5d962 RD |
197 | return NULL; |
198 | } | |
199 | } | |
200 | { | |
201 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 202 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
56f5d962 RD |
203 | |
204 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 205 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
206 | } if (_result) { |
207 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
208 | _resultobj = Py_BuildValue("s",_ptemp); | |
209 | } else { | |
210 | Py_INCREF(Py_None); | |
211 | _resultobj = Py_None; | |
212 | } | |
56f5d962 RD |
213 | return _resultobj; |
214 | } | |
215 | ||
aa2a5b86 RD |
216 | #define new_wxPreControl() (new wxControl()) |
217 | static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
218 | PyObject * _resultobj; | |
219 | wxControl * _result; | |
220 | char *_kwnames[] = { NULL }; | |
221 | char _ptemp[128]; | |
222 | ||
223 | self = self; | |
224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames)) | |
225 | return NULL; | |
226 | { | |
227 | wxPy_BEGIN_ALLOW_THREADS; | |
228 | _result = (wxControl *)new_wxPreControl(); | |
229 | ||
230 | wxPy_END_ALLOW_THREADS; | |
231 | if (PyErr_Occurred()) return NULL; | |
232 | } if (_result) { | |
233 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
234 | _resultobj = Py_BuildValue("s",_ptemp); | |
235 | } else { | |
236 | Py_INCREF(Py_None); | |
237 | _resultobj = Py_None; | |
238 | } | |
239 | return _resultobj; | |
240 | } | |
241 | ||
242 | #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
243 | static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
244 | PyObject * _resultobj; | |
245 | bool _result; | |
246 | wxControl * _arg0; | |
247 | wxWindow * _arg1; | |
248 | wxWindowID _arg2; | |
249 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
250 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
251 | long _arg5 = (long ) 0; | |
252 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
253 | char * _arg7 = (char *) "control"; | |
254 | PyObject * _argo0 = 0; | |
255 | PyObject * _argo1 = 0; | |
256 | wxPoint temp; | |
257 | PyObject * _obj3 = 0; | |
258 | wxSize temp0; | |
259 | PyObject * _obj4 = 0; | |
260 | PyObject * _argo6 = 0; | |
261 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
262 | ||
263 | self = self; | |
264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOs:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
265 | return NULL; | |
266 | if (_argo0) { | |
267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p."); | |
270 | return NULL; | |
271 | } | |
272 | } | |
273 | if (_argo1) { | |
274 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
275 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p."); | |
277 | return NULL; | |
278 | } | |
279 | } | |
280 | if (_obj3) | |
281 | { | |
282 | _arg3 = &temp; | |
283 | if (! wxPoint_helper(_obj3, &_arg3)) | |
284 | return NULL; | |
285 | } | |
286 | if (_obj4) | |
287 | { | |
288 | _arg4 = &temp0; | |
289 | if (! wxSize_helper(_obj4, &_arg4)) | |
290 | return NULL; | |
291 | } | |
292 | if (_argo6) { | |
293 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
294 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p."); | |
296 | return NULL; | |
297 | } | |
298 | } | |
299 | { | |
300 | wxPy_BEGIN_ALLOW_THREADS; | |
301 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
302 | ||
303 | wxPy_END_ALLOW_THREADS; | |
304 | if (PyErr_Occurred()) return NULL; | |
305 | } _resultobj = Py_BuildValue("i",_result); | |
306 | return _resultobj; | |
307 | } | |
308 | ||
56f5d962 RD |
309 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) |
310 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
311 | PyObject * _resultobj; | |
312 | wxControl * _arg0; | |
313 | wxCommandEvent * _arg1; | |
314 | PyObject * _argo0 = 0; | |
315 | PyObject * _argo1 = 0; | |
316 | char *_kwnames[] = { "self","event", NULL }; | |
317 | ||
318 | self = self; | |
319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) | |
320 | return NULL; | |
321 | if (_argo0) { | |
322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); | |
325 | return NULL; | |
326 | } | |
327 | } | |
328 | if (_argo1) { | |
329 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
330 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); | |
332 | return NULL; | |
333 | } | |
334 | } | |
335 | { | |
336 | wxPy_BEGIN_ALLOW_THREADS; | |
337 | wxControl_Command(_arg0,*_arg1); | |
338 | ||
339 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 340 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
341 | } Py_INCREF(Py_None); |
342 | _resultobj = Py_None; | |
343 | return _resultobj; | |
344 | } | |
345 | ||
70551f47 | 346 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) |
107e4716 | 347 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
348 | PyObject * _resultobj; |
349 | wxString * _result; | |
350 | wxControl * _arg0; | |
2d091820 | 351 | PyObject * _argo0 = 0; |
107e4716 | 352 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
353 | |
354 | self = self; | |
107e4716 | 355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) |
70551f47 | 356 | return NULL; |
2d091820 RD |
357 | if (_argo0) { |
358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
70551f47 RD |
360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); |
361 | return NULL; | |
362 | } | |
363 | } | |
70551f47 | 364 | { |
ab9bc19b RD |
365 | wxPy_BEGIN_ALLOW_THREADS; |
366 | _result = new wxString (wxControl_GetLabel(_arg0)); | |
367 | ||
368 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 369 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 370 | }{ |
e02c03a4 | 371 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
372 | } |
373 | { | |
374 | delete _result; | |
375 | } | |
376 | return _resultobj; | |
377 | } | |
378 | ||
379 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
107e4716 | 380 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
381 | PyObject * _resultobj; |
382 | wxControl * _arg0; | |
383 | wxString * _arg1; | |
2d091820 | 384 | PyObject * _argo0 = 0; |
70551f47 | 385 | PyObject * _obj1 = 0; |
107e4716 | 386 | char *_kwnames[] = { "self","label", NULL }; |
70551f47 RD |
387 | |
388 | self = self; | |
107e4716 | 389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) |
70551f47 | 390 | return NULL; |
2d091820 RD |
391 | if (_argo0) { |
392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
70551f47 RD |
394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); |
395 | return NULL; | |
396 | } | |
397 | } | |
398 | { | |
2cd2fac8 RD |
399 | #if PYTHON_API_VERSION >= 1009 |
400 | char* tmpPtr; int tmpSize; | |
401 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 402 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
403 | return NULL; |
404 | } | |
405 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
406 | return NULL; | |
407 | _arg1 = new wxString(tmpPtr, tmpSize); | |
408 | #else | |
70551f47 RD |
409 | if (!PyString_Check(_obj1)) { |
410 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
411 | return NULL; | |
412 | } | |
2cd2fac8 RD |
413 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
414 | #endif | |
70551f47 | 415 | } |
ab9bc19b RD |
416 | { |
417 | wxPy_BEGIN_ALLOW_THREADS; | |
418 | wxControl_SetLabel(_arg0,*_arg1); | |
419 | ||
420 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 421 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 422 | } Py_INCREF(Py_None); |
70551f47 RD |
423 | _resultobj = Py_None; |
424 | { | |
425 | if (_obj1) | |
426 | delete _arg1; | |
427 | } | |
428 | return _resultobj; | |
429 | } | |
430 | ||
65191ae8 RD |
431 | static void *SwigwxControlWithItemsTowxControl(void *ptr) { |
432 | wxControlWithItems *src; | |
433 | wxControl *dest; | |
434 | src = (wxControlWithItems *) ptr; | |
435 | dest = (wxControl *) src; | |
436 | return (void *) dest; | |
437 | } | |
438 | ||
439 | static void *SwigwxControlWithItemsTowxWindow(void *ptr) { | |
440 | wxControlWithItems *src; | |
441 | wxWindow *dest; | |
442 | src = (wxControlWithItems *) ptr; | |
443 | dest = (wxWindow *) src; | |
444 | return (void *) dest; | |
445 | } | |
446 | ||
447 | static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) { | |
448 | wxControlWithItems *src; | |
449 | wxEvtHandler *dest; | |
450 | src = (wxControlWithItems *) ptr; | |
451 | dest = (wxEvtHandler *) src; | |
452 | return (void *) dest; | |
453 | } | |
454 | ||
455 | static void *SwigwxControlWithItemsTowxObject(void *ptr) { | |
456 | wxControlWithItems *src; | |
457 | wxObject *dest; | |
458 | src = (wxControlWithItems *) ptr; | |
459 | dest = (wxObject *) src; | |
460 | return (void *) dest; | |
461 | } | |
462 | ||
463 | #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
464 | static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
465 | PyObject * _resultobj; | |
466 | wxControlWithItems * _arg0; | |
467 | int _arg1; | |
468 | PyObject * _argo0 = 0; | |
469 | char *_kwnames[] = { "self","n", NULL }; | |
470 | ||
471 | self = self; | |
472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1)) | |
473 | return NULL; | |
474 | if (_argo0) { | |
475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p."); | |
478 | return NULL; | |
479 | } | |
480 | } | |
481 | { | |
482 | wxPy_BEGIN_ALLOW_THREADS; | |
483 | wxControlWithItems_Delete(_arg0,_arg1); | |
484 | ||
485 | wxPy_END_ALLOW_THREADS; | |
486 | if (PyErr_Occurred()) return NULL; | |
487 | } Py_INCREF(Py_None); | |
488 | _resultobj = Py_None; | |
489 | return _resultobj; | |
490 | } | |
491 | ||
492 | #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount()) | |
493 | static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
494 | PyObject * _resultobj; | |
495 | int _result; | |
496 | wxControlWithItems * _arg0; | |
497 | PyObject * _argo0 = 0; | |
498 | char *_kwnames[] = { "self", NULL }; | |
499 | ||
500 | self = self; | |
501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0)) | |
502 | return NULL; | |
503 | if (_argo0) { | |
504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p."); | |
507 | return NULL; | |
508 | } | |
509 | } | |
510 | { | |
511 | wxPy_BEGIN_ALLOW_THREADS; | |
512 | _result = (int )wxControlWithItems_GetCount(_arg0); | |
513 | ||
514 | wxPy_END_ALLOW_THREADS; | |
515 | if (PyErr_Occurred()) return NULL; | |
516 | } _resultobj = Py_BuildValue("i",_result); | |
517 | return _resultobj; | |
518 | } | |
519 | ||
520 | #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
521 | static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
522 | PyObject * _resultobj; | |
523 | wxString * _result; | |
524 | wxControlWithItems * _arg0; | |
525 | int _arg1; | |
526 | PyObject * _argo0 = 0; | |
527 | char *_kwnames[] = { "self","n", NULL }; | |
528 | ||
529 | self = self; | |
530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1)) | |
531 | return NULL; | |
532 | if (_argo0) { | |
533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p."); | |
536 | return NULL; | |
537 | } | |
538 | } | |
539 | { | |
540 | wxPy_BEGIN_ALLOW_THREADS; | |
541 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); | |
542 | ||
543 | wxPy_END_ALLOW_THREADS; | |
544 | if (PyErr_Occurred()) return NULL; | |
545 | }{ | |
546 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
547 | } | |
548 | { | |
549 | delete _result; | |
550 | } | |
551 | return _resultobj; | |
552 | } | |
553 | ||
554 | #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
555 | static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
556 | PyObject * _resultobj; | |
557 | wxControlWithItems * _arg0; | |
558 | int _arg1; | |
559 | wxString * _arg2; | |
560 | PyObject * _argo0 = 0; | |
561 | PyObject * _obj2 = 0; | |
562 | char *_kwnames[] = { "self","n","s", NULL }; | |
563 | ||
564 | self = self; | |
565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
566 | return NULL; | |
567 | if (_argo0) { | |
568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p."); | |
571 | return NULL; | |
572 | } | |
573 | } | |
574 | { | |
575 | #if PYTHON_API_VERSION >= 1009 | |
576 | char* tmpPtr; int tmpSize; | |
577 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
578 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
579 | return NULL; | |
580 | } | |
581 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
582 | return NULL; | |
583 | _arg2 = new wxString(tmpPtr, tmpSize); | |
584 | #else | |
585 | if (!PyString_Check(_obj2)) { | |
586 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
587 | return NULL; | |
588 | } | |
589 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
590 | #endif | |
591 | } | |
592 | { | |
593 | wxPy_BEGIN_ALLOW_THREADS; | |
594 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); | |
595 | ||
596 | wxPy_END_ALLOW_THREADS; | |
597 | if (PyErr_Occurred()) return NULL; | |
598 | } Py_INCREF(Py_None); | |
599 | _resultobj = Py_None; | |
600 | { | |
601 | if (_obj2) | |
602 | delete _arg2; | |
603 | } | |
604 | return _resultobj; | |
605 | } | |
606 | ||
607 | #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
608 | static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
609 | PyObject * _resultobj; | |
610 | int _result; | |
611 | wxControlWithItems * _arg0; | |
612 | wxString * _arg1; | |
613 | PyObject * _argo0 = 0; | |
614 | PyObject * _obj1 = 0; | |
615 | char *_kwnames[] = { "self","s", NULL }; | |
616 | ||
617 | self = self; | |
618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1)) | |
619 | return NULL; | |
620 | if (_argo0) { | |
621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p."); | |
624 | return NULL; | |
625 | } | |
626 | } | |
627 | { | |
628 | #if PYTHON_API_VERSION >= 1009 | |
629 | char* tmpPtr; int tmpSize; | |
630 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
631 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
632 | return NULL; | |
633 | } | |
634 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
635 | return NULL; | |
636 | _arg1 = new wxString(tmpPtr, tmpSize); | |
637 | #else | |
638 | if (!PyString_Check(_obj1)) { | |
639 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
640 | return NULL; | |
641 | } | |
642 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
643 | #endif | |
644 | } | |
645 | { | |
646 | wxPy_BEGIN_ALLOW_THREADS; | |
647 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); | |
648 | ||
649 | wxPy_END_ALLOW_THREADS; | |
650 | if (PyErr_Occurred()) return NULL; | |
651 | } _resultobj = Py_BuildValue("i",_result); | |
652 | { | |
653 | if (_obj1) | |
654 | delete _arg1; | |
655 | } | |
656 | return _resultobj; | |
657 | } | |
658 | ||
659 | #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0)) | |
660 | static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
661 | PyObject * _resultobj; | |
662 | wxControlWithItems * _arg0; | |
663 | int _arg1; | |
664 | PyObject * _argo0 = 0; | |
665 | char *_kwnames[] = { "self","n", NULL }; | |
666 | ||
667 | self = self; | |
668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1)) | |
669 | return NULL; | |
670 | if (_argo0) { | |
671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p."); | |
674 | return NULL; | |
675 | } | |
676 | } | |
677 | { | |
678 | wxPy_BEGIN_ALLOW_THREADS; | |
679 | wxControlWithItems_Select(_arg0,_arg1); | |
680 | ||
681 | wxPy_END_ALLOW_THREADS; | |
682 | if (PyErr_Occurred()) return NULL; | |
683 | } Py_INCREF(Py_None); | |
684 | _resultobj = Py_None; | |
685 | return _resultobj; | |
686 | } | |
687 | ||
688 | #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
689 | static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
690 | PyObject * _resultobj; | |
691 | int _result; | |
692 | wxControlWithItems * _arg0; | |
693 | PyObject * _argo0 = 0; | |
694 | char *_kwnames[] = { "self", NULL }; | |
695 | ||
696 | self = self; | |
697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0)) | |
698 | return NULL; | |
699 | if (_argo0) { | |
700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p."); | |
703 | return NULL; | |
704 | } | |
705 | } | |
706 | { | |
707 | wxPy_BEGIN_ALLOW_THREADS; | |
708 | _result = (int )wxControlWithItems_GetSelection(_arg0); | |
709 | ||
710 | wxPy_END_ALLOW_THREADS; | |
711 | if (PyErr_Occurred()) return NULL; | |
712 | } _resultobj = Py_BuildValue("i",_result); | |
713 | return _resultobj; | |
714 | } | |
715 | ||
716 | #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
717 | static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
718 | PyObject * _resultobj; | |
719 | wxString * _result; | |
720 | wxControlWithItems * _arg0; | |
721 | PyObject * _argo0 = 0; | |
722 | char *_kwnames[] = { "self", NULL }; | |
723 | ||
724 | self = self; | |
725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0)) | |
726 | return NULL; | |
727 | if (_argo0) { | |
728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p."); | |
731 | return NULL; | |
732 | } | |
733 | } | |
734 | { | |
735 | wxPy_BEGIN_ALLOW_THREADS; | |
736 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); | |
737 | ||
738 | wxPy_END_ALLOW_THREADS; | |
739 | if (PyErr_Occurred()) return NULL; | |
740 | }{ | |
741 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
742 | } | |
743 | { | |
744 | delete _result; | |
745 | } | |
746 | return _resultobj; | |
747 | } | |
748 | ||
749 | static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) { | |
750 | if (clientData) { | |
751 | wxPyClientData* data = new wxPyClientData(clientData); | |
752 | self->Append(item, data); | |
753 | } else | |
754 | self->Append(item); | |
755 | } | |
756 | static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
757 | PyObject * _resultobj; | |
758 | wxControlWithItems * _arg0; | |
759 | wxString * _arg1; | |
760 | PyObject * _arg2 = (PyObject *) NULL; | |
761 | PyObject * _argo0 = 0; | |
762 | PyObject * _obj1 = 0; | |
763 | PyObject * _obj2 = 0; | |
764 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
765 | ||
766 | self = self; | |
767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
768 | return NULL; | |
769 | if (_argo0) { | |
770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p."); | |
773 | return NULL; | |
774 | } | |
775 | } | |
776 | { | |
777 | #if PYTHON_API_VERSION >= 1009 | |
778 | char* tmpPtr; int tmpSize; | |
779 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
780 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
781 | return NULL; | |
782 | } | |
783 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
784 | return NULL; | |
785 | _arg1 = new wxString(tmpPtr, tmpSize); | |
786 | #else | |
787 | if (!PyString_Check(_obj1)) { | |
788 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
789 | return NULL; | |
790 | } | |
791 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
792 | #endif | |
793 | } | |
794 | if (_obj2) | |
795 | { | |
796 | _arg2 = _obj2; | |
797 | } | |
798 | { | |
799 | wxPy_BEGIN_ALLOW_THREADS; | |
800 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); | |
801 | ||
802 | wxPy_END_ALLOW_THREADS; | |
803 | if (PyErr_Occurred()) return NULL; | |
804 | } Py_INCREF(Py_None); | |
805 | _resultobj = Py_None; | |
806 | { | |
807 | if (_obj1) | |
808 | delete _arg1; | |
809 | } | |
810 | return _resultobj; | |
811 | } | |
812 | ||
813 | static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) { | |
814 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
815 | if (data) { | |
816 | Py_INCREF(data->m_obj); | |
817 | return data->m_obj; | |
818 | } else { | |
819 | Py_INCREF(Py_None); | |
820 | return Py_None; | |
821 | } | |
822 | } | |
823 | static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
824 | PyObject * _resultobj; | |
825 | PyObject * _result; | |
826 | wxControlWithItems * _arg0; | |
827 | int _arg1; | |
828 | PyObject * _argo0 = 0; | |
829 | char *_kwnames[] = { "self","n", NULL }; | |
830 | ||
831 | self = self; | |
832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1)) | |
833 | return NULL; | |
834 | if (_argo0) { | |
835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p."); | |
838 | return NULL; | |
839 | } | |
840 | } | |
841 | { | |
842 | wxPy_BEGIN_ALLOW_THREADS; | |
843 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); | |
844 | ||
845 | wxPy_END_ALLOW_THREADS; | |
846 | if (PyErr_Occurred()) return NULL; | |
847 | }{ | |
848 | _resultobj = _result; | |
849 | } | |
850 | return _resultobj; | |
851 | } | |
852 | ||
853 | static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) { | |
854 | wxPyClientData* data = new wxPyClientData(clientData); | |
855 | self->SetClientObject(n, data); | |
856 | } | |
857 | static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
858 | PyObject * _resultobj; | |
859 | wxControlWithItems * _arg0; | |
860 | int _arg1; | |
861 | PyObject * _arg2; | |
862 | PyObject * _argo0 = 0; | |
863 | PyObject * _obj2 = 0; | |
864 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
865 | ||
866 | self = self; | |
867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
868 | return NULL; | |
869 | if (_argo0) { | |
870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p."); | |
873 | return NULL; | |
874 | } | |
875 | } | |
876 | { | |
877 | _arg2 = _obj2; | |
878 | } | |
879 | { | |
880 | wxPy_BEGIN_ALLOW_THREADS; | |
881 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); | |
882 | ||
883 | wxPy_END_ALLOW_THREADS; | |
884 | if (PyErr_Occurred()) return NULL; | |
885 | } Py_INCREF(Py_None); | |
886 | _resultobj = Py_None; | |
887 | return _resultobj; | |
888 | } | |
889 | ||
70551f47 RD |
890 | static void *SwigwxButtonTowxControl(void *ptr) { |
891 | wxButton *src; | |
892 | wxControl *dest; | |
893 | src = (wxButton *) ptr; | |
894 | dest = (wxControl *) src; | |
895 | return (void *) dest; | |
896 | } | |
897 | ||
898 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
899 | wxButton *src; | |
900 | wxWindow *dest; | |
901 | src = (wxButton *) ptr; | |
902 | dest = (wxWindow *) src; | |
903 | return (void *) dest; | |
904 | } | |
905 | ||
906 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
907 | wxButton *src; | |
908 | wxEvtHandler *dest; | |
909 | src = (wxButton *) ptr; | |
910 | dest = (wxEvtHandler *) src; | |
911 | return (void *) dest; | |
912 | } | |
913 | ||
9df61a29 RD |
914 | static void *SwigwxButtonTowxObject(void *ptr) { |
915 | wxButton *src; | |
916 | wxObject *dest; | |
917 | src = (wxButton *) ptr; | |
918 | dest = (wxObject *) src; | |
919 | return (void *) dest; | |
920 | } | |
921 | ||
70551f47 | 922 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 923 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
924 | PyObject * _resultobj; |
925 | wxButton * _result; | |
926 | wxWindow * _arg0; | |
927 | wxWindowID _arg1; | |
928 | wxString * _arg2; | |
b68dc582 RD |
929 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
930 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 931 | long _arg5 = (long ) 0; |
b68dc582 | 932 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
933 | char * _arg7 = (char *) "button"; |
934 | PyObject * _argo0 = 0; | |
70551f47 | 935 | PyObject * _obj2 = 0; |
37f6a977 RD |
936 | wxPoint temp; |
937 | PyObject * _obj3 = 0; | |
938 | wxSize temp0; | |
939 | PyObject * _obj4 = 0; | |
2d091820 | 940 | PyObject * _argo6 = 0; |
107e4716 | 941 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
942 | char _ptemp[128]; |
943 | ||
944 | self = self; | |
37f6a977 | 945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 946 | return NULL; |
2d091820 RD |
947 | if (_argo0) { |
948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); |
951 | return NULL; | |
952 | } | |
953 | } | |
954 | { | |
2cd2fac8 RD |
955 | #if PYTHON_API_VERSION >= 1009 |
956 | char* tmpPtr; int tmpSize; | |
957 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 958 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
959 | return NULL; |
960 | } | |
961 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
962 | return NULL; | |
963 | _arg2 = new wxString(tmpPtr, tmpSize); | |
964 | #else | |
70551f47 RD |
965 | if (!PyString_Check(_obj2)) { |
966 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
967 | return NULL; | |
968 | } | |
2cd2fac8 RD |
969 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
970 | #endif | |
70551f47 | 971 | } |
37f6a977 RD |
972 | if (_obj3) |
973 | { | |
974 | _arg3 = &temp; | |
975 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 976 | return NULL; |
37f6a977 RD |
977 | } |
978 | if (_obj4) | |
979 | { | |
980 | _arg4 = &temp0; | |
981 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 982 | return NULL; |
37f6a977 | 983 | } |
2d091820 RD |
984 | if (_argo6) { |
985 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
986 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); |
988 | return NULL; | |
989 | } | |
990 | } | |
ab9bc19b RD |
991 | { |
992 | wxPy_BEGIN_ALLOW_THREADS; | |
993 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
994 | ||
995 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 996 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
997 | } if (_result) { |
998 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
999 | _resultobj = Py_BuildValue("s",_ptemp); | |
1000 | } else { | |
1001 | Py_INCREF(Py_None); | |
1002 | _resultobj = Py_None; | |
1003 | } | |
70551f47 RD |
1004 | { |
1005 | if (_obj2) | |
1006 | delete _arg2; | |
1007 | } | |
1008 | return _resultobj; | |
1009 | } | |
1010 | ||
aa2a5b86 RD |
1011 | #define new_wxPreButton() (new wxButton()) |
1012 | static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1013 | PyObject * _resultobj; | |
1014 | wxButton * _result; | |
1015 | char *_kwnames[] = { NULL }; | |
1016 | char _ptemp[128]; | |
1017 | ||
1018 | self = self; | |
1019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames)) | |
1020 | return NULL; | |
1021 | { | |
1022 | wxPy_BEGIN_ALLOW_THREADS; | |
1023 | _result = (wxButton *)new_wxPreButton(); | |
1024 | ||
1025 | wxPy_END_ALLOW_THREADS; | |
1026 | if (PyErr_Occurred()) return NULL; | |
1027 | } if (_result) { | |
1028 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1029 | _resultobj = Py_BuildValue("s",_ptemp); | |
1030 | } else { | |
1031 | Py_INCREF(Py_None); | |
1032 | _resultobj = Py_None; | |
1033 | } | |
1034 | return _resultobj; | |
1035 | } | |
1036 | ||
1037 | #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1038 | static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1039 | PyObject * _resultobj; | |
1040 | bool _result; | |
1041 | wxButton * _arg0; | |
1042 | wxWindow * _arg1; | |
1043 | wxWindowID _arg2; | |
1044 | wxString * _arg3; | |
1045 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1046 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1047 | long _arg6 = (long ) 0; | |
1048 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1049 | char * _arg8 = (char *) "button"; | |
1050 | PyObject * _argo0 = 0; | |
1051 | PyObject * _argo1 = 0; | |
1052 | PyObject * _obj3 = 0; | |
1053 | wxPoint temp; | |
1054 | PyObject * _obj4 = 0; | |
1055 | wxSize temp0; | |
1056 | PyObject * _obj5 = 0; | |
1057 | PyObject * _argo7 = 0; | |
1058 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
1059 | ||
1060 | self = self; | |
1061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1062 | return NULL; | |
1063 | if (_argo0) { | |
1064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p."); | |
1067 | return NULL; | |
1068 | } | |
1069 | } | |
1070 | if (_argo1) { | |
1071 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1072 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p."); | |
1074 | return NULL; | |
1075 | } | |
1076 | } | |
1077 | { | |
1078 | #if PYTHON_API_VERSION >= 1009 | |
1079 | char* tmpPtr; int tmpSize; | |
1080 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
1081 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1082 | return NULL; | |
1083 | } | |
1084 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
1085 | return NULL; | |
1086 | _arg3 = new wxString(tmpPtr, tmpSize); | |
1087 | #else | |
1088 | if (!PyString_Check(_obj3)) { | |
1089 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1090 | return NULL; | |
1091 | } | |
1092 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
1093 | #endif | |
1094 | } | |
1095 | if (_obj4) | |
1096 | { | |
1097 | _arg4 = &temp; | |
1098 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1099 | return NULL; | |
1100 | } | |
1101 | if (_obj5) | |
1102 | { | |
1103 | _arg5 = &temp0; | |
1104 | if (! wxSize_helper(_obj5, &_arg5)) | |
1105 | return NULL; | |
1106 | } | |
1107 | if (_argo7) { | |
1108 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1109 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p."); | |
1111 | return NULL; | |
1112 | } | |
1113 | } | |
1114 | { | |
1115 | wxPy_BEGIN_ALLOW_THREADS; | |
1116 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
1117 | ||
1118 | wxPy_END_ALLOW_THREADS; | |
1119 | if (PyErr_Occurred()) return NULL; | |
1120 | } _resultobj = Py_BuildValue("i",_result); | |
1121 | { | |
1122 | if (_obj3) | |
1123 | delete _arg3; | |
1124 | } | |
1125 | return _resultobj; | |
1126 | } | |
1127 | ||
70551f47 | 1128 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) |
107e4716 | 1129 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1130 | PyObject * _resultobj; |
1131 | wxButton * _arg0; | |
2d091820 | 1132 | PyObject * _argo0 = 0; |
107e4716 | 1133 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1134 | |
1135 | self = self; | |
107e4716 | 1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) |
70551f47 | 1137 | return NULL; |
2d091820 RD |
1138 | if (_argo0) { |
1139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
70551f47 RD |
1141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); |
1142 | return NULL; | |
1143 | } | |
1144 | } | |
ab9bc19b RD |
1145 | { |
1146 | wxPy_BEGIN_ALLOW_THREADS; | |
1147 | wxButton_SetDefault(_arg0); | |
1148 | ||
1149 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1150 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1151 | } Py_INCREF(Py_None); |
70551f47 RD |
1152 | _resultobj = Py_None; |
1153 | return _resultobj; | |
1154 | } | |
1155 | ||
ab2208b5 RD |
1156 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
1157 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1158 | PyObject * _resultobj; | |
1159 | wxButton * _arg0; | |
1160 | wxColour * _arg1; | |
1161 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
1162 | wxColour temp; |
1163 | PyObject * _obj1 = 0; | |
ab2208b5 RD |
1164 | char *_kwnames[] = { "self","colour", NULL }; |
1165 | ||
1166 | self = self; | |
f6bcfd97 | 1167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
ab2208b5 RD |
1168 | return NULL; |
1169 | if (_argo0) { | |
1170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
1173 | return NULL; | |
1174 | } | |
1175 | } | |
f6bcfd97 BP |
1176 | { |
1177 | _arg1 = &temp; | |
1178 | if (! wxColour_helper(_obj1, &_arg1)) | |
ab2208b5 | 1179 | return NULL; |
f6bcfd97 | 1180 | } |
ab2208b5 RD |
1181 | { |
1182 | wxPy_BEGIN_ALLOW_THREADS; | |
1183 | wxButton_SetBackgroundColour(_arg0,*_arg1); | |
1184 | ||
1185 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1186 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1187 | } Py_INCREF(Py_None); |
1188 | _resultobj = Py_None; | |
1189 | return _resultobj; | |
1190 | } | |
1191 | ||
1192 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
1193 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1194 | PyObject * _resultobj; | |
1195 | wxButton * _arg0; | |
1196 | wxColour * _arg1; | |
1197 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
1198 | wxColour temp; |
1199 | PyObject * _obj1 = 0; | |
ab2208b5 RD |
1200 | char *_kwnames[] = { "self","colour", NULL }; |
1201 | ||
1202 | self = self; | |
f6bcfd97 | 1203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
ab2208b5 RD |
1204 | return NULL; |
1205 | if (_argo0) { | |
1206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
1209 | return NULL; | |
1210 | } | |
1211 | } | |
f6bcfd97 BP |
1212 | { |
1213 | _arg1 = &temp; | |
1214 | if (! wxColour_helper(_obj1, &_arg1)) | |
ab2208b5 | 1215 | return NULL; |
f6bcfd97 | 1216 | } |
ab2208b5 RD |
1217 | { |
1218 | wxPy_BEGIN_ALLOW_THREADS; | |
1219 | wxButton_SetForegroundColour(_arg0,*_arg1); | |
1220 | ||
1221 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1222 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1223 | } Py_INCREF(Py_None); |
1224 | _resultobj = Py_None; | |
1225 | return _resultobj; | |
1226 | } | |
1227 | ||
aa2a5b86 RD |
1228 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
1229 | PyObject * _resultobj; | |
1230 | wxSize * _result; | |
1231 | char *_kwnames[] = { NULL }; | |
1232 | char _ptemp[128]; | |
1233 | ||
1234 | self = self; | |
1235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1236 | return NULL; | |
1237 | { | |
1238 | wxPy_BEGIN_ALLOW_THREADS; | |
1239 | _result = new wxSize (wxButton::GetDefaultSize()); | |
1240 | ||
1241 | wxPy_END_ALLOW_THREADS; | |
1242 | if (PyErr_Occurred()) return NULL; | |
1243 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1244 | _resultobj = Py_BuildValue("s",_ptemp); | |
1245 | return _resultobj; | |
1246 | } | |
1247 | ||
1248 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1249 | wxBitmapButton *src; | |
1250 | wxButton *dest; | |
1251 | src = (wxBitmapButton *) ptr; | |
1252 | dest = (wxButton *) src; | |
1253 | return (void *) dest; | |
1254 | } | |
1255 | ||
1256 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1257 | wxBitmapButton *src; | |
1258 | wxControl *dest; | |
1259 | src = (wxBitmapButton *) ptr; | |
1260 | dest = (wxControl *) src; | |
1261 | return (void *) dest; | |
1262 | } | |
1263 | ||
1264 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1265 | wxBitmapButton *src; | |
1266 | wxWindow *dest; | |
1267 | src = (wxBitmapButton *) ptr; | |
1268 | dest = (wxWindow *) src; | |
1269 | return (void *) dest; | |
1270 | } | |
1271 | ||
1272 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1273 | wxBitmapButton *src; | |
1274 | wxEvtHandler *dest; | |
1275 | src = (wxBitmapButton *) ptr; | |
1276 | dest = (wxEvtHandler *) src; | |
1277 | return (void *) dest; | |
1278 | } | |
1279 | ||
1280 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1281 | wxBitmapButton *src; | |
1282 | wxObject *dest; | |
1283 | src = (wxBitmapButton *) ptr; | |
1284 | dest = (wxObject *) src; | |
9df61a29 RD |
1285 | return (void *) dest; |
1286 | } | |
1287 | ||
70551f47 | 1288 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 1289 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1290 | PyObject * _resultobj; |
1291 | wxBitmapButton * _result; | |
1292 | wxWindow * _arg0; | |
1293 | wxWindowID _arg1; | |
1294 | wxBitmap * _arg2; | |
b68dc582 RD |
1295 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1296 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 1297 | long _arg5 = (long ) wxBU_AUTODRAW; |
b68dc582 | 1298 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
1299 | char * _arg7 = (char *) "button"; |
1300 | PyObject * _argo0 = 0; | |
1301 | PyObject * _argo2 = 0; | |
37f6a977 RD |
1302 | wxPoint temp; |
1303 | PyObject * _obj3 = 0; | |
1304 | wxSize temp0; | |
1305 | PyObject * _obj4 = 0; | |
2d091820 | 1306 | PyObject * _argo6 = 0; |
107e4716 | 1307 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; |
70551f47 RD |
1308 | char _ptemp[128]; |
1309 | ||
1310 | self = self; | |
37f6a977 | 1311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 1312 | return NULL; |
2d091820 RD |
1313 | if (_argo0) { |
1314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); |
1317 | return NULL; | |
1318 | } | |
1319 | } | |
2d091820 RD |
1320 | if (_argo2) { |
1321 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1322 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
70551f47 RD |
1323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); |
1324 | return NULL; | |
1325 | } | |
1326 | } | |
37f6a977 RD |
1327 | if (_obj3) |
1328 | { | |
1329 | _arg3 = &temp; | |
1330 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1331 | return NULL; |
37f6a977 RD |
1332 | } |
1333 | if (_obj4) | |
1334 | { | |
1335 | _arg4 = &temp0; | |
1336 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1337 | return NULL; |
37f6a977 | 1338 | } |
2d091820 RD |
1339 | if (_argo6) { |
1340 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1341 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
1342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); |
1343 | return NULL; | |
1344 | } | |
1345 | } | |
ab9bc19b RD |
1346 | { |
1347 | wxPy_BEGIN_ALLOW_THREADS; | |
1348 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
1349 | ||
1350 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1351 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1352 | } if (_result) { |
1353 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1354 | _resultobj = Py_BuildValue("s",_ptemp); | |
1355 | } else { | |
1356 | Py_INCREF(Py_None); | |
1357 | _resultobj = Py_None; | |
1358 | } | |
70551f47 RD |
1359 | return _resultobj; |
1360 | } | |
1361 | ||
aa2a5b86 RD |
1362 | #define new_wxPreBitmapButton() (new wxBitmapButton()) |
1363 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1364 | PyObject * _resultobj; | |
1365 | wxBitmapButton * _result; | |
1366 | char *_kwnames[] = { NULL }; | |
1367 | char _ptemp[128]; | |
1368 | ||
1369 | self = self; | |
1370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1371 | return NULL; | |
1372 | { | |
1373 | wxPy_BEGIN_ALLOW_THREADS; | |
1374 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); | |
1375 | ||
1376 | wxPy_END_ALLOW_THREADS; | |
1377 | if (PyErr_Occurred()) return NULL; | |
1378 | } if (_result) { | |
1379 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1380 | _resultobj = Py_BuildValue("s",_ptemp); | |
1381 | } else { | |
1382 | Py_INCREF(Py_None); | |
1383 | _resultobj = Py_None; | |
1384 | } | |
1385 | return _resultobj; | |
1386 | } | |
1387 | ||
1388 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1389 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1390 | PyObject * _resultobj; | |
1391 | bool _result; | |
1392 | wxBitmapButton * _arg0; | |
1393 | wxWindow * _arg1; | |
1394 | wxWindowID _arg2; | |
1395 | wxBitmap * _arg3; | |
1396 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1397 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1398 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1399 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1400 | char * _arg8 = (char *) "button"; | |
1401 | PyObject * _argo0 = 0; | |
1402 | PyObject * _argo1 = 0; | |
1403 | PyObject * _argo3 = 0; | |
1404 | wxPoint temp; | |
1405 | PyObject * _obj4 = 0; | |
1406 | wxSize temp0; | |
1407 | PyObject * _obj5 = 0; | |
1408 | PyObject * _argo7 = 0; | |
1409 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1410 | ||
1411 | self = self; | |
1412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1413 | return NULL; | |
1414 | if (_argo0) { | |
1415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1418 | return NULL; | |
1419 | } | |
1420 | } | |
1421 | if (_argo1) { | |
1422 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1423 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1425 | return NULL; | |
1426 | } | |
1427 | } | |
1428 | if (_argo3) { | |
1429 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1430 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1432 | return NULL; | |
1433 | } | |
1434 | } | |
1435 | if (_obj4) | |
1436 | { | |
1437 | _arg4 = &temp; | |
1438 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1439 | return NULL; | |
1440 | } | |
1441 | if (_obj5) | |
1442 | { | |
1443 | _arg5 = &temp0; | |
1444 | if (! wxSize_helper(_obj5, &_arg5)) | |
1445 | return NULL; | |
1446 | } | |
1447 | if (_argo7) { | |
1448 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1449 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1451 | return NULL; | |
1452 | } | |
1453 | } | |
1454 | { | |
1455 | wxPy_BEGIN_ALLOW_THREADS; | |
1456 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
1457 | ||
1458 | wxPy_END_ALLOW_THREADS; | |
1459 | if (PyErr_Occurred()) return NULL; | |
1460 | } _resultobj = Py_BuildValue("i",_result); | |
1461 | return _resultobj; | |
1462 | } | |
1463 | ||
70551f47 | 1464 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) |
107e4716 | 1465 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1466 | PyObject * _resultobj; |
1467 | wxBitmap * _result; | |
1468 | wxBitmapButton * _arg0; | |
2d091820 | 1469 | PyObject * _argo0 = 0; |
107e4716 | 1470 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1471 | char _ptemp[128]; |
1472 | ||
1473 | self = self; | |
107e4716 | 1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) |
70551f47 | 1475 | return NULL; |
2d091820 RD |
1476 | if (_argo0) { |
1477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
70551f47 RD |
1479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); |
1480 | return NULL; | |
1481 | } | |
1482 | } | |
ab9bc19b RD |
1483 | { |
1484 | wxPy_BEGIN_ALLOW_THREADS; | |
1485 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapLabel(_arg0); | |
70551f47 | 1486 | _result = (wxBitmap *) &_result_ref; |
ab9bc19b RD |
1487 | |
1488 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1489 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1490 | } if (_result) { |
1491 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1492 | _resultobj = Py_BuildValue("s",_ptemp); | |
1493 | } else { | |
1494 | Py_INCREF(Py_None); | |
1495 | _resultobj = Py_None; | |
1496 | } | |
70551f47 RD |
1497 | return _resultobj; |
1498 | } | |
1499 | ||
c95e68d8 | 1500 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) |
107e4716 | 1501 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1502 | PyObject * _resultobj; |
1503 | wxBitmap * _result; | |
1504 | wxBitmapButton * _arg0; | |
2d091820 | 1505 | PyObject * _argo0 = 0; |
107e4716 | 1506 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1507 | char _ptemp[128]; |
1508 | ||
1509 | self = self; | |
107e4716 | 1510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) |
c95e68d8 | 1511 | return NULL; |
2d091820 RD |
1512 | if (_argo0) { |
1513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); |
1516 | return NULL; | |
1517 | } | |
1518 | } | |
ab9bc19b RD |
1519 | { |
1520 | wxPy_BEGIN_ALLOW_THREADS; | |
1521 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapDisabled(_arg0); | |
c95e68d8 | 1522 | _result = (wxBitmap *) &_result_ref; |
ab9bc19b RD |
1523 | |
1524 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1525 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1526 | } if (_result) { |
1527 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1528 | _resultobj = Py_BuildValue("s",_ptemp); | |
1529 | } else { | |
1530 | Py_INCREF(Py_None); | |
1531 | _resultobj = Py_None; | |
1532 | } | |
c95e68d8 RD |
1533 | return _resultobj; |
1534 | } | |
1535 | ||
1536 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
107e4716 | 1537 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1538 | PyObject * _resultobj; |
1539 | wxBitmap * _result; | |
1540 | wxBitmapButton * _arg0; | |
2d091820 | 1541 | PyObject * _argo0 = 0; |
107e4716 | 1542 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1543 | char _ptemp[128]; |
1544 | ||
1545 | self = self; | |
107e4716 | 1546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) |
c95e68d8 | 1547 | return NULL; |
2d091820 RD |
1548 | if (_argo0) { |
1549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); |
1552 | return NULL; | |
1553 | } | |
1554 | } | |
ab9bc19b RD |
1555 | { |
1556 | wxPy_BEGIN_ALLOW_THREADS; | |
1557 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapFocus(_arg0); | |
c95e68d8 | 1558 | _result = (wxBitmap *) &_result_ref; |
ab9bc19b RD |
1559 | |
1560 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1561 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1562 | } if (_result) { |
1563 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1564 | _resultobj = Py_BuildValue("s",_ptemp); | |
1565 | } else { | |
1566 | Py_INCREF(Py_None); | |
1567 | _resultobj = Py_None; | |
1568 | } | |
c95e68d8 RD |
1569 | return _resultobj; |
1570 | } | |
1571 | ||
1572 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
107e4716 | 1573 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1574 | PyObject * _resultobj; |
1575 | wxBitmap * _result; | |
1576 | wxBitmapButton * _arg0; | |
2d091820 | 1577 | PyObject * _argo0 = 0; |
107e4716 | 1578 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1579 | char _ptemp[128]; |
1580 | ||
1581 | self = self; | |
107e4716 | 1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) |
c95e68d8 | 1583 | return NULL; |
2d091820 RD |
1584 | if (_argo0) { |
1585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); |
1588 | return NULL; | |
1589 | } | |
1590 | } | |
ab9bc19b RD |
1591 | { |
1592 | wxPy_BEGIN_ALLOW_THREADS; | |
1593 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapSelected(_arg0); | |
c95e68d8 | 1594 | _result = (wxBitmap *) &_result_ref; |
ab9bc19b RD |
1595 | |
1596 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1597 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1598 | } if (_result) { |
1599 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1600 | _resultobj = Py_BuildValue("s",_ptemp); | |
1601 | } else { | |
1602 | Py_INCREF(Py_None); | |
1603 | _resultobj = Py_None; | |
1604 | } | |
c95e68d8 RD |
1605 | return _resultobj; |
1606 | } | |
1607 | ||
1608 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
107e4716 | 1609 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1610 | PyObject * _resultobj; |
1611 | wxBitmapButton * _arg0; | |
1612 | wxBitmap * _arg1; | |
2d091820 RD |
1613 | PyObject * _argo0 = 0; |
1614 | PyObject * _argo1 = 0; | |
107e4716 | 1615 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1616 | |
1617 | self = self; | |
107e4716 | 1618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1619 | return NULL; |
2d091820 RD |
1620 | if (_argo0) { |
1621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); |
1624 | return NULL; | |
1625 | } | |
1626 | } | |
2d091820 RD |
1627 | if (_argo1) { |
1628 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1629 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
1630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); |
1631 | return NULL; | |
1632 | } | |
1633 | } | |
ab9bc19b RD |
1634 | { |
1635 | wxPy_BEGIN_ALLOW_THREADS; | |
1636 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); | |
1637 | ||
1638 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1639 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1640 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1641 | _resultobj = Py_None; |
1642 | return _resultobj; | |
1643 | } | |
1644 | ||
1645 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
107e4716 | 1646 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1647 | PyObject * _resultobj; |
1648 | wxBitmapButton * _arg0; | |
1649 | wxBitmap * _arg1; | |
2d091820 RD |
1650 | PyObject * _argo0 = 0; |
1651 | PyObject * _argo1 = 0; | |
107e4716 | 1652 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1653 | |
1654 | self = self; | |
107e4716 | 1655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1656 | return NULL; |
2d091820 RD |
1657 | if (_argo0) { |
1658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); |
1661 | return NULL; | |
1662 | } | |
1663 | } | |
2d091820 RD |
1664 | if (_argo1) { |
1665 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1666 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
1667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); |
1668 | return NULL; | |
1669 | } | |
1670 | } | |
ab9bc19b RD |
1671 | { |
1672 | wxPy_BEGIN_ALLOW_THREADS; | |
1673 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); | |
1674 | ||
1675 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1676 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1677 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1678 | _resultobj = Py_None; |
1679 | return _resultobj; | |
1680 | } | |
1681 | ||
1682 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
107e4716 | 1683 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1684 | PyObject * _resultobj; |
1685 | wxBitmapButton * _arg0; | |
1686 | wxBitmap * _arg1; | |
2d091820 RD |
1687 | PyObject * _argo0 = 0; |
1688 | PyObject * _argo1 = 0; | |
107e4716 | 1689 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1690 | |
1691 | self = self; | |
107e4716 | 1692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1693 | return NULL; |
2d091820 RD |
1694 | if (_argo0) { |
1695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); |
1698 | return NULL; | |
1699 | } | |
1700 | } | |
2d091820 RD |
1701 | if (_argo1) { |
1702 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1703 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
1704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); |
1705 | return NULL; | |
1706 | } | |
1707 | } | |
ab9bc19b RD |
1708 | { |
1709 | wxPy_BEGIN_ALLOW_THREADS; | |
1710 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); | |
1711 | ||
1712 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1713 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1714 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1715 | _resultobj = Py_None; |
1716 | return _resultobj; | |
1717 | } | |
1718 | ||
70551f47 | 1719 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) |
107e4716 | 1720 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1721 | PyObject * _resultobj; |
1722 | wxBitmapButton * _arg0; | |
1723 | wxBitmap * _arg1; | |
2d091820 RD |
1724 | PyObject * _argo0 = 0; |
1725 | PyObject * _argo1 = 0; | |
107e4716 | 1726 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
1727 | |
1728 | self = self; | |
107e4716 | 1729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) |
70551f47 | 1730 | return NULL; |
2d091820 RD |
1731 | if (_argo0) { |
1732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
70551f47 RD |
1734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); |
1735 | return NULL; | |
1736 | } | |
1737 | } | |
2d091820 RD |
1738 | if (_argo1) { |
1739 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1740 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
1741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); |
1742 | return NULL; | |
1743 | } | |
1744 | } | |
ab9bc19b RD |
1745 | { |
1746 | wxPy_BEGIN_ALLOW_THREADS; | |
1747 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); | |
1748 | ||
1749 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1750 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1751 | } Py_INCREF(Py_None); |
70551f47 RD |
1752 | _resultobj = Py_None; |
1753 | return _resultobj; | |
1754 | } | |
1755 | ||
f6bcfd97 BP |
1756 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
1757 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1758 | PyObject * _resultobj; | |
1759 | wxBitmapButton * _arg0; | |
1760 | int _arg1; | |
1761 | int _arg2; | |
1762 | PyObject * _argo0 = 0; | |
1763 | char *_kwnames[] = { "self","x","y", NULL }; | |
1764 | ||
1765 | self = self; | |
1766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1767 | return NULL; | |
1768 | if (_argo0) { | |
1769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1772 | return NULL; | |
1773 | } | |
1774 | } | |
1775 | { | |
1776 | wxPy_BEGIN_ALLOW_THREADS; | |
1777 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); | |
1778 | ||
1779 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1780 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1781 | } Py_INCREF(Py_None); |
1782 | _resultobj = Py_None; | |
1783 | return _resultobj; | |
1784 | } | |
1785 | ||
1786 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1787 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1788 | PyObject * _resultobj; | |
1789 | int _result; | |
1790 | wxBitmapButton * _arg0; | |
1791 | PyObject * _argo0 = 0; | |
1792 | char *_kwnames[] = { "self", NULL }; | |
1793 | ||
1794 | self = self; | |
1795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1796 | return NULL; | |
1797 | if (_argo0) { | |
1798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1801 | return NULL; | |
1802 | } | |
1803 | } | |
1804 | { | |
1805 | wxPy_BEGIN_ALLOW_THREADS; | |
1806 | _result = (int )wxBitmapButton_GetMarginX(_arg0); | |
1807 | ||
1808 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1809 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1810 | } _resultobj = Py_BuildValue("i",_result); |
1811 | return _resultobj; | |
1812 | } | |
1813 | ||
1814 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1815 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1816 | PyObject * _resultobj; | |
1817 | int _result; | |
1818 | wxBitmapButton * _arg0; | |
1819 | PyObject * _argo0 = 0; | |
1820 | char *_kwnames[] = { "self", NULL }; | |
1821 | ||
1822 | self = self; | |
1823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1824 | return NULL; | |
1825 | if (_argo0) { | |
1826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1829 | return NULL; | |
1830 | } | |
1831 | } | |
1832 | { | |
1833 | wxPy_BEGIN_ALLOW_THREADS; | |
1834 | _result = (int )wxBitmapButton_GetMarginY(_arg0); | |
1835 | ||
1836 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1837 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1838 | } _resultobj = Py_BuildValue("i",_result); |
1839 | return _resultobj; | |
1840 | } | |
1841 | ||
70551f47 RD |
1842 | static void *SwigwxCheckBoxTowxControl(void *ptr) { |
1843 | wxCheckBox *src; | |
1844 | wxControl *dest; | |
1845 | src = (wxCheckBox *) ptr; | |
1846 | dest = (wxControl *) src; | |
1847 | return (void *) dest; | |
1848 | } | |
1849 | ||
1850 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1851 | wxCheckBox *src; | |
1852 | wxWindow *dest; | |
1853 | src = (wxCheckBox *) ptr; | |
1854 | dest = (wxWindow *) src; | |
1855 | return (void *) dest; | |
1856 | } | |
1857 | ||
1858 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1859 | wxCheckBox *src; | |
1860 | wxEvtHandler *dest; | |
1861 | src = (wxCheckBox *) ptr; | |
1862 | dest = (wxEvtHandler *) src; | |
1863 | return (void *) dest; | |
1864 | } | |
1865 | ||
9df61a29 RD |
1866 | static void *SwigwxCheckBoxTowxObject(void *ptr) { |
1867 | wxCheckBox *src; | |
1868 | wxObject *dest; | |
1869 | src = (wxCheckBox *) ptr; | |
1870 | dest = (wxObject *) src; | |
1871 | return (void *) dest; | |
1872 | } | |
1873 | ||
70551f47 | 1874 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 1875 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1876 | PyObject * _resultobj; |
1877 | wxCheckBox * _result; | |
1878 | wxWindow * _arg0; | |
1879 | wxWindowID _arg1; | |
1880 | wxString * _arg2; | |
b68dc582 RD |
1881 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1882 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 1883 | long _arg5 = (long ) 0; |
b68dc582 | 1884 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
1885 | char * _arg7 = (char *) "checkBox"; |
1886 | PyObject * _argo0 = 0; | |
70551f47 | 1887 | PyObject * _obj2 = 0; |
37f6a977 RD |
1888 | wxPoint temp; |
1889 | PyObject * _obj3 = 0; | |
1890 | wxSize temp0; | |
1891 | PyObject * _obj4 = 0; | |
2d091820 | 1892 | PyObject * _argo6 = 0; |
107e4716 | 1893 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; |
70551f47 RD |
1894 | char _ptemp[128]; |
1895 | ||
1896 | self = self; | |
37f6a977 | 1897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 1898 | return NULL; |
2d091820 RD |
1899 | if (_argo0) { |
1900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); |
1903 | return NULL; | |
1904 | } | |
1905 | } | |
1906 | { | |
2cd2fac8 RD |
1907 | #if PYTHON_API_VERSION >= 1009 |
1908 | char* tmpPtr; int tmpSize; | |
1909 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1910 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1911 | return NULL; |
1912 | } | |
1913 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1914 | return NULL; | |
1915 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1916 | #else | |
70551f47 RD |
1917 | if (!PyString_Check(_obj2)) { |
1918 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1919 | return NULL; | |
1920 | } | |
2cd2fac8 RD |
1921 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1922 | #endif | |
70551f47 | 1923 | } |
37f6a977 RD |
1924 | if (_obj3) |
1925 | { | |
1926 | _arg3 = &temp; | |
1927 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1928 | return NULL; |
37f6a977 RD |
1929 | } |
1930 | if (_obj4) | |
1931 | { | |
1932 | _arg4 = &temp0; | |
1933 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1934 | return NULL; |
37f6a977 | 1935 | } |
2d091820 RD |
1936 | if (_argo6) { |
1937 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1938 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
1939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); |
1940 | return NULL; | |
1941 | } | |
1942 | } | |
ab9bc19b RD |
1943 | { |
1944 | wxPy_BEGIN_ALLOW_THREADS; | |
1945 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
1946 | ||
1947 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1948 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1949 | } if (_result) { |
1950 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1951 | _resultobj = Py_BuildValue("s",_ptemp); | |
1952 | } else { | |
1953 | Py_INCREF(Py_None); | |
1954 | _resultobj = Py_None; | |
1955 | } | |
70551f47 RD |
1956 | { |
1957 | if (_obj2) | |
1958 | delete _arg2; | |
1959 | } | |
1960 | return _resultobj; | |
1961 | } | |
1962 | ||
aa2a5b86 RD |
1963 | #define new_wxPreCheckBox() (new wxCheckBox()) |
1964 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1965 | PyObject * _resultobj; | |
1966 | wxCheckBox * _result; | |
1967 | char *_kwnames[] = { NULL }; | |
1968 | char _ptemp[128]; | |
1969 | ||
1970 | self = self; | |
1971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
1972 | return NULL; | |
1973 | { | |
1974 | wxPy_BEGIN_ALLOW_THREADS; | |
1975 | _result = (wxCheckBox *)new_wxPreCheckBox(); | |
1976 | ||
1977 | wxPy_END_ALLOW_THREADS; | |
1978 | if (PyErr_Occurred()) return NULL; | |
1979 | } if (_result) { | |
1980 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1981 | _resultobj = Py_BuildValue("s",_ptemp); | |
1982 | } else { | |
1983 | Py_INCREF(Py_None); | |
1984 | _resultobj = Py_None; | |
1985 | } | |
1986 | return _resultobj; | |
1987 | } | |
1988 | ||
1989 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1990 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1991 | PyObject * _resultobj; | |
1992 | bool _result; | |
1993 | wxCheckBox * _arg0; | |
1994 | wxWindow * _arg1; | |
1995 | wxWindowID _arg2; | |
1996 | wxString * _arg3; | |
1997 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1998 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1999 | long _arg6 = (long ) 0; | |
2000 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2001 | char * _arg8 = (char *) "checkBox"; | |
2002 | PyObject * _argo0 = 0; | |
2003 | PyObject * _argo1 = 0; | |
2004 | PyObject * _obj3 = 0; | |
2005 | wxPoint temp; | |
2006 | PyObject * _obj4 = 0; | |
2007 | wxSize temp0; | |
2008 | PyObject * _obj5 = 0; | |
2009 | PyObject * _argo7 = 0; | |
2010 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; | |
2011 | ||
2012 | self = self; | |
2013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
2014 | return NULL; | |
2015 | if (_argo0) { | |
2016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
2019 | return NULL; | |
2020 | } | |
2021 | } | |
2022 | if (_argo1) { | |
2023 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2024 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2026 | return NULL; | |
2027 | } | |
2028 | } | |
2029 | { | |
2030 | #if PYTHON_API_VERSION >= 1009 | |
2031 | char* tmpPtr; int tmpSize; | |
2032 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
2033 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2034 | return NULL; | |
2035 | } | |
2036 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2037 | return NULL; | |
2038 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2039 | #else | |
2040 | if (!PyString_Check(_obj3)) { | |
2041 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2042 | return NULL; | |
2043 | } | |
2044 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
2045 | #endif | |
2046 | } | |
2047 | if (_obj4) | |
2048 | { | |
2049 | _arg4 = &temp; | |
2050 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2051 | return NULL; | |
2052 | } | |
2053 | if (_obj5) | |
2054 | { | |
2055 | _arg5 = &temp0; | |
2056 | if (! wxSize_helper(_obj5, &_arg5)) | |
2057 | return NULL; | |
2058 | } | |
2059 | if (_argo7) { | |
2060 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2061 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
2063 | return NULL; | |
2064 | } | |
2065 | } | |
2066 | { | |
2067 | wxPy_BEGIN_ALLOW_THREADS; | |
2068 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
2069 | ||
2070 | wxPy_END_ALLOW_THREADS; | |
2071 | if (PyErr_Occurred()) return NULL; | |
2072 | } _resultobj = Py_BuildValue("i",_result); | |
2073 | { | |
2074 | if (_obj3) | |
2075 | delete _arg3; | |
2076 | } | |
2077 | return _resultobj; | |
2078 | } | |
2079 | ||
70551f47 | 2080 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) |
107e4716 | 2081 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2082 | PyObject * _resultobj; |
2083 | bool _result; | |
2084 | wxCheckBox * _arg0; | |
2d091820 | 2085 | PyObject * _argo0 = 0; |
107e4716 | 2086 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2087 | |
2088 | self = self; | |
107e4716 | 2089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) |
70551f47 | 2090 | return NULL; |
2d091820 RD |
2091 | if (_argo0) { |
2092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
70551f47 RD |
2094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); |
2095 | return NULL; | |
2096 | } | |
2097 | } | |
ab9bc19b RD |
2098 | { |
2099 | wxPy_BEGIN_ALLOW_THREADS; | |
2100 | _result = (bool )wxCheckBox_GetValue(_arg0); | |
2101 | ||
2102 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2103 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2104 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2105 | return _resultobj; |
2106 | } | |
2107 | ||
2108 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 2109 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2110 | PyObject * _resultobj; |
2111 | wxCheckBox * _arg0; | |
2112 | bool _arg1; | |
2d091820 | 2113 | PyObject * _argo0 = 0; |
70551f47 | 2114 | int tempbool1; |
107e4716 | 2115 | char *_kwnames[] = { "self","state", NULL }; |
70551f47 RD |
2116 | |
2117 | self = self; | |
107e4716 | 2118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 2119 | return NULL; |
2d091820 RD |
2120 | if (_argo0) { |
2121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
70551f47 RD |
2123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); |
2124 | return NULL; | |
2125 | } | |
2126 | } | |
2127 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
2128 | { |
2129 | wxPy_BEGIN_ALLOW_THREADS; | |
2130 | wxCheckBox_SetValue(_arg0,_arg1); | |
2131 | ||
2132 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2133 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2134 | } Py_INCREF(Py_None); |
70551f47 RD |
2135 | _resultobj = Py_None; |
2136 | return _resultobj; | |
2137 | } | |
2138 | ||
65191ae8 RD |
2139 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { |
2140 | wxChoice *src; | |
2141 | wxControlWithItems *dest; | |
2142 | src = (wxChoice *) ptr; | |
2143 | dest = (wxControlWithItems *) src; | |
2144 | return (void *) dest; | |
2145 | } | |
2146 | ||
70551f47 RD |
2147 | static void *SwigwxChoiceTowxControl(void *ptr) { |
2148 | wxChoice *src; | |
2149 | wxControl *dest; | |
2150 | src = (wxChoice *) ptr; | |
2151 | dest = (wxControl *) src; | |
2152 | return (void *) dest; | |
2153 | } | |
2154 | ||
2155 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2156 | wxChoice *src; | |
2157 | wxWindow *dest; | |
2158 | src = (wxChoice *) ptr; | |
2159 | dest = (wxWindow *) src; | |
2160 | return (void *) dest; | |
2161 | } | |
2162 | ||
2163 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2164 | wxChoice *src; | |
2165 | wxEvtHandler *dest; | |
2166 | src = (wxChoice *) ptr; | |
2167 | dest = (wxEvtHandler *) src; | |
2168 | return (void *) dest; | |
2169 | } | |
2170 | ||
9df61a29 RD |
2171 | static void *SwigwxChoiceTowxObject(void *ptr) { |
2172 | wxChoice *src; | |
2173 | wxObject *dest; | |
2174 | src = (wxChoice *) ptr; | |
2175 | dest = (wxObject *) src; | |
2176 | return (void *) dest; | |
2177 | } | |
2178 | ||
70551f47 | 2179 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 2180 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2181 | PyObject * _resultobj; |
2182 | wxChoice * _result; | |
2183 | wxWindow * _arg0; | |
2184 | wxWindowID _arg1; | |
b68dc582 RD |
2185 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2186 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
2187 | int _arg4 = (int ) 0; |
2188 | wxString * _arg5 = (wxString *) NULL; | |
2189 | long _arg6 = (long ) 0; | |
b68dc582 | 2190 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
2191 | char * _arg8 = (char *) "choice"; |
2192 | PyObject * _argo0 = 0; | |
37f6a977 RD |
2193 | wxPoint temp; |
2194 | PyObject * _obj2 = 0; | |
2195 | wxSize temp0; | |
2196 | PyObject * _obj3 = 0; | |
70551f47 | 2197 | PyObject * _obj5 = 0; |
2d091820 | 2198 | PyObject * _argo7 = 0; |
e02c03a4 | 2199 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
2200 | char _ptemp[128]; |
2201 | ||
2202 | self = self; | |
37f6a977 | 2203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
70551f47 | 2204 | return NULL; |
2d091820 RD |
2205 | if (_argo0) { |
2206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); |
2209 | return NULL; | |
2210 | } | |
2211 | } | |
37f6a977 RD |
2212 | if (_obj2) |
2213 | { | |
2214 | _arg2 = &temp; | |
2215 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 2216 | return NULL; |
37f6a977 RD |
2217 | } |
2218 | if (_obj3) | |
2219 | { | |
2220 | _arg3 = &temp0; | |
2221 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 2222 | return NULL; |
37f6a977 | 2223 | } |
70551f47 RD |
2224 | if (_obj5) |
2225 | { | |
2226 | _arg5 = wxString_LIST_helper(_obj5); | |
2227 | if (_arg5 == NULL) { | |
2228 | return NULL; | |
2229 | } | |
2230 | } | |
2d091820 RD |
2231 | if (_argo7) { |
2232 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2233 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
70551f47 RD |
2234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); |
2235 | return NULL; | |
2236 | } | |
2237 | } | |
2238 | { | |
ab9bc19b RD |
2239 | if (_obj5) { |
2240 | _arg4 = PyList_Size(_obj5); | |
2241 | } | |
2242 | else { | |
2243 | _arg4 = 0; | |
2244 | } | |
70551f47 | 2245 | } |
ab9bc19b RD |
2246 | { |
2247 | wxPy_BEGIN_ALLOW_THREADS; | |
2248 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
2249 | ||
2250 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2251 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2252 | } if (_result) { |
2253 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2254 | _resultobj = Py_BuildValue("s",_ptemp); | |
2255 | } else { | |
2256 | Py_INCREF(Py_None); | |
2257 | _resultobj = Py_None; | |
2258 | } | |
70551f47 RD |
2259 | { |
2260 | delete [] _arg5; | |
2261 | } | |
2262 | return _resultobj; | |
2263 | } | |
2264 | ||
aa2a5b86 RD |
2265 | #define new_wxPreChoice() (new wxChoice()) |
2266 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2267 | PyObject * _resultobj; |
aa2a5b86 RD |
2268 | wxChoice * _result; |
2269 | char *_kwnames[] = { NULL }; | |
2270 | char _ptemp[128]; | |
70551f47 RD |
2271 | |
2272 | self = self; | |
aa2a5b86 RD |
2273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) |
2274 | return NULL; | |
2275 | { | |
2276 | wxPy_BEGIN_ALLOW_THREADS; | |
2277 | _result = (wxChoice *)new_wxPreChoice(); | |
2278 | ||
2279 | wxPy_END_ALLOW_THREADS; | |
2280 | if (PyErr_Occurred()) return NULL; | |
2281 | } if (_result) { | |
2282 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2283 | _resultobj = Py_BuildValue("s",_ptemp); | |
2284 | } else { | |
2285 | Py_INCREF(Py_None); | |
2286 | _resultobj = Py_None; | |
2287 | } | |
2288 | return _resultobj; | |
2289 | } | |
2290 | ||
2291 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2292 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2293 | PyObject * _resultobj; | |
2294 | bool _result; | |
2295 | wxChoice * _arg0; | |
2296 | wxWindow * _arg1; | |
2297 | wxWindowID _arg2; | |
2298 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2299 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2300 | int _arg5 = (int ) 0; | |
2301 | wxString * _arg6 = (wxString *) NULL; | |
2302 | long _arg7 = (long ) 0; | |
2303 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2304 | char * _arg9 = (char *) "choice"; | |
2305 | PyObject * _argo0 = 0; | |
2306 | PyObject * _argo1 = 0; | |
2307 | wxPoint temp; | |
2308 | PyObject * _obj3 = 0; | |
2309 | wxSize temp0; | |
2310 | PyObject * _obj4 = 0; | |
2311 | PyObject * _obj6 = 0; | |
2312 | PyObject * _argo8 = 0; | |
2313 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
2314 | ||
2315 | self = self; | |
2316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
2317 | return NULL; | |
2318 | if (_argo0) { | |
2319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2322 | return NULL; | |
2323 | } | |
2324 | } | |
2325 | if (_argo1) { | |
2326 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2327 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2329 | return NULL; | |
2330 | } | |
2331 | } | |
2332 | if (_obj3) | |
2333 | { | |
2334 | _arg3 = &temp; | |
2335 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2336 | return NULL; | |
2337 | } | |
2338 | if (_obj4) | |
2339 | { | |
2340 | _arg4 = &temp0; | |
2341 | if (! wxSize_helper(_obj4, &_arg4)) | |
2342 | return NULL; | |
2343 | } | |
2344 | if (_obj6) | |
2345 | { | |
2346 | _arg6 = wxString_LIST_helper(_obj6); | |
2347 | if (_arg6 == NULL) { | |
2348 | return NULL; | |
2349 | } | |
2350 | } | |
2351 | if (_argo8) { | |
2352 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2353 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2355 | return NULL; | |
2356 | } | |
2357 | } | |
2358 | { | |
2359 | if (_obj6) { | |
65191ae8 RD |
2360 | _arg5 = PyList_Size(_obj6); |
2361 | } | |
2362 | else { | |
2363 | _arg5 = 0; | |
70551f47 | 2364 | } |
65191ae8 | 2365 | } |
70551f47 | 2366 | { |
ab9bc19b | 2367 | wxPy_BEGIN_ALLOW_THREADS; |
65191ae8 | 2368 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
ab9bc19b RD |
2369 | |
2370 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2371 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 2372 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 2373 | { |
65191ae8 | 2374 | delete [] _arg6; |
70551f47 RD |
2375 | } |
2376 | return _resultobj; | |
2377 | } | |
2378 | ||
65191ae8 RD |
2379 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) |
2380 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2381 | PyObject * _resultobj; |
70551f47 | 2382 | wxChoice * _arg0; |
2d091820 | 2383 | PyObject * _argo0 = 0; |
107e4716 | 2384 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2385 | |
2386 | self = self; | |
65191ae8 | 2387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) |
70551f47 | 2388 | return NULL; |
2d091820 RD |
2389 | if (_argo0) { |
2390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
65191ae8 | 2392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); |
70551f47 RD |
2393 | return NULL; |
2394 | } | |
2395 | } | |
70551f47 | 2396 | { |
ab9bc19b | 2397 | wxPy_BEGIN_ALLOW_THREADS; |
65191ae8 | 2398 | wxChoice_Clear(_arg0); |
ab9bc19b RD |
2399 | |
2400 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2401 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
2402 | } Py_INCREF(Py_None); |
2403 | _resultobj = Py_None; | |
70551f47 RD |
2404 | return _resultobj; |
2405 | } | |
2406 | ||
65191ae8 RD |
2407 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) |
2408 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2409 | PyObject * _resultobj; |
2410 | int _result; | |
2411 | wxChoice * _arg0; | |
2d091820 | 2412 | PyObject * _argo0 = 0; |
107e4716 | 2413 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2414 | |
2415 | self = self; | |
65191ae8 | 2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) |
70551f47 | 2417 | return NULL; |
2d091820 RD |
2418 | if (_argo0) { |
2419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
65191ae8 | 2421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); |
70551f47 RD |
2422 | return NULL; |
2423 | } | |
2424 | } | |
ab9bc19b RD |
2425 | { |
2426 | wxPy_BEGIN_ALLOW_THREADS; | |
65191ae8 | 2427 | _result = (int )wxChoice_GetColumns(_arg0); |
ab9bc19b RD |
2428 | |
2429 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2430 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2431 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2432 | return _resultobj; |
2433 | } | |
2434 | ||
2435 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
107e4716 | 2436 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2437 | PyObject * _resultobj; |
2438 | wxChoice * _arg0; | |
2d091820 RD |
2439 | int _arg1 = (int ) 1; |
2440 | PyObject * _argo0 = 0; | |
107e4716 | 2441 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
2442 | |
2443 | self = self; | |
107e4716 | 2444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2445 | return NULL; |
2d091820 RD |
2446 | if (_argo0) { |
2447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); |
2450 | return NULL; | |
2451 | } | |
2452 | } | |
ab9bc19b RD |
2453 | { |
2454 | wxPy_BEGIN_ALLOW_THREADS; | |
2455 | wxChoice_SetColumns(_arg0,_arg1); | |
2456 | ||
2457 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2458 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2459 | } Py_INCREF(Py_None); |
70551f47 RD |
2460 | _resultobj = Py_None; |
2461 | return _resultobj; | |
2462 | } | |
2463 | ||
2464 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 2465 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2466 | PyObject * _resultobj; |
2467 | wxChoice * _arg0; | |
2468 | int _arg1; | |
2d091820 | 2469 | PyObject * _argo0 = 0; |
107e4716 | 2470 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
2471 | |
2472 | self = self; | |
107e4716 | 2473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2474 | return NULL; |
2d091820 RD |
2475 | if (_argo0) { |
2476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); |
2479 | return NULL; | |
2480 | } | |
2481 | } | |
ab9bc19b RD |
2482 | { |
2483 | wxPy_BEGIN_ALLOW_THREADS; | |
2484 | wxChoice_SetSelection(_arg0,_arg1); | |
2485 | ||
2486 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2487 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2488 | } Py_INCREF(Py_None); |
70551f47 RD |
2489 | _resultobj = Py_None; |
2490 | return _resultobj; | |
2491 | } | |
2492 | ||
2493 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
107e4716 | 2494 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2495 | PyObject * _resultobj; |
2496 | wxChoice * _arg0; | |
2497 | wxString * _arg1; | |
2d091820 | 2498 | PyObject * _argo0 = 0; |
70551f47 | 2499 | PyObject * _obj1 = 0; |
107e4716 | 2500 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
2501 | |
2502 | self = self; | |
107e4716 | 2503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
70551f47 | 2504 | return NULL; |
2d091820 RD |
2505 | if (_argo0) { |
2506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); |
2509 | return NULL; | |
2510 | } | |
2511 | } | |
2512 | { | |
2cd2fac8 RD |
2513 | #if PYTHON_API_VERSION >= 1009 |
2514 | char* tmpPtr; int tmpSize; | |
2515 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2516 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2517 | return NULL; |
2518 | } | |
2519 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2520 | return NULL; | |
2521 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2522 | #else | |
70551f47 RD |
2523 | if (!PyString_Check(_obj1)) { |
2524 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2525 | return NULL; | |
2526 | } | |
2cd2fac8 RD |
2527 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2528 | #endif | |
70551f47 | 2529 | } |
ab9bc19b RD |
2530 | { |
2531 | wxPy_BEGIN_ALLOW_THREADS; | |
2532 | wxChoice_SetStringSelection(_arg0,*_arg1); | |
2533 | ||
2534 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2535 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2536 | } Py_INCREF(Py_None); |
70551f47 RD |
2537 | _resultobj = Py_None; |
2538 | { | |
2539 | if (_obj1) | |
2540 | delete _arg1; | |
2541 | } | |
2542 | return _resultobj; | |
2543 | } | |
2544 | ||
2c8a649d RD |
2545 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
2546 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2547 | PyObject * _resultobj; | |
2548 | wxChoice * _arg0; | |
2549 | int _arg1; | |
2550 | wxString * _arg2; | |
2551 | PyObject * _argo0 = 0; | |
2552 | PyObject * _obj2 = 0; | |
2553 | char *_kwnames[] = { "self","n","s", NULL }; | |
2554 | ||
2555 | self = self; | |
2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2557 | return NULL; | |
2558 | if (_argo0) { | |
2559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2562 | return NULL; | |
2563 | } | |
2564 | } | |
2565 | { | |
2566 | #if PYTHON_API_VERSION >= 1009 | |
2567 | char* tmpPtr; int tmpSize; | |
2568 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2569 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2570 | return NULL; | |
2571 | } | |
2572 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2573 | return NULL; | |
2574 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2575 | #else | |
2576 | if (!PyString_Check(_obj2)) { | |
2577 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2578 | return NULL; | |
2579 | } | |
2580 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
2581 | #endif | |
2582 | } | |
2583 | { | |
2584 | wxPy_BEGIN_ALLOW_THREADS; | |
2585 | wxChoice_SetString(_arg0,_arg1,*_arg2); | |
2586 | ||
2587 | wxPy_END_ALLOW_THREADS; | |
2588 | if (PyErr_Occurred()) return NULL; | |
2589 | } Py_INCREF(Py_None); | |
2590 | _resultobj = Py_None; | |
2591 | { | |
2592 | if (_obj2) | |
2593 | delete _arg2; | |
2594 | } | |
2595 | return _resultobj; | |
2596 | } | |
2597 | ||
d24a34bb RD |
2598 | static void *SwigwxComboBoxTowxChoice(void *ptr) { |
2599 | wxComboBox *src; | |
2600 | wxChoice *dest; | |
2601 | src = (wxComboBox *) ptr; | |
2602 | dest = (wxChoice *) src; | |
2603 | return (void *) dest; | |
2604 | } | |
2605 | ||
65191ae8 RD |
2606 | static void *SwigwxComboBoxTowxControlWithItems(void *ptr) { |
2607 | wxComboBox *src; | |
2608 | wxControlWithItems *dest; | |
2609 | src = (wxComboBox *) ptr; | |
2610 | dest = (wxControlWithItems *) src; | |
2611 | return (void *) dest; | |
2612 | } | |
2613 | ||
70551f47 RD |
2614 | static void *SwigwxComboBoxTowxControl(void *ptr) { |
2615 | wxComboBox *src; | |
2616 | wxControl *dest; | |
2617 | src = (wxComboBox *) ptr; | |
2618 | dest = (wxControl *) src; | |
2619 | return (void *) dest; | |
2620 | } | |
2621 | ||
2622 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2623 | wxComboBox *src; | |
2624 | wxWindow *dest; | |
2625 | src = (wxComboBox *) ptr; | |
2626 | dest = (wxWindow *) src; | |
2627 | return (void *) dest; | |
2628 | } | |
2629 | ||
2630 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2631 | wxComboBox *src; | |
2632 | wxEvtHandler *dest; | |
2633 | src = (wxComboBox *) ptr; | |
2634 | dest = (wxEvtHandler *) src; | |
2635 | return (void *) dest; | |
2636 | } | |
2637 | ||
9df61a29 RD |
2638 | static void *SwigwxComboBoxTowxObject(void *ptr) { |
2639 | wxComboBox *src; | |
2640 | wxObject *dest; | |
2641 | src = (wxComboBox *) ptr; | |
2642 | dest = (wxObject *) src; | |
2643 | return (void *) dest; | |
2644 | } | |
2645 | ||
70551f47 | 2646 | #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)) |
107e4716 | 2647 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2648 | PyObject * _resultobj; |
2649 | wxComboBox * _result; | |
2650 | wxWindow * _arg0; | |
2651 | wxWindowID _arg1; | |
2d091820 | 2652 | char * _arg2 = (char *) ""; |
b68dc582 RD |
2653 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2654 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
2655 | int _arg5 = (int ) 0; |
2656 | wxString * _arg6 = (wxString *) NULL; | |
2657 | long _arg7 = (long ) 0; | |
b68dc582 | 2658 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
2659 | char * _arg9 = (char *) "comboBox"; |
2660 | PyObject * _argo0 = 0; | |
37f6a977 RD |
2661 | wxPoint temp; |
2662 | PyObject * _obj3 = 0; | |
2663 | wxSize temp0; | |
2664 | PyObject * _obj4 = 0; | |
70551f47 | 2665 | PyObject * _obj6 = 0; |
2d091820 | 2666 | PyObject * _argo8 = 0; |
e02c03a4 | 2667 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
2668 | char _ptemp[128]; |
2669 | ||
2670 | self = self; | |
37f6a977 | 2671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
70551f47 | 2672 | return NULL; |
2d091820 RD |
2673 | if (_argo0) { |
2674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); |
2677 | return NULL; | |
2678 | } | |
2679 | } | |
37f6a977 RD |
2680 | if (_obj3) |
2681 | { | |
2682 | _arg3 = &temp; | |
2683 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 2684 | return NULL; |
37f6a977 RD |
2685 | } |
2686 | if (_obj4) | |
2687 | { | |
2688 | _arg4 = &temp0; | |
2689 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 2690 | return NULL; |
37f6a977 | 2691 | } |
70551f47 RD |
2692 | if (_obj6) |
2693 | { | |
2694 | _arg6 = wxString_LIST_helper(_obj6); | |
2695 | if (_arg6 == NULL) { | |
2696 | return NULL; | |
2697 | } | |
2698 | } | |
2d091820 RD |
2699 | if (_argo8) { |
2700 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2701 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
70551f47 RD |
2702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); |
2703 | return NULL; | |
2704 | } | |
2705 | } | |
2706 | { | |
ab9bc19b RD |
2707 | if (_obj6) { |
2708 | _arg5 = PyList_Size(_obj6); | |
2709 | } | |
2710 | else { | |
2711 | _arg5 = 0; | |
2712 | } | |
70551f47 | 2713 | } |
ab9bc19b RD |
2714 | { |
2715 | wxPy_BEGIN_ALLOW_THREADS; | |
2716 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
2717 | ||
2718 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2719 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2720 | } if (_result) { |
2721 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2722 | _resultobj = Py_BuildValue("s",_ptemp); | |
2723 | } else { | |
2724 | Py_INCREF(Py_None); | |
2725 | _resultobj = Py_None; | |
2726 | } | |
70551f47 RD |
2727 | { |
2728 | delete [] _arg6; | |
2729 | } | |
2730 | return _resultobj; | |
2731 | } | |
2732 | ||
aa2a5b86 RD |
2733 | #define new_wxPreComboBox() (new wxComboBox()) |
2734 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2735 | PyObject * _resultobj; | |
2736 | wxComboBox * _result; | |
2737 | char *_kwnames[] = { NULL }; | |
2738 | char _ptemp[128]; | |
2739 | ||
2740 | self = self; | |
2741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2742 | return NULL; | |
2743 | { | |
2744 | wxPy_BEGIN_ALLOW_THREADS; | |
2745 | _result = (wxComboBox *)new_wxPreComboBox(); | |
2746 | ||
2747 | wxPy_END_ALLOW_THREADS; | |
2748 | if (PyErr_Occurred()) return NULL; | |
2749 | } if (_result) { | |
2750 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2751 | _resultobj = Py_BuildValue("s",_ptemp); | |
2752 | } else { | |
2753 | Py_INCREF(Py_None); | |
2754 | _resultobj = Py_None; | |
2755 | } | |
2756 | return _resultobj; | |
2757 | } | |
2758 | ||
2759 | #define wxComboBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
2760 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2761 | PyObject * _resultobj; | |
2762 | bool _result; | |
2763 | wxComboBox * _arg0; | |
2764 | wxWindow * _arg1; | |
2765 | wxWindowID _arg2; | |
2766 | char * _arg3 = (char *) ""; | |
2767 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2768 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2769 | int _arg6 = (int ) 0; | |
2770 | wxString * _arg7 = (wxString *) NULL; | |
2771 | long _arg8 = (long ) 0; | |
2772 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
2773 | char * _arg10 = (char *) "comboBox"; | |
2774 | PyObject * _argo0 = 0; | |
2775 | PyObject * _argo1 = 0; | |
2776 | wxPoint temp; | |
2777 | PyObject * _obj4 = 0; | |
2778 | wxSize temp0; | |
2779 | PyObject * _obj5 = 0; | |
2780 | PyObject * _obj7 = 0; | |
2781 | PyObject * _argo9 = 0; | |
2782 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2783 | ||
2784 | self = self; | |
2785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOOlOs:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_arg10)) | |
2786 | return NULL; | |
2787 | if (_argo0) { | |
2788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2791 | return NULL; | |
2792 | } | |
2793 | } | |
2794 | if (_argo1) { | |
2795 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2796 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2798 | return NULL; | |
2799 | } | |
2800 | } | |
2801 | if (_obj4) | |
2802 | { | |
2803 | _arg4 = &temp; | |
2804 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2805 | return NULL; | |
2806 | } | |
2807 | if (_obj5) | |
2808 | { | |
2809 | _arg5 = &temp0; | |
2810 | if (! wxSize_helper(_obj5, &_arg5)) | |
2811 | return NULL; | |
2812 | } | |
2813 | if (_obj7) | |
2814 | { | |
2815 | _arg7 = wxString_LIST_helper(_obj7); | |
2816 | if (_arg7 == NULL) { | |
2817 | return NULL; | |
2818 | } | |
2819 | } | |
2820 | if (_argo9) { | |
2821 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
2822 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2824 | return NULL; | |
2825 | } | |
2826 | } | |
2827 | { | |
2828 | if (_obj7) { | |
2829 | _arg6 = PyList_Size(_obj7); | |
2830 | } | |
2831 | else { | |
2832 | _arg6 = 0; | |
2833 | } | |
2834 | } | |
2835 | { | |
2836 | wxPy_BEGIN_ALLOW_THREADS; | |
2837 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); | |
2838 | ||
2839 | wxPy_END_ALLOW_THREADS; | |
2840 | if (PyErr_Occurred()) return NULL; | |
2841 | } _resultobj = Py_BuildValue("i",_result); | |
2842 | { | |
2843 | delete [] _arg7; | |
2844 | } | |
2845 | return _resultobj; | |
2846 | } | |
2847 | ||
70551f47 | 2848 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) |
107e4716 | 2849 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2850 | PyObject * _resultobj; |
2851 | wxComboBox * _arg0; | |
2d091820 | 2852 | PyObject * _argo0 = 0; |
107e4716 | 2853 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2854 | |
2855 | self = self; | |
107e4716 | 2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) |
70551f47 | 2857 | return NULL; |
2d091820 RD |
2858 | if (_argo0) { |
2859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); |
2862 | return NULL; | |
2863 | } | |
2864 | } | |
ab9bc19b RD |
2865 | { |
2866 | wxPy_BEGIN_ALLOW_THREADS; | |
2867 | wxComboBox_Copy(_arg0); | |
2868 | ||
2869 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2870 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2871 | } Py_INCREF(Py_None); |
70551f47 RD |
2872 | _resultobj = Py_None; |
2873 | return _resultobj; | |
2874 | } | |
2875 | ||
2876 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
107e4716 | 2877 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2878 | PyObject * _resultobj; |
2879 | wxComboBox * _arg0; | |
2d091820 | 2880 | PyObject * _argo0 = 0; |
107e4716 | 2881 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2882 | |
2883 | self = self; | |
107e4716 | 2884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) |
70551f47 | 2885 | return NULL; |
2d091820 RD |
2886 | if (_argo0) { |
2887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); |
2890 | return NULL; | |
2891 | } | |
2892 | } | |
ab9bc19b RD |
2893 | { |
2894 | wxPy_BEGIN_ALLOW_THREADS; | |
2895 | wxComboBox_Cut(_arg0); | |
2896 | ||
2897 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2898 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2899 | } Py_INCREF(Py_None); |
70551f47 RD |
2900 | _resultobj = Py_None; |
2901 | return _resultobj; | |
2902 | } | |
2903 | ||
70551f47 | 2904 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
107e4716 | 2905 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2906 | PyObject * _resultobj; |
2907 | long _result; | |
2908 | wxComboBox * _arg0; | |
2d091820 | 2909 | PyObject * _argo0 = 0; |
65191ae8 | 2910 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2911 | |
2912 | self = self; | |
65191ae8 | 2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) |
70551f47 | 2914 | return NULL; |
2d091820 RD |
2915 | if (_argo0) { |
2916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
65191ae8 | 2918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); |
70551f47 RD |
2919 | return NULL; |
2920 | } | |
2921 | } | |
70551f47 | 2922 | { |
ab9bc19b | 2923 | wxPy_BEGIN_ALLOW_THREADS; |
65191ae8 | 2924 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); |
ab9bc19b RD |
2925 | |
2926 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2927 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 2928 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
2929 | return _resultobj; |
2930 | } | |
2931 | ||
65191ae8 RD |
2932 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
2933 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2934 | PyObject * _resultobj; |
65191ae8 | 2935 | long _result; |
70551f47 | 2936 | wxComboBox * _arg0; |
2d091820 | 2937 | PyObject * _argo0 = 0; |
107e4716 | 2938 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2939 | |
2940 | self = self; | |
65191ae8 | 2941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) |
70551f47 | 2942 | return NULL; |
2d091820 RD |
2943 | if (_argo0) { |
2944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
65191ae8 | 2946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); |
70551f47 RD |
2947 | return NULL; |
2948 | } | |
2949 | } | |
70551f47 | 2950 | { |
ab9bc19b | 2951 | wxPy_BEGIN_ALLOW_THREADS; |
65191ae8 | 2952 | _result = (long )wxComboBox_GetLastPosition(_arg0); |
ab9bc19b RD |
2953 | |
2954 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2955 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 2956 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
2957 | return _resultobj; |
2958 | } | |
2959 | ||
2960 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 2961 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2962 | PyObject * _resultobj; |
2963 | wxString * _result; | |
2964 | wxComboBox * _arg0; | |
2d091820 | 2965 | PyObject * _argo0 = 0; |
107e4716 | 2966 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2967 | |
2968 | self = self; | |
107e4716 | 2969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) |
70551f47 | 2970 | return NULL; |
2d091820 RD |
2971 | if (_argo0) { |
2972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); |
2975 | return NULL; | |
2976 | } | |
2977 | } | |
70551f47 | 2978 | { |
ab9bc19b RD |
2979 | wxPy_BEGIN_ALLOW_THREADS; |
2980 | _result = new wxString (wxComboBox_GetValue(_arg0)); | |
2981 | ||
2982 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2983 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2984 | }{ |
e02c03a4 | 2985 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
2986 | } |
2987 | { | |
2988 | delete _result; | |
2989 | } | |
2990 | return _resultobj; | |
2991 | } | |
2992 | ||
70551f47 | 2993 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) |
107e4716 | 2994 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2995 | PyObject * _resultobj; |
2996 | wxComboBox * _arg0; | |
2d091820 | 2997 | PyObject * _argo0 = 0; |
107e4716 | 2998 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2999 | |
3000 | self = self; | |
107e4716 | 3001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) |
70551f47 | 3002 | return NULL; |
2d091820 RD |
3003 | if (_argo0) { |
3004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); |
3007 | return NULL; | |
3008 | } | |
3009 | } | |
ab9bc19b RD |
3010 | { |
3011 | wxPy_BEGIN_ALLOW_THREADS; | |
3012 | wxComboBox_Paste(_arg0); | |
3013 | ||
3014 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3015 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3016 | } Py_INCREF(Py_None); |
70551f47 RD |
3017 | _resultobj = Py_None; |
3018 | return _resultobj; | |
3019 | } | |
3020 | ||
3021 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 3022 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3023 | PyObject * _resultobj; |
3024 | wxComboBox * _arg0; | |
3025 | long _arg1; | |
3026 | long _arg2; | |
3027 | wxString * _arg3; | |
2d091820 | 3028 | PyObject * _argo0 = 0; |
70551f47 | 3029 | PyObject * _obj3 = 0; |
107e4716 | 3030 | char *_kwnames[] = { "self","from","to","text", NULL }; |
70551f47 RD |
3031 | |
3032 | self = self; | |
107e4716 | 3033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 3034 | return NULL; |
2d091820 RD |
3035 | if (_argo0) { |
3036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); |
3039 | return NULL; | |
3040 | } | |
3041 | } | |
3042 | { | |
2cd2fac8 RD |
3043 | #if PYTHON_API_VERSION >= 1009 |
3044 | char* tmpPtr; int tmpSize; | |
3045 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 3046 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3047 | return NULL; |
3048 | } | |
3049 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3050 | return NULL; | |
3051 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3052 | #else | |
70551f47 RD |
3053 | if (!PyString_Check(_obj3)) { |
3054 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3055 | return NULL; | |
3056 | } | |
2cd2fac8 RD |
3057 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
3058 | #endif | |
70551f47 | 3059 | } |
ab9bc19b RD |
3060 | { |
3061 | wxPy_BEGIN_ALLOW_THREADS; | |
3062 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); | |
3063 | ||
3064 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3065 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3066 | } Py_INCREF(Py_None); |
70551f47 RD |
3067 | _resultobj = Py_None; |
3068 | { | |
3069 | if (_obj3) | |
3070 | delete _arg3; | |
3071 | } | |
3072 | return _resultobj; | |
3073 | } | |
3074 | ||
3075 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
107e4716 | 3076 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3077 | PyObject * _resultobj; |
3078 | wxComboBox * _arg0; | |
3079 | long _arg1; | |
3080 | long _arg2; | |
2d091820 | 3081 | PyObject * _argo0 = 0; |
107e4716 | 3082 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
3083 | |
3084 | self = self; | |
107e4716 | 3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3086 | return NULL; |
2d091820 RD |
3087 | if (_argo0) { |
3088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); |
3091 | return NULL; | |
3092 | } | |
3093 | } | |
ab9bc19b RD |
3094 | { |
3095 | wxPy_BEGIN_ALLOW_THREADS; | |
3096 | wxComboBox_Remove(_arg0,_arg1,_arg2); | |
3097 | ||
3098 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3099 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3100 | } Py_INCREF(Py_None); |
70551f47 RD |
3101 | _resultobj = Py_None; |
3102 | return _resultobj; | |
3103 | } | |
3104 | ||
3105 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
107e4716 | 3106 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3107 | PyObject * _resultobj; |
3108 | wxComboBox * _arg0; | |
3109 | long _arg1; | |
2d091820 | 3110 | PyObject * _argo0 = 0; |
107e4716 | 3111 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
3112 | |
3113 | self = self; | |
107e4716 | 3114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3115 | return NULL; |
2d091820 RD |
3116 | if (_argo0) { |
3117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); |
3120 | return NULL; | |
3121 | } | |
3122 | } | |
ab9bc19b RD |
3123 | { |
3124 | wxPy_BEGIN_ALLOW_THREADS; | |
3125 | wxComboBox_SetInsertionPoint(_arg0,_arg1); | |
3126 | ||
3127 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3128 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3129 | } Py_INCREF(Py_None); |
70551f47 RD |
3130 | _resultobj = Py_None; |
3131 | return _resultobj; | |
3132 | } | |
3133 | ||
3134 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
107e4716 | 3135 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3136 | PyObject * _resultobj; |
3137 | wxComboBox * _arg0; | |
2d091820 | 3138 | PyObject * _argo0 = 0; |
107e4716 | 3139 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3140 | |
3141 | self = self; | |
107e4716 | 3142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) |
70551f47 | 3143 | return NULL; |
2d091820 RD |
3144 | if (_argo0) { |
3145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); |
3148 | return NULL; | |
3149 | } | |
3150 | } | |
ab9bc19b RD |
3151 | { |
3152 | wxPy_BEGIN_ALLOW_THREADS; | |
3153 | wxComboBox_SetInsertionPointEnd(_arg0); | |
3154 | ||
3155 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3156 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3157 | } Py_INCREF(Py_None); |
70551f47 RD |
3158 | _resultobj = Py_None; |
3159 | return _resultobj; | |
3160 | } | |
3161 | ||
2d091820 | 3162 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
107e4716 | 3163 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2d091820 RD |
3164 | PyObject * _resultobj; |
3165 | wxComboBox * _arg0; | |
3166 | int _arg1; | |
3167 | PyObject * _argo0 = 0; | |
107e4716 | 3168 | char *_kwnames[] = { "self","n", NULL }; |
2d091820 RD |
3169 | |
3170 | self = self; | |
107e4716 | 3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
2d091820 RD |
3172 | return NULL; |
3173 | if (_argo0) { | |
3174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3177 | return NULL; | |
3178 | } | |
3179 | } | |
3180 | { | |
3181 | wxPy_BEGIN_ALLOW_THREADS; | |
3182 | wxComboBox_SetSelection(_arg0,_arg1); | |
3183 | ||
3184 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3185 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3186 | } Py_INCREF(Py_None); |
3187 | _resultobj = Py_None; | |
3188 | return _resultobj; | |
3189 | } | |
3190 | ||
70551f47 | 3191 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) |
107e4716 | 3192 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3193 | PyObject * _resultobj; |
3194 | wxComboBox * _arg0; | |
3195 | long _arg1; | |
3196 | long _arg2; | |
2d091820 | 3197 | PyObject * _argo0 = 0; |
107e4716 | 3198 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
3199 | |
3200 | self = self; | |
107e4716 | 3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3202 | return NULL; |
2d091820 RD |
3203 | if (_argo0) { |
3204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); |
3207 | return NULL; | |
3208 | } | |
3209 | } | |
ab9bc19b RD |
3210 | { |
3211 | wxPy_BEGIN_ALLOW_THREADS; | |
3212 | wxComboBox_SetMark(_arg0,_arg1,_arg2); | |
3213 | ||
3214 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3215 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3216 | } Py_INCREF(Py_None); |
70551f47 RD |
3217 | _resultobj = Py_None; |
3218 | return _resultobj; | |
3219 | } | |
3220 | ||
3221 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 3222 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3223 | PyObject * _resultobj; |
3224 | wxComboBox * _arg0; | |
3225 | wxString * _arg1; | |
2d091820 | 3226 | PyObject * _argo0 = 0; |
70551f47 | 3227 | PyObject * _obj1 = 0; |
107e4716 | 3228 | char *_kwnames[] = { "self","text", NULL }; |
70551f47 RD |
3229 | |
3230 | self = self; | |
107e4716 | 3231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3232 | return NULL; |
2d091820 RD |
3233 | if (_argo0) { |
3234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); |
3237 | return NULL; | |
3238 | } | |
3239 | } | |
3240 | { | |
2cd2fac8 RD |
3241 | #if PYTHON_API_VERSION >= 1009 |
3242 | char* tmpPtr; int tmpSize; | |
3243 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 3244 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3245 | return NULL; |
3246 | } | |
3247 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3248 | return NULL; | |
3249 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3250 | #else | |
70551f47 RD |
3251 | if (!PyString_Check(_obj1)) { |
3252 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3253 | return NULL; | |
3254 | } | |
2cd2fac8 RD |
3255 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3256 | #endif | |
70551f47 | 3257 | } |
ab9bc19b RD |
3258 | { |
3259 | wxPy_BEGIN_ALLOW_THREADS; | |
3260 | wxComboBox_SetValue(_arg0,*_arg1); | |
3261 | ||
3262 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3263 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3264 | } Py_INCREF(Py_None); |
70551f47 RD |
3265 | _resultobj = Py_None; |
3266 | { | |
3267 | if (_obj1) | |
3268 | delete _arg1; | |
3269 | } | |
3270 | return _resultobj; | |
3271 | } | |
3272 | ||
2c8a649d RD |
3273 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
3274 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3275 | PyObject * _resultobj; | |
3276 | wxComboBox * _arg0; | |
3277 | bool _arg1; | |
3278 | PyObject * _argo0 = 0; | |
3279 | int tempbool1; | |
3280 | char *_kwnames[] = { "self","editable", NULL }; | |
3281 | ||
3282 | self = self; | |
3283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3284 | return NULL; | |
3285 | if (_argo0) { | |
3286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3289 | return NULL; | |
3290 | } | |
3291 | } | |
3292 | _arg1 = (bool ) tempbool1; | |
3293 | { | |
3294 | wxPy_BEGIN_ALLOW_THREADS; | |
3295 | wxComboBox_SetEditable(_arg0,_arg1); | |
3296 | ||
3297 | wxPy_END_ALLOW_THREADS; | |
3298 | if (PyErr_Occurred()) return NULL; | |
3299 | } Py_INCREF(Py_None); | |
3300 | _resultobj = Py_None; | |
3301 | return _resultobj; | |
3302 | } | |
3303 | ||
70551f47 RD |
3304 | static void *SwigwxGaugeTowxControl(void *ptr) { |
3305 | wxGauge *src; | |
3306 | wxControl *dest; | |
3307 | src = (wxGauge *) ptr; | |
3308 | dest = (wxControl *) src; | |
3309 | return (void *) dest; | |
3310 | } | |
3311 | ||
3312 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3313 | wxGauge *src; | |
3314 | wxWindow *dest; | |
3315 | src = (wxGauge *) ptr; | |
3316 | dest = (wxWindow *) src; | |
3317 | return (void *) dest; | |
3318 | } | |
3319 | ||
3320 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3321 | wxGauge *src; | |
3322 | wxEvtHandler *dest; | |
3323 | src = (wxGauge *) ptr; | |
3324 | dest = (wxEvtHandler *) src; | |
3325 | return (void *) dest; | |
3326 | } | |
3327 | ||
9df61a29 RD |
3328 | static void *SwigwxGaugeTowxObject(void *ptr) { |
3329 | wxGauge *src; | |
3330 | wxObject *dest; | |
3331 | src = (wxGauge *) ptr; | |
3332 | dest = (wxObject *) src; | |
3333 | return (void *) dest; | |
3334 | } | |
3335 | ||
70551f47 | 3336 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 3337 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3338 | PyObject * _resultobj; |
3339 | wxGauge * _result; | |
3340 | wxWindow * _arg0; | |
3341 | wxWindowID _arg1; | |
3342 | int _arg2; | |
b68dc582 RD |
3343 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3344 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 3345 | long _arg5 = (long ) wxGA_HORIZONTAL; |
b68dc582 | 3346 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
3347 | char * _arg7 = (char *) "gauge"; |
3348 | PyObject * _argo0 = 0; | |
37f6a977 RD |
3349 | wxPoint temp; |
3350 | PyObject * _obj3 = 0; | |
3351 | wxSize temp0; | |
3352 | PyObject * _obj4 = 0; | |
2d091820 | 3353 | PyObject * _argo6 = 0; |
107e4716 | 3354 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; |
70551f47 RD |
3355 | char _ptemp[128]; |
3356 | ||
3357 | self = self; | |
37f6a977 | 3358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 3359 | return NULL; |
2d091820 RD |
3360 | if (_argo0) { |
3361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); |
3364 | return NULL; | |
3365 | } | |
3366 | } | |
37f6a977 RD |
3367 | if (_obj3) |
3368 | { | |
3369 | _arg3 = &temp; | |
3370 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 3371 | return NULL; |
37f6a977 RD |
3372 | } |
3373 | if (_obj4) | |
3374 | { | |
3375 | _arg4 = &temp0; | |
3376 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 3377 | return NULL; |
37f6a977 | 3378 | } |
2d091820 RD |
3379 | if (_argo6) { |
3380 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3381 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
3382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); |
3383 | return NULL; | |
3384 | } | |
3385 | } | |
ab9bc19b RD |
3386 | { |
3387 | wxPy_BEGIN_ALLOW_THREADS; | |
3388 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
3389 | ||
3390 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3391 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3392 | } if (_result) { |
3393 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3394 | _resultobj = Py_BuildValue("s",_ptemp); | |
3395 | } else { | |
3396 | Py_INCREF(Py_None); | |
3397 | _resultobj = Py_None; | |
3398 | } | |
70551f47 RD |
3399 | return _resultobj; |
3400 | } | |
3401 | ||
aa2a5b86 RD |
3402 | #define new_wxPreGauge() (new wxGauge()) |
3403 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject * _resultobj; | |
3405 | wxGauge * _result; | |
3406 | char *_kwnames[] = { NULL }; | |
3407 | char _ptemp[128]; | |
3408 | ||
3409 | self = self; | |
3410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3411 | return NULL; | |
3412 | { | |
3413 | wxPy_BEGIN_ALLOW_THREADS; | |
3414 | _result = (wxGauge *)new_wxPreGauge(); | |
3415 | ||
3416 | wxPy_END_ALLOW_THREADS; | |
3417 | if (PyErr_Occurred()) return NULL; | |
3418 | } if (_result) { | |
3419 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3420 | _resultobj = Py_BuildValue("s",_ptemp); | |
3421 | } else { | |
3422 | Py_INCREF(Py_None); | |
3423 | _resultobj = Py_None; | |
3424 | } | |
3425 | return _resultobj; | |
3426 | } | |
3427 | ||
3428 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3429 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3430 | PyObject * _resultobj; | |
3431 | bool _result; | |
3432 | wxGauge * _arg0; | |
3433 | wxWindow * _arg1; | |
3434 | wxWindowID _arg2; | |
3435 | int _arg3; | |
3436 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3437 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3438 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3439 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
3440 | char * _arg8 = (char *) "gauge"; | |
3441 | PyObject * _argo0 = 0; | |
3442 | PyObject * _argo1 = 0; | |
3443 | wxPoint temp; | |
3444 | PyObject * _obj4 = 0; | |
3445 | wxSize temp0; | |
3446 | PyObject * _obj5 = 0; | |
3447 | PyObject * _argo7 = 0; | |
3448 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; | |
3449 | ||
3450 | self = self; | |
3451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOs:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
3452 | return NULL; | |
3453 | if (_argo0) { | |
3454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3457 | return NULL; | |
3458 | } | |
3459 | } | |
3460 | if (_argo1) { | |
3461 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3462 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3464 | return NULL; | |
3465 | } | |
3466 | } | |
3467 | if (_obj4) | |
3468 | { | |
3469 | _arg4 = &temp; | |
3470 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3471 | return NULL; | |
3472 | } | |
3473 | if (_obj5) | |
3474 | { | |
3475 | _arg5 = &temp0; | |
3476 | if (! wxSize_helper(_obj5, &_arg5)) | |
3477 | return NULL; | |
3478 | } | |
3479 | if (_argo7) { | |
3480 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3481 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3483 | return NULL; | |
3484 | } | |
3485 | } | |
3486 | { | |
3487 | wxPy_BEGIN_ALLOW_THREADS; | |
3488 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
3489 | ||
3490 | wxPy_END_ALLOW_THREADS; | |
3491 | if (PyErr_Occurred()) return NULL; | |
3492 | } _resultobj = Py_BuildValue("i",_result); | |
3493 | return _resultobj; | |
3494 | } | |
3495 | ||
70551f47 | 3496 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) |
107e4716 | 3497 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3498 | PyObject * _resultobj; |
3499 | int _result; | |
3500 | wxGauge * _arg0; | |
2d091820 | 3501 | PyObject * _argo0 = 0; |
107e4716 | 3502 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3503 | |
3504 | self = self; | |
107e4716 | 3505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) |
70551f47 | 3506 | return NULL; |
2d091820 RD |
3507 | if (_argo0) { |
3508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); |
3511 | return NULL; | |
3512 | } | |
3513 | } | |
ab9bc19b RD |
3514 | { |
3515 | wxPy_BEGIN_ALLOW_THREADS; | |
3516 | _result = (int )wxGauge_GetBezelFace(_arg0); | |
3517 | ||
3518 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3519 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3520 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3521 | return _resultobj; |
3522 | } | |
3523 | ||
3524 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
107e4716 | 3525 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3526 | PyObject * _resultobj; |
3527 | int _result; | |
3528 | wxGauge * _arg0; | |
2d091820 | 3529 | PyObject * _argo0 = 0; |
107e4716 | 3530 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3531 | |
3532 | self = self; | |
107e4716 | 3533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) |
70551f47 | 3534 | return NULL; |
2d091820 RD |
3535 | if (_argo0) { |
3536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); |
3539 | return NULL; | |
3540 | } | |
3541 | } | |
ab9bc19b RD |
3542 | { |
3543 | wxPy_BEGIN_ALLOW_THREADS; | |
3544 | _result = (int )wxGauge_GetRange(_arg0); | |
3545 | ||
3546 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3547 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3548 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3549 | return _resultobj; |
3550 | } | |
3551 | ||
3552 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
107e4716 | 3553 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3554 | PyObject * _resultobj; |
3555 | int _result; | |
3556 | wxGauge * _arg0; | |
2d091820 | 3557 | PyObject * _argo0 = 0; |
107e4716 | 3558 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3559 | |
3560 | self = self; | |
107e4716 | 3561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) |
70551f47 | 3562 | return NULL; |
2d091820 RD |
3563 | if (_argo0) { |
3564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); |
3567 | return NULL; | |
3568 | } | |
3569 | } | |
ab9bc19b RD |
3570 | { |
3571 | wxPy_BEGIN_ALLOW_THREADS; | |
3572 | _result = (int )wxGauge_GetShadowWidth(_arg0); | |
3573 | ||
3574 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3575 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3576 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3577 | return _resultobj; |
3578 | } | |
3579 | ||
3580 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 3581 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3582 | PyObject * _resultobj; |
3583 | int _result; | |
3584 | wxGauge * _arg0; | |
2d091820 | 3585 | PyObject * _argo0 = 0; |
107e4716 | 3586 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3587 | |
3588 | self = self; | |
107e4716 | 3589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) |
70551f47 | 3590 | return NULL; |
2d091820 RD |
3591 | if (_argo0) { |
3592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); |
3595 | return NULL; | |
3596 | } | |
3597 | } | |
ab9bc19b RD |
3598 | { |
3599 | wxPy_BEGIN_ALLOW_THREADS; | |
3600 | _result = (int )wxGauge_GetValue(_arg0); | |
3601 | ||
3602 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3603 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3604 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3605 | return _resultobj; |
3606 | } | |
3607 | ||
3608 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
107e4716 | 3609 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3610 | PyObject * _resultobj; |
3611 | wxGauge * _arg0; | |
3612 | int _arg1; | |
2d091820 | 3613 | PyObject * _argo0 = 0; |
107e4716 | 3614 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
3615 | |
3616 | self = self; | |
107e4716 | 3617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3618 | return NULL; |
2d091820 RD |
3619 | if (_argo0) { |
3620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); |
3623 | return NULL; | |
3624 | } | |
3625 | } | |
ab9bc19b RD |
3626 | { |
3627 | wxPy_BEGIN_ALLOW_THREADS; | |
3628 | wxGauge_SetBezelFace(_arg0,_arg1); | |
3629 | ||
3630 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3631 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3632 | } Py_INCREF(Py_None); |
70551f47 RD |
3633 | _resultobj = Py_None; |
3634 | return _resultobj; | |
3635 | } | |
3636 | ||
3637 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
107e4716 | 3638 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3639 | PyObject * _resultobj; |
3640 | wxGauge * _arg0; | |
3641 | int _arg1; | |
2d091820 | 3642 | PyObject * _argo0 = 0; |
107e4716 | 3643 | char *_kwnames[] = { "self","range", NULL }; |
70551f47 RD |
3644 | |
3645 | self = self; | |
107e4716 | 3646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3647 | return NULL; |
2d091820 RD |
3648 | if (_argo0) { |
3649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); |
3652 | return NULL; | |
3653 | } | |
3654 | } | |
ab9bc19b RD |
3655 | { |
3656 | wxPy_BEGIN_ALLOW_THREADS; | |
3657 | wxGauge_SetRange(_arg0,_arg1); | |
3658 | ||
3659 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3660 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3661 | } Py_INCREF(Py_None); |
70551f47 RD |
3662 | _resultobj = Py_None; |
3663 | return _resultobj; | |
3664 | } | |
3665 | ||
3666 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
107e4716 | 3667 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3668 | PyObject * _resultobj; |
3669 | wxGauge * _arg0; | |
3670 | int _arg1; | |
2d091820 | 3671 | PyObject * _argo0 = 0; |
107e4716 | 3672 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
3673 | |
3674 | self = self; | |
107e4716 | 3675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3676 | return NULL; |
2d091820 RD |
3677 | if (_argo0) { |
3678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); |
3681 | return NULL; | |
3682 | } | |
3683 | } | |
ab9bc19b RD |
3684 | { |
3685 | wxPy_BEGIN_ALLOW_THREADS; | |
3686 | wxGauge_SetShadowWidth(_arg0,_arg1); | |
3687 | ||
3688 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3689 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3690 | } Py_INCREF(Py_None); |
70551f47 RD |
3691 | _resultobj = Py_None; |
3692 | return _resultobj; | |
3693 | } | |
3694 | ||
3695 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 3696 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3697 | PyObject * _resultobj; |
3698 | wxGauge * _arg0; | |
3699 | int _arg1; | |
2d091820 | 3700 | PyObject * _argo0 = 0; |
107e4716 | 3701 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
3702 | |
3703 | self = self; | |
107e4716 | 3704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3705 | return NULL; |
2d091820 RD |
3706 | if (_argo0) { |
3707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); |
3710 | return NULL; | |
3711 | } | |
3712 | } | |
ab9bc19b RD |
3713 | { |
3714 | wxPy_BEGIN_ALLOW_THREADS; | |
3715 | wxGauge_SetValue(_arg0,_arg1); | |
3716 | ||
3717 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3718 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3719 | } Py_INCREF(Py_None); |
70551f47 RD |
3720 | _resultobj = Py_None; |
3721 | return _resultobj; | |
3722 | } | |
3723 | ||
3724 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
3725 | wxStaticBox *src; | |
3726 | wxControl *dest; | |
3727 | src = (wxStaticBox *) ptr; | |
3728 | dest = (wxControl *) src; | |
3729 | return (void *) dest; | |
3730 | } | |
3731 | ||
3732 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
3733 | wxStaticBox *src; | |
3734 | wxWindow *dest; | |
3735 | src = (wxStaticBox *) ptr; | |
3736 | dest = (wxWindow *) src; | |
3737 | return (void *) dest; | |
3738 | } | |
3739 | ||
3740 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
3741 | wxStaticBox *src; | |
3742 | wxEvtHandler *dest; | |
3743 | src = (wxStaticBox *) ptr; | |
3744 | dest = (wxEvtHandler *) src; | |
3745 | return (void *) dest; | |
3746 | } | |
3747 | ||
9df61a29 RD |
3748 | static void *SwigwxStaticBoxTowxObject(void *ptr) { |
3749 | wxStaticBox *src; | |
3750 | wxObject *dest; | |
3751 | src = (wxStaticBox *) ptr; | |
3752 | dest = (wxObject *) src; | |
3753 | return (void *) dest; | |
3754 | } | |
3755 | ||
70551f47 | 3756 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 3757 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3758 | PyObject * _resultobj; |
3759 | wxStaticBox * _result; | |
3760 | wxWindow * _arg0; | |
3761 | wxWindowID _arg1; | |
3762 | wxString * _arg2; | |
b68dc582 RD |
3763 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3764 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
3765 | long _arg5 = (long ) 0; |
3766 | char * _arg6 = (char *) "staticBox"; | |
3767 | PyObject * _argo0 = 0; | |
70551f47 | 3768 | PyObject * _obj2 = 0; |
37f6a977 RD |
3769 | wxPoint temp; |
3770 | PyObject * _obj3 = 0; | |
3771 | wxSize temp0; | |
3772 | PyObject * _obj4 = 0; | |
107e4716 | 3773 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
70551f47 RD |
3774 | char _ptemp[128]; |
3775 | ||
3776 | self = self; | |
37f6a977 | 3777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
70551f47 | 3778 | return NULL; |
2d091820 RD |
3779 | if (_argo0) { |
3780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); |
3783 | return NULL; | |
3784 | } | |
3785 | } | |
3786 | { | |
2cd2fac8 RD |
3787 | #if PYTHON_API_VERSION >= 1009 |
3788 | char* tmpPtr; int tmpSize; | |
3789 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 3790 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3791 | return NULL; |
3792 | } | |
3793 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3794 | return NULL; | |
3795 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3796 | #else | |
70551f47 RD |
3797 | if (!PyString_Check(_obj2)) { |
3798 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3799 | return NULL; | |
3800 | } | |
2cd2fac8 RD |
3801 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3802 | #endif | |
70551f47 | 3803 | } |
37f6a977 RD |
3804 | if (_obj3) |
3805 | { | |
3806 | _arg3 = &temp; | |
3807 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 3808 | return NULL; |
37f6a977 RD |
3809 | } |
3810 | if (_obj4) | |
3811 | { | |
3812 | _arg4 = &temp0; | |
3813 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 3814 | return NULL; |
37f6a977 | 3815 | } |
ab9bc19b RD |
3816 | { |
3817 | wxPy_BEGIN_ALLOW_THREADS; | |
3818 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
3819 | ||
3820 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3821 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3822 | } if (_result) { |
3823 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3824 | _resultobj = Py_BuildValue("s",_ptemp); | |
3825 | } else { | |
3826 | Py_INCREF(Py_None); | |
3827 | _resultobj = Py_None; | |
3828 | } | |
70551f47 RD |
3829 | { |
3830 | if (_obj2) | |
3831 | delete _arg2; | |
3832 | } | |
3833 | return _resultobj; | |
3834 | } | |
3835 | ||
aa2a5b86 RD |
3836 | #define new_wxPreStaticBox() (new wxStaticBox()) |
3837 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3838 | PyObject * _resultobj; | |
3839 | wxStaticBox * _result; | |
3840 | char *_kwnames[] = { NULL }; | |
3841 | char _ptemp[128]; | |
3842 | ||
3843 | self = self; | |
3844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
3845 | return NULL; | |
3846 | { | |
3847 | wxPy_BEGIN_ALLOW_THREADS; | |
3848 | _result = (wxStaticBox *)new_wxPreStaticBox(); | |
3849 | ||
3850 | wxPy_END_ALLOW_THREADS; | |
3851 | if (PyErr_Occurred()) return NULL; | |
3852 | } if (_result) { | |
3853 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3854 | _resultobj = Py_BuildValue("s",_ptemp); | |
3855 | } else { | |
3856 | Py_INCREF(Py_None); | |
3857 | _resultobj = Py_None; | |
3858 | } | |
3859 | return _resultobj; | |
3860 | } | |
3861 | ||
3862 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3863 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3864 | PyObject * _resultobj; | |
3865 | bool _result; | |
3866 | wxStaticBox * _arg0; | |
3867 | wxWindow * _arg1; | |
3868 | wxWindowID _arg2; | |
3869 | wxString * _arg3; | |
3870 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3871 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3872 | long _arg6 = (long ) 0; | |
3873 | char * _arg7 = (char *) "staticBox"; | |
3874 | PyObject * _argo0 = 0; | |
3875 | PyObject * _argo1 = 0; | |
3876 | PyObject * _obj3 = 0; | |
3877 | wxPoint temp; | |
3878 | PyObject * _obj4 = 0; | |
3879 | wxSize temp0; | |
3880 | PyObject * _obj5 = 0; | |
3881 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
3882 | ||
3883 | self = self; | |
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
3885 | return NULL; | |
3886 | if (_argo0) { | |
3887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
3890 | return NULL; | |
3891 | } | |
3892 | } | |
3893 | if (_argo1) { | |
3894 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3895 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
3897 | return NULL; | |
3898 | } | |
3899 | } | |
3900 | { | |
3901 | #if PYTHON_API_VERSION >= 1009 | |
3902 | char* tmpPtr; int tmpSize; | |
3903 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
3904 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3905 | return NULL; | |
3906 | } | |
3907 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3908 | return NULL; | |
3909 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3910 | #else | |
3911 | if (!PyString_Check(_obj3)) { | |
3912 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3913 | return NULL; | |
3914 | } | |
3915 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
3916 | #endif | |
3917 | } | |
3918 | if (_obj4) | |
3919 | { | |
3920 | _arg4 = &temp; | |
3921 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3922 | return NULL; | |
3923 | } | |
3924 | if (_obj5) | |
3925 | { | |
3926 | _arg5 = &temp0; | |
3927 | if (! wxSize_helper(_obj5, &_arg5)) | |
3928 | return NULL; | |
3929 | } | |
3930 | { | |
3931 | wxPy_BEGIN_ALLOW_THREADS; | |
3932 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
3933 | ||
3934 | wxPy_END_ALLOW_THREADS; | |
3935 | if (PyErr_Occurred()) return NULL; | |
3936 | } _resultobj = Py_BuildValue("i",_result); | |
3937 | { | |
3938 | if (_obj3) | |
3939 | delete _arg3; | |
3940 | } | |
3941 | return _resultobj; | |
3942 | } | |
3943 | ||
d24a34bb RD |
3944 | static void *SwigwxStaticLineTowxControl(void *ptr) { |
3945 | wxStaticLine *src; | |
3946 | wxControl *dest; | |
3947 | src = (wxStaticLine *) ptr; | |
3948 | dest = (wxControl *) src; | |
3949 | return (void *) dest; | |
3950 | } | |
3951 | ||
3952 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
3953 | wxStaticLine *src; | |
3954 | wxWindow *dest; | |
3955 | src = (wxStaticLine *) ptr; | |
3956 | dest = (wxWindow *) src; | |
3957 | return (void *) dest; | |
3958 | } | |
3959 | ||
3960 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
3961 | wxStaticLine *src; | |
3962 | wxEvtHandler *dest; | |
3963 | src = (wxStaticLine *) ptr; | |
3964 | dest = (wxEvtHandler *) src; | |
3965 | return (void *) dest; | |
3966 | } | |
3967 | ||
9df61a29 RD |
3968 | static void *SwigwxStaticLineTowxObject(void *ptr) { |
3969 | wxStaticLine *src; | |
3970 | wxObject *dest; | |
3971 | src = (wxStaticLine *) ptr; | |
3972 | dest = (wxObject *) src; | |
3973 | return (void *) dest; | |
3974 | } | |
3975 | ||
d24a34bb | 3976 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 3977 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
3978 | PyObject * _resultobj; |
3979 | wxStaticLine * _result; | |
3980 | wxWindow * _arg0; | |
3981 | wxWindowID _arg1; | |
b68dc582 RD |
3982 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3983 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
3984 | long _arg4 = (long ) wxLI_HORIZONTAL; |
3985 | char * _arg5 = (char *) "staticLine"; | |
3986 | PyObject * _argo0 = 0; | |
37f6a977 RD |
3987 | wxPoint temp; |
3988 | PyObject * _obj2 = 0; | |
3989 | wxSize temp0; | |
3990 | PyObject * _obj3 = 0; | |
107e4716 | 3991 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
d24a34bb RD |
3992 | char _ptemp[128]; |
3993 | ||
3994 | self = self; | |
37f6a977 | 3995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
d24a34bb | 3996 | return NULL; |
2d091820 RD |
3997 | if (_argo0) { |
3998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
4000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); |
4001 | return NULL; | |
4002 | } | |
4003 | } | |
37f6a977 RD |
4004 | if (_obj2) |
4005 | { | |
4006 | _arg2 = &temp; | |
4007 | if (! wxPoint_helper(_obj2, &_arg2)) | |
d24a34bb | 4008 | return NULL; |
37f6a977 RD |
4009 | } |
4010 | if (_obj3) | |
4011 | { | |
4012 | _arg3 = &temp0; | |
4013 | if (! wxSize_helper(_obj3, &_arg3)) | |
d24a34bb | 4014 | return NULL; |
37f6a977 | 4015 | } |
d24a34bb RD |
4016 | { |
4017 | wxPy_BEGIN_ALLOW_THREADS; | |
4018 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
4019 | ||
4020 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4021 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4022 | } if (_result) { |
4023 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4024 | _resultobj = Py_BuildValue("s",_ptemp); | |
4025 | } else { | |
4026 | Py_INCREF(Py_None); | |
4027 | _resultobj = Py_None; | |
4028 | } | |
d24a34bb RD |
4029 | return _resultobj; |
4030 | } | |
4031 | ||
aa2a5b86 RD |
4032 | #define new_wxPreStaticLine() (new wxStaticLine()) |
4033 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4034 | PyObject * _resultobj; | |
4035 | wxStaticLine * _result; | |
4036 | char *_kwnames[] = { NULL }; | |
4037 | char _ptemp[128]; | |
4038 | ||
4039 | self = self; | |
4040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
4041 | return NULL; | |
4042 | { | |
4043 | wxPy_BEGIN_ALLOW_THREADS; | |
4044 | _result = (wxStaticLine *)new_wxPreStaticLine(); | |
4045 | ||
4046 | wxPy_END_ALLOW_THREADS; | |
4047 | if (PyErr_Occurred()) return NULL; | |
4048 | } if (_result) { | |
4049 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4050 | _resultobj = Py_BuildValue("s",_ptemp); | |
4051 | } else { | |
4052 | Py_INCREF(Py_None); | |
4053 | _resultobj = Py_None; | |
4054 | } | |
4055 | return _resultobj; | |
4056 | } | |
4057 | ||
4058 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4059 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4060 | PyObject * _resultobj; | |
4061 | bool _result; | |
4062 | wxStaticLine * _arg0; | |
4063 | wxWindow * _arg1; | |
4064 | wxWindowID _arg2; | |
4065 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4066 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4067 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
4068 | char * _arg6 = (char *) "staticLine"; | |
4069 | PyObject * _argo0 = 0; | |
4070 | PyObject * _argo1 = 0; | |
4071 | wxPoint temp; | |
4072 | PyObject * _obj3 = 0; | |
4073 | wxSize temp0; | |
4074 | PyObject * _obj4 = 0; | |
4075 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
4076 | ||
4077 | self = self; | |
4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4079 | return NULL; | |
4080 | if (_argo0) { | |
4081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4084 | return NULL; | |
4085 | } | |
4086 | } | |
4087 | if (_argo1) { | |
4088 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4089 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4091 | return NULL; | |
4092 | } | |
4093 | } | |
4094 | if (_obj3) | |
4095 | { | |
4096 | _arg3 = &temp; | |
4097 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4098 | return NULL; | |
4099 | } | |
4100 | if (_obj4) | |
4101 | { | |
4102 | _arg4 = &temp0; | |
4103 | if (! wxSize_helper(_obj4, &_arg4)) | |
4104 | return NULL; | |
4105 | } | |
4106 | { | |
4107 | wxPy_BEGIN_ALLOW_THREADS; | |
4108 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
4109 | ||
4110 | wxPy_END_ALLOW_THREADS; | |
4111 | if (PyErr_Occurred()) return NULL; | |
4112 | } _resultobj = Py_BuildValue("i",_result); | |
4113 | return _resultobj; | |
4114 | } | |
4115 | ||
70551f47 RD |
4116 | static void *SwigwxStaticTextTowxControl(void *ptr) { |
4117 | wxStaticText *src; | |
4118 | wxControl *dest; | |
4119 | src = (wxStaticText *) ptr; | |
4120 | dest = (wxControl *) src; | |
4121 | return (void *) dest; | |
4122 | } | |
4123 | ||
4124 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4125 | wxStaticText *src; | |
4126 | wxWindow *dest; | |
4127 | src = (wxStaticText *) ptr; | |
4128 | dest = (wxWindow *) src; | |
4129 | return (void *) dest; | |
4130 | } | |
4131 | ||
4132 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4133 | wxStaticText *src; | |
4134 | wxEvtHandler *dest; | |
4135 | src = (wxStaticText *) ptr; | |
4136 | dest = (wxEvtHandler *) src; | |
4137 | return (void *) dest; | |
4138 | } | |
4139 | ||
9df61a29 RD |
4140 | static void *SwigwxStaticTextTowxObject(void *ptr) { |
4141 | wxStaticText *src; | |
4142 | wxObject *dest; | |
4143 | src = (wxStaticText *) ptr; | |
4144 | dest = (wxObject *) src; | |
4145 | return (void *) dest; | |
4146 | } | |
4147 | ||
70551f47 | 4148 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 4149 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4150 | PyObject * _resultobj; |
4151 | wxStaticText * _result; | |
4152 | wxWindow * _arg0; | |
4153 | wxWindowID _arg1; | |
4154 | wxString * _arg2; | |
b68dc582 RD |
4155 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4156 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
4157 | long _arg5 = (long ) 0; |
4158 | char * _arg6 = (char *) "staticText"; | |
4159 | PyObject * _argo0 = 0; | |
70551f47 | 4160 | PyObject * _obj2 = 0; |
37f6a977 RD |
4161 | wxPoint temp; |
4162 | PyObject * _obj3 = 0; | |
4163 | wxSize temp0; | |
4164 | PyObject * _obj4 = 0; | |
107e4716 | 4165 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
70551f47 RD |
4166 | char _ptemp[128]; |
4167 | ||
4168 | self = self; | |
37f6a977 | 4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
70551f47 | 4170 | return NULL; |
2d091820 RD |
4171 | if (_argo0) { |
4172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); |
4175 | return NULL; | |
4176 | } | |
4177 | } | |
4178 | { | |
2cd2fac8 RD |
4179 | #if PYTHON_API_VERSION >= 1009 |
4180 | char* tmpPtr; int tmpSize; | |
4181 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 4182 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4183 | return NULL; |
4184 | } | |
4185 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4186 | return NULL; | |
4187 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4188 | #else | |
70551f47 RD |
4189 | if (!PyString_Check(_obj2)) { |
4190 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4191 | return NULL; | |
4192 | } | |
2cd2fac8 RD |
4193 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4194 | #endif | |
70551f47 | 4195 | } |
37f6a977 RD |
4196 | if (_obj3) |
4197 | { | |
4198 | _arg3 = &temp; | |
4199 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4200 | return NULL; |
37f6a977 RD |
4201 | } |
4202 | if (_obj4) | |
4203 | { | |
4204 | _arg4 = &temp0; | |
4205 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4206 | return NULL; |
37f6a977 | 4207 | } |
ab9bc19b RD |
4208 | { |
4209 | wxPy_BEGIN_ALLOW_THREADS; | |
4210 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
4211 | ||
4212 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4213 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4214 | } if (_result) { |
4215 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4216 | _resultobj = Py_BuildValue("s",_ptemp); | |
4217 | } else { | |
4218 | Py_INCREF(Py_None); | |
4219 | _resultobj = Py_None; | |
4220 | } | |
70551f47 RD |
4221 | { |
4222 | if (_obj2) | |
4223 | delete _arg2; | |
4224 | } | |
4225 | return _resultobj; | |
4226 | } | |
4227 | ||
aa2a5b86 RD |
4228 | #define new_wxPreStaticText() (new wxStaticText()) |
4229 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4230 | PyObject * _resultobj; | |
4231 | wxStaticText * _result; | |
4232 | char *_kwnames[] = { NULL }; | |
4233 | char _ptemp[128]; | |
4234 | ||
4235 | self = self; | |
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4237 | return NULL; | |
4238 | { | |
4239 | wxPy_BEGIN_ALLOW_THREADS; | |
4240 | _result = (wxStaticText *)new_wxPreStaticText(); | |
4241 | ||
4242 | wxPy_END_ALLOW_THREADS; | |
4243 | if (PyErr_Occurred()) return NULL; | |
4244 | } if (_result) { | |
4245 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4246 | _resultobj = Py_BuildValue("s",_ptemp); | |
4247 | } else { | |
4248 | Py_INCREF(Py_None); | |
4249 | _resultobj = Py_None; | |
4250 | } | |
4251 | return _resultobj; | |
4252 | } | |
4253 | ||
4254 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4255 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4256 | PyObject * _resultobj; | |
4257 | bool _result; | |
4258 | wxStaticText * _arg0; | |
4259 | wxWindow * _arg1; | |
4260 | wxWindowID _arg2; | |
4261 | wxString * _arg3; | |
4262 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4263 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4264 | long _arg6 = (long ) 0; | |
4265 | char * _arg7 = (char *) "staticText"; | |
4266 | PyObject * _argo0 = 0; | |
4267 | PyObject * _argo1 = 0; | |
4268 | PyObject * _obj3 = 0; | |
4269 | wxPoint temp; | |
4270 | PyObject * _obj4 = 0; | |
4271 | wxSize temp0; | |
4272 | PyObject * _obj5 = 0; | |
4273 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4274 | ||
4275 | self = self; | |
4276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
4277 | return NULL; | |
4278 | if (_argo0) { | |
4279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4282 | return NULL; | |
4283 | } | |
4284 | } | |
4285 | if (_argo1) { | |
4286 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4287 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4289 | return NULL; | |
4290 | } | |
4291 | } | |
4292 | { | |
4293 | #if PYTHON_API_VERSION >= 1009 | |
4294 | char* tmpPtr; int tmpSize; | |
4295 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
4296 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4297 | return NULL; | |
4298 | } | |
4299 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
4300 | return NULL; | |
4301 | _arg3 = new wxString(tmpPtr, tmpSize); | |
4302 | #else | |
4303 | if (!PyString_Check(_obj3)) { | |
4304 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4305 | return NULL; | |
4306 | } | |
4307 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
4308 | #endif | |
4309 | } | |
4310 | if (_obj4) | |
4311 | { | |
4312 | _arg4 = &temp; | |
4313 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4314 | return NULL; | |
4315 | } | |
4316 | if (_obj5) | |
4317 | { | |
4318 | _arg5 = &temp0; | |
4319 | if (! wxSize_helper(_obj5, &_arg5)) | |
4320 | return NULL; | |
4321 | } | |
4322 | { | |
4323 | wxPy_BEGIN_ALLOW_THREADS; | |
4324 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
4325 | ||
4326 | wxPy_END_ALLOW_THREADS; | |
4327 | if (PyErr_Occurred()) return NULL; | |
4328 | } _resultobj = Py_BuildValue("i",_result); | |
4329 | { | |
4330 | if (_obj3) | |
4331 | delete _arg3; | |
4332 | } | |
4333 | return _resultobj; | |
4334 | } | |
4335 | ||
70551f47 | 4336 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) |
107e4716 | 4337 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4338 | PyObject * _resultobj; |
4339 | wxString * _result; | |
4340 | wxStaticText * _arg0; | |
2d091820 | 4341 | PyObject * _argo0 = 0; |
107e4716 | 4342 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4343 | |
4344 | self = self; | |
107e4716 | 4345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) |
70551f47 | 4346 | return NULL; |
2d091820 RD |
4347 | if (_argo0) { |
4348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
70551f47 RD |
4350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); |
4351 | return NULL; | |
4352 | } | |
4353 | } | |
70551f47 | 4354 | { |
ab9bc19b RD |
4355 | wxPy_BEGIN_ALLOW_THREADS; |
4356 | _result = new wxString (wxStaticText_GetLabel(_arg0)); | |
4357 | ||
4358 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4359 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4360 | }{ |
e02c03a4 | 4361 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
4362 | } |
4363 | { | |
4364 | delete _result; | |
4365 | } | |
4366 | return _resultobj; | |
4367 | } | |
4368 | ||
4369 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
107e4716 | 4370 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4371 | PyObject * _resultobj; |
4372 | wxStaticText * _arg0; | |
4373 | wxString * _arg1; | |
2d091820 | 4374 | PyObject * _argo0 = 0; |
70551f47 | 4375 | PyObject * _obj1 = 0; |
107e4716 | 4376 | char *_kwnames[] = { "self","label", NULL }; |
70551f47 RD |
4377 | |
4378 | self = self; | |
107e4716 | 4379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) |
70551f47 | 4380 | return NULL; |
2d091820 RD |
4381 | if (_argo0) { |
4382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
70551f47 RD |
4384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); |
4385 | return NULL; | |
4386 | } | |
4387 | } | |
4388 | { | |
2cd2fac8 RD |
4389 | #if PYTHON_API_VERSION >= 1009 |
4390 | char* tmpPtr; int tmpSize; | |
4391 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4392 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4393 | return NULL; |
4394 | } | |
4395 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4396 | return NULL; | |
4397 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4398 | #else | |
70551f47 RD |
4399 | if (!PyString_Check(_obj1)) { |
4400 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4401 | return NULL; | |
4402 | } | |
2cd2fac8 RD |
4403 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4404 | #endif | |
70551f47 | 4405 | } |
ab9bc19b RD |
4406 | { |
4407 | wxPy_BEGIN_ALLOW_THREADS; | |
4408 | wxStaticText_SetLabel(_arg0,*_arg1); | |
4409 | ||
4410 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4411 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4412 | } Py_INCREF(Py_None); |
70551f47 RD |
4413 | _resultobj = Py_None; |
4414 | { | |
4415 | if (_obj1) | |
4416 | delete _arg1; | |
4417 | } | |
4418 | return _resultobj; | |
4419 | } | |
4420 | ||
65191ae8 RD |
4421 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { |
4422 | wxListBox *src; | |
4423 | wxControlWithItems *dest; | |
4424 | src = (wxListBox *) ptr; | |
4425 | dest = (wxControlWithItems *) src; | |
4426 | return (void *) dest; | |
4427 | } | |
4428 | ||
70551f47 RD |
4429 | static void *SwigwxListBoxTowxControl(void *ptr) { |
4430 | wxListBox *src; | |
4431 | wxControl *dest; | |
4432 | src = (wxListBox *) ptr; | |
4433 | dest = (wxControl *) src; | |
4434 | return (void *) dest; | |
4435 | } | |
4436 | ||
4437 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4438 | wxListBox *src; | |
4439 | wxWindow *dest; | |
4440 | src = (wxListBox *) ptr; | |
4441 | dest = (wxWindow *) src; | |
4442 | return (void *) dest; | |
4443 | } | |
4444 | ||
4445 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4446 | wxListBox *src; | |
4447 | wxEvtHandler *dest; | |
4448 | src = (wxListBox *) ptr; | |
4449 | dest = (wxEvtHandler *) src; | |
4450 | return (void *) dest; | |
4451 | } | |
4452 | ||
9df61a29 RD |
4453 | static void *SwigwxListBoxTowxObject(void *ptr) { |
4454 | wxListBox *src; | |
4455 | wxObject *dest; | |
4456 | src = (wxListBox *) ptr; | |
4457 | dest = (wxObject *) src; | |
4458 | return (void *) dest; | |
4459 | } | |
4460 | ||
aa2a5b86 RD |
4461 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
4462 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4463 | PyObject * _resultobj; | |
4464 | wxListBox * _result; | |
4465 | wxWindow * _arg0; | |
4466 | wxWindowID _arg1; | |
4467 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4468 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4469 | int _arg4; | |
4470 | wxString * _arg5 = (wxString *) NULL; | |
4471 | long _arg6 = (long ) 0; | |
4472 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
4473 | char * _arg8 = (char *) "listBox"; | |
4474 | PyObject * _argo0 = 0; | |
4475 | wxPoint temp; | |
4476 | PyObject * _obj2 = 0; | |
4477 | wxSize temp0; | |
4478 | PyObject * _obj3 = 0; | |
4479 | PyObject * _obj5 = 0; | |
4480 | PyObject * _argo7 = 0; | |
4481 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
4482 | char _ptemp[128]; | |
4483 | ||
4484 | self = self; | |
4485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
4486 | return NULL; | |
4487 | if (_argo0) { | |
4488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4491 | return NULL; | |
4492 | } | |
4493 | } | |
4494 | if (_obj2) | |
4495 | { | |
4496 | _arg2 = &temp; | |
4497 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4498 | return NULL; | |
4499 | } | |
4500 | if (_obj3) | |
4501 | { | |
4502 | _arg3 = &temp0; | |
4503 | if (! wxSize_helper(_obj3, &_arg3)) | |
4504 | return NULL; | |
4505 | } | |
4506 | if (_obj5) | |
4507 | { | |
4508 | _arg5 = wxString_LIST_helper(_obj5); | |
4509 | if (_arg5 == NULL) { | |
4510 | return NULL; | |
4511 | } | |
4512 | } | |
4513 | if (_argo7) { | |
4514 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4515 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4517 | return NULL; | |
4518 | } | |
4519 | } | |
4520 | { | |
4521 | if (_obj5) { | |
4522 | _arg4 = PyList_Size(_obj5); | |
4523 | } | |
4524 | else { | |
4525 | _arg4 = 0; | |
4526 | } | |
4527 | } | |
4528 | { | |
4529 | wxPy_BEGIN_ALLOW_THREADS; | |
4530 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
4531 | ||
4532 | wxPy_END_ALLOW_THREADS; | |
4533 | if (PyErr_Occurred()) return NULL; | |
4534 | } if (_result) { | |
4535 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4536 | _resultobj = Py_BuildValue("s",_ptemp); | |
4537 | } else { | |
4538 | Py_INCREF(Py_None); | |
4539 | _resultobj = Py_None; | |
4540 | } | |
4541 | { | |
4542 | delete [] _arg5; | |
4543 | } | |
4544 | return _resultobj; | |
4545 | } | |
4546 | ||
4547 | #define new_wxPreListBox() (new wxListBox()) | |
4548 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4549 | PyObject * _resultobj; | |
4550 | wxListBox * _result; | |
4551 | char *_kwnames[] = { NULL }; | |
4552 | char _ptemp[128]; | |
4553 | ||
4554 | self = self; | |
4555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4556 | return NULL; | |
4557 | { | |
4558 | wxPy_BEGIN_ALLOW_THREADS; | |
4559 | _result = (wxListBox *)new_wxPreListBox(); | |
4560 | ||
4561 | wxPy_END_ALLOW_THREADS; | |
4562 | if (PyErr_Occurred()) return NULL; | |
4563 | } if (_result) { | |
4564 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4565 | _resultobj = Py_BuildValue("s",_ptemp); | |
4566 | } else { | |
4567 | Py_INCREF(Py_None); | |
4568 | _resultobj = Py_None; | |
4569 | } | |
4570 | return _resultobj; | |
4571 | } | |
4572 | ||
4573 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4574 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4575 | PyObject * _resultobj; |
aa2a5b86 RD |
4576 | bool _result; |
4577 | wxListBox * _arg0; | |
4578 | wxWindow * _arg1; | |
4579 | wxWindowID _arg2; | |
4580 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4581 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4582 | int _arg5; | |
4583 | wxString * _arg6 = (wxString *) NULL; | |
4584 | long _arg7 = (long ) 0; | |
4585 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
4586 | char * _arg9 = (char *) "listBox"; | |
2d091820 | 4587 | PyObject * _argo0 = 0; |
aa2a5b86 | 4588 | PyObject * _argo1 = 0; |
37f6a977 | 4589 | wxPoint temp; |
37f6a977 | 4590 | PyObject * _obj3 = 0; |
aa2a5b86 RD |
4591 | wxSize temp0; |
4592 | PyObject * _obj4 = 0; | |
4593 | PyObject * _obj6 = 0; | |
4594 | PyObject * _argo8 = 0; | |
4595 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
70551f47 RD |
4596 | |
4597 | self = self; | |
aa2a5b86 | 4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
70551f47 | 4599 | return NULL; |
2d091820 RD |
4600 | if (_argo0) { |
4601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
4602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { |
4603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
70551f47 RD |
4604 | return NULL; |
4605 | } | |
4606 | } | |
aa2a5b86 RD |
4607 | if (_argo1) { |
4608 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4609 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
4611 | return NULL; | |
4612 | } | |
4613 | } | |
4614 | if (_obj3) | |
37f6a977 | 4615 | { |
aa2a5b86 RD |
4616 | _arg3 = &temp; |
4617 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4618 | return NULL; |
37f6a977 | 4619 | } |
aa2a5b86 | 4620 | if (_obj4) |
37f6a977 | 4621 | { |
aa2a5b86 RD |
4622 | _arg4 = &temp0; |
4623 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4624 | return NULL; |
37f6a977 | 4625 | } |
aa2a5b86 | 4626 | if (_obj6) |
70551f47 | 4627 | { |
aa2a5b86 RD |
4628 | _arg6 = wxString_LIST_helper(_obj6); |
4629 | if (_arg6 == NULL) { | |
70551f47 RD |
4630 | return NULL; |
4631 | } | |
4632 | } | |
aa2a5b86 RD |
4633 | if (_argo8) { |
4634 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
4635 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
4636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
70551f47 RD |
4637 | return NULL; |
4638 | } | |
4639 | } | |
4640 | { | |
aa2a5b86 RD |
4641 | if (_obj6) { |
4642 | _arg5 = PyList_Size(_obj6); | |
ab9bc19b RD |
4643 | } |
4644 | else { | |
aa2a5b86 | 4645 | _arg5 = 0; |
ab9bc19b | 4646 | } |
70551f47 | 4647 | } |
ab9bc19b RD |
4648 | { |
4649 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 4650 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
ab9bc19b RD |
4651 | |
4652 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4653 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 4654 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 4655 | { |
aa2a5b86 | 4656 | delete [] _arg6; |
70551f47 RD |
4657 | } |
4658 | return _resultobj; | |
4659 | } | |
4660 | ||
70551f47 | 4661 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) |
107e4716 | 4662 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4663 | PyObject * _resultobj; |
4664 | wxListBox * _arg0; | |
2d091820 | 4665 | PyObject * _argo0 = 0; |
107e4716 | 4666 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4667 | |
4668 | self = self; | |
107e4716 | 4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) |
70551f47 | 4670 | return NULL; |
2d091820 RD |
4671 | if (_argo0) { |
4672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); |
4675 | return NULL; | |
4676 | } | |
4677 | } | |
ab9bc19b RD |
4678 | { |
4679 | wxPy_BEGIN_ALLOW_THREADS; | |
4680 | wxListBox_Clear(_arg0); | |
4681 | ||
4682 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4683 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4684 | } Py_INCREF(Py_None); |
70551f47 RD |
4685 | _resultobj = Py_None; |
4686 | return _resultobj; | |
4687 | } | |
4688 | ||
70551f47 | 4689 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) |
107e4716 | 4690 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4691 | PyObject * _resultobj; |
4692 | wxListBox * _arg0; | |
4693 | int _arg1; | |
2d091820 | 4694 | PyObject * _argo0 = 0; |
107e4716 | 4695 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
4696 | |
4697 | self = self; | |
107e4716 | 4698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4699 | return NULL; |
2d091820 RD |
4700 | if (_argo0) { |
4701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); |
4704 | return NULL; | |
4705 | } | |
4706 | } | |
ab9bc19b RD |
4707 | { |
4708 | wxPy_BEGIN_ALLOW_THREADS; | |
4709 | wxListBox_Deselect(_arg0,_arg1); | |
4710 | ||
4711 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4712 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4713 | } Py_INCREF(Py_None); |
70551f47 RD |
4714 | _resultobj = Py_None; |
4715 | return _resultobj; | |
4716 | } | |
4717 | ||
ab9bc19b RD |
4718 | static PyObject * wxListBox_GetSelections(wxListBox *self) { |
4719 | wxArrayInt lst; | |
4720 | self->GetSelections(lst); | |
4721 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
f6bcfd97 | 4722 | for(size_t i=0; i<lst.GetCount(); i++) { |
ab9bc19b RD |
4723 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
4724 | } | |
4725 | return tup; | |
4726 | } | |
107e4716 | 4727 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
4728 | PyObject * _resultobj; |
4729 | PyObject * _result; | |
4730 | wxListBox * _arg0; | |
2d091820 | 4731 | PyObject * _argo0 = 0; |
107e4716 | 4732 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
4733 | |
4734 | self = self; | |
107e4716 | 4735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) |
ab9bc19b | 4736 | return NULL; |
2d091820 RD |
4737 | if (_argo0) { |
4738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
ab9bc19b RD |
4740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); |
4741 | return NULL; | |
4742 | } | |
4743 | } | |
4744 | { | |
4745 | wxPy_BEGIN_ALLOW_THREADS; | |
4746 | _result = (PyObject *)wxListBox_GetSelections(_arg0); | |
4747 | ||
4748 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4749 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
4750 | }{ |
4751 | _resultobj = _result; | |
4752 | } | |
70551f47 RD |
4753 | return _resultobj; |
4754 | } | |
4755 | ||
37f6a977 RD |
4756 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
4757 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4758 | PyObject * _resultobj; | |
4759 | wxListBox * _arg0; | |
4760 | int _arg1; | |
4761 | wxString * _arg2; | |
4762 | int _arg3; | |
4763 | PyObject * _argo0 = 0; | |
4764 | PyObject * _obj2 = 0; | |
e02c03a4 | 4765 | char *_kwnames[] = { "self","choices","pos", NULL }; |
37f6a977 RD |
4766 | |
4767 | self = self; | |
4768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4769 | return NULL; | |
4770 | if (_argo0) { | |
4771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
4774 | return NULL; | |
4775 | } | |
4776 | } | |
4777 | { | |
4778 | _arg2 = wxString_LIST_helper(_obj2); | |
4779 | if (_arg2 == NULL) { | |
4780 | return NULL; | |
4781 | } | |
4782 | } | |
4783 | { | |
4784 | if (_obj2) { | |
4785 | _arg1 = PyList_Size(_obj2); | |
4786 | } | |
4787 | else { | |
4788 | _arg1 = 0; | |
4789 | } | |
4790 | } | |
4791 | { | |
4792 | wxPy_BEGIN_ALLOW_THREADS; | |
4793 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
4794 | ||
4795 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4796 | if (PyErr_Occurred()) return NULL; |
37f6a977 RD |
4797 | } Py_INCREF(Py_None); |
4798 | _resultobj = Py_None; | |
4799 | { | |
4800 | delete [] _arg2; | |
4801 | } | |
4802 | return _resultobj; | |
4803 | } | |
4804 | ||
2c8a649d RD |
4805 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
4806 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4807 | PyObject * _resultobj; | |
4808 | bool _result; | |
4809 | wxListBox * _arg0; | |
4810 | int _arg1; | |
4811 | PyObject * _argo0 = 0; | |
4812 | char *_kwnames[] = { "self","n", NULL }; | |
4813 | ||
4814 | self = self; | |
4815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
70551f47 | 4816 | return NULL; |
2d091820 RD |
4817 | if (_argo0) { |
4818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
2c8a649d | 4820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); |
70551f47 RD |
4821 | return NULL; |
4822 | } | |
4823 | } | |
ab9bc19b RD |
4824 | { |
4825 | wxPy_BEGIN_ALLOW_THREADS; | |
2c8a649d | 4826 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); |
ab9bc19b RD |
4827 | |
4828 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4829 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4830 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4831 | return _resultobj; |
4832 | } | |
4833 | ||
4834 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
107e4716 | 4835 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4836 | PyObject * _resultobj; |
4837 | bool _result; | |
4838 | wxListBox * _arg0; | |
4839 | int _arg1; | |
2d091820 | 4840 | PyObject * _argo0 = 0; |
107e4716 | 4841 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
4842 | |
4843 | self = self; | |
107e4716 | 4844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4845 | return NULL; |
2d091820 RD |
4846 | if (_argo0) { |
4847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); |
4850 | return NULL; | |
4851 | } | |
4852 | } | |
ab9bc19b RD |
4853 | { |
4854 | wxPy_BEGIN_ALLOW_THREADS; | |
4855 | _result = (bool )wxListBox_Selected(_arg0,_arg1); | |
4856 | ||
4857 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4858 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4859 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4860 | return _resultobj; |
4861 | } | |
4862 | ||
4863 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
107e4716 | 4864 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4865 | PyObject * _resultobj; |
4866 | wxListBox * _arg0; | |
4867 | int _arg1; | |
4868 | wxString * _arg2; | |
2d091820 | 4869 | PyObject * _argo0 = 0; |
70551f47 | 4870 | PyObject * _obj2 = 0; |
e02c03a4 | 4871 | char *_kwnames[] = { "self","choices", NULL }; |
70551f47 RD |
4872 | |
4873 | self = self; | |
107e4716 | 4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) |
70551f47 | 4875 | return NULL; |
2d091820 RD |
4876 | if (_argo0) { |
4877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); |
4880 | return NULL; | |
4881 | } | |
4882 | } | |
4883 | if (_obj2) | |
4884 | { | |
4885 | _arg2 = wxString_LIST_helper(_obj2); | |
4886 | if (_arg2 == NULL) { | |
4887 | return NULL; | |
4888 | } | |
4889 | } | |
4890 | { | |
ab9bc19b RD |
4891 | if (_obj2) { |
4892 | _arg1 = PyList_Size(_obj2); | |
4893 | } | |
4894 | else { | |
4895 | _arg1 = 0; | |
4896 | } | |
70551f47 | 4897 | } |
ab9bc19b RD |
4898 | { |
4899 | wxPy_BEGIN_ALLOW_THREADS; | |
4900 | wxListBox_Set(_arg0,_arg1,_arg2); | |
4901 | ||
4902 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4903 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4904 | } Py_INCREF(Py_None); |
70551f47 RD |
4905 | _resultobj = Py_None; |
4906 | { | |
4907 | delete [] _arg2; | |
4908 | } | |
4909 | return _resultobj; | |
4910 | } | |
4911 | ||
4912 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
107e4716 | 4913 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4914 | PyObject * _resultobj; |
4915 | wxListBox * _arg0; | |
4916 | int _arg1; | |
2d091820 | 4917 | PyObject * _argo0 = 0; |
107e4716 | 4918 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
4919 | |
4920 | self = self; | |
107e4716 | 4921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4922 | return NULL; |
2d091820 RD |
4923 | if (_argo0) { |
4924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); |
4927 | return NULL; | |
4928 | } | |
4929 | } | |
ab9bc19b RD |
4930 | { |
4931 | wxPy_BEGIN_ALLOW_THREADS; | |
4932 | wxListBox_SetFirstItem(_arg0,_arg1); | |
4933 | ||
4934 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4935 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4936 | } Py_INCREF(Py_None); |
70551f47 RD |
4937 | _resultobj = Py_None; |
4938 | return _resultobj; | |
4939 | } | |
4940 | ||
4941 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
107e4716 | 4942 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4943 | PyObject * _resultobj; |
4944 | wxListBox * _arg0; | |
4945 | wxString * _arg1; | |
2d091820 | 4946 | PyObject * _argo0 = 0; |
70551f47 | 4947 | PyObject * _obj1 = 0; |
107e4716 | 4948 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
4949 | |
4950 | self = self; | |
107e4716 | 4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) |
70551f47 | 4952 | return NULL; |
2d091820 RD |
4953 | if (_argo0) { |
4954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); |
4957 | return NULL; | |
4958 | } | |
4959 | } | |
4960 | { | |
2cd2fac8 RD |
4961 | #if PYTHON_API_VERSION >= 1009 |
4962 | char* tmpPtr; int tmpSize; | |
4963 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4964 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4965 | return NULL; |
4966 | } | |
4967 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4968 | return NULL; | |
4969 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4970 | #else | |
70551f47 RD |
4971 | if (!PyString_Check(_obj1)) { |
4972 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4973 | return NULL; | |
4974 | } | |
2cd2fac8 RD |
4975 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4976 | #endif | |
70551f47 | 4977 | } |
ab9bc19b RD |
4978 | { |
4979 | wxPy_BEGIN_ALLOW_THREADS; | |
4980 | wxListBox_SetFirstItemStr(_arg0,*_arg1); | |
4981 | ||
4982 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4983 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4984 | } Py_INCREF(Py_None); |
70551f47 RD |
4985 | _resultobj = Py_None; |
4986 | { | |
4987 | if (_obj1) | |
4988 | delete _arg1; | |
4989 | } | |
4990 | return _resultobj; | |
4991 | } | |
4992 | ||
4993 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 4994 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4995 | PyObject * _resultobj; |
4996 | wxListBox * _arg0; | |
4997 | int _arg1; | |
2d091820 RD |
4998 | bool _arg2 = (bool ) TRUE; |
4999 | PyObject * _argo0 = 0; | |
5000 | int tempbool2 = (int) TRUE; | |
107e4716 | 5001 | char *_kwnames[] = { "self","n","select", NULL }; |
70551f47 RD |
5002 | |
5003 | self = self; | |
107e4716 | 5004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 5005 | return NULL; |
2d091820 RD |
5006 | if (_argo0) { |
5007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); |
5010 | return NULL; | |
5011 | } | |
5012 | } | |
5013 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
5014 | { |
5015 | wxPy_BEGIN_ALLOW_THREADS; | |
5016 | wxListBox_SetSelection(_arg0,_arg1,_arg2); | |
5017 | ||
5018 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5019 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5020 | } Py_INCREF(Py_None); |
70551f47 RD |
5021 | _resultobj = Py_None; |
5022 | return _resultobj; | |
5023 | } | |
5024 | ||
5025 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
107e4716 | 5026 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5027 | PyObject * _resultobj; |
5028 | wxListBox * _arg0; | |
5029 | int _arg1; | |
5030 | wxString * _arg2; | |
2d091820 | 5031 | PyObject * _argo0 = 0; |
70551f47 | 5032 | PyObject * _obj2 = 0; |
107e4716 | 5033 | char *_kwnames[] = { "self","n","string", NULL }; |
70551f47 RD |
5034 | |
5035 | self = self; | |
107e4716 | 5036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 5037 | return NULL; |
2d091820 RD |
5038 | if (_argo0) { |
5039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); |
5042 | return NULL; | |
5043 | } | |
5044 | } | |
5045 | { | |
2cd2fac8 RD |
5046 | #if PYTHON_API_VERSION >= 1009 |
5047 | char* tmpPtr; int tmpSize; | |
5048 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 5049 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5050 | return NULL; |
5051 | } | |
5052 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5053 | return NULL; | |
5054 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5055 | #else | |
70551f47 RD |
5056 | if (!PyString_Check(_obj2)) { |
5057 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5058 | return NULL; | |
5059 | } | |
2cd2fac8 RD |
5060 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5061 | #endif | |
70551f47 | 5062 | } |
ab9bc19b RD |
5063 | { |
5064 | wxPy_BEGIN_ALLOW_THREADS; | |
5065 | wxListBox_SetString(_arg0,_arg1,*_arg2); | |
5066 | ||
5067 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5068 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5069 | } Py_INCREF(Py_None); |
70551f47 RD |
5070 | _resultobj = Py_None; |
5071 | { | |
5072 | if (_obj2) | |
5073 | delete _arg2; | |
5074 | } | |
5075 | return _resultobj; | |
5076 | } | |
5077 | ||
5078 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
107e4716 | 5079 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5080 | PyObject * _resultobj; |
5081 | wxListBox * _arg0; | |
5082 | wxString * _arg1; | |
2d091820 RD |
5083 | bool _arg2 = (bool ) TRUE; |
5084 | PyObject * _argo0 = 0; | |
70551f47 | 5085 | PyObject * _obj1 = 0; |
2d091820 | 5086 | int tempbool2 = (int) TRUE; |
107e4716 | 5087 | char *_kwnames[] = { "self","string","select", NULL }; |
70551f47 RD |
5088 | |
5089 | self = self; | |
107e4716 | 5090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) |
70551f47 | 5091 | return NULL; |
2d091820 RD |
5092 | if (_argo0) { |
5093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); |
5096 | return NULL; | |
5097 | } | |
5098 | } | |
5099 | { | |
2cd2fac8 RD |
5100 | #if PYTHON_API_VERSION >= 1009 |
5101 | char* tmpPtr; int tmpSize; | |
5102 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5103 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5104 | return NULL; |
5105 | } | |
5106 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5107 | return NULL; | |
5108 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5109 | #else | |
70551f47 RD |
5110 | if (!PyString_Check(_obj1)) { |
5111 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5112 | return NULL; | |
5113 | } | |
2cd2fac8 RD |
5114 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5115 | #endif | |
70551f47 RD |
5116 | } |
5117 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
5118 | { |
5119 | wxPy_BEGIN_ALLOW_THREADS; | |
5120 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); | |
5121 | ||
5122 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5123 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5124 | } Py_INCREF(Py_None); |
70551f47 RD |
5125 | _resultobj = Py_None; |
5126 | { | |
5127 | if (_obj1) | |
5128 | delete _arg1; | |
5129 | } | |
5130 | return _resultobj; | |
5131 | } | |
5132 | ||
c95e68d8 RD |
5133 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { |
5134 | wxCheckListBox *src; | |
5135 | wxListBox *dest; | |
5136 | src = (wxCheckListBox *) ptr; | |
5137 | dest = (wxListBox *) src; | |
5138 | return (void *) dest; | |
5139 | } | |
5140 | ||
65191ae8 RD |
5141 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { |
5142 | wxCheckListBox *src; | |
5143 | wxControlWithItems *dest; | |
5144 | src = (wxCheckListBox *) ptr; | |
5145 | dest = (wxControlWithItems *) src; | |
5146 | return (void *) dest; | |
5147 | } | |
5148 | ||
c95e68d8 RD |
5149 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { |
5150 | wxCheckListBox *src; | |
5151 | wxControl *dest; | |
5152 | src = (wxCheckListBox *) ptr; | |
5153 | dest = (wxControl *) src; | |
5154 | return (void *) dest; | |
5155 | } | |
5156 | ||
5157 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5158 | wxCheckListBox *src; | |
5159 | wxWindow *dest; | |
5160 | src = (wxCheckListBox *) ptr; | |
5161 | dest = (wxWindow *) src; | |
5162 | return (void *) dest; | |
5163 | } | |
5164 | ||
5165 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5166 | wxCheckListBox *src; | |
5167 | wxEvtHandler *dest; | |
5168 | src = (wxCheckListBox *) ptr; | |
5169 | dest = (wxEvtHandler *) src; | |
5170 | return (void *) dest; | |
5171 | } | |
5172 | ||
9df61a29 RD |
5173 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { |
5174 | wxCheckListBox *src; | |
5175 | wxObject *dest; | |
5176 | src = (wxCheckListBox *) ptr; | |
5177 | dest = (wxObject *) src; | |
5178 | return (void *) dest; | |
5179 | } | |
5180 | ||
c95e68d8 | 5181 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 5182 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5183 | PyObject * _resultobj; |
5184 | wxCheckListBox * _result; | |
5185 | wxWindow * _arg0; | |
5186 | wxWindowID _arg1; | |
b68dc582 RD |
5187 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5188 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
5189 | int _arg4 = (int ) 0; |
5190 | wxString * _arg5 = (wxString *) NULL; | |
5191 | long _arg6 = (long ) 0; | |
b68dc582 | 5192 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
5193 | char * _arg8 = (char *) "listBox"; |
5194 | PyObject * _argo0 = 0; | |
37f6a977 RD |
5195 | wxPoint temp; |
5196 | PyObject * _obj2 = 0; | |
5197 | wxSize temp0; | |
5198 | PyObject * _obj3 = 0; | |
c95e68d8 | 5199 | PyObject * _obj5 = 0; |
2d091820 | 5200 | PyObject * _argo7 = 0; |
e02c03a4 | 5201 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
c95e68d8 RD |
5202 | char _ptemp[128]; |
5203 | ||
5204 | self = self; | |
37f6a977 | 5205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
c95e68d8 | 5206 | return NULL; |
2d091820 RD |
5207 | if (_argo0) { |
5208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
5210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); |
5211 | return NULL; | |
5212 | } | |
5213 | } | |
37f6a977 RD |
5214 | if (_obj2) |
5215 | { | |
5216 | _arg2 = &temp; | |
5217 | if (! wxPoint_helper(_obj2, &_arg2)) | |
c95e68d8 | 5218 | return NULL; |
37f6a977 RD |
5219 | } |
5220 | if (_obj3) | |
5221 | { | |
5222 | _arg3 = &temp0; | |
5223 | if (! wxSize_helper(_obj3, &_arg3)) | |
c95e68d8 | 5224 | return NULL; |
37f6a977 | 5225 | } |
c95e68d8 RD |
5226 | if (_obj5) |
5227 | { | |
5228 | _arg5 = wxString_LIST_helper(_obj5); | |
5229 | if (_arg5 == NULL) { | |
5230 | return NULL; | |
5231 | } | |
5232 | } | |
2d091820 RD |
5233 | if (_argo7) { |
5234 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5235 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
c95e68d8 RD |
5236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); |
5237 | return NULL; | |
5238 | } | |
5239 | } | |
5240 | { | |
ab9bc19b RD |
5241 | if (_obj5) { |
5242 | _arg4 = PyList_Size(_obj5); | |
5243 | } | |
5244 | else { | |
5245 | _arg4 = 0; | |
5246 | } | |
c95e68d8 | 5247 | } |
ab9bc19b RD |
5248 | { |
5249 | wxPy_BEGIN_ALLOW_THREADS; | |
5250 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
5251 | ||
5252 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5253 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5254 | } if (_result) { |
5255 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5256 | _resultobj = Py_BuildValue("s",_ptemp); | |
5257 | } else { | |
5258 | Py_INCREF(Py_None); | |
5259 | _resultobj = Py_None; | |
5260 | } | |
c95e68d8 RD |
5261 | { |
5262 | delete [] _arg5; | |
5263 | } | |
5264 | return _resultobj; | |
5265 | } | |
5266 | ||
aa2a5b86 RD |
5267 | #define new_wxPreCheckListBox() (new wxCheckListBox()) |
5268 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5269 | PyObject * _resultobj; | |
5270 | wxCheckListBox * _result; | |
5271 | char *_kwnames[] = { NULL }; | |
5272 | char _ptemp[128]; | |
5273 | ||
5274 | self = self; | |
5275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5276 | return NULL; | |
5277 | { | |
5278 | wxPy_BEGIN_ALLOW_THREADS; | |
5279 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); | |
5280 | ||
5281 | wxPy_END_ALLOW_THREADS; | |
5282 | if (PyErr_Occurred()) return NULL; | |
5283 | } if (_result) { | |
5284 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5285 | _resultobj = Py_BuildValue("s",_ptemp); | |
5286 | } else { | |
5287 | Py_INCREF(Py_None); | |
5288 | _resultobj = Py_None; | |
5289 | } | |
5290 | return _resultobj; | |
5291 | } | |
5292 | ||
5293 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5294 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5295 | PyObject * _resultobj; | |
5296 | bool _result; | |
5297 | wxCheckListBox * _arg0; | |
5298 | wxWindow * _arg1; | |
5299 | wxWindowID _arg2; | |
5300 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5301 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5302 | int _arg5 = (int ) 0; | |
5303 | wxString * _arg6 = (wxString *) NULL; | |
5304 | long _arg7 = (long ) 0; | |
5305 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5306 | char * _arg9 = (char *) "listBox"; | |
5307 | PyObject * _argo0 = 0; | |
5308 | PyObject * _argo1 = 0; | |
5309 | wxPoint temp; | |
5310 | PyObject * _obj3 = 0; | |
5311 | wxSize temp0; | |
5312 | PyObject * _obj4 = 0; | |
5313 | PyObject * _obj6 = 0; | |
5314 | PyObject * _argo8 = 0; | |
5315 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5316 | ||
5317 | self = self; | |
5318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
5319 | return NULL; | |
5320 | if (_argo0) { | |
5321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5324 | return NULL; | |
5325 | } | |
5326 | } | |
5327 | if (_argo1) { | |
5328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5331 | return NULL; | |
5332 | } | |
5333 | } | |
5334 | if (_obj3) | |
5335 | { | |
5336 | _arg3 = &temp; | |
5337 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5338 | return NULL; | |
5339 | } | |
5340 | if (_obj4) | |
5341 | { | |
5342 | _arg4 = &temp0; | |
5343 | if (! wxSize_helper(_obj4, &_arg4)) | |
5344 | return NULL; | |
5345 | } | |
5346 | if (_obj6) | |
5347 | { | |
5348 | _arg6 = wxString_LIST_helper(_obj6); | |
5349 | if (_arg6 == NULL) { | |
5350 | return NULL; | |
5351 | } | |
5352 | } | |
5353 | if (_argo8) { | |
5354 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5355 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5357 | return NULL; | |
5358 | } | |
5359 | } | |
5360 | { | |
5361 | if (_obj6) { | |
5362 | _arg5 = PyList_Size(_obj6); | |
5363 | } | |
5364 | else { | |
5365 | _arg5 = 0; | |
5366 | } | |
5367 | } | |
5368 | { | |
5369 | wxPy_BEGIN_ALLOW_THREADS; | |
5370 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
5371 | ||
5372 | wxPy_END_ALLOW_THREADS; | |
5373 | if (PyErr_Occurred()) return NULL; | |
5374 | } _resultobj = Py_BuildValue("i",_result); | |
5375 | { | |
5376 | delete [] _arg6; | |
5377 | } | |
5378 | return _resultobj; | |
5379 | } | |
5380 | ||
c95e68d8 | 5381 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
107e4716 | 5382 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5383 | PyObject * _resultobj; |
5384 | bool _result; | |
5385 | wxCheckListBox * _arg0; | |
5386 | int _arg1; | |
2d091820 | 5387 | PyObject * _argo0 = 0; |
107e4716 | 5388 | char *_kwnames[] = { "self","uiIndex", NULL }; |
c95e68d8 RD |
5389 | |
5390 | self = self; | |
107e4716 | 5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 5392 | return NULL; |
2d091820 RD |
5393 | if (_argo0) { |
5394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); |
5397 | return NULL; | |
5398 | } | |
5399 | } | |
ab9bc19b RD |
5400 | { |
5401 | wxPy_BEGIN_ALLOW_THREADS; | |
5402 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); | |
5403 | ||
5404 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5405 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5406 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
5407 | return _resultobj; |
5408 | } | |
5409 | ||
5410 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
107e4716 | 5411 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5412 | PyObject * _resultobj; |
5413 | wxCheckListBox * _arg0; | |
5414 | int _arg1; | |
d29aba2f | 5415 | int _arg2 = (int ) TRUE; |
2d091820 | 5416 | PyObject * _argo0 = 0; |
107e4716 | 5417 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; |
c95e68d8 RD |
5418 | |
5419 | self = self; | |
d29aba2f | 5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) |
c95e68d8 | 5421 | return NULL; |
2d091820 RD |
5422 | if (_argo0) { |
5423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); |
5426 | return NULL; | |
5427 | } | |
5428 | } | |
ab9bc19b RD |
5429 | { |
5430 | wxPy_BEGIN_ALLOW_THREADS; | |
5431 | wxCheckListBox_Check(_arg0,_arg1,_arg2); | |
5432 | ||
5433 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5434 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5435 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5436 | _resultobj = Py_None; |
5437 | return _resultobj; | |
5438 | } | |
5439 | ||
d29aba2f RD |
5440 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
5441 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5442 | PyObject * _resultobj; | |
5443 | wxCheckListBox * _arg0; | |
5444 | int _arg1; | |
5445 | wxString * _arg2; | |
5446 | int _arg3; | |
5447 | PyObject * _argo0 = 0; | |
5448 | PyObject * _obj2 = 0; | |
e02c03a4 | 5449 | char *_kwnames[] = { "self","choices","pos", NULL }; |
d29aba2f RD |
5450 | |
5451 | self = self; | |
5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5453 | return NULL; | |
5454 | if (_argo0) { | |
5455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5458 | return NULL; | |
5459 | } | |
5460 | } | |
5461 | { | |
5462 | _arg2 = wxString_LIST_helper(_obj2); | |
5463 | if (_arg2 == NULL) { | |
5464 | return NULL; | |
5465 | } | |
5466 | } | |
5467 | { | |
5468 | if (_obj2) { | |
5469 | _arg1 = PyList_Size(_obj2); | |
5470 | } | |
5471 | else { | |
5472 | _arg1 = 0; | |
5473 | } | |
5474 | } | |
5475 | { | |
5476 | wxPy_BEGIN_ALLOW_THREADS; | |
5477 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
5478 | ||
5479 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5480 | if (PyErr_Occurred()) return NULL; |
d29aba2f RD |
5481 | } Py_INCREF(Py_None); |
5482 | _resultobj = Py_None; | |
5483 | { | |
5484 | delete [] _arg2; | |
5485 | } | |
5486 | return _resultobj; | |
5487 | } | |
5488 | ||
c95e68d8 | 5489 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) |
107e4716 | 5490 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5491 | PyObject * _resultobj; |
5492 | int _result; | |
5493 | wxCheckListBox * _arg0; | |
2d091820 | 5494 | PyObject * _argo0 = 0; |
107e4716 | 5495 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
5496 | |
5497 | self = self; | |
107e4716 | 5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) |
c95e68d8 | 5499 | return NULL; |
2d091820 RD |
5500 | if (_argo0) { |
5501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); |
5504 | return NULL; | |
5505 | } | |
5506 | } | |
ab9bc19b RD |
5507 | { |
5508 | wxPy_BEGIN_ALLOW_THREADS; | |
5509 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); | |
5510 | ||
5511 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5512 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5513 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
5514 | return _resultobj; |
5515 | } | |
5516 | ||
9d6da64a RD |
5517 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) |
5518 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5519 | PyObject * _resultobj; | |
5520 | wxTextAttr * _result; | |
5521 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5522 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5523 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5524 | wxColour temp; | |
5525 | PyObject * _obj0 = 0; | |
5526 | wxColour temp0; | |
5527 | PyObject * _obj1 = 0; | |
5528 | PyObject * _argo2 = 0; | |
5529 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5530 | char _ptemp[128]; | |
5531 | ||
5532 | self = self; | |
5533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5534 | return NULL; | |
5535 | if (_obj0) | |
5536 | { | |
5537 | _arg0 = &temp; | |
5538 | if (! wxColour_helper(_obj0, &_arg0)) | |
5539 | return NULL; | |
5540 | } | |
5541 | if (_obj1) | |
5542 | { | |
5543 | _arg1 = &temp0; | |
5544 | if (! wxColour_helper(_obj1, &_arg1)) | |
5545 | return NULL; | |
5546 | } | |
5547 | if (_argo2) { | |
5548 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5549 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
5551 | return NULL; | |
5552 | } | |
5553 | } | |
5554 | { | |
5555 | wxPy_BEGIN_ALLOW_THREADS; | |
5556 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); | |
5557 | ||
5558 | wxPy_END_ALLOW_THREADS; | |
5559 | if (PyErr_Occurred()) return NULL; | |
5560 | } if (_result) { | |
5561 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
5562 | _resultobj = Py_BuildValue("s",_ptemp); | |
5563 | } else { | |
5564 | Py_INCREF(Py_None); | |
5565 | _resultobj = Py_None; | |
5566 | } | |
5567 | return _resultobj; | |
5568 | } | |
5569 | ||
5570 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
5571 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5572 | PyObject * _resultobj; | |
5573 | wxTextAttr * _arg0; | |
5574 | PyObject * _argo0 = 0; | |
5575 | char *_kwnames[] = { "self", NULL }; | |
5576 | ||
5577 | self = self; | |
5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
5579 | return NULL; | |
5580 | if (_argo0) { | |
5581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
5584 | return NULL; | |
5585 | } | |
5586 | } | |
5587 | { | |
5588 | wxPy_BEGIN_ALLOW_THREADS; | |
5589 | delete_wxTextAttr(_arg0); | |
5590 | ||
5591 | wxPy_END_ALLOW_THREADS; | |
5592 | if (PyErr_Occurred()) return NULL; | |
5593 | } Py_INCREF(Py_None); | |
5594 | _resultobj = Py_None; | |
5595 | return _resultobj; | |
5596 | } | |
5597 | ||
5598 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5599 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5600 | PyObject * _resultobj; | |
5601 | wxTextAttr * _arg0; | |
5602 | wxColour * _arg1; | |
5603 | PyObject * _argo0 = 0; | |
5604 | wxColour temp; | |
5605 | PyObject * _obj1 = 0; | |
5606 | char *_kwnames[] = { "self","colText", NULL }; | |
5607 | ||
5608 | self = self; | |
5609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5610 | return NULL; | |
5611 | if (_argo0) { | |
5612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
5615 | return NULL; | |
5616 | } | |
5617 | } | |
5618 | { | |
5619 | _arg1 = &temp; | |
5620 | if (! wxColour_helper(_obj1, &_arg1)) | |
5621 | return NULL; | |
5622 | } | |
5623 | { | |
5624 | wxPy_BEGIN_ALLOW_THREADS; | |
5625 | wxTextAttr_SetTextColour(_arg0,*_arg1); | |
5626 | ||
5627 | wxPy_END_ALLOW_THREADS; | |
5628 | if (PyErr_Occurred()) return NULL; | |
5629 | } Py_INCREF(Py_None); | |
5630 | _resultobj = Py_None; | |
5631 | return _resultobj; | |
5632 | } | |
5633 | ||
5634 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5635 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject * _resultobj; | |
5637 | wxTextAttr * _arg0; | |
5638 | wxColour * _arg1; | |
5639 | PyObject * _argo0 = 0; | |
5640 | wxColour temp; | |
5641 | PyObject * _obj1 = 0; | |
5642 | char *_kwnames[] = { "self","colBack", NULL }; | |
5643 | ||
5644 | self = self; | |
5645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5646 | return NULL; | |
5647 | if (_argo0) { | |
5648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
5651 | return NULL; | |
5652 | } | |
5653 | } | |
5654 | { | |
5655 | _arg1 = &temp; | |
5656 | if (! wxColour_helper(_obj1, &_arg1)) | |
5657 | return NULL; | |
5658 | } | |
5659 | { | |
5660 | wxPy_BEGIN_ALLOW_THREADS; | |
5661 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); | |
5662 | ||
5663 | wxPy_END_ALLOW_THREADS; | |
5664 | if (PyErr_Occurred()) return NULL; | |
5665 | } Py_INCREF(Py_None); | |
5666 | _resultobj = Py_None; | |
5667 | return _resultobj; | |
5668 | } | |
5669 | ||
5670 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5671 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5672 | PyObject * _resultobj; | |
5673 | wxTextAttr * _arg0; | |
5674 | wxFont * _arg1; | |
5675 | PyObject * _argo0 = 0; | |
5676 | PyObject * _argo1 = 0; | |
5677 | char *_kwnames[] = { "self","font", NULL }; | |
5678 | ||
5679 | self = self; | |
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5681 | return NULL; | |
5682 | if (_argo0) { | |
5683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
5686 | return NULL; | |
5687 | } | |
5688 | } | |
5689 | if (_argo1) { | |
5690 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5691 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
5693 | return NULL; | |
5694 | } | |
5695 | } | |
5696 | { | |
5697 | wxPy_BEGIN_ALLOW_THREADS; | |
5698 | wxTextAttr_SetFont(_arg0,*_arg1); | |
5699 | ||
5700 | wxPy_END_ALLOW_THREADS; | |
5701 | if (PyErr_Occurred()) return NULL; | |
5702 | } Py_INCREF(Py_None); | |
5703 | _resultobj = Py_None; | |
5704 | return _resultobj; | |
5705 | } | |
5706 | ||
5707 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5708 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5709 | PyObject * _resultobj; | |
5710 | bool _result; | |
5711 | wxTextAttr * _arg0; | |
5712 | PyObject * _argo0 = 0; | |
5713 | char *_kwnames[] = { "self", NULL }; | |
5714 | ||
5715 | self = self; | |
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
5717 | return NULL; | |
5718 | if (_argo0) { | |
5719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
5722 | return NULL; | |
5723 | } | |
5724 | } | |
5725 | { | |
5726 | wxPy_BEGIN_ALLOW_THREADS; | |
5727 | _result = (bool )wxTextAttr_HasTextColour(_arg0); | |
5728 | ||
5729 | wxPy_END_ALLOW_THREADS; | |
5730 | if (PyErr_Occurred()) return NULL; | |
5731 | } _resultobj = Py_BuildValue("i",_result); | |
5732 | return _resultobj; | |
5733 | } | |
5734 | ||
5735 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5736 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject * _resultobj; | |
5738 | bool _result; | |
5739 | wxTextAttr * _arg0; | |
5740 | PyObject * _argo0 = 0; | |
5741 | char *_kwnames[] = { "self", NULL }; | |
5742 | ||
5743 | self = self; | |
5744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5745 | return NULL; | |
5746 | if (_argo0) { | |
5747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
5750 | return NULL; | |
5751 | } | |
5752 | } | |
5753 | { | |
5754 | wxPy_BEGIN_ALLOW_THREADS; | |
5755 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); | |
5756 | ||
5757 | wxPy_END_ALLOW_THREADS; | |
5758 | if (PyErr_Occurred()) return NULL; | |
5759 | } _resultobj = Py_BuildValue("i",_result); | |
5760 | return _resultobj; | |
5761 | } | |
5762 | ||
5763 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5764 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5765 | PyObject * _resultobj; | |
5766 | bool _result; | |
5767 | wxTextAttr * _arg0; | |
5768 | PyObject * _argo0 = 0; | |
5769 | char *_kwnames[] = { "self", NULL }; | |
5770 | ||
5771 | self = self; | |
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
5773 | return NULL; | |
5774 | if (_argo0) { | |
5775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
5778 | return NULL; | |
5779 | } | |
5780 | } | |
5781 | { | |
5782 | wxPy_BEGIN_ALLOW_THREADS; | |
5783 | _result = (bool )wxTextAttr_HasFont(_arg0); | |
5784 | ||
5785 | wxPy_END_ALLOW_THREADS; | |
5786 | if (PyErr_Occurred()) return NULL; | |
5787 | } _resultobj = Py_BuildValue("i",_result); | |
5788 | return _resultobj; | |
5789 | } | |
5790 | ||
5791 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5792 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5793 | PyObject * _resultobj; | |
5794 | wxColour * _result; | |
5795 | wxTextAttr * _arg0; | |
5796 | PyObject * _argo0 = 0; | |
5797 | char *_kwnames[] = { "self", NULL }; | |
5798 | char _ptemp[128]; | |
5799 | ||
5800 | self = self; | |
5801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
5802 | return NULL; | |
5803 | if (_argo0) { | |
5804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
5807 | return NULL; | |
5808 | } | |
5809 | } | |
5810 | { | |
5811 | wxPy_BEGIN_ALLOW_THREADS; | |
5812 | const wxColour & _result_ref = wxTextAttr_GetTextColour(_arg0); | |
5813 | _result = (wxColour *) &_result_ref; | |
5814 | ||
5815 | wxPy_END_ALLOW_THREADS; | |
5816 | if (PyErr_Occurred()) return NULL; | |
5817 | } if (_result) { | |
5818 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5819 | _resultobj = Py_BuildValue("s",_ptemp); | |
5820 | } else { | |
5821 | Py_INCREF(Py_None); | |
5822 | _resultobj = Py_None; | |
5823 | } | |
5824 | return _resultobj; | |
5825 | } | |
5826 | ||
5827 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5828 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5829 | PyObject * _resultobj; | |
5830 | wxColour * _result; | |
5831 | wxTextAttr * _arg0; | |
5832 | PyObject * _argo0 = 0; | |
5833 | char *_kwnames[] = { "self", NULL }; | |
5834 | char _ptemp[128]; | |
5835 | ||
5836 | self = self; | |
5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5838 | return NULL; | |
5839 | if (_argo0) { | |
5840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
5843 | return NULL; | |
5844 | } | |
5845 | } | |
5846 | { | |
5847 | wxPy_BEGIN_ALLOW_THREADS; | |
5848 | const wxColour & _result_ref = wxTextAttr_GetBackgroundColour(_arg0); | |
5849 | _result = (wxColour *) &_result_ref; | |
5850 | ||
5851 | wxPy_END_ALLOW_THREADS; | |
5852 | if (PyErr_Occurred()) return NULL; | |
5853 | } if (_result) { | |
5854 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5855 | _resultobj = Py_BuildValue("s",_ptemp); | |
5856 | } else { | |
5857 | Py_INCREF(Py_None); | |
5858 | _resultobj = Py_None; | |
5859 | } | |
5860 | return _resultobj; | |
5861 | } | |
5862 | ||
5863 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5864 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5865 | PyObject * _resultobj; | |
5866 | wxFont * _result; | |
5867 | wxTextAttr * _arg0; | |
5868 | PyObject * _argo0 = 0; | |
5869 | char *_kwnames[] = { "self", NULL }; | |
5870 | char _ptemp[128]; | |
5871 | ||
5872 | self = self; | |
5873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
5874 | return NULL; | |
5875 | if (_argo0) { | |
5876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
5879 | return NULL; | |
5880 | } | |
5881 | } | |
5882 | { | |
5883 | wxPy_BEGIN_ALLOW_THREADS; | |
5884 | const wxFont & _result_ref = wxTextAttr_GetFont(_arg0); | |
5885 | _result = (wxFont *) &_result_ref; | |
5886 | ||
5887 | wxPy_END_ALLOW_THREADS; | |
5888 | if (PyErr_Occurred()) return NULL; | |
5889 | } if (_result) { | |
5890 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5891 | _resultobj = Py_BuildValue("s",_ptemp); | |
5892 | } else { | |
5893 | Py_INCREF(Py_None); | |
5894 | _resultobj = Py_None; | |
5895 | } | |
5896 | return _resultobj; | |
5897 | } | |
5898 | ||
70551f47 RD |
5899 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
5900 | wxTextCtrl *src; | |
5901 | wxControl *dest; | |
5902 | src = (wxTextCtrl *) ptr; | |
5903 | dest = (wxControl *) src; | |
5904 | return (void *) dest; | |
5905 | } | |
5906 | ||
5907 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
5908 | wxTextCtrl *src; | |
5909 | wxWindow *dest; | |
5910 | src = (wxTextCtrl *) ptr; | |
5911 | dest = (wxWindow *) src; | |
5912 | return (void *) dest; | |
5913 | } | |
5914 | ||
5915 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
5916 | wxTextCtrl *src; | |
5917 | wxEvtHandler *dest; | |
5918 | src = (wxTextCtrl *) ptr; | |
5919 | dest = (wxEvtHandler *) src; | |
5920 | return (void *) dest; | |
5921 | } | |
5922 | ||
9df61a29 RD |
5923 | static void *SwigwxTextCtrlTowxObject(void *ptr) { |
5924 | wxTextCtrl *src; | |
5925 | wxObject *dest; | |
5926 | src = (wxTextCtrl *) ptr; | |
5927 | dest = (wxObject *) src; | |
5928 | return (void *) dest; | |
5929 | } | |
5930 | ||
70551f47 | 5931 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 5932 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5933 | PyObject * _resultobj; |
5934 | wxTextCtrl * _result; | |
5935 | wxWindow * _arg0; | |
5936 | wxWindowID _arg1; | |
2d091820 | 5937 | char * _arg2 = (char *) ""; |
b68dc582 RD |
5938 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
5939 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 5940 | long _arg5 = (long ) 0; |
b68dc582 | 5941 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
5942 | char * _arg7 = (char *) "text"; |
5943 | PyObject * _argo0 = 0; | |
37f6a977 RD |
5944 | wxPoint temp; |
5945 | PyObject * _obj3 = 0; | |
5946 | wxSize temp0; | |
5947 | PyObject * _obj4 = 0; | |
2d091820 | 5948 | PyObject * _argo6 = 0; |
107e4716 | 5949 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; |
70551f47 RD |
5950 | char _ptemp[128]; |
5951 | ||
5952 | self = self; | |
37f6a977 | 5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 5954 | return NULL; |
2d091820 RD |
5955 | if (_argo0) { |
5956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
5958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); |
5959 | return NULL; | |
5960 | } | |
5961 | } | |
37f6a977 RD |
5962 | if (_obj3) |
5963 | { | |
5964 | _arg3 = &temp; | |
5965 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 5966 | return NULL; |
37f6a977 RD |
5967 | } |
5968 | if (_obj4) | |
5969 | { | |
5970 | _arg4 = &temp0; | |
5971 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 5972 | return NULL; |
37f6a977 | 5973 | } |
2d091820 RD |
5974 | if (_argo6) { |
5975 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5976 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
5977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); |
5978 | return NULL; | |
5979 | } | |
5980 | } | |
ab9bc19b RD |
5981 | { |
5982 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 RD |
5983 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
5984 | ||
5985 | wxPy_END_ALLOW_THREADS; | |
5986 | if (PyErr_Occurred()) return NULL; | |
5987 | } if (_result) { | |
5988 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
5989 | _resultobj = Py_BuildValue("s",_ptemp); | |
5990 | } else { | |
5991 | Py_INCREF(Py_None); | |
5992 | _resultobj = Py_None; | |
5993 | } | |
5994 | return _resultobj; | |
5995 | } | |
5996 | ||
5997 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
5998 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5999 | PyObject * _resultobj; | |
6000 | wxTextCtrl * _result; | |
6001 | char *_kwnames[] = { NULL }; | |
6002 | char _ptemp[128]; | |
6003 | ||
6004 | self = self; | |
6005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
6006 | return NULL; | |
6007 | { | |
6008 | wxPy_BEGIN_ALLOW_THREADS; | |
6009 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); | |
6010 | ||
6011 | wxPy_END_ALLOW_THREADS; | |
6012 | if (PyErr_Occurred()) return NULL; | |
6013 | } if (_result) { | |
6014 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6015 | _resultobj = Py_BuildValue("s",_ptemp); | |
6016 | } else { | |
6017 | Py_INCREF(Py_None); | |
6018 | _resultobj = Py_None; | |
6019 | } | |
6020 | return _resultobj; | |
6021 | } | |
6022 | ||
6023 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6024 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6025 | PyObject * _resultobj; | |
6026 | bool _result; | |
6027 | wxTextCtrl * _arg0; | |
6028 | wxWindow * _arg1; | |
6029 | wxWindowID _arg2; | |
6030 | char * _arg3 = (char *) ""; | |
6031 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
6032 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
6033 | long _arg6 = (long ) 0; | |
6034 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
6035 | char * _arg8 = (char *) "text"; | |
6036 | PyObject * _argo0 = 0; | |
6037 | PyObject * _argo1 = 0; | |
6038 | wxPoint temp; | |
6039 | PyObject * _obj4 = 0; | |
6040 | wxSize temp0; | |
6041 | PyObject * _obj5 = 0; | |
6042 | PyObject * _argo7 = 0; | |
6043 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; | |
6044 | ||
6045 | self = self; | |
6046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOlOs:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
6047 | return NULL; | |
6048 | if (_argo0) { | |
6049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
6052 | return NULL; | |
6053 | } | |
6054 | } | |
6055 | if (_argo1) { | |
6056 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6057 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
6059 | return NULL; | |
6060 | } | |
6061 | } | |
6062 | if (_obj4) | |
6063 | { | |
6064 | _arg4 = &temp; | |
6065 | if (! wxPoint_helper(_obj4, &_arg4)) | |
6066 | return NULL; | |
6067 | } | |
6068 | if (_obj5) | |
6069 | { | |
6070 | _arg5 = &temp0; | |
6071 | if (! wxSize_helper(_obj5, &_arg5)) | |
6072 | return NULL; | |
6073 | } | |
6074 | if (_argo7) { | |
6075 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
6076 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
6077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
6078 | return NULL; | |
6079 | } | |
6080 | } | |
6081 | { | |
6082 | wxPy_BEGIN_ALLOW_THREADS; | |
6083 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
ab9bc19b RD |
6084 | |
6085 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6086 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6087 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6088 | return _resultobj; |
6089 | } | |
6090 | ||
6091 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 6092 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6093 | PyObject * _resultobj; |
6094 | wxTextCtrl * _arg0; | |
2d091820 | 6095 | PyObject * _argo0 = 0; |
107e4716 | 6096 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6097 | |
6098 | self = self; | |
107e4716 | 6099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
70551f47 | 6100 | return NULL; |
2d091820 RD |
6101 | if (_argo0) { |
6102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
6105 | return NULL; | |
6106 | } | |
6107 | } | |
ab9bc19b RD |
6108 | { |
6109 | wxPy_BEGIN_ALLOW_THREADS; | |
6110 | wxTextCtrl_Clear(_arg0); | |
6111 | ||
6112 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6113 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6114 | } Py_INCREF(Py_None); |
70551f47 RD |
6115 | _resultobj = Py_None; |
6116 | return _resultobj; | |
6117 | } | |
6118 | ||
6119 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) | |
107e4716 | 6120 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6121 | PyObject * _resultobj; |
6122 | wxTextCtrl * _arg0; | |
2d091820 | 6123 | PyObject * _argo0 = 0; |
107e4716 | 6124 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6125 | |
6126 | self = self; | |
107e4716 | 6127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
70551f47 | 6128 | return NULL; |
2d091820 RD |
6129 | if (_argo0) { |
6130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
6133 | return NULL; | |
6134 | } | |
6135 | } | |
ab9bc19b RD |
6136 | { |
6137 | wxPy_BEGIN_ALLOW_THREADS; | |
6138 | wxTextCtrl_Copy(_arg0); | |
6139 | ||
6140 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6141 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6142 | } Py_INCREF(Py_None); |
70551f47 RD |
6143 | _resultobj = Py_None; |
6144 | return _resultobj; | |
6145 | } | |
6146 | ||
6147 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) | |
107e4716 | 6148 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6149 | PyObject * _resultobj; |
6150 | wxTextCtrl * _arg0; | |
2d091820 | 6151 | PyObject * _argo0 = 0; |
107e4716 | 6152 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6153 | |
6154 | self = self; | |
107e4716 | 6155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
70551f47 | 6156 | return NULL; |
2d091820 RD |
6157 | if (_argo0) { |
6158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
6161 | return NULL; | |
6162 | } | |
6163 | } | |
ab9bc19b RD |
6164 | { |
6165 | wxPy_BEGIN_ALLOW_THREADS; | |
6166 | wxTextCtrl_Cut(_arg0); | |
6167 | ||
6168 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6169 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6170 | } Py_INCREF(Py_None); |
70551f47 RD |
6171 | _resultobj = Py_None; |
6172 | return _resultobj; | |
6173 | } | |
6174 | ||
6175 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) | |
107e4716 | 6176 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6177 | PyObject * _resultobj; |
6178 | wxTextCtrl * _arg0; | |
2d091820 | 6179 | PyObject * _argo0 = 0; |
107e4716 | 6180 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6181 | |
6182 | self = self; | |
107e4716 | 6183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
70551f47 | 6184 | return NULL; |
2d091820 RD |
6185 | if (_argo0) { |
6186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
6189 | return NULL; | |
6190 | } | |
6191 | } | |
ab9bc19b RD |
6192 | { |
6193 | wxPy_BEGIN_ALLOW_THREADS; | |
6194 | wxTextCtrl_DiscardEdits(_arg0); | |
6195 | ||
6196 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6197 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6198 | } Py_INCREF(Py_None); |
70551f47 RD |
6199 | _resultobj = Py_None; |
6200 | return _resultobj; | |
6201 | } | |
6202 | ||
6203 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
107e4716 | 6204 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6205 | PyObject * _resultobj; |
6206 | long _result; | |
6207 | wxTextCtrl * _arg0; | |
2d091820 | 6208 | PyObject * _argo0 = 0; |
107e4716 | 6209 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6210 | |
6211 | self = self; | |
107e4716 | 6212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
70551f47 | 6213 | return NULL; |
2d091820 RD |
6214 | if (_argo0) { |
6215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
6218 | return NULL; | |
6219 | } | |
6220 | } | |
ab9bc19b RD |
6221 | { |
6222 | wxPy_BEGIN_ALLOW_THREADS; | |
6223 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); | |
6224 | ||
6225 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6226 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6227 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6228 | return _resultobj; |
6229 | } | |
6230 | ||
6231 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
107e4716 | 6232 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6233 | PyObject * _resultobj; |
6234 | long _result; | |
6235 | wxTextCtrl * _arg0; | |
2d091820 | 6236 | PyObject * _argo0 = 0; |
107e4716 | 6237 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6238 | |
6239 | self = self; | |
107e4716 | 6240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
70551f47 | 6241 | return NULL; |
2d091820 RD |
6242 | if (_argo0) { |
6243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
6246 | return NULL; | |
6247 | } | |
6248 | } | |
ab9bc19b RD |
6249 | { |
6250 | wxPy_BEGIN_ALLOW_THREADS; | |
6251 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); | |
6252 | ||
6253 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6254 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6255 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6256 | return _resultobj; |
6257 | } | |
6258 | ||
faf3cb35 | 6259 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) |
107e4716 | 6260 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 RD |
6261 | PyObject * _resultobj; |
6262 | int _result; | |
6263 | wxTextCtrl * _arg0; | |
6264 | long _arg1; | |
2d091820 | 6265 | PyObject * _argo0 = 0; |
107e4716 | 6266 | char *_kwnames[] = { "self","lineNo", NULL }; |
faf3cb35 RD |
6267 | |
6268 | self = self; | |
107e4716 | 6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
faf3cb35 | 6270 | return NULL; |
2d091820 RD |
6271 | if (_argo0) { |
6272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
faf3cb35 RD |
6274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
6275 | return NULL; | |
6276 | } | |
6277 | } | |
ab9bc19b RD |
6278 | { |
6279 | wxPy_BEGIN_ALLOW_THREADS; | |
6280 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); | |
6281 | ||
6282 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6283 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6284 | } _resultobj = Py_BuildValue("i",_result); |
faf3cb35 RD |
6285 | return _resultobj; |
6286 | } | |
6287 | ||
6288 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) | |
107e4716 | 6289 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 RD |
6290 | PyObject * _resultobj; |
6291 | wxString * _result; | |
6292 | wxTextCtrl * _arg0; | |
6293 | long _arg1; | |
2d091820 | 6294 | PyObject * _argo0 = 0; |
107e4716 | 6295 | char *_kwnames[] = { "self","lineNo", NULL }; |
faf3cb35 RD |
6296 | |
6297 | self = self; | |
107e4716 | 6298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
faf3cb35 | 6299 | return NULL; |
2d091820 RD |
6300 | if (_argo0) { |
6301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
faf3cb35 RD |
6303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
6304 | return NULL; | |
6305 | } | |
6306 | } | |
faf3cb35 | 6307 | { |
ab9bc19b RD |
6308 | wxPy_BEGIN_ALLOW_THREADS; |
6309 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); | |
6310 | ||
6311 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6312 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6313 | }{ |
e02c03a4 | 6314 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
faf3cb35 RD |
6315 | } |
6316 | { | |
6317 | delete _result; | |
6318 | } | |
6319 | return _resultobj; | |
6320 | } | |
6321 | ||
6322 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) | |
107e4716 | 6323 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 RD |
6324 | PyObject * _resultobj; |
6325 | int _result; | |
6326 | wxTextCtrl * _arg0; | |
2d091820 | 6327 | PyObject * _argo0 = 0; |
107e4716 | 6328 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
6329 | |
6330 | self = self; | |
107e4716 | 6331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
faf3cb35 | 6332 | return NULL; |
2d091820 RD |
6333 | if (_argo0) { |
6334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
faf3cb35 RD |
6336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
6337 | return NULL; | |
6338 | } | |
6339 | } | |
ab9bc19b RD |
6340 | { |
6341 | wxPy_BEGIN_ALLOW_THREADS; | |
6342 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); | |
6343 | ||
6344 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6345 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6346 | } _resultobj = Py_BuildValue("i",_result); |
faf3cb35 RD |
6347 | return _resultobj; |
6348 | } | |
6349 | ||
70551f47 | 6350 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) |
107e4716 | 6351 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6352 | PyObject * _resultobj; |
6353 | wxString * _result; | |
6354 | wxTextCtrl * _arg0; | |
2d091820 | 6355 | PyObject * _argo0 = 0; |
107e4716 | 6356 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6357 | |
6358 | self = self; | |
107e4716 | 6359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
70551f47 | 6360 | return NULL; |
2d091820 RD |
6361 | if (_argo0) { |
6362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
6365 | return NULL; | |
6366 | } | |
6367 | } | |
70551f47 | 6368 | { |
ab9bc19b RD |
6369 | wxPy_BEGIN_ALLOW_THREADS; |
6370 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); | |
6371 | ||
6372 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6373 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6374 | }{ |
e02c03a4 | 6375 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
6376 | } |
6377 | { | |
6378 | delete _result; | |
6379 | } | |
6380 | return _resultobj; | |
6381 | } | |
6382 | ||
6383 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) | |
107e4716 | 6384 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6385 | PyObject * _resultobj; |
6386 | bool _result; | |
6387 | wxTextCtrl * _arg0; | |
2d091820 | 6388 | PyObject * _argo0 = 0; |
107e4716 | 6389 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6390 | |
6391 | self = self; | |
107e4716 | 6392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
70551f47 | 6393 | return NULL; |
2d091820 RD |
6394 | if (_argo0) { |
6395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
6398 | return NULL; | |
6399 | } | |
6400 | } | |
ab9bc19b RD |
6401 | { |
6402 | wxPy_BEGIN_ALLOW_THREADS; | |
6403 | _result = (bool )wxTextCtrl_IsModified(_arg0); | |
6404 | ||
6405 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6406 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6407 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6408 | return _resultobj; |
6409 | } | |
6410 | ||
6411 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
107e4716 | 6412 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6413 | PyObject * _resultobj; |
6414 | bool _result; | |
6415 | wxTextCtrl * _arg0; | |
6416 | wxString * _arg1; | |
2d091820 | 6417 | PyObject * _argo0 = 0; |
70551f47 | 6418 | PyObject * _obj1 = 0; |
107e4716 | 6419 | char *_kwnames[] = { "self","filename", NULL }; |
70551f47 RD |
6420 | |
6421 | self = self; | |
107e4716 | 6422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6423 | return NULL; |
2d091820 RD |
6424 | if (_argo0) { |
6425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); |
6428 | return NULL; | |
6429 | } | |
6430 | } | |
6431 | { | |
2cd2fac8 RD |
6432 | #if PYTHON_API_VERSION >= 1009 |
6433 | char* tmpPtr; int tmpSize; | |
6434 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6435 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6436 | return NULL; |
6437 | } | |
6438 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6439 | return NULL; | |
6440 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6441 | #else | |
70551f47 RD |
6442 | if (!PyString_Check(_obj1)) { |
6443 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6444 | return NULL; | |
6445 | } | |
2cd2fac8 RD |
6446 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6447 | #endif | |
70551f47 | 6448 | } |
ab9bc19b RD |
6449 | { |
6450 | wxPy_BEGIN_ALLOW_THREADS; | |
6451 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); | |
6452 | ||
6453 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6454 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6455 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6456 | { |
6457 | if (_obj1) | |
6458 | delete _arg1; | |
6459 | } | |
6460 | return _resultobj; | |
6461 | } | |
6462 | ||
6463 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) | |
107e4716 | 6464 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6465 | PyObject * _resultobj; |
6466 | wxTextCtrl * _arg0; | |
2d091820 | 6467 | PyObject * _argo0 = 0; |
107e4716 | 6468 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6469 | |
6470 | self = self; | |
107e4716 | 6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
70551f47 | 6472 | return NULL; |
2d091820 RD |
6473 | if (_argo0) { |
6474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
6477 | return NULL; | |
6478 | } | |
6479 | } | |
ab9bc19b RD |
6480 | { |
6481 | wxPy_BEGIN_ALLOW_THREADS; | |
6482 | wxTextCtrl_Paste(_arg0); | |
6483 | ||
6484 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6485 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6486 | } Py_INCREF(Py_None); |
70551f47 RD |
6487 | _resultobj = Py_None; |
6488 | return _resultobj; | |
6489 | } | |
6490 | ||
faf3cb35 | 6491 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 6492 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 RD |
6493 | PyObject * _resultobj; |
6494 | wxTextCtrl * _arg0; | |
6495 | long _arg1; | |
6496 | long * _arg2; | |
6497 | long temp; | |
6498 | long * _arg3; | |
6499 | long temp0; | |
2d091820 | 6500 | PyObject * _argo0 = 0; |
107e4716 | 6501 | char *_kwnames[] = { "self","pos", NULL }; |
faf3cb35 RD |
6502 | |
6503 | self = self; | |
6504 | { | |
6505 | _arg2 = &temp; | |
6506 | } | |
6507 | { | |
6508 | _arg3 = &temp0; | |
6509 | } | |
107e4716 | 6510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) |
faf3cb35 | 6511 | return NULL; |
2d091820 RD |
6512 | if (_argo0) { |
6513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
faf3cb35 RD |
6515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
6516 | return NULL; | |
6517 | } | |
6518 | } | |
ab9bc19b RD |
6519 | { |
6520 | wxPy_BEGIN_ALLOW_THREADS; | |
6521 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); | |
6522 | ||
6523 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6524 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6525 | } Py_INCREF(Py_None); |
faf3cb35 RD |
6526 | _resultobj = Py_None; |
6527 | { | |
6528 | PyObject *o; | |
6529 | o = PyInt_FromLong((long) (*_arg2)); | |
6530 | _resultobj = t_output_helper(_resultobj, o); | |
6531 | } | |
6532 | { | |
6533 | PyObject *o; | |
6534 | o = PyInt_FromLong((long) (*_arg3)); | |
6535 | _resultobj = t_output_helper(_resultobj, o); | |
6536 | } | |
6537 | return _resultobj; | |
6538 | } | |
6539 | ||
70551f47 | 6540 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) |
107e4716 | 6541 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6542 | PyObject * _resultobj; |
6543 | wxTextCtrl * _arg0; | |
6544 | long _arg1; | |
6545 | long _arg2; | |
2d091820 | 6546 | PyObject * _argo0 = 0; |
107e4716 | 6547 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
6548 | |
6549 | self = self; | |
107e4716 | 6550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6551 | return NULL; |
2d091820 RD |
6552 | if (_argo0) { |
6553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); |
6556 | return NULL; | |
6557 | } | |
6558 | } | |
ab9bc19b RD |
6559 | { |
6560 | wxPy_BEGIN_ALLOW_THREADS; | |
6561 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); | |
6562 | ||
6563 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6564 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6565 | } Py_INCREF(Py_None); |
70551f47 RD |
6566 | _resultobj = Py_None; |
6567 | return _resultobj; | |
6568 | } | |
6569 | ||
6570 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 6571 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6572 | PyObject * _resultobj; |
6573 | wxTextCtrl * _arg0; | |
6574 | long _arg1; | |
6575 | long _arg2; | |
6576 | wxString * _arg3; | |
2d091820 | 6577 | PyObject * _argo0 = 0; |
70551f47 | 6578 | PyObject * _obj3 = 0; |
107e4716 | 6579 | char *_kwnames[] = { "self","from","to","value", NULL }; |
70551f47 RD |
6580 | |
6581 | self = self; | |
107e4716 | 6582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 6583 | return NULL; |
2d091820 RD |
6584 | if (_argo0) { |
6585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
6588 | return NULL; | |
6589 | } | |
6590 | } | |
6591 | { | |
2cd2fac8 RD |
6592 | #if PYTHON_API_VERSION >= 1009 |
6593 | char* tmpPtr; int tmpSize; | |
6594 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 6595 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6596 | return NULL; |
6597 | } | |
6598 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6599 | return NULL; | |
6600 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6601 | #else | |
70551f47 RD |
6602 | if (!PyString_Check(_obj3)) { |
6603 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6604 | return NULL; | |
6605 | } | |
2cd2fac8 RD |
6606 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6607 | #endif | |
70551f47 | 6608 | } |
ab9bc19b RD |
6609 | { |
6610 | wxPy_BEGIN_ALLOW_THREADS; | |
6611 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); | |
6612 | ||
6613 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6614 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6615 | } Py_INCREF(Py_None); |
70551f47 RD |
6616 | _resultobj = Py_None; |
6617 | { | |
6618 | if (_obj3) | |
6619 | delete _arg3; | |
6620 | } | |
6621 | return _resultobj; | |
6622 | } | |
6623 | ||
6624 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) | |
107e4716 | 6625 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6626 | PyObject * _resultobj; |
6627 | bool _result; | |
6628 | wxTextCtrl * _arg0; | |
6629 | wxString * _arg1; | |
2d091820 | 6630 | PyObject * _argo0 = 0; |
70551f47 | 6631 | PyObject * _obj1 = 0; |
107e4716 | 6632 | char *_kwnames[] = { "self","filename", NULL }; |
70551f47 RD |
6633 | |
6634 | self = self; | |
107e4716 | 6635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6636 | return NULL; |
2d091820 RD |
6637 | if (_argo0) { |
6638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
6641 | return NULL; | |
6642 | } | |
6643 | } | |
6644 | { | |
2cd2fac8 RD |
6645 | #if PYTHON_API_VERSION >= 1009 |
6646 | char* tmpPtr; int tmpSize; | |
6647 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6648 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6649 | return NULL; |
6650 | } | |
6651 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6652 | return NULL; | |
6653 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6654 | #else | |
70551f47 RD |
6655 | if (!PyString_Check(_obj1)) { |
6656 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6657 | return NULL; | |
6658 | } | |
2cd2fac8 RD |
6659 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6660 | #endif | |
70551f47 | 6661 | } |
ab9bc19b RD |
6662 | { |
6663 | wxPy_BEGIN_ALLOW_THREADS; | |
6664 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); | |
6665 | ||
6666 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6667 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6668 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6669 | { |
6670 | if (_obj1) | |
6671 | delete _arg1; | |
6672 | } | |
6673 | return _resultobj; | |
6674 | } | |
6675 | ||
6676 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
107e4716 | 6677 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6678 | PyObject * _resultobj; |
6679 | wxTextCtrl * _arg0; | |
6680 | bool _arg1; | |
2d091820 | 6681 | PyObject * _argo0 = 0; |
70551f47 | 6682 | int tempbool1; |
107e4716 | 6683 | char *_kwnames[] = { "self","editable", NULL }; |
70551f47 RD |
6684 | |
6685 | self = self; | |
107e4716 | 6686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 6687 | return NULL; |
2d091820 RD |
6688 | if (_argo0) { |
6689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
6692 | return NULL; | |
6693 | } | |
6694 | } | |
6695 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
6696 | { |
6697 | wxPy_BEGIN_ALLOW_THREADS; | |
6698 | wxTextCtrl_SetEditable(_arg0,_arg1); | |
6699 | ||
6700 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6701 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6702 | } Py_INCREF(Py_None); |
70551f47 RD |
6703 | _resultobj = Py_None; |
6704 | return _resultobj; | |
6705 | } | |
6706 | ||
6707 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
107e4716 | 6708 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6709 | PyObject * _resultobj; |
6710 | wxTextCtrl * _arg0; | |
6711 | long _arg1; | |
2d091820 | 6712 | PyObject * _argo0 = 0; |
107e4716 | 6713 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
6714 | |
6715 | self = self; | |
107e4716 | 6716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6717 | return NULL; |
2d091820 RD |
6718 | if (_argo0) { |
6719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
6722 | return NULL; | |
6723 | } | |
6724 | } | |
ab9bc19b RD |
6725 | { |
6726 | wxPy_BEGIN_ALLOW_THREADS; | |
6727 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); | |
6728 | ||
6729 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6730 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6731 | } Py_INCREF(Py_None); |
70551f47 RD |
6732 | _resultobj = Py_None; |
6733 | return _resultobj; | |
6734 | } | |
6735 | ||
6736 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
107e4716 | 6737 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6738 | PyObject * _resultobj; |
6739 | wxTextCtrl * _arg0; | |
2d091820 | 6740 | PyObject * _argo0 = 0; |
107e4716 | 6741 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6742 | |
6743 | self = self; | |
107e4716 | 6744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
70551f47 | 6745 | return NULL; |
2d091820 RD |
6746 | if (_argo0) { |
6747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
6750 | return NULL; | |
6751 | } | |
6752 | } | |
ab9bc19b RD |
6753 | { |
6754 | wxPy_BEGIN_ALLOW_THREADS; | |
6755 | wxTextCtrl_SetInsertionPointEnd(_arg0); | |
6756 | ||
6757 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6758 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6759 | } Py_INCREF(Py_None); |
70551f47 RD |
6760 | _resultobj = Py_None; |
6761 | return _resultobj; | |
6762 | } | |
6763 | ||
6764 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 6765 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6766 | PyObject * _resultobj; |
6767 | wxTextCtrl * _arg0; | |
6768 | long _arg1; | |
6769 | long _arg2; | |
2d091820 | 6770 | PyObject * _argo0 = 0; |
107e4716 | 6771 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
6772 | |
6773 | self = self; | |
107e4716 | 6774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6775 | return NULL; |
2d091820 RD |
6776 | if (_argo0) { |
6777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); |
6780 | return NULL; | |
6781 | } | |
6782 | } | |
ab9bc19b RD |
6783 | { |
6784 | wxPy_BEGIN_ALLOW_THREADS; | |
6785 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); | |
6786 | ||
6787 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6788 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6789 | } Py_INCREF(Py_None); |
70551f47 RD |
6790 | _resultobj = Py_None; |
6791 | return _resultobj; | |
6792 | } | |
6793 | ||
6794 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 6795 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6796 | PyObject * _resultobj; |
6797 | wxTextCtrl * _arg0; | |
6798 | wxString * _arg1; | |
2d091820 | 6799 | PyObject * _argo0 = 0; |
70551f47 | 6800 | PyObject * _obj1 = 0; |
107e4716 | 6801 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
6802 | |
6803 | self = self; | |
107e4716 | 6804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6805 | return NULL; |
2d091820 RD |
6806 | if (_argo0) { |
6807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
6810 | return NULL; | |
6811 | } | |
6812 | } | |
6813 | { | |
2cd2fac8 RD |
6814 | #if PYTHON_API_VERSION >= 1009 |
6815 | char* tmpPtr; int tmpSize; | |
6816 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6817 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6818 | return NULL; |
6819 | } | |
6820 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6821 | return NULL; | |
6822 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6823 | #else | |
70551f47 RD |
6824 | if (!PyString_Check(_obj1)) { |
6825 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6826 | return NULL; | |
6827 | } | |
2cd2fac8 RD |
6828 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6829 | #endif | |
70551f47 | 6830 | } |
ab9bc19b RD |
6831 | { |
6832 | wxPy_BEGIN_ALLOW_THREADS; | |
6833 | wxTextCtrl_SetValue(_arg0,*_arg1); | |
6834 | ||
6835 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6836 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6837 | } Py_INCREF(Py_None); |
70551f47 RD |
6838 | _resultobj = Py_None; |
6839 | { | |
6840 | if (_obj1) | |
6841 | delete _arg1; | |
6842 | } | |
6843 | return _resultobj; | |
6844 | } | |
6845 | ||
6846 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
107e4716 | 6847 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6848 | PyObject * _resultobj; |
6849 | wxTextCtrl * _arg0; | |
6850 | long _arg1; | |
2d091820 | 6851 | PyObject * _argo0 = 0; |
107e4716 | 6852 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
6853 | |
6854 | self = self; | |
107e4716 | 6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6856 | return NULL; |
2d091820 RD |
6857 | if (_argo0) { |
6858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); |
6861 | return NULL; | |
6862 | } | |
6863 | } | |
ab9bc19b RD |
6864 | { |
6865 | wxPy_BEGIN_ALLOW_THREADS; | |
6866 | wxTextCtrl_ShowPosition(_arg0,_arg1); | |
6867 | ||
6868 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6869 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6870 | } Py_INCREF(Py_None); |
70551f47 RD |
6871 | _resultobj = Py_None; |
6872 | return _resultobj; | |
6873 | } | |
6874 | ||
6875 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) | |
107e4716 | 6876 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6877 | PyObject * _resultobj; |
6878 | wxTextCtrl * _arg0; | |
6879 | wxString * _arg1; | |
2d091820 | 6880 | PyObject * _argo0 = 0; |
70551f47 | 6881 | PyObject * _obj1 = 0; |
107e4716 | 6882 | char *_kwnames[] = { "self","text", NULL }; |
70551f47 RD |
6883 | |
6884 | self = self; | |
107e4716 | 6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6886 | return NULL; |
2d091820 RD |
6887 | if (_argo0) { |
6888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
6891 | return NULL; | |
6892 | } | |
6893 | } | |
6894 | { | |
2cd2fac8 RD |
6895 | #if PYTHON_API_VERSION >= 1009 |
6896 | char* tmpPtr; int tmpSize; | |
6897 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6898 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6899 | return NULL; |
6900 | } | |
6901 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6902 | return NULL; | |
6903 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6904 | #else | |
70551f47 RD |
6905 | if (!PyString_Check(_obj1)) { |
6906 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6907 | return NULL; | |
6908 | } | |
2cd2fac8 RD |
6909 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6910 | #endif | |
70551f47 | 6911 | } |
ab9bc19b RD |
6912 | { |
6913 | wxPy_BEGIN_ALLOW_THREADS; | |
6914 | wxTextCtrl_WriteText(_arg0,*_arg1); | |
6915 | ||
6916 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6917 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
6918 | } Py_INCREF(Py_None); |
6919 | _resultobj = Py_None; | |
6920 | { | |
6921 | if (_obj1) | |
6922 | delete _arg1; | |
6923 | } | |
6924 | return _resultobj; | |
6925 | } | |
6926 | ||
6927 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) | |
107e4716 | 6928 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
6929 | PyObject * _resultobj; |
6930 | wxTextCtrl * _arg0; | |
6931 | wxString * _arg1; | |
2d091820 | 6932 | PyObject * _argo0 = 0; |
ab9bc19b | 6933 | PyObject * _obj1 = 0; |
107e4716 | 6934 | char *_kwnames[] = { "self","text", NULL }; |
ab9bc19b RD |
6935 | |
6936 | self = self; | |
107e4716 | 6937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
ab9bc19b | 6938 | return NULL; |
2d091820 RD |
6939 | if (_argo0) { |
6940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
ab9bc19b RD |
6942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
6943 | return NULL; | |
6944 | } | |
6945 | } | |
6946 | { | |
2cd2fac8 RD |
6947 | #if PYTHON_API_VERSION >= 1009 |
6948 | char* tmpPtr; int tmpSize; | |
6949 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6950 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6951 | return NULL; |
6952 | } | |
6953 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6954 | return NULL; | |
6955 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6956 | #else | |
ab9bc19b RD |
6957 | if (!PyString_Check(_obj1)) { |
6958 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6959 | return NULL; | |
6960 | } | |
2cd2fac8 RD |
6961 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6962 | #endif | |
ab9bc19b RD |
6963 | } |
6964 | { | |
6965 | wxPy_BEGIN_ALLOW_THREADS; | |
6966 | wxTextCtrl_AppendText(_arg0,*_arg1); | |
6967 | ||
6968 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6969 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6970 | } Py_INCREF(Py_None); |
70551f47 RD |
6971 | _resultobj = Py_None; |
6972 | { | |
6973 | if (_obj1) | |
6974 | delete _arg1; | |
6975 | } | |
6976 | return _resultobj; | |
6977 | } | |
6978 | ||
faf3cb35 | 6979 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) |
107e4716 | 6980 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 RD |
6981 | PyObject * _resultobj; |
6982 | long _result; | |
6983 | wxTextCtrl * _arg0; | |
6984 | long _arg1; | |
6985 | long _arg2; | |
2d091820 | 6986 | PyObject * _argo0 = 0; |
107e4716 | 6987 | char *_kwnames[] = { "self","x","y", NULL }; |
faf3cb35 RD |
6988 | |
6989 | self = self; | |
107e4716 | 6990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
faf3cb35 | 6991 | return NULL; |
2d091820 RD |
6992 | if (_argo0) { |
6993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
faf3cb35 RD |
6995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
6996 | return NULL; | |
6997 | } | |
6998 | } | |
ab9bc19b RD |
6999 | { |
7000 | wxPy_BEGIN_ALLOW_THREADS; | |
7001 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); | |
7002 | ||
7003 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7004 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7005 | } _resultobj = Py_BuildValue("l",_result); |
faf3cb35 RD |
7006 | return _resultobj; |
7007 | } | |
7008 | ||
53920141 | 7009 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) |
107e4716 | 7010 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7011 | PyObject * _resultobj; |
7012 | bool _result; | |
7013 | wxTextCtrl * _arg0; | |
2d091820 | 7014 | PyObject * _argo0 = 0; |
107e4716 | 7015 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7016 | |
7017 | self = self; | |
107e4716 | 7018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) |
53920141 | 7019 | return NULL; |
2d091820 RD |
7020 | if (_argo0) { |
7021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); |
7024 | return NULL; | |
7025 | } | |
7026 | } | |
7027 | { | |
7028 | wxPy_BEGIN_ALLOW_THREADS; | |
7029 | _result = (bool )wxTextCtrl_CanCopy(_arg0); | |
7030 | ||
7031 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7032 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7033 | } _resultobj = Py_BuildValue("i",_result); |
7034 | return _resultobj; | |
7035 | } | |
7036 | ||
7037 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
107e4716 | 7038 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7039 | PyObject * _resultobj; |
7040 | bool _result; | |
7041 | wxTextCtrl * _arg0; | |
2d091820 | 7042 | PyObject * _argo0 = 0; |
107e4716 | 7043 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7044 | |
7045 | self = self; | |
107e4716 | 7046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) |
53920141 | 7047 | return NULL; |
2d091820 RD |
7048 | if (_argo0) { |
7049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); |
7052 | return NULL; | |
7053 | } | |
7054 | } | |
7055 | { | |
7056 | wxPy_BEGIN_ALLOW_THREADS; | |
7057 | _result = (bool )wxTextCtrl_CanCut(_arg0); | |
7058 | ||
7059 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7060 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7061 | } _resultobj = Py_BuildValue("i",_result); |
7062 | return _resultobj; | |
7063 | } | |
7064 | ||
7065 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
107e4716 | 7066 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7067 | PyObject * _resultobj; |
7068 | bool _result; | |
7069 | wxTextCtrl * _arg0; | |
2d091820 | 7070 | PyObject * _argo0 = 0; |
107e4716 | 7071 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7072 | |
7073 | self = self; | |
107e4716 | 7074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) |
53920141 | 7075 | return NULL; |
2d091820 RD |
7076 | if (_argo0) { |
7077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); |
7080 | return NULL; | |
7081 | } | |
7082 | } | |
7083 | { | |
7084 | wxPy_BEGIN_ALLOW_THREADS; | |
7085 | _result = (bool )wxTextCtrl_CanPaste(_arg0); | |
7086 | ||
7087 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7088 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7089 | } _resultobj = Py_BuildValue("i",_result); |
7090 | return _resultobj; | |
7091 | } | |
7092 | ||
7093 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) | |
107e4716 | 7094 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7095 | PyObject * _resultobj; |
7096 | bool _result; | |
7097 | wxTextCtrl * _arg0; | |
2d091820 | 7098 | PyObject * _argo0 = 0; |
107e4716 | 7099 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7100 | |
7101 | self = self; | |
107e4716 | 7102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
53920141 | 7103 | return NULL; |
2d091820 RD |
7104 | if (_argo0) { |
7105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
7108 | return NULL; | |
7109 | } | |
7110 | } | |
7111 | { | |
7112 | wxPy_BEGIN_ALLOW_THREADS; | |
7113 | _result = (bool )wxTextCtrl_CanRedo(_arg0); | |
7114 | ||
7115 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7116 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7117 | } _resultobj = Py_BuildValue("i",_result); |
7118 | return _resultobj; | |
7119 | } | |
7120 | ||
7121 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) | |
107e4716 | 7122 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7123 | PyObject * _resultobj; |
7124 | bool _result; | |
7125 | wxTextCtrl * _arg0; | |
2d091820 | 7126 | PyObject * _argo0 = 0; |
107e4716 | 7127 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7128 | |
7129 | self = self; | |
107e4716 | 7130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
53920141 | 7131 | return NULL; |
2d091820 RD |
7132 | if (_argo0) { |
7133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
7136 | return NULL; | |
7137 | } | |
7138 | } | |
7139 | { | |
7140 | wxPy_BEGIN_ALLOW_THREADS; | |
7141 | _result = (bool )wxTextCtrl_CanUndo(_arg0); | |
7142 | ||
7143 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7144 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7145 | } _resultobj = Py_BuildValue("i",_result); |
7146 | return _resultobj; | |
7147 | } | |
7148 | ||
7149 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 7150 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7151 | PyObject * _resultobj; |
7152 | wxTextCtrl * _arg0; | |
7153 | long * _arg1; | |
7154 | long temp; | |
7155 | long * _arg2; | |
7156 | long temp0; | |
2d091820 | 7157 | PyObject * _argo0 = 0; |
107e4716 | 7158 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7159 | |
7160 | self = self; | |
7161 | { | |
7162 | _arg1 = &temp; | |
7163 | } | |
7164 | { | |
7165 | _arg2 = &temp0; | |
7166 | } | |
107e4716 | 7167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) |
53920141 | 7168 | return NULL; |
2d091820 RD |
7169 | if (_argo0) { |
7170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
7173 | return NULL; | |
7174 | } | |
7175 | } | |
7176 | { | |
7177 | wxPy_BEGIN_ALLOW_THREADS; | |
7178 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); | |
7179 | ||
7180 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7181 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7182 | } Py_INCREF(Py_None); |
7183 | _resultobj = Py_None; | |
7184 | { | |
7185 | PyObject *o; | |
7186 | o = PyInt_FromLong((long) (*_arg1)); | |
7187 | _resultobj = t_output_helper(_resultobj, o); | |
7188 | } | |
7189 | { | |
7190 | PyObject *o; | |
7191 | o = PyInt_FromLong((long) (*_arg2)); | |
7192 | _resultobj = t_output_helper(_resultobj, o); | |
7193 | } | |
7194 | return _resultobj; | |
7195 | } | |
7196 | ||
7197 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) | |
107e4716 | 7198 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7199 | PyObject * _resultobj; |
7200 | bool _result; | |
7201 | wxTextCtrl * _arg0; | |
2d091820 | 7202 | PyObject * _argo0 = 0; |
107e4716 | 7203 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7204 | |
7205 | self = self; | |
107e4716 | 7206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
53920141 | 7207 | return NULL; |
2d091820 RD |
7208 | if (_argo0) { |
7209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
7212 | return NULL; | |
7213 | } | |
7214 | } | |
7215 | { | |
7216 | wxPy_BEGIN_ALLOW_THREADS; | |
7217 | _result = (bool )wxTextCtrl_IsEditable(_arg0); | |
7218 | ||
7219 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7220 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7221 | } _resultobj = Py_BuildValue("i",_result); |
7222 | return _resultobj; | |
7223 | } | |
7224 | ||
4120ef2b RD |
7225 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
7226 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7227 | PyObject * _resultobj; | |
7228 | wxTextCtrl * _arg0; | |
7229 | PyObject * _argo0 = 0; | |
7230 | char *_kwnames[] = { "self", NULL }; | |
7231 | ||
7232 | self = self; | |
7233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) | |
7234 | return NULL; | |
7235 | if (_argo0) { | |
7236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); | |
7239 | return NULL; | |
7240 | } | |
7241 | } | |
7242 | { | |
7243 | wxPy_BEGIN_ALLOW_THREADS; | |
7244 | wxTextCtrl_Undo(_arg0); | |
7245 | ||
7246 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7247 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
7248 | } Py_INCREF(Py_None); |
7249 | _resultobj = Py_None; | |
7250 | return _resultobj; | |
7251 | } | |
7252 | ||
7253 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) | |
7254 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7255 | PyObject * _resultobj; | |
7256 | wxTextCtrl * _arg0; | |
7257 | PyObject * _argo0 = 0; | |
7258 | char *_kwnames[] = { "self", NULL }; | |
7259 | ||
7260 | self = self; | |
7261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) | |
7262 | return NULL; | |
7263 | if (_argo0) { | |
7264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); | |
7267 | return NULL; | |
7268 | } | |
7269 | } | |
7270 | { | |
7271 | wxPy_BEGIN_ALLOW_THREADS; | |
7272 | wxTextCtrl_Redo(_arg0); | |
7273 | ||
7274 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7275 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
7276 | } Py_INCREF(Py_None); |
7277 | _resultobj = Py_None; | |
7278 | return _resultobj; | |
7279 | } | |
7280 | ||
9d6da64a RD |
7281 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) |
7282 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7283 | PyObject * _resultobj; | |
7284 | bool _result; | |
7285 | wxTextCtrl * _arg0; | |
7286 | long _arg1; | |
7287 | long _arg2; | |
7288 | wxTextAttr * _arg3; | |
7289 | PyObject * _argo0 = 0; | |
7290 | PyObject * _argo3 = 0; | |
7291 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
7292 | ||
7293 | self = self; | |
7294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) | |
7295 | return NULL; | |
7296 | if (_argo0) { | |
7297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); | |
7300 | return NULL; | |
7301 | } | |
7302 | } | |
7303 | if (_argo3) { | |
7304 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7305 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
7306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
7307 | return NULL; | |
7308 | } | |
7309 | } | |
7310 | { | |
7311 | wxPy_BEGIN_ALLOW_THREADS; | |
7312 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); | |
7313 | ||
7314 | wxPy_END_ALLOW_THREADS; | |
7315 | if (PyErr_Occurred()) return NULL; | |
7316 | } _resultobj = Py_BuildValue("i",_result); | |
7317 | return _resultobj; | |
7318 | } | |
7319 | ||
7320 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) | |
7321 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7322 | PyObject * _resultobj; | |
7323 | bool _result; | |
7324 | wxTextCtrl * _arg0; | |
7325 | wxTextAttr * _arg1; | |
7326 | PyObject * _argo0 = 0; | |
7327 | PyObject * _argo1 = 0; | |
7328 | char *_kwnames[] = { "self","style", NULL }; | |
7329 | ||
7330 | self = self; | |
7331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) | |
7332 | return NULL; | |
7333 | if (_argo0) { | |
7334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); | |
7337 | return NULL; | |
7338 | } | |
7339 | } | |
7340 | if (_argo1) { | |
7341 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7342 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
7343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
7344 | return NULL; | |
7345 | } | |
7346 | } | |
7347 | { | |
7348 | wxPy_BEGIN_ALLOW_THREADS; | |
7349 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); | |
7350 | ||
7351 | wxPy_END_ALLOW_THREADS; | |
7352 | if (PyErr_Occurred()) return NULL; | |
7353 | } _resultobj = Py_BuildValue("i",_result); | |
7354 | return _resultobj; | |
7355 | } | |
7356 | ||
7357 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) | |
7358 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7359 | PyObject * _resultobj; | |
7360 | wxTextAttr * _result; | |
7361 | wxTextCtrl * _arg0; | |
7362 | PyObject * _argo0 = 0; | |
7363 | char *_kwnames[] = { "self", NULL }; | |
7364 | char _ptemp[128]; | |
7365 | ||
7366 | self = self; | |
7367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) | |
7368 | return NULL; | |
7369 | if (_argo0) { | |
7370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); | |
7373 | return NULL; | |
7374 | } | |
7375 | } | |
7376 | { | |
7377 | wxPy_BEGIN_ALLOW_THREADS; | |
7378 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); | |
7379 | _result = (wxTextAttr *) &_result_ref; | |
7380 | ||
7381 | wxPy_END_ALLOW_THREADS; | |
7382 | if (PyErr_Occurred()) return NULL; | |
7383 | } if (_result) { | |
7384 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
7385 | _resultobj = Py_BuildValue("s",_ptemp); | |
7386 | } else { | |
7387 | Py_INCREF(Py_None); | |
7388 | _resultobj = Py_None; | |
7389 | } | |
7390 | return _resultobj; | |
7391 | } | |
7392 | ||
aa2a5b86 RD |
7393 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) |
7394 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7395 | PyObject * _resultobj; | |
7396 | wxTextCtrl * _arg0; | |
7397 | unsigned long _arg1; | |
7398 | PyObject * _argo0 = 0; | |
7399 | char *_kwnames[] = { "self","len", NULL }; | |
7400 | ||
7401 | self = self; | |
7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) | |
7403 | return NULL; | |
7404 | if (_argo0) { | |
7405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); | |
7408 | return NULL; | |
7409 | } | |
7410 | } | |
7411 | { | |
7412 | wxPy_BEGIN_ALLOW_THREADS; | |
7413 | wxTextCtrl_SetMaxLength(_arg0,_arg1); | |
7414 | ||
7415 | wxPy_END_ALLOW_THREADS; | |
7416 | if (PyErr_Occurred()) return NULL; | |
7417 | } Py_INCREF(Py_None); | |
7418 | _resultobj = Py_None; | |
7419 | return _resultobj; | |
7420 | } | |
7421 | ||
4120ef2b | 7422 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { |
9d6da64a | 7423 | self->AppendText(text); |
4120ef2b RD |
7424 | } |
7425 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7426 | PyObject * _resultobj; | |
7427 | wxTextCtrl * _arg0; | |
7428 | wxString * _arg1; | |
7429 | PyObject * _argo0 = 0; | |
7430 | PyObject * _obj1 = 0; | |
7431 | char *_kwnames[] = { "self","text", NULL }; | |
7432 | ||
7433 | self = self; | |
7434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
7435 | return NULL; | |
7436 | if (_argo0) { | |
7437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
7440 | return NULL; | |
7441 | } | |
7442 | } | |
7443 | { | |
2cd2fac8 RD |
7444 | #if PYTHON_API_VERSION >= 1009 |
7445 | char* tmpPtr; int tmpSize; | |
7446 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7447 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7448 | return NULL; |
7449 | } | |
7450 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7451 | return NULL; | |
7452 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7453 | #else | |
4120ef2b RD |
7454 | if (!PyString_Check(_obj1)) { |
7455 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7456 | return NULL; | |
7457 | } | |
2cd2fac8 RD |
7458 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7459 | #endif | |
4120ef2b RD |
7460 | } |
7461 | { | |
7462 | wxPy_BEGIN_ALLOW_THREADS; | |
7463 | wxTextCtrl_write(_arg0,*_arg1); | |
7464 | ||
7465 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7466 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
7467 | } Py_INCREF(Py_None); |
7468 | _resultobj = Py_None; | |
7469 | { | |
7470 | if (_obj1) | |
7471 | delete _arg1; | |
7472 | } | |
7473 | return _resultobj; | |
7474 | } | |
7475 | ||
70551f47 RD |
7476 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
7477 | wxScrollBar *src; | |
7478 | wxControl *dest; | |
7479 | src = (wxScrollBar *) ptr; | |
7480 | dest = (wxControl *) src; | |
7481 | return (void *) dest; | |
7482 | } | |
7483 | ||
7484 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
7485 | wxScrollBar *src; | |
7486 | wxWindow *dest; | |
7487 | src = (wxScrollBar *) ptr; | |
7488 | dest = (wxWindow *) src; | |
7489 | return (void *) dest; | |
7490 | } | |
7491 | ||
7492 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
7493 | wxScrollBar *src; | |
7494 | wxEvtHandler *dest; | |
7495 | src = (wxScrollBar *) ptr; | |
7496 | dest = (wxEvtHandler *) src; | |
7497 | return (void *) dest; | |
7498 | } | |
7499 | ||
9df61a29 RD |
7500 | static void *SwigwxScrollBarTowxObject(void *ptr) { |
7501 | wxScrollBar *src; | |
7502 | wxObject *dest; | |
7503 | src = (wxScrollBar *) ptr; | |
7504 | dest = (wxObject *) src; | |
7505 | return (void *) dest; | |
7506 | } | |
7507 | ||
70551f47 | 7508 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 7509 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7510 | PyObject * _resultobj; |
7511 | wxScrollBar * _result; | |
7512 | wxWindow * _arg0; | |
2d091820 | 7513 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
7514 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
7515 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 | 7516 | long _arg4 = (long ) wxSB_HORIZONTAL; |
b68dc582 | 7517 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
7518 | char * _arg6 = (char *) "scrollBar"; |
7519 | PyObject * _argo0 = 0; | |
37f6a977 RD |
7520 | wxPoint temp; |
7521 | PyObject * _obj2 = 0; | |
7522 | wxSize temp0; | |
7523 | PyObject * _obj3 = 0; | |
2d091820 | 7524 | PyObject * _argo5 = 0; |
107e4716 | 7525 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
70551f47 RD |
7526 | char _ptemp[128]; |
7527 | ||
7528 | self = self; | |
37f6a977 | 7529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
70551f47 | 7530 | return NULL; |
2d091820 RD |
7531 | if (_argo0) { |
7532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
7534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); |
7535 | return NULL; | |
7536 | } | |
7537 | } | |
37f6a977 RD |
7538 | if (_obj2) |
7539 | { | |
7540 | _arg2 = &temp; | |
7541 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 7542 | return NULL; |
37f6a977 RD |
7543 | } |
7544 | if (_obj3) | |
7545 | { | |
7546 | _arg3 = &temp0; | |
7547 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 7548 | return NULL; |
37f6a977 | 7549 | } |
2d091820 RD |
7550 | if (_argo5) { |
7551 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7552 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
70551f47 RD |
7553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); |
7554 | return NULL; | |
7555 | } | |
7556 | } | |
ab9bc19b RD |
7557 | { |
7558 | wxPy_BEGIN_ALLOW_THREADS; | |
7559 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
7560 | ||
7561 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7562 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
7563 | } if (_result) { |
7564 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7565 | _resultobj = Py_BuildValue("s",_ptemp); | |
7566 | } else { | |
7567 | Py_INCREF(Py_None); | |
7568 | _resultobj = Py_None; | |
7569 | } | |
70551f47 RD |
7570 | return _resultobj; |
7571 | } | |
7572 | ||
aa2a5b86 RD |
7573 | #define new_wxPreScrollBar() (new wxScrollBar()) |
7574 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7575 | PyObject * _resultobj; | |
7576 | wxScrollBar * _result; | |
7577 | char *_kwnames[] = { NULL }; | |
7578 | char _ptemp[128]; | |
7579 | ||
7580 | self = self; | |
7581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
7582 | return NULL; | |
7583 | { | |
7584 | wxPy_BEGIN_ALLOW_THREADS; | |
7585 | _result = (wxScrollBar *)new_wxPreScrollBar(); | |
7586 | ||
7587 | wxPy_END_ALLOW_THREADS; | |
7588 | if (PyErr_Occurred()) return NULL; | |
7589 | } if (_result) { | |
7590 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7591 | _resultobj = Py_BuildValue("s",_ptemp); | |
7592 | } else { | |
7593 | Py_INCREF(Py_None); | |
7594 | _resultobj = Py_None; | |
7595 | } | |
7596 | return _resultobj; | |
7597 | } | |
7598 | ||
7599 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
7600 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7601 | PyObject * _resultobj; | |
7602 | bool _result; | |
7603 | wxScrollBar * _arg0; | |
7604 | wxWindow * _arg1; | |
7605 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7606 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7607 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7608 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
7609 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
7610 | char * _arg7 = (char *) "scrollBar"; | |
7611 | PyObject * _argo0 = 0; | |
7612 | PyObject * _argo1 = 0; | |
7613 | wxPoint temp; | |
7614 | PyObject * _obj3 = 0; | |
7615 | wxSize temp0; | |
7616 | PyObject * _obj4 = 0; | |
7617 | PyObject * _argo6 = 0; | |
7618 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
7619 | ||
7620 | self = self; | |
7621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
7622 | return NULL; | |
7623 | if (_argo0) { | |
7624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
7627 | return NULL; | |
7628 | } | |
7629 | } | |
7630 | if (_argo1) { | |
7631 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7632 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
7634 | return NULL; | |
7635 | } | |
7636 | } | |
7637 | if (_obj3) | |
7638 | { | |
7639 | _arg3 = &temp; | |
7640 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7641 | return NULL; | |
7642 | } | |
7643 | if (_obj4) | |
7644 | { | |
7645 | _arg4 = &temp0; | |
7646 | if (! wxSize_helper(_obj4, &_arg4)) | |
7647 | return NULL; | |
7648 | } | |
7649 | if (_argo6) { | |
7650 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7651 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
7652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
7653 | return NULL; | |
7654 | } | |
7655 | } | |
7656 | { | |
7657 | wxPy_BEGIN_ALLOW_THREADS; | |
7658 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
7659 | ||
7660 | wxPy_END_ALLOW_THREADS; | |
7661 | if (PyErr_Occurred()) return NULL; | |
7662 | } _resultobj = Py_BuildValue("i",_result); | |
7663 | return _resultobj; | |
7664 | } | |
7665 | ||
70551f47 | 7666 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) |
107e4716 | 7667 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7668 | PyObject * _resultobj; |
7669 | int _result; | |
7670 | wxScrollBar * _arg0; | |
2d091820 | 7671 | PyObject * _argo0 = 0; |
107e4716 | 7672 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7673 | |
7674 | self = self; | |
107e4716 | 7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) |
70551f47 | 7676 | return NULL; |
2d091820 RD |
7677 | if (_argo0) { |
7678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
7680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); |
7681 | return NULL; | |
7682 | } | |
7683 | } | |
ab9bc19b RD |
7684 | { |
7685 | wxPy_BEGIN_ALLOW_THREADS; | |
7686 | _result = (int )wxScrollBar_GetRange(_arg0); | |
7687 | ||
7688 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7689 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7690 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7691 | return _resultobj; |
7692 | } | |
7693 | ||
7694 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
107e4716 | 7695 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7696 | PyObject * _resultobj; |
7697 | int _result; | |
7698 | wxScrollBar * _arg0; | |
2d091820 | 7699 | PyObject * _argo0 = 0; |
107e4716 | 7700 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7701 | |
7702 | self = self; | |
107e4716 | 7703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) |
70551f47 | 7704 | return NULL; |
2d091820 RD |
7705 | if (_argo0) { |
7706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
7708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); |
7709 | return NULL; | |
7710 | } | |
7711 | } | |
ab9bc19b RD |
7712 | { |
7713 | wxPy_BEGIN_ALLOW_THREADS; | |
7714 | _result = (int )wxScrollBar_GetPageSize(_arg0); | |
7715 | ||
7716 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7717 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7718 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7719 | return _resultobj; |
7720 | } | |
7721 | ||
105e45b9 | 7722 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) |
107e4716 | 7723 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7724 | PyObject * _resultobj; |
7725 | int _result; | |
7726 | wxScrollBar * _arg0; | |
2d091820 | 7727 | PyObject * _argo0 = 0; |
107e4716 | 7728 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7729 | |
7730 | self = self; | |
107e4716 | 7731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) |
70551f47 | 7732 | return NULL; |
2d091820 RD |
7733 | if (_argo0) { |
7734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
105e45b9 | 7736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); |
70551f47 RD |
7737 | return NULL; |
7738 | } | |
7739 | } | |
ab9bc19b RD |
7740 | { |
7741 | wxPy_BEGIN_ALLOW_THREADS; | |
7742 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); | |
7743 | ||
7744 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7745 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7746 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7747 | return _resultobj; |
7748 | } | |
7749 | ||
7750 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
107e4716 | 7751 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7752 | PyObject * _resultobj; |
7753 | int _result; | |
7754 | wxScrollBar * _arg0; | |
2d091820 | 7755 | PyObject * _argo0 = 0; |
107e4716 | 7756 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7757 | |
7758 | self = self; | |
107e4716 | 7759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) |
70551f47 | 7760 | return NULL; |
2d091820 RD |
7761 | if (_argo0) { |
7762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
7764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); |
7765 | return NULL; | |
7766 | } | |
7767 | } | |
ab9bc19b RD |
7768 | { |
7769 | wxPy_BEGIN_ALLOW_THREADS; | |
7770 | _result = (int )wxScrollBar_GetThumbSize(_arg0); | |
7771 | ||
7772 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7773 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7774 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7775 | return _resultobj; |
7776 | } | |
7777 | ||
105e45b9 | 7778 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
107e4716 | 7779 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7780 | PyObject * _resultobj; |
7781 | wxScrollBar * _arg0; | |
7782 | int _arg1; | |
2d091820 | 7783 | PyObject * _argo0 = 0; |
107e4716 | 7784 | char *_kwnames[] = { "self","viewStart", NULL }; |
70551f47 RD |
7785 | |
7786 | self = self; | |
107e4716 | 7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7788 | return NULL; |
2d091820 RD |
7789 | if (_argo0) { |
7790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
105e45b9 | 7792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); |
70551f47 RD |
7793 | return NULL; |
7794 | } | |
7795 | } | |
ab9bc19b RD |
7796 | { |
7797 | wxPy_BEGIN_ALLOW_THREADS; | |
7798 | wxScrollBar_SetThumbPosition(_arg0,_arg1); | |
7799 | ||
7800 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7801 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7802 | } Py_INCREF(Py_None); |
70551f47 RD |
7803 | _resultobj = Py_None; |
7804 | return _resultobj; | |
7805 | } | |
7806 | ||
7807 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 7808 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7809 | PyObject * _resultobj; |
7810 | wxScrollBar * _arg0; | |
7811 | int _arg1; | |
7812 | int _arg2; | |
7813 | int _arg3; | |
7814 | int _arg4; | |
2d091820 RD |
7815 | bool _arg5 = (bool ) TRUE; |
7816 | PyObject * _argo0 = 0; | |
7817 | int tempbool5 = (int) TRUE; | |
107e4716 | 7818 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; |
70551f47 RD |
7819 | |
7820 | self = self; | |
107e4716 | 7821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
70551f47 | 7822 | return NULL; |
2d091820 RD |
7823 | if (_argo0) { |
7824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
7826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); |
7827 | return NULL; | |
7828 | } | |
7829 | } | |
7830 | _arg5 = (bool ) tempbool5; | |
ab9bc19b RD |
7831 | { |
7832 | wxPy_BEGIN_ALLOW_THREADS; | |
7833 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
7834 | ||
7835 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7836 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7837 | } Py_INCREF(Py_None); |
70551f47 RD |
7838 | _resultobj = Py_None; |
7839 | return _resultobj; | |
7840 | } | |
7841 | ||
62bd0874 RD |
7842 | static void *SwigwxSpinButtonTowxControl(void *ptr) { |
7843 | wxSpinButton *src; | |
7844 | wxControl *dest; | |
7845 | src = (wxSpinButton *) ptr; | |
7846 | dest = (wxControl *) src; | |
7847 | return (void *) dest; | |
7848 | } | |
7849 | ||
7850 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
7851 | wxSpinButton *src; | |
7852 | wxWindow *dest; | |
7853 | src = (wxSpinButton *) ptr; | |
7854 | dest = (wxWindow *) src; | |
7855 | return (void *) dest; | |
7856 | } | |
7857 | ||
7858 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
7859 | wxSpinButton *src; | |
7860 | wxEvtHandler *dest; | |
7861 | src = (wxSpinButton *) ptr; | |
7862 | dest = (wxEvtHandler *) src; | |
7863 | return (void *) dest; | |
7864 | } | |
7865 | ||
9df61a29 RD |
7866 | static void *SwigwxSpinButtonTowxObject(void *ptr) { |
7867 | wxSpinButton *src; | |
7868 | wxObject *dest; | |
7869 | src = (wxSpinButton *) ptr; | |
7870 | dest = (wxObject *) src; | |
7871 | return (void *) dest; | |
7872 | } | |
7873 | ||
62bd0874 | 7874 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 7875 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
7876 | PyObject * _resultobj; |
7877 | wxSpinButton * _result; | |
7878 | wxWindow * _arg0; | |
2d091820 | 7879 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
7880 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
7881 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
7882 | long _arg4 = (long ) wxSP_HORIZONTAL; |
7883 | char * _arg5 = (char *) "spinButton"; | |
7884 | PyObject * _argo0 = 0; | |
37f6a977 RD |
7885 | wxPoint temp; |
7886 | PyObject * _obj2 = 0; | |
7887 | wxSize temp0; | |
7888 | PyObject * _obj3 = 0; | |
107e4716 | 7889 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
62bd0874 RD |
7890 | char _ptemp[128]; |
7891 | ||
7892 | self = self; | |
37f6a977 | 7893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
62bd0874 | 7894 | return NULL; |
2d091820 RD |
7895 | if (_argo0) { |
7896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
62bd0874 RD |
7898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); |
7899 | return NULL; | |
7900 | } | |
7901 | } | |
37f6a977 RD |
7902 | if (_obj2) |
7903 | { | |
7904 | _arg2 = &temp; | |
7905 | if (! wxPoint_helper(_obj2, &_arg2)) | |
62bd0874 | 7906 | return NULL; |
37f6a977 RD |
7907 | } |
7908 | if (_obj3) | |
7909 | { | |
7910 | _arg3 = &temp0; | |
7911 | if (! wxSize_helper(_obj3, &_arg3)) | |
62bd0874 | 7912 | return NULL; |
37f6a977 | 7913 | } |
ab9bc19b RD |
7914 | { |
7915 | wxPy_BEGIN_ALLOW_THREADS; | |
7916 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
7917 | ||
7918 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7919 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
7920 | } if (_result) { |
7921 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
7922 | _resultobj = Py_BuildValue("s",_ptemp); | |
7923 | } else { | |
7924 | Py_INCREF(Py_None); | |
7925 | _resultobj = Py_None; | |
7926 | } | |
62bd0874 RD |
7927 | return _resultobj; |
7928 | } | |
7929 | ||
aa2a5b86 RD |
7930 | #define new_wxPreSpinButton() (new wxSpinButton()) |
7931 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7932 | PyObject * _resultobj; | |
7933 | wxSpinButton * _result; | |
7934 | char *_kwnames[] = { NULL }; | |
7935 | char _ptemp[128]; | |
7936 | ||
7937 | self = self; | |
7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
7939 | return NULL; | |
7940 | { | |
7941 | wxPy_BEGIN_ALLOW_THREADS; | |
7942 | _result = (wxSpinButton *)new_wxPreSpinButton(); | |
7943 | ||
7944 | wxPy_END_ALLOW_THREADS; | |
7945 | if (PyErr_Occurred()) return NULL; | |
7946 | } if (_result) { | |
7947 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
7948 | _resultobj = Py_BuildValue("s",_ptemp); | |
7949 | } else { | |
7950 | Py_INCREF(Py_None); | |
7951 | _resultobj = Py_None; | |
7952 | } | |
7953 | return _resultobj; | |
7954 | } | |
7955 | ||
7956 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7957 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7958 | PyObject * _resultobj; | |
7959 | bool _result; | |
7960 | wxSpinButton * _arg0; | |
7961 | wxWindow * _arg1; | |
7962 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7963 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7964 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7965 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
7966 | char * _arg6 = (char *) "spinButton"; | |
7967 | PyObject * _argo0 = 0; | |
7968 | PyObject * _argo1 = 0; | |
7969 | wxPoint temp; | |
7970 | PyObject * _obj3 = 0; | |
7971 | wxSize temp0; | |
7972 | PyObject * _obj4 = 0; | |
7973 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
7974 | ||
7975 | self = self; | |
7976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
7977 | return NULL; | |
7978 | if (_argo0) { | |
7979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
7981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
7982 | return NULL; | |
7983 | } | |
7984 | } | |
7985 | if (_argo1) { | |
7986 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7987 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
7989 | return NULL; | |
7990 | } | |
7991 | } | |
7992 | if (_obj3) | |
7993 | { | |
7994 | _arg3 = &temp; | |
7995 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7996 | return NULL; | |
7997 | } | |
7998 | if (_obj4) | |
7999 | { | |
8000 | _arg4 = &temp0; | |
8001 | if (! wxSize_helper(_obj4, &_arg4)) | |
8002 | return NULL; | |
8003 | } | |
8004 | { | |
8005 | wxPy_BEGIN_ALLOW_THREADS; | |
8006 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
8007 | ||
8008 | wxPy_END_ALLOW_THREADS; | |
8009 | if (PyErr_Occurred()) return NULL; | |
8010 | } _resultobj = Py_BuildValue("i",_result); | |
8011 | return _resultobj; | |
8012 | } | |
8013 | ||
62bd0874 | 8014 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) |
107e4716 | 8015 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8016 | PyObject * _resultobj; |
8017 | int _result; | |
8018 | wxSpinButton * _arg0; | |
2d091820 | 8019 | PyObject * _argo0 = 0; |
107e4716 | 8020 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
8021 | |
8022 | self = self; | |
107e4716 | 8023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) |
62bd0874 | 8024 | return NULL; |
2d091820 RD |
8025 | if (_argo0) { |
8026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); |
8029 | return NULL; | |
8030 | } | |
8031 | } | |
ab9bc19b RD |
8032 | { |
8033 | wxPy_BEGIN_ALLOW_THREADS; | |
8034 | _result = (int )wxSpinButton_GetMax(_arg0); | |
8035 | ||
8036 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8037 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8038 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
8039 | return _resultobj; |
8040 | } | |
8041 | ||
8042 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
107e4716 | 8043 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8044 | PyObject * _resultobj; |
8045 | int _result; | |
8046 | wxSpinButton * _arg0; | |
2d091820 | 8047 | PyObject * _argo0 = 0; |
107e4716 | 8048 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
8049 | |
8050 | self = self; | |
107e4716 | 8051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) |
62bd0874 | 8052 | return NULL; |
2d091820 RD |
8053 | if (_argo0) { |
8054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); |
8057 | return NULL; | |
8058 | } | |
8059 | } | |
ab9bc19b RD |
8060 | { |
8061 | wxPy_BEGIN_ALLOW_THREADS; | |
8062 | _result = (int )wxSpinButton_GetMin(_arg0); | |
8063 | ||
8064 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8065 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8066 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
8067 | return _resultobj; |
8068 | } | |
8069 | ||
8070 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 8071 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8072 | PyObject * _resultobj; |
8073 | int _result; | |
8074 | wxSpinButton * _arg0; | |
2d091820 | 8075 | PyObject * _argo0 = 0; |
107e4716 | 8076 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
8077 | |
8078 | self = self; | |
107e4716 | 8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) |
62bd0874 | 8080 | return NULL; |
2d091820 RD |
8081 | if (_argo0) { |
8082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); |
8085 | return NULL; | |
8086 | } | |
8087 | } | |
ab9bc19b RD |
8088 | { |
8089 | wxPy_BEGIN_ALLOW_THREADS; | |
8090 | _result = (int )wxSpinButton_GetValue(_arg0); | |
8091 | ||
8092 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8093 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8094 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
8095 | return _resultobj; |
8096 | } | |
8097 | ||
8098 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 8099 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8100 | PyObject * _resultobj; |
8101 | wxSpinButton * _arg0; | |
8102 | int _arg1; | |
8103 | int _arg2; | |
2d091820 | 8104 | PyObject * _argo0 = 0; |
107e4716 | 8105 | char *_kwnames[] = { "self","min","max", NULL }; |
62bd0874 RD |
8106 | |
8107 | self = self; | |
107e4716 | 8108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
62bd0874 | 8109 | return NULL; |
2d091820 RD |
8110 | if (_argo0) { |
8111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); |
8114 | return NULL; | |
8115 | } | |
8116 | } | |
ab9bc19b RD |
8117 | { |
8118 | wxPy_BEGIN_ALLOW_THREADS; | |
8119 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); | |
8120 | ||
8121 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8122 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8123 | } Py_INCREF(Py_None); |
62bd0874 RD |
8124 | _resultobj = Py_None; |
8125 | return _resultobj; | |
8126 | } | |
8127 | ||
8128 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 8129 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8130 | PyObject * _resultobj; |
8131 | wxSpinButton * _arg0; | |
8132 | int _arg1; | |
2d091820 | 8133 | PyObject * _argo0 = 0; |
107e4716 | 8134 | char *_kwnames[] = { "self","value", NULL }; |
62bd0874 RD |
8135 | |
8136 | self = self; | |
107e4716 | 8137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) |
62bd0874 | 8138 | return NULL; |
2d091820 RD |
8139 | if (_argo0) { |
8140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); |
8143 | return NULL; | |
8144 | } | |
8145 | } | |
ab9bc19b RD |
8146 | { |
8147 | wxPy_BEGIN_ALLOW_THREADS; | |
8148 | wxSpinButton_SetValue(_arg0,_arg1); | |
8149 | ||
8150 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8151 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8152 | } Py_INCREF(Py_None); |
62bd0874 RD |
8153 | _resultobj = Py_None; |
8154 | return _resultobj; | |
8155 | } | |
8156 | ||
70551f47 RD |
8157 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { |
8158 | wxStaticBitmap *src; | |
8159 | wxControl *dest; | |
8160 | src = (wxStaticBitmap *) ptr; | |
8161 | dest = (wxControl *) src; | |
8162 | return (void *) dest; | |
8163 | } | |
8164 | ||
8165 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8166 | wxStaticBitmap *src; | |
8167 | wxWindow *dest; | |
8168 | src = (wxStaticBitmap *) ptr; | |
8169 | dest = (wxWindow *) src; | |
8170 | return (void *) dest; | |
8171 | } | |
8172 | ||
8173 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
8174 | wxStaticBitmap *src; | |
8175 | wxEvtHandler *dest; | |
8176 | src = (wxStaticBitmap *) ptr; | |
8177 | dest = (wxEvtHandler *) src; | |
8178 | return (void *) dest; | |
8179 | } | |
8180 | ||
9df61a29 RD |
8181 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { |
8182 | wxStaticBitmap *src; | |
8183 | wxObject *dest; | |
8184 | src = (wxStaticBitmap *) ptr; | |
8185 | dest = (wxObject *) src; | |
8186 | return (void *) dest; | |
8187 | } | |
8188 | ||
70551f47 | 8189 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 8190 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8191 | PyObject * _resultobj; |
8192 | wxStaticBitmap * _result; | |
8193 | wxWindow * _arg0; | |
8194 | wxWindowID _arg1; | |
8195 | wxBitmap * _arg2; | |
b68dc582 RD |
8196 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8197 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
8198 | long _arg5 = (long ) 0; |
8199 | char * _arg6 = (char *) "staticBitmap"; | |
8200 | PyObject * _argo0 = 0; | |
aa2a5b86 RD |
8201 | PyObject * _argo2 = 0; |
8202 | wxPoint temp; | |
8203 | PyObject * _obj3 = 0; | |
8204 | wxSize temp0; | |
8205 | PyObject * _obj4 = 0; | |
8206 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; | |
8207 | char _ptemp[128]; | |
8208 | ||
8209 | self = self; | |
8210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8211 | return NULL; | |
8212 | if (_argo0) { | |
8213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
8216 | return NULL; | |
8217 | } | |
8218 | } | |
8219 | if (_argo2) { | |
8220 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8221 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
8223 | return NULL; | |
8224 | } | |
8225 | } | |
8226 | if (_obj3) | |
8227 | { | |
8228 | _arg3 = &temp; | |
8229 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8230 | return NULL; | |
8231 | } | |
8232 | if (_obj4) | |
8233 | { | |
8234 | _arg4 = &temp0; | |
8235 | if (! wxSize_helper(_obj4, &_arg4)) | |
8236 | return NULL; | |
8237 | } | |
8238 | { | |
8239 | wxPy_BEGIN_ALLOW_THREADS; | |
8240 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
8241 | ||
8242 | wxPy_END_ALLOW_THREADS; | |
8243 | if (PyErr_Occurred()) return NULL; | |
8244 | } if (_result) { | |
8245 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8246 | _resultobj = Py_BuildValue("s",_ptemp); | |
8247 | } else { | |
8248 | Py_INCREF(Py_None); | |
8249 | _resultobj = Py_None; | |
8250 | } | |
8251 | return _resultobj; | |
8252 | } | |
8253 | ||
8254 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
8255 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8256 | PyObject * _resultobj; | |
8257 | wxStaticBitmap * _result; | |
8258 | char *_kwnames[] = { NULL }; | |
8259 | char _ptemp[128]; | |
8260 | ||
8261 | self = self; | |
8262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
8263 | return NULL; | |
8264 | { | |
8265 | wxPy_BEGIN_ALLOW_THREADS; | |
8266 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); | |
8267 | ||
8268 | wxPy_END_ALLOW_THREADS; | |
8269 | if (PyErr_Occurred()) return NULL; | |
8270 | } if (_result) { | |
8271 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8272 | _resultobj = Py_BuildValue("s",_ptemp); | |
8273 | } else { | |
8274 | Py_INCREF(Py_None); | |
8275 | _resultobj = Py_None; | |
8276 | } | |
8277 | return _resultobj; | |
8278 | } | |
8279 | ||
8280 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8281 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8282 | PyObject * _resultobj; | |
8283 | bool _result; | |
8284 | wxStaticBitmap * _arg0; | |
8285 | wxWindow * _arg1; | |
8286 | wxWindowID _arg2; | |
8287 | wxBitmap * _arg3; | |
8288 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8289 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8290 | long _arg6 = (long ) 0; | |
8291 | char * _arg7 = (char *) "staticBitmap"; | |
8292 | PyObject * _argo0 = 0; | |
8293 | PyObject * _argo1 = 0; | |
8294 | PyObject * _argo3 = 0; | |
37f6a977 | 8295 | wxPoint temp; |
37f6a977 | 8296 | PyObject * _obj4 = 0; |
aa2a5b86 RD |
8297 | wxSize temp0; |
8298 | PyObject * _obj5 = 0; | |
8299 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; | |
70551f47 RD |
8300 | |
8301 | self = self; | |
aa2a5b86 | 8302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7)) |
70551f47 | 8303 | return NULL; |
2d091820 RD |
8304 | if (_argo0) { |
8305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
8306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { |
8307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
70551f47 RD |
8308 | return NULL; |
8309 | } | |
8310 | } | |
aa2a5b86 RD |
8311 | if (_argo1) { |
8312 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8313 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
70551f47 RD |
8315 | return NULL; |
8316 | } | |
8317 | } | |
aa2a5b86 RD |
8318 | if (_argo3) { |
8319 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8320 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
8321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
8322 | return NULL; | |
8323 | } | |
8324 | } | |
8325 | if (_obj4) | |
37f6a977 | 8326 | { |
aa2a5b86 RD |
8327 | _arg4 = &temp; |
8328 | if (! wxPoint_helper(_obj4, &_arg4)) | |
70551f47 | 8329 | return NULL; |
37f6a977 | 8330 | } |
aa2a5b86 | 8331 | if (_obj5) |
37f6a977 | 8332 | { |
aa2a5b86 RD |
8333 | _arg5 = &temp0; |
8334 | if (! wxSize_helper(_obj5, &_arg5)) | |
70551f47 | 8335 | return NULL; |
37f6a977 | 8336 | } |
ab9bc19b RD |
8337 | { |
8338 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 8339 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
ab9bc19b RD |
8340 | |
8341 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8342 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 8343 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8344 | return _resultobj; |
8345 | } | |
8346 | ||
8347 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
107e4716 | 8348 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8349 | PyObject * _resultobj; |
8350 | wxBitmap * _result; | |
8351 | wxStaticBitmap * _arg0; | |
2d091820 | 8352 | PyObject * _argo0 = 0; |
107e4716 | 8353 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8354 | char _ptemp[128]; |
8355 | ||
8356 | self = self; | |
107e4716 | 8357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) |
70551f47 | 8358 | return NULL; |
2d091820 RD |
8359 | if (_argo0) { |
8360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
70551f47 RD |
8362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); |
8363 | return NULL; | |
8364 | } | |
8365 | } | |
ab9bc19b RD |
8366 | { |
8367 | wxPy_BEGIN_ALLOW_THREADS; | |
8368 | const wxBitmap & _result_ref = wxStaticBitmap_GetBitmap(_arg0); | |
70551f47 | 8369 | _result = (wxBitmap *) &_result_ref; |
ab9bc19b RD |
8370 | |
8371 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8372 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8373 | } if (_result) { |
8374 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
8375 | _resultobj = Py_BuildValue("s",_ptemp); | |
8376 | } else { | |
8377 | Py_INCREF(Py_None); | |
8378 | _resultobj = Py_None; | |
8379 | } | |
70551f47 RD |
8380 | return _resultobj; |
8381 | } | |
8382 | ||
8383 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
107e4716 | 8384 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8385 | PyObject * _resultobj; |
8386 | wxStaticBitmap * _arg0; | |
8387 | wxBitmap * _arg1; | |
2d091820 RD |
8388 | PyObject * _argo0 = 0; |
8389 | PyObject * _argo1 = 0; | |
107e4716 | 8390 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
8391 | |
8392 | self = self; | |
107e4716 | 8393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8394 | return NULL; |
2d091820 RD |
8395 | if (_argo0) { |
8396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
70551f47 RD |
8398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); |
8399 | return NULL; | |
8400 | } | |
8401 | } | |
2d091820 RD |
8402 | if (_argo1) { |
8403 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8404 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
8405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); |
8406 | return NULL; | |
8407 | } | |
8408 | } | |
ab9bc19b RD |
8409 | { |
8410 | wxPy_BEGIN_ALLOW_THREADS; | |
8411 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); | |
8412 | ||
8413 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8414 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8415 | } Py_INCREF(Py_None); |
70551f47 RD |
8416 | _resultobj = Py_None; |
8417 | return _resultobj; | |
8418 | } | |
8419 | ||
8bf5d46e | 8420 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
107e4716 | 8421 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
8422 | PyObject * _resultobj; |
8423 | wxStaticBitmap * _arg0; | |
8424 | wxIcon * _arg1; | |
2d091820 RD |
8425 | PyObject * _argo0 = 0; |
8426 | PyObject * _argo1 = 0; | |
107e4716 | 8427 | char *_kwnames[] = { "self","icon", NULL }; |
8bf5d46e RD |
8428 | |
8429 | self = self; | |
107e4716 | 8430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) |
8bf5d46e | 8431 | return NULL; |
2d091820 RD |
8432 | if (_argo0) { |
8433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8bf5d46e RD |
8435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); |
8436 | return NULL; | |
8437 | } | |
8438 | } | |
2d091820 RD |
8439 | if (_argo1) { |
8440 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8441 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8bf5d46e RD |
8442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); |
8443 | return NULL; | |
8444 | } | |
8445 | } | |
8446 | { | |
8447 | wxPy_BEGIN_ALLOW_THREADS; | |
8448 | wxStaticBitmap_SetIcon(_arg0,*_arg1); | |
8449 | ||
8450 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8451 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8452 | } Py_INCREF(Py_None); |
8453 | _resultobj = Py_None; | |
8454 | return _resultobj; | |
8455 | } | |
8456 | ||
70551f47 RD |
8457 | static void *SwigwxRadioBoxTowxControl(void *ptr) { |
8458 | wxRadioBox *src; | |
8459 | wxControl *dest; | |
8460 | src = (wxRadioBox *) ptr; | |
8461 | dest = (wxControl *) src; | |
8462 | return (void *) dest; | |
8463 | } | |
8464 | ||
8465 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
8466 | wxRadioBox *src; | |
8467 | wxWindow *dest; | |
8468 | src = (wxRadioBox *) ptr; | |
8469 | dest = (wxWindow *) src; | |
8470 | return (void *) dest; | |
8471 | } | |
8472 | ||
8473 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
8474 | wxRadioBox *src; | |
8475 | wxEvtHandler *dest; | |
8476 | src = (wxRadioBox *) ptr; | |
8477 | dest = (wxEvtHandler *) src; | |
8478 | return (void *) dest; | |
8479 | } | |
8480 | ||
9df61a29 RD |
8481 | static void *SwigwxRadioBoxTowxObject(void *ptr) { |
8482 | wxRadioBox *src; | |
8483 | wxObject *dest; | |
8484 | src = (wxRadioBox *) ptr; | |
8485 | dest = (wxObject *) src; | |
8486 | return (void *) dest; | |
8487 | } | |
8488 | ||
70551f47 | 8489 | #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)) |
107e4716 | 8490 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8491 | PyObject * _resultobj; |
8492 | wxRadioBox * _result; | |
8493 | wxWindow * _arg0; | |
8494 | wxWindowID _arg1; | |
8495 | wxString * _arg2; | |
b68dc582 RD |
8496 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8497 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
8498 | int _arg5 = (int ) 0; |
8499 | wxString * _arg6 = (wxString *) NULL; | |
8500 | int _arg7 = (int ) 0; | |
8501 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
b68dc582 | 8502 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
8503 | char * _arg10 = (char *) "radioBox"; |
8504 | PyObject * _argo0 = 0; | |
70551f47 | 8505 | PyObject * _obj2 = 0; |
37f6a977 RD |
8506 | wxPoint temp; |
8507 | PyObject * _obj3 = 0; | |
8508 | wxSize temp0; | |
8509 | PyObject * _obj4 = 0; | |
70551f47 | 8510 | PyObject * _obj6 = 0; |
2d091820 | 8511 | PyObject * _argo9 = 0; |
e02c03a4 | 8512 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
70551f47 RD |
8513 | char _ptemp[128]; |
8514 | ||
8515 | self = self; | |
37f6a977 | 8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10)) |
70551f47 | 8517 | return NULL; |
2d091820 RD |
8518 | if (_argo0) { |
8519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
8521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); |
8522 | return NULL; | |
8523 | } | |
8524 | } | |
8525 | { | |
2cd2fac8 RD |
8526 | #if PYTHON_API_VERSION >= 1009 |
8527 | char* tmpPtr; int tmpSize; | |
8528 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8529 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8530 | return NULL; |
8531 | } | |
8532 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8533 | return NULL; | |
8534 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8535 | #else | |
70551f47 RD |
8536 | if (!PyString_Check(_obj2)) { |
8537 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8538 | return NULL; | |
8539 | } | |
2cd2fac8 RD |
8540 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8541 | #endif | |
70551f47 | 8542 | } |
37f6a977 RD |
8543 | if (_obj3) |
8544 | { | |
8545 | _arg3 = &temp; | |
8546 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 8547 | return NULL; |
37f6a977 RD |
8548 | } |
8549 | if (_obj4) | |
8550 | { | |
8551 | _arg4 = &temp0; | |
8552 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 8553 | return NULL; |
37f6a977 | 8554 | } |
70551f47 RD |
8555 | if (_obj6) |
8556 | { | |
8557 | _arg6 = wxString_LIST_helper(_obj6); | |
8558 | if (_arg6 == NULL) { | |
8559 | return NULL; | |
8560 | } | |
8561 | } | |
2d091820 RD |
8562 | if (_argo9) { |
8563 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
8564 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
70551f47 RD |
8565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); |
8566 | return NULL; | |
8567 | } | |
8568 | } | |
8569 | { | |
ab9bc19b RD |
8570 | if (_obj6) { |
8571 | _arg5 = PyList_Size(_obj6); | |
8572 | } | |
8573 | else { | |
8574 | _arg5 = 0; | |
8575 | } | |
70551f47 | 8576 | } |
ab9bc19b RD |
8577 | { |
8578 | wxPy_BEGIN_ALLOW_THREADS; | |
8579 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); | |
8580 | ||
8581 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8582 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8583 | } if (_result) { |
8584 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8585 | _resultobj = Py_BuildValue("s",_ptemp); | |
8586 | } else { | |
8587 | Py_INCREF(Py_None); | |
8588 | _resultobj = Py_None; | |
8589 | } | |
70551f47 RD |
8590 | { |
8591 | if (_obj2) | |
8592 | delete _arg2; | |
8593 | } | |
8594 | { | |
8595 | delete [] _arg6; | |
8596 | } | |
8597 | return _resultobj; | |
8598 | } | |
8599 | ||
aa2a5b86 RD |
8600 | #define new_wxPreRadioBox() (new wxRadioBox()) |
8601 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8602 | PyObject * _resultobj; | |
8603 | wxRadioBox * _result; | |
8604 | char *_kwnames[] = { NULL }; | |
8605 | char _ptemp[128]; | |
8606 | ||
8607 | self = self; | |
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
8609 | return NULL; | |
8610 | { | |
8611 | wxPy_BEGIN_ALLOW_THREADS; | |
8612 | _result = (wxRadioBox *)new_wxPreRadioBox(); | |
8613 | ||
8614 | wxPy_END_ALLOW_THREADS; | |
8615 | if (PyErr_Occurred()) return NULL; | |
8616 | } if (_result) { | |
8617 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8618 | _resultobj = Py_BuildValue("s",_ptemp); | |
8619 | } else { | |
8620 | Py_INCREF(Py_None); | |
8621 | _resultobj = Py_None; | |
8622 | } | |
8623 | return _resultobj; | |
8624 | } | |
8625 | ||
8626 | #define wxRadioBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10)) | |
8627 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8628 | PyObject * _resultobj; | |
8629 | bool _result; | |
8630 | wxRadioBox * _arg0; | |
8631 | wxWindow * _arg1; | |
8632 | wxWindowID _arg2; | |
8633 | wxString * _arg3; | |
8634 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8635 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8636 | int _arg6 = (int ) 0; | |
8637 | wxString * _arg7 = (wxString *) NULL; | |
8638 | int _arg8 = (int ) 0; | |
8639 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
8640 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
8641 | char * _arg11 = (char *) "radioBox"; | |
8642 | PyObject * _argo0 = 0; | |
8643 | PyObject * _argo1 = 0; | |
8644 | PyObject * _obj3 = 0; | |
8645 | wxPoint temp; | |
8646 | PyObject * _obj4 = 0; | |
8647 | wxSize temp0; | |
8648 | PyObject * _obj5 = 0; | |
8649 | PyObject * _obj7 = 0; | |
8650 | PyObject * _argo10 = 0; | |
8651 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
8652 | ||
8653 | self = self; | |
8654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOs:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_arg11)) | |
8655 | return NULL; | |
8656 | if (_argo0) { | |
8657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
8660 | return NULL; | |
8661 | } | |
8662 | } | |
8663 | if (_argo1) { | |
8664 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8665 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
8667 | return NULL; | |
8668 | } | |
8669 | } | |
8670 | { | |
8671 | #if PYTHON_API_VERSION >= 1009 | |
8672 | char* tmpPtr; int tmpSize; | |
8673 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8674 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8675 | return NULL; | |
8676 | } | |
8677 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8678 | return NULL; | |
8679 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8680 | #else | |
8681 | if (!PyString_Check(_obj3)) { | |
8682 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8683 | return NULL; | |
8684 | } | |
8685 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8686 | #endif | |
8687 | } | |
8688 | if (_obj4) | |
8689 | { | |
8690 | _arg4 = &temp; | |
8691 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8692 | return NULL; | |
8693 | } | |
8694 | if (_obj5) | |
8695 | { | |
8696 | _arg5 = &temp0; | |
8697 | if (! wxSize_helper(_obj5, &_arg5)) | |
8698 | return NULL; | |
8699 | } | |
8700 | if (_obj7) | |
8701 | { | |
8702 | _arg7 = wxString_LIST_helper(_obj7); | |
8703 | if (_arg7 == NULL) { | |
8704 | return NULL; | |
8705 | } | |
8706 | } | |
8707 | if (_argo10) { | |
8708 | if (_argo10 == Py_None) { _arg10 = NULL; } | |
8709 | else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
8710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
8711 | return NULL; | |
8712 | } | |
8713 | } | |
8714 | { | |
8715 | if (_obj7) { | |
8716 | _arg6 = PyList_Size(_obj7); | |
8717 | } | |
8718 | else { | |
8719 | _arg6 = 0; | |
8720 | } | |
8721 | } | |
8722 | { | |
8723 | wxPy_BEGIN_ALLOW_THREADS; | |
8724 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,_arg11); | |
8725 | ||
8726 | wxPy_END_ALLOW_THREADS; | |
8727 | if (PyErr_Occurred()) return NULL; | |
8728 | } _resultobj = Py_BuildValue("i",_result); | |
8729 | { | |
8730 | if (_obj3) | |
8731 | delete _arg3; | |
8732 | } | |
8733 | { | |
8734 | delete [] _arg7; | |
8735 | } | |
8736 | return _resultobj; | |
8737 | } | |
8738 | ||
c3c1cebe | 8739 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
107e4716 | 8740 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8741 | PyObject * _resultobj; |
8742 | wxRadioBox * _arg0; | |
8743 | bool _arg1; | |
2d091820 | 8744 | PyObject * _argo0 = 0; |
70551f47 | 8745 | int tempbool1; |
107e4716 | 8746 | char *_kwnames[] = { "self","enable", NULL }; |
70551f47 RD |
8747 | |
8748 | self = self; | |
107e4716 | 8749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 8750 | return NULL; |
2d091820 RD |
8751 | if (_argo0) { |
8752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 8754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); |
70551f47 RD |
8755 | return NULL; |
8756 | } | |
8757 | } | |
8758 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
8759 | { |
8760 | wxPy_BEGIN_ALLOW_THREADS; | |
8761 | wxRadioBox_Enable(_arg0,_arg1); | |
8762 | ||
8763 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8764 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8765 | } Py_INCREF(Py_None); |
70551f47 RD |
8766 | _resultobj = Py_None; |
8767 | return _resultobj; | |
8768 | } | |
8769 | ||
c3c1cebe | 8770 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
107e4716 | 8771 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8772 | PyObject * _resultobj; |
8773 | wxRadioBox * _arg0; | |
8774 | int _arg1; | |
8775 | bool _arg2; | |
2d091820 | 8776 | PyObject * _argo0 = 0; |
70551f47 | 8777 | int tempbool2; |
107e4716 | 8778 | char *_kwnames[] = { "self","n","enable", NULL }; |
70551f47 RD |
8779 | |
8780 | self = self; | |
107e4716 | 8781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 8782 | return NULL; |
2d091820 RD |
8783 | if (_argo0) { |
8784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 8786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); |
70551f47 RD |
8787 | return NULL; |
8788 | } | |
8789 | } | |
8790 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
8791 | { |
8792 | wxPy_BEGIN_ALLOW_THREADS; | |
8793 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); | |
8794 | ||
8795 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8796 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8797 | } Py_INCREF(Py_None); |
70551f47 RD |
8798 | _resultobj = Py_None; |
8799 | return _resultobj; | |
8800 | } | |
8801 | ||
8802 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
107e4716 | 8803 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8804 | PyObject * _resultobj; |
8805 | int _result; | |
8806 | wxRadioBox * _arg0; | |
8807 | wxString * _arg1; | |
2d091820 | 8808 | PyObject * _argo0 = 0; |
70551f47 | 8809 | PyObject * _obj1 = 0; |
107e4716 | 8810 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
8811 | |
8812 | self = self; | |
107e4716 | 8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) |
70551f47 | 8814 | return NULL; |
2d091820 RD |
8815 | if (_argo0) { |
8816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
8818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); |
8819 | return NULL; | |
8820 | } | |
8821 | } | |
8822 | { | |
2cd2fac8 RD |
8823 | #if PYTHON_API_VERSION >= 1009 |
8824 | char* tmpPtr; int tmpSize; | |
8825 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 8826 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8827 | return NULL; |
8828 | } | |
8829 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8830 | return NULL; | |
8831 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8832 | #else | |
70551f47 RD |
8833 | if (!PyString_Check(_obj1)) { |
8834 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8835 | return NULL; | |
8836 | } | |
2cd2fac8 RD |
8837 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8838 | #endif | |
70551f47 | 8839 | } |
ab9bc19b RD |
8840 | { |
8841 | wxPy_BEGIN_ALLOW_THREADS; | |
8842 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); | |
8843 | ||
8844 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8845 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8846 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8847 | { |
8848 | if (_obj1) | |
8849 | delete _arg1; | |
8850 | } | |
8851 | return _resultobj; | |
8852 | } | |
8853 | ||
2c8a649d RD |
8854 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) |
8855 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
8856 | PyObject * _resultobj; |
8857 | wxString * _result; | |
8858 | wxRadioBox * _arg0; | |
8859 | int _arg1; | |
2d091820 | 8860 | PyObject * _argo0 = 0; |
107e4716 | 8861 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
8862 | |
8863 | self = self; | |
2c8a649d | 8864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8865 | return NULL; |
2d091820 RD |
8866 | if (_argo0) { |
8867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 8869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); |
70551f47 RD |
8870 | return NULL; |
8871 | } | |
8872 | } | |
70551f47 | 8873 | { |
ab9bc19b | 8874 | wxPy_BEGIN_ALLOW_THREADS; |
2c8a649d | 8875 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); |
ab9bc19b RD |
8876 | |
8877 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8878 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8879 | }{ |
e02c03a4 | 8880 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
8881 | } |
8882 | { | |
8883 | delete _result; | |
8884 | } | |
8885 | return _resultobj; | |
8886 | } | |
8887 | ||
2c8a649d RD |
8888 | #define wxRadioBox_GetItemLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8889 | static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 8890 | PyObject * _resultobj; |
2c8a649d | 8891 | wxString * _result; |
70551f47 | 8892 | wxRadioBox * _arg0; |
2c8a649d | 8893 | int _arg1; |
2d091820 | 8894 | PyObject * _argo0 = 0; |
2c8a649d | 8895 | char *_kwnames[] = { "self","item", NULL }; |
70551f47 RD |
8896 | |
8897 | self = self; | |
2c8a649d | 8898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetItemLabel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8899 | return NULL; |
2d091820 RD |
8900 | if (_argo0) { |
8901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 8903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetItemLabel. Expected _wxRadioBox_p."); |
70551f47 RD |
8904 | return NULL; |
8905 | } | |
8906 | } | |
ab9bc19b RD |
8907 | { |
8908 | wxPy_BEGIN_ALLOW_THREADS; | |
2c8a649d | 8909 | _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1)); |
ab9bc19b RD |
8910 | |
8911 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8912 | if (PyErr_Occurred()) return NULL; |
2c8a649d RD |
8913 | }{ |
8914 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8915 | } | |
8916 | { | |
8917 | delete _result; | |
8918 | } | |
70551f47 RD |
8919 | return _resultobj; |
8920 | } | |
8921 | ||
2c8a649d RD |
8922 | #define wxRadioBox_SetItemLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8923 | static PyObject *_wrap_wxRadioBox_SetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 8924 | PyObject * _resultobj; |
70551f47 RD |
8925 | wxRadioBox * _arg0; |
8926 | int _arg1; | |
2c8a649d | 8927 | wxString * _arg2; |
2d091820 | 8928 | PyObject * _argo0 = 0; |
2c8a649d RD |
8929 | PyObject * _obj2 = 0; |
8930 | char *_kwnames[] = { "self","item","label", NULL }; | |
70551f47 RD |
8931 | |
8932 | self = self; | |
2c8a649d | 8933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetItemLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 8934 | return NULL; |
2d091820 RD |
8935 | if (_argo0) { |
8936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 8938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetItemLabel. Expected _wxRadioBox_p."); |
70551f47 RD |
8939 | return NULL; |
8940 | } | |
8941 | } | |
2c8a649d RD |
8942 | { |
8943 | #if PYTHON_API_VERSION >= 1009 | |
8944 | char* tmpPtr; int tmpSize; | |
8945 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8946 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8947 | return NULL; | |
8948 | } | |
8949 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8950 | return NULL; | |
8951 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8952 | #else | |
8953 | if (!PyString_Check(_obj2)) { | |
8954 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8955 | return NULL; | |
8956 | } | |
8957 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8958 | #endif | |
8959 | } | |
70551f47 | 8960 | { |
ab9bc19b | 8961 | wxPy_BEGIN_ALLOW_THREADS; |
2c8a649d | 8962 | wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2); |
ab9bc19b RD |
8963 | |
8964 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8965 | if (PyErr_Occurred()) return NULL; |
2c8a649d RD |
8966 | } Py_INCREF(Py_None); |
8967 | _resultobj = Py_None; | |
70551f47 | 8968 | { |
2c8a649d RD |
8969 | if (_obj2) |
8970 | delete _arg2; | |
70551f47 RD |
8971 | } |
8972 | return _resultobj; | |
8973 | } | |
8974 | ||
2c8a649d RD |
8975 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) |
8976 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 8977 | PyObject * _resultobj; |
2c8a649d | 8978 | int _result; |
70551f47 | 8979 | wxRadioBox * _arg0; |
2d091820 | 8980 | PyObject * _argo0 = 0; |
107e4716 | 8981 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8982 | |
8983 | self = self; | |
2c8a649d | 8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) |
70551f47 | 8985 | return NULL; |
2d091820 RD |
8986 | if (_argo0) { |
8987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 8989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); |
70551f47 RD |
8990 | return NULL; |
8991 | } | |
8992 | } | |
70551f47 | 8993 | { |
ab9bc19b | 8994 | wxPy_BEGIN_ALLOW_THREADS; |
2c8a649d | 8995 | _result = (int )wxRadioBox_GetSelection(_arg0); |
ab9bc19b RD |
8996 | |
8997 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8998 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 8999 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9000 | return _resultobj; |
9001 | } | |
9002 | ||
2c8a649d RD |
9003 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
9004 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9005 | PyObject * _resultobj; |
2c8a649d | 9006 | wxString * _result; |
70551f47 | 9007 | wxRadioBox * _arg0; |
2d091820 | 9008 | PyObject * _argo0 = 0; |
107e4716 | 9009 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9010 | |
9011 | self = self; | |
2c8a649d | 9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) |
70551f47 | 9013 | return NULL; |
2d091820 RD |
9014 | if (_argo0) { |
9015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); |
70551f47 RD |
9018 | return NULL; |
9019 | } | |
9020 | } | |
ab9bc19b RD |
9021 | { |
9022 | wxPy_BEGIN_ALLOW_THREADS; | |
2c8a649d | 9023 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); |
ab9bc19b RD |
9024 | |
9025 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9026 | if (PyErr_Occurred()) return NULL; |
2c8a649d RD |
9027 | }{ |
9028 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9029 | } | |
9030 | { | |
9031 | delete _result; | |
9032 | } | |
70551f47 RD |
9033 | return _resultobj; |
9034 | } | |
9035 | ||
2c8a649d RD |
9036 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) |
9037 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9038 | PyObject * _resultobj; |
2c8a649d | 9039 | int _result; |
70551f47 | 9040 | wxRadioBox * _arg0; |
2d091820 | 9041 | PyObject * _argo0 = 0; |
2c8a649d | 9042 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9043 | |
9044 | self = self; | |
2c8a649d | 9045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) |
70551f47 | 9046 | return NULL; |
2d091820 RD |
9047 | if (_argo0) { |
9048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); |
70551f47 RD |
9051 | return NULL; |
9052 | } | |
9053 | } | |
ab9bc19b RD |
9054 | { |
9055 | wxPy_BEGIN_ALLOW_THREADS; | |
2c8a649d | 9056 | _result = (int )wxRadioBox_GetCount(_arg0); |
ab9bc19b RD |
9057 | |
9058 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9059 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 9060 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9061 | return _resultobj; |
9062 | } | |
9063 | ||
9064 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 9065 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9066 | PyObject * _resultobj; |
9067 | wxRadioBox * _arg0; | |
9068 | int _arg1; | |
2d091820 | 9069 | PyObject * _argo0 = 0; |
107e4716 | 9070 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
9071 | |
9072 | self = self; | |
107e4716 | 9073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 9074 | return NULL; |
2d091820 RD |
9075 | if (_argo0) { |
9076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); |
9079 | return NULL; | |
9080 | } | |
9081 | } | |
ab9bc19b RD |
9082 | { |
9083 | wxPy_BEGIN_ALLOW_THREADS; | |
9084 | wxRadioBox_SetSelection(_arg0,_arg1); | |
9085 | ||
9086 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9087 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9088 | } Py_INCREF(Py_None); |
70551f47 RD |
9089 | _resultobj = Py_None; |
9090 | return _resultobj; | |
9091 | } | |
9092 | ||
9093 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
107e4716 | 9094 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9095 | PyObject * _resultobj; |
9096 | wxRadioBox * _arg0; | |
9097 | wxString * _arg1; | |
2d091820 | 9098 | PyObject * _argo0 = 0; |
70551f47 | 9099 | PyObject * _obj1 = 0; |
107e4716 | 9100 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
9101 | |
9102 | self = self; | |
107e4716 | 9103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
70551f47 | 9104 | return NULL; |
2d091820 RD |
9105 | if (_argo0) { |
9106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); |
9109 | return NULL; | |
9110 | } | |
9111 | } | |
9112 | { | |
2cd2fac8 RD |
9113 | #if PYTHON_API_VERSION >= 1009 |
9114 | char* tmpPtr; int tmpSize; | |
9115 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 9116 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9117 | return NULL; |
9118 | } | |
9119 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9120 | return NULL; | |
9121 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9122 | #else | |
70551f47 RD |
9123 | if (!PyString_Check(_obj1)) { |
9124 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9125 | return NULL; | |
9126 | } | |
2cd2fac8 RD |
9127 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9128 | #endif | |
70551f47 | 9129 | } |
ab9bc19b RD |
9130 | { |
9131 | wxPy_BEGIN_ALLOW_THREADS; | |
9132 | wxRadioBox_SetStringSelection(_arg0,*_arg1); | |
9133 | ||
9134 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9135 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9136 | } Py_INCREF(Py_None); |
70551f47 RD |
9137 | _resultobj = Py_None; |
9138 | { | |
9139 | if (_obj1) | |
9140 | delete _arg1; | |
9141 | } | |
9142 | return _resultobj; | |
9143 | } | |
9144 | ||
9145 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
107e4716 | 9146 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9147 | PyObject * _resultobj; |
9148 | wxRadioBox * _arg0; | |
9149 | bool _arg1; | |
2d091820 | 9150 | PyObject * _argo0 = 0; |
70551f47 | 9151 | int tempbool1; |
107e4716 | 9152 | char *_kwnames[] = { "self","show", NULL }; |
70551f47 RD |
9153 | |
9154 | self = self; | |
107e4716 | 9155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 9156 | return NULL; |
2d091820 RD |
9157 | if (_argo0) { |
9158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); |
9161 | return NULL; | |
9162 | } | |
9163 | } | |
9164 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
9165 | { |
9166 | wxPy_BEGIN_ALLOW_THREADS; | |
9167 | wxRadioBox_Show(_arg0,_arg1); | |
9168 | ||
9169 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9170 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9171 | } Py_INCREF(Py_None); |
70551f47 RD |
9172 | _resultobj = Py_None; |
9173 | return _resultobj; | |
9174 | } | |
9175 | ||
9176 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
107e4716 | 9177 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9178 | PyObject * _resultobj; |
9179 | wxRadioBox * _arg0; | |
9180 | int _arg1; | |
9181 | bool _arg2; | |
2d091820 | 9182 | PyObject * _argo0 = 0; |
70551f47 | 9183 | int tempbool2; |
107e4716 | 9184 | char *_kwnames[] = { "self","item","show", NULL }; |
70551f47 RD |
9185 | |
9186 | self = self; | |
107e4716 | 9187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 9188 | return NULL; |
2d091820 RD |
9189 | if (_argo0) { |
9190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); |
9193 | return NULL; | |
9194 | } | |
9195 | } | |
9196 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
9197 | { |
9198 | wxPy_BEGIN_ALLOW_THREADS; | |
9199 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); | |
9200 | ||
9201 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9202 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9203 | } Py_INCREF(Py_None); |
70551f47 RD |
9204 | _resultobj = Py_None; |
9205 | return _resultobj; | |
9206 | } | |
9207 | ||
9208 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
9209 | wxRadioButton *src; | |
9210 | wxControl *dest; | |
9211 | src = (wxRadioButton *) ptr; | |
9212 | dest = (wxControl *) src; | |
9213 | return (void *) dest; | |
9214 | } | |
9215 | ||
9216 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
9217 | wxRadioButton *src; | |
9218 | wxWindow *dest; | |
9219 | src = (wxRadioButton *) ptr; | |
9220 | dest = (wxWindow *) src; | |
9221 | return (void *) dest; | |
9222 | } | |
9223 | ||
9224 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
9225 | wxRadioButton *src; | |
9226 | wxEvtHandler *dest; | |
9227 | src = (wxRadioButton *) ptr; | |
9228 | dest = (wxEvtHandler *) src; | |
9229 | return (void *) dest; | |
9230 | } | |
9231 | ||
9df61a29 RD |
9232 | static void *SwigwxRadioButtonTowxObject(void *ptr) { |
9233 | wxRadioButton *src; | |
9234 | wxObject *dest; | |
9235 | src = (wxRadioButton *) ptr; | |
9236 | dest = (wxObject *) src; | |
9237 | return (void *) dest; | |
9238 | } | |
9239 | ||
70551f47 | 9240 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 9241 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9242 | PyObject * _resultobj; |
9243 | wxRadioButton * _result; | |
9244 | wxWindow * _arg0; | |
9245 | wxWindowID _arg1; | |
9246 | wxString * _arg2; | |
b68dc582 RD |
9247 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9248 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 9249 | long _arg5 = (long ) 0; |
b68dc582 | 9250 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
9251 | char * _arg7 = (char *) "radioButton"; |
9252 | PyObject * _argo0 = 0; | |
70551f47 | 9253 | PyObject * _obj2 = 0; |
37f6a977 RD |
9254 | wxPoint temp; |
9255 | PyObject * _obj3 = 0; | |
9256 | wxSize temp0; | |
9257 | PyObject * _obj4 = 0; | |
2d091820 | 9258 | PyObject * _argo6 = 0; |
107e4716 | 9259 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
9260 | char _ptemp[128]; |
9261 | ||
9262 | self = self; | |
37f6a977 | 9263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 9264 | return NULL; |
2d091820 RD |
9265 | if (_argo0) { |
9266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); |
9269 | return NULL; | |
9270 | } | |
9271 | } | |
9272 | { | |
2cd2fac8 RD |
9273 | #if PYTHON_API_VERSION >= 1009 |
9274 | char* tmpPtr; int tmpSize; | |
9275 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 9276 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
9277 | return NULL; |
9278 | } | |
9279 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9280 | return NULL; | |
9281 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9282 | #else | |
70551f47 RD |
9283 | if (!PyString_Check(_obj2)) { |
9284 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9285 | return NULL; | |
9286 | } | |
2cd2fac8 RD |
9287 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9288 | #endif | |
70551f47 | 9289 | } |
37f6a977 RD |
9290 | if (_obj3) |
9291 | { | |
aa2a5b86 RD |
9292 | _arg3 = &temp; |
9293 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9294 | return NULL; | |
9295 | } | |
9296 | if (_obj4) | |
9297 | { | |
9298 | _arg4 = &temp0; | |
9299 | if (! wxSize_helper(_obj4, &_arg4)) | |
9300 | return NULL; | |
9301 | } | |
9302 | if (_argo6) { | |
9303 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
9304 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
9305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
9306 | return NULL; | |
9307 | } | |
9308 | } | |
9309 | { | |
9310 | wxPy_BEGIN_ALLOW_THREADS; | |
9311 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
9312 | ||
9313 | wxPy_END_ALLOW_THREADS; | |
9314 | if (PyErr_Occurred()) return NULL; | |
9315 | } if (_result) { | |
9316 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9317 | _resultobj = Py_BuildValue("s",_ptemp); | |
9318 | } else { | |
9319 | Py_INCREF(Py_None); | |
9320 | _resultobj = Py_None; | |
9321 | } | |
9322 | { | |
9323 | if (_obj2) | |
9324 | delete _arg2; | |
9325 | } | |
9326 | return _resultobj; | |
9327 | } | |
9328 | ||
9329 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
9330 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9331 | PyObject * _resultobj; | |
9332 | wxRadioButton * _result; | |
9333 | char *_kwnames[] = { NULL }; | |
9334 | char _ptemp[128]; | |
9335 | ||
9336 | self = self; | |
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
9338 | return NULL; | |
9339 | { | |
9340 | wxPy_BEGIN_ALLOW_THREADS; | |
9341 | _result = (wxRadioButton *)new_wxPreRadioButton(); | |
9342 | ||
9343 | wxPy_END_ALLOW_THREADS; | |
9344 | if (PyErr_Occurred()) return NULL; | |
9345 | } if (_result) { | |
9346 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9347 | _resultobj = Py_BuildValue("s",_ptemp); | |
9348 | } else { | |
9349 | Py_INCREF(Py_None); | |
9350 | _resultobj = Py_None; | |
9351 | } | |
9352 | return _resultobj; | |
9353 | } | |
9354 | ||
9355 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9356 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9357 | PyObject * _resultobj; | |
9358 | bool _result; | |
9359 | wxRadioButton * _arg0; | |
9360 | wxWindow * _arg1; | |
9361 | wxWindowID _arg2; | |
9362 | wxString * _arg3; | |
9363 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9364 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9365 | long _arg6 = (long ) 0; | |
9366 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9367 | char * _arg8 = (char *) "radioButton"; | |
9368 | PyObject * _argo0 = 0; | |
9369 | PyObject * _argo1 = 0; | |
9370 | PyObject * _obj3 = 0; | |
9371 | wxPoint temp; | |
9372 | PyObject * _obj4 = 0; | |
9373 | wxSize temp0; | |
9374 | PyObject * _obj5 = 0; | |
9375 | PyObject * _argo7 = 0; | |
9376 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
9377 | ||
9378 | self = self; | |
9379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
9380 | return NULL; | |
9381 | if (_argo0) { | |
9382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
9385 | return NULL; | |
9386 | } | |
9387 | } | |
9388 | if (_argo1) { | |
9389 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9390 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
9392 | return NULL; | |
9393 | } | |
9394 | } | |
9395 | { | |
9396 | #if PYTHON_API_VERSION >= 1009 | |
9397 | char* tmpPtr; int tmpSize; | |
9398 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
9399 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9400 | return NULL; | |
9401 | } | |
9402 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9403 | return NULL; | |
9404 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9405 | #else | |
9406 | if (!PyString_Check(_obj3)) { | |
9407 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9408 | return NULL; | |
9409 | } | |
9410 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
9411 | #endif | |
9412 | } | |
9413 | if (_obj4) | |
9414 | { | |
9415 | _arg4 = &temp; | |
9416 | if (! wxPoint_helper(_obj4, &_arg4)) | |
70551f47 | 9417 | return NULL; |
37f6a977 | 9418 | } |
aa2a5b86 | 9419 | if (_obj5) |
37f6a977 | 9420 | { |
aa2a5b86 RD |
9421 | _arg5 = &temp0; |
9422 | if (! wxSize_helper(_obj5, &_arg5)) | |
70551f47 | 9423 | return NULL; |
37f6a977 | 9424 | } |
aa2a5b86 RD |
9425 | if (_argo7) { |
9426 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
9427 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
70551f47 RD |
9429 | return NULL; |
9430 | } | |
9431 | } | |
ab9bc19b RD |
9432 | { |
9433 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 9434 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
ab9bc19b RD |
9435 | |
9436 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9437 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 9438 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 9439 | { |
aa2a5b86 RD |
9440 | if (_obj3) |
9441 | delete _arg3; | |
70551f47 RD |
9442 | } |
9443 | return _resultobj; | |
9444 | } | |
9445 | ||
9446 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 9447 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9448 | PyObject * _resultobj; |
9449 | bool _result; | |
9450 | wxRadioButton * _arg0; | |
2d091820 | 9451 | PyObject * _argo0 = 0; |
107e4716 | 9452 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9453 | |
9454 | self = self; | |
107e4716 | 9455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) |
70551f47 | 9456 | return NULL; |
2d091820 RD |
9457 | if (_argo0) { |
9458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
70551f47 RD |
9460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); |
9461 | return NULL; | |
9462 | } | |
9463 | } | |
ab9bc19b RD |
9464 | { |
9465 | wxPy_BEGIN_ALLOW_THREADS; | |
9466 | _result = (bool )wxRadioButton_GetValue(_arg0); | |
9467 | ||
9468 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9469 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9470 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9471 | return _resultobj; |
9472 | } | |
9473 | ||
9474 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 9475 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9476 | PyObject * _resultobj; |
9477 | wxRadioButton * _arg0; | |
9478 | bool _arg1; | |
2d091820 | 9479 | PyObject * _argo0 = 0; |
70551f47 | 9480 | int tempbool1; |
107e4716 | 9481 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
9482 | |
9483 | self = self; | |
107e4716 | 9484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 9485 | return NULL; |
2d091820 RD |
9486 | if (_argo0) { |
9487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
70551f47 RD |
9489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); |
9490 | return NULL; | |
9491 | } | |
9492 | } | |
9493 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
9494 | { |
9495 | wxPy_BEGIN_ALLOW_THREADS; | |
9496 | wxRadioButton_SetValue(_arg0,_arg1); | |
9497 | ||
9498 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9499 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9500 | } Py_INCREF(Py_None); |
70551f47 RD |
9501 | _resultobj = Py_None; |
9502 | return _resultobj; | |
9503 | } | |
9504 | ||
9505 | static void *SwigwxSliderTowxControl(void *ptr) { | |
9506 | wxSlider *src; | |
9507 | wxControl *dest; | |
9508 | src = (wxSlider *) ptr; | |
9509 | dest = (wxControl *) src; | |
9510 | return (void *) dest; | |
9511 | } | |
9512 | ||
9513 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
9514 | wxSlider *src; | |
9515 | wxWindow *dest; | |
9516 | src = (wxSlider *) ptr; | |
9517 | dest = (wxWindow *) src; | |
9518 | return (void *) dest; | |
9519 | } | |
9520 | ||
9521 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
9522 | wxSlider *src; | |
9523 | wxEvtHandler *dest; | |
9524 | src = (wxSlider *) ptr; | |
9525 | dest = (wxEvtHandler *) src; | |
9526 | return (void *) dest; | |
9527 | } | |
9528 | ||
9df61a29 RD |
9529 | static void *SwigwxSliderTowxObject(void *ptr) { |
9530 | wxSlider *src; | |
9531 | wxObject *dest; | |
9532 | src = (wxSlider *) ptr; | |
9533 | dest = (wxObject *) src; | |
9534 | return (void *) dest; | |
9535 | } | |
9536 | ||
70551f47 | 9537 | #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)) |
107e4716 | 9538 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9539 | PyObject * _resultobj; |
9540 | wxSlider * _result; | |
9541 | wxWindow * _arg0; | |
9542 | wxWindowID _arg1; | |
9543 | int _arg2; | |
9544 | int _arg3; | |
9545 | int _arg4; | |
b68dc582 RD |
9546 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
9547 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
2d091820 | 9548 | long _arg7 = (long ) wxSL_HORIZONTAL; |
b68dc582 | 9549 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
9550 | char * _arg9 = (char *) "slider"; |
9551 | PyObject * _argo0 = 0; | |
37f6a977 RD |
9552 | wxPoint temp; |
9553 | PyObject * _obj5 = 0; | |
9554 | wxSize temp0; | |
9555 | PyObject * _obj6 = 0; | |
2d091820 | 9556 | PyObject * _argo8 = 0; |
107e4716 | 9557 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
70551f47 RD |
9558 | char _ptemp[128]; |
9559 | ||
9560 | self = self; | |
37f6a977 | 9561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9)) |
70551f47 | 9562 | return NULL; |
2d091820 RD |
9563 | if (_argo0) { |
9564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); |
9567 | return NULL; | |
9568 | } | |
9569 | } | |
37f6a977 RD |
9570 | if (_obj5) |
9571 | { | |
9572 | _arg5 = &temp; | |
9573 | if (! wxPoint_helper(_obj5, &_arg5)) | |
70551f47 | 9574 | return NULL; |
37f6a977 RD |
9575 | } |
9576 | if (_obj6) | |
9577 | { | |
9578 | _arg6 = &temp0; | |
9579 | if (! wxSize_helper(_obj6, &_arg6)) | |
70551f47 | 9580 | return NULL; |
37f6a977 | 9581 | } |
2d091820 RD |
9582 | if (_argo8) { |
9583 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
9584 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
70551f47 RD |
9585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); |
9586 | return NULL; | |
9587 | } | |
9588 | } | |
ab9bc19b RD |
9589 | { |
9590 | wxPy_BEGIN_ALLOW_THREADS; | |
9591 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); | |
9592 | ||
9593 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9594 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9595 | } if (_result) { |
9596 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9597 | _resultobj = Py_BuildValue("s",_ptemp); | |
9598 | } else { | |
9599 | Py_INCREF(Py_None); | |
9600 | _resultobj = Py_None; | |
9601 | } | |
70551f47 RD |
9602 | return _resultobj; |
9603 | } | |
9604 | ||
aa2a5b86 RD |
9605 | #define new_wxPreSlider() (new wxSlider()) |
9606 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9607 | PyObject * _resultobj; | |
9608 | wxSlider * _result; | |
9609 | char *_kwnames[] = { NULL }; | |
9610 | char _ptemp[128]; | |
9611 | ||
9612 | self = self; | |
9613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
9614 | return NULL; | |
9615 | { | |
9616 | wxPy_BEGIN_ALLOW_THREADS; | |
9617 | _result = (wxSlider *)new_wxPreSlider(); | |
9618 | ||
9619 | wxPy_END_ALLOW_THREADS; | |
9620 | if (PyErr_Occurred()) return NULL; | |
9621 | } if (_result) { | |
9622 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9623 | _resultobj = Py_BuildValue("s",_ptemp); | |
9624 | } else { | |
9625 | Py_INCREF(Py_None); | |
9626 | _resultobj = Py_None; | |
9627 | } | |
9628 | return _resultobj; | |
9629 | } | |
9630 | ||
9631 | #define wxSlider_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
9632 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9633 | PyObject * _resultobj; | |
9634 | bool _result; | |
9635 | wxSlider * _arg0; | |
9636 | wxWindow * _arg1; | |
9637 | wxWindowID _arg2; | |
9638 | int _arg3; | |
9639 | int _arg4; | |
9640 | int _arg5; | |
9641 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
9642 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
9643 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
9644 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9645 | char * _arg10 = (char *) "slider"; | |
9646 | PyObject * _argo0 = 0; | |
9647 | PyObject * _argo1 = 0; | |
9648 | wxPoint temp; | |
9649 | PyObject * _obj6 = 0; | |
9650 | wxSize temp0; | |
9651 | PyObject * _obj7 = 0; | |
9652 | PyObject * _argo9 = 0; | |
9653 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
9654 | ||
9655 | self = self; | |
9656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOs:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_arg10)) | |
9657 | return NULL; | |
9658 | if (_argo0) { | |
9659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
9662 | return NULL; | |
9663 | } | |
9664 | } | |
9665 | if (_argo1) { | |
9666 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9667 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
9669 | return NULL; | |
9670 | } | |
9671 | } | |
9672 | if (_obj6) | |
9673 | { | |
9674 | _arg6 = &temp; | |
9675 | if (! wxPoint_helper(_obj6, &_arg6)) | |
9676 | return NULL; | |
9677 | } | |
9678 | if (_obj7) | |
9679 | { | |
9680 | _arg7 = &temp0; | |
9681 | if (! wxSize_helper(_obj7, &_arg7)) | |
9682 | return NULL; | |
9683 | } | |
9684 | if (_argo9) { | |
9685 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
9686 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
9687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
9688 | return NULL; | |
9689 | } | |
9690 | } | |
9691 | { | |
9692 | wxPy_BEGIN_ALLOW_THREADS; | |
9693 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,_arg10); | |
9694 | ||
9695 | wxPy_END_ALLOW_THREADS; | |
9696 | if (PyErr_Occurred()) return NULL; | |
9697 | } _resultobj = Py_BuildValue("i",_result); | |
9698 | return _resultobj; | |
9699 | } | |
9700 | ||
70551f47 | 9701 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) |
107e4716 | 9702 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9703 | PyObject * _resultobj; |
9704 | wxSlider * _arg0; | |
2d091820 | 9705 | PyObject * _argo0 = 0; |
107e4716 | 9706 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9707 | |
9708 | self = self; | |
107e4716 | 9709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) |
70551f47 | 9710 | return NULL; |
2d091820 RD |
9711 | if (_argo0) { |
9712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); |
9715 | return NULL; | |
9716 | } | |
9717 | } | |
ab9bc19b RD |
9718 | { |
9719 | wxPy_BEGIN_ALLOW_THREADS; | |
9720 | wxSlider_ClearSel(_arg0); | |
9721 | ||
9722 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9723 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9724 | } Py_INCREF(Py_None); |
70551f47 RD |
9725 | _resultobj = Py_None; |
9726 | return _resultobj; | |
9727 | } | |
9728 | ||
9729 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
107e4716 | 9730 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9731 | PyObject * _resultobj; |
9732 | wxSlider * _arg0; | |
2d091820 | 9733 | PyObject * _argo0 = 0; |
107e4716 | 9734 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9735 | |
9736 | self = self; | |
107e4716 | 9737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) |
70551f47 | 9738 | return NULL; |
2d091820 RD |
9739 | if (_argo0) { |
9740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); |
9743 | return NULL; | |
9744 | } | |
9745 | } | |
ab9bc19b RD |
9746 | { |
9747 | wxPy_BEGIN_ALLOW_THREADS; | |
9748 | wxSlider_ClearTicks(_arg0); | |
9749 | ||
9750 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9751 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9752 | } Py_INCREF(Py_None); |
70551f47 RD |
9753 | _resultobj = Py_None; |
9754 | return _resultobj; | |
9755 | } | |
9756 | ||
9757 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
107e4716 | 9758 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9759 | PyObject * _resultobj; |
9760 | int _result; | |
9761 | wxSlider * _arg0; | |
2d091820 | 9762 | PyObject * _argo0 = 0; |
107e4716 | 9763 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9764 | |
9765 | self = self; | |
107e4716 | 9766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) |
70551f47 | 9767 | return NULL; |
2d091820 RD |
9768 | if (_argo0) { |
9769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); |
9772 | return NULL; | |
9773 | } | |
9774 | } | |
ab9bc19b RD |
9775 | { |
9776 | wxPy_BEGIN_ALLOW_THREADS; | |
9777 | _result = (int )wxSlider_GetLineSize(_arg0); | |
9778 | ||
9779 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9780 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9781 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9782 | return _resultobj; |
9783 | } | |
9784 | ||
9785 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
107e4716 | 9786 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9787 | PyObject * _resultobj; |
9788 | int _result; | |
9789 | wxSlider * _arg0; | |
2d091820 | 9790 | PyObject * _argo0 = 0; |
107e4716 | 9791 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9792 | |
9793 | self = self; | |
107e4716 | 9794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) |
70551f47 | 9795 | return NULL; |
2d091820 RD |
9796 | if (_argo0) { |
9797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); |
9800 | return NULL; | |
9801 | } | |
9802 | } | |
ab9bc19b RD |
9803 | { |
9804 | wxPy_BEGIN_ALLOW_THREADS; | |
9805 | _result = (int )wxSlider_GetMax(_arg0); | |
9806 | ||
9807 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9808 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9809 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9810 | return _resultobj; |
9811 | } | |
9812 | ||
9813 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
107e4716 | 9814 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9815 | PyObject * _resultobj; |
9816 | int _result; | |
9817 | wxSlider * _arg0; | |
2d091820 | 9818 | PyObject * _argo0 = 0; |
107e4716 | 9819 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9820 | |
9821 | self = self; | |
107e4716 | 9822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) |
70551f47 | 9823 | return NULL; |
2d091820 RD |
9824 | if (_argo0) { |
9825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); |
9828 | return NULL; | |
9829 | } | |
9830 | } | |
ab9bc19b RD |
9831 | { |
9832 | wxPy_BEGIN_ALLOW_THREADS; | |
9833 | _result = (int )wxSlider_GetMin(_arg0); | |
9834 | ||
9835 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9836 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9837 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9838 | return _resultobj; |
9839 | } | |
9840 | ||
9841 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
107e4716 | 9842 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9843 | PyObject * _resultobj; |
9844 | int _result; | |
9845 | wxSlider * _arg0; | |
2d091820 | 9846 | PyObject * _argo0 = 0; |
107e4716 | 9847 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9848 | |
9849 | self = self; | |
107e4716 | 9850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) |
70551f47 | 9851 | return NULL; |
2d091820 RD |
9852 | if (_argo0) { |
9853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); |
9856 | return NULL; | |
9857 | } | |
9858 | } | |
ab9bc19b RD |
9859 | { |
9860 | wxPy_BEGIN_ALLOW_THREADS; | |
9861 | _result = (int )wxSlider_GetPageSize(_arg0); | |
9862 | ||
9863 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9864 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9865 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9866 | return _resultobj; |
9867 | } | |
9868 | ||
9869 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
107e4716 | 9870 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9871 | PyObject * _resultobj; |
9872 | int _result; | |
9873 | wxSlider * _arg0; | |
2d091820 | 9874 | PyObject * _argo0 = 0; |
107e4716 | 9875 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9876 | |
9877 | self = self; | |
107e4716 | 9878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) |
70551f47 | 9879 | return NULL; |
2d091820 RD |
9880 | if (_argo0) { |
9881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); |
9884 | return NULL; | |
9885 | } | |
9886 | } | |
ab9bc19b RD |
9887 | { |
9888 | wxPy_BEGIN_ALLOW_THREADS; | |
9889 | _result = (int )wxSlider_GetSelEnd(_arg0); | |
9890 | ||
9891 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9892 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9893 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9894 | return _resultobj; |
9895 | } | |
9896 | ||
9897 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
107e4716 | 9898 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9899 | PyObject * _resultobj; |
9900 | int _result; | |
9901 | wxSlider * _arg0; | |
2d091820 | 9902 | PyObject * _argo0 = 0; |
107e4716 | 9903 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9904 | |
9905 | self = self; | |
107e4716 | 9906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) |
70551f47 | 9907 | return NULL; |
2d091820 RD |
9908 | if (_argo0) { |
9909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); |
9912 | return NULL; | |
9913 | } | |
9914 | } | |
ab9bc19b RD |
9915 | { |
9916 | wxPy_BEGIN_ALLOW_THREADS; | |
9917 | _result = (int )wxSlider_GetSelStart(_arg0); | |
9918 | ||
9919 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9920 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9921 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9922 | return _resultobj; |
9923 | } | |
9924 | ||
9925 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
107e4716 | 9926 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9927 | PyObject * _resultobj; |
9928 | int _result; | |
9929 | wxSlider * _arg0; | |
2d091820 | 9930 | PyObject * _argo0 = 0; |
107e4716 | 9931 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9932 | |
9933 | self = self; | |
107e4716 | 9934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) |
70551f47 | 9935 | return NULL; |
2d091820 RD |
9936 | if (_argo0) { |
9937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); |
9940 | return NULL; | |
9941 | } | |
9942 | } | |
ab9bc19b RD |
9943 | { |
9944 | wxPy_BEGIN_ALLOW_THREADS; | |
9945 | _result = (int )wxSlider_GetThumbLength(_arg0); | |
9946 | ||
9947 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9948 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9949 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9950 | return _resultobj; |
9951 | } | |
9952 | ||
9953 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
107e4716 | 9954 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9955 | PyObject * _resultobj; |
9956 | int _result; | |
9957 | wxSlider * _arg0; | |
2d091820 | 9958 | PyObject * _argo0 = 0; |
107e4716 | 9959 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9960 | |
9961 | self = self; | |
107e4716 | 9962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) |
70551f47 | 9963 | return NULL; |
2d091820 RD |
9964 | if (_argo0) { |
9965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); |
9968 | return NULL; | |
9969 | } | |
9970 | } | |
ab9bc19b RD |
9971 | { |
9972 | wxPy_BEGIN_ALLOW_THREADS; | |
9973 | _result = (int )wxSlider_GetTickFreq(_arg0); | |
9974 | ||
9975 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9976 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9977 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9978 | return _resultobj; |
9979 | } | |
9980 | ||
9981 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 9982 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9983 | PyObject * _resultobj; |
9984 | int _result; | |
9985 | wxSlider * _arg0; | |
2d091820 | 9986 | PyObject * _argo0 = 0; |
107e4716 | 9987 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9988 | |
9989 | self = self; | |
107e4716 | 9990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) |
70551f47 | 9991 | return NULL; |
2d091820 RD |
9992 | if (_argo0) { |
9993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); |
9996 | return NULL; | |
9997 | } | |
9998 | } | |
ab9bc19b RD |
9999 | { |
10000 | wxPy_BEGIN_ALLOW_THREADS; | |
10001 | _result = (int )wxSlider_GetValue(_arg0); | |
10002 | ||
10003 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10004 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10005 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10006 | return _resultobj; |
10007 | } | |
10008 | ||
10009 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 10010 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10011 | PyObject * _resultobj; |
10012 | wxSlider * _arg0; | |
10013 | int _arg1; | |
10014 | int _arg2; | |
2d091820 | 10015 | PyObject * _argo0 = 0; |
107e4716 | 10016 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; |
70551f47 RD |
10017 | |
10018 | self = self; | |
107e4716 | 10019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 10020 | return NULL; |
2d091820 RD |
10021 | if (_argo0) { |
10022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); |
10025 | return NULL; | |
10026 | } | |
10027 | } | |
ab9bc19b RD |
10028 | { |
10029 | wxPy_BEGIN_ALLOW_THREADS; | |
10030 | wxSlider_SetRange(_arg0,_arg1,_arg2); | |
10031 | ||
10032 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10033 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10034 | } Py_INCREF(Py_None); |
70551f47 RD |
10035 | _resultobj = Py_None; |
10036 | return _resultobj; | |
10037 | } | |
10038 | ||
10039 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
107e4716 | 10040 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10041 | PyObject * _resultobj; |
10042 | wxSlider * _arg0; | |
10043 | int _arg1; | |
10044 | int _arg2; | |
2d091820 | 10045 | PyObject * _argo0 = 0; |
107e4716 | 10046 | char *_kwnames[] = { "self","n","pos", NULL }; |
70551f47 RD |
10047 | |
10048 | self = self; | |
107e4716 | 10049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 10050 | return NULL; |
2d091820 RD |
10051 | if (_argo0) { |
10052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); |
10055 | return NULL; | |
10056 | } | |
10057 | } | |
ab9bc19b RD |
10058 | { |
10059 | wxPy_BEGIN_ALLOW_THREADS; | |
10060 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); | |
10061 | ||
10062 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10063 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10064 | } Py_INCREF(Py_None); |
70551f47 RD |
10065 | _resultobj = Py_None; |
10066 | return _resultobj; | |
10067 | } | |
10068 | ||
10069 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
107e4716 | 10070 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10071 | PyObject * _resultobj; |
10072 | wxSlider * _arg0; | |
10073 | int _arg1; | |
2d091820 | 10074 | PyObject * _argo0 = 0; |
107e4716 | 10075 | char *_kwnames[] = { "self","lineSize", NULL }; |
70551f47 RD |
10076 | |
10077 | self = self; | |
107e4716 | 10078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10079 | return NULL; |
2d091820 RD |
10080 | if (_argo0) { |
10081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); |
10084 | return NULL; | |
10085 | } | |
10086 | } | |
ab9bc19b RD |
10087 | { |
10088 | wxPy_BEGIN_ALLOW_THREADS; | |
10089 | wxSlider_SetLineSize(_arg0,_arg1); | |
10090 | ||
10091 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10092 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10093 | } Py_INCREF(Py_None); |
70551f47 RD |
10094 | _resultobj = Py_None; |
10095 | return _resultobj; | |
10096 | } | |
10097 | ||
10098 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
107e4716 | 10099 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10100 | PyObject * _resultobj; |
10101 | wxSlider * _arg0; | |
10102 | int _arg1; | |
2d091820 | 10103 | PyObject * _argo0 = 0; |
107e4716 | 10104 | char *_kwnames[] = { "self","pageSize", NULL }; |
70551f47 RD |
10105 | |
10106 | self = self; | |
107e4716 | 10107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10108 | return NULL; |
2d091820 RD |
10109 | if (_argo0) { |
10110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); |
10113 | return NULL; | |
10114 | } | |
10115 | } | |
ab9bc19b RD |
10116 | { |
10117 | wxPy_BEGIN_ALLOW_THREADS; | |
10118 | wxSlider_SetPageSize(_arg0,_arg1); | |
10119 | ||
10120 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10121 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10122 | } Py_INCREF(Py_None); |
70551f47 RD |
10123 | _resultobj = Py_None; |
10124 | return _resultobj; | |
10125 | } | |
10126 | ||
10127 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 10128 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10129 | PyObject * _resultobj; |
10130 | wxSlider * _arg0; | |
10131 | int _arg1; | |
10132 | int _arg2; | |
2d091820 | 10133 | PyObject * _argo0 = 0; |
107e4716 | 10134 | char *_kwnames[] = { "self","startPos","endPos", NULL }; |
70551f47 RD |
10135 | |
10136 | self = self; | |
107e4716 | 10137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 10138 | return NULL; |
2d091820 RD |
10139 | if (_argo0) { |
10140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); |
10143 | return NULL; | |
10144 | } | |
10145 | } | |
ab9bc19b RD |
10146 | { |
10147 | wxPy_BEGIN_ALLOW_THREADS; | |
10148 | wxSlider_SetSelection(_arg0,_arg1,_arg2); | |
10149 | ||
10150 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10151 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10152 | } Py_INCREF(Py_None); |
70551f47 RD |
10153 | _resultobj = Py_None; |
10154 | return _resultobj; | |
10155 | } | |
10156 | ||
10157 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
107e4716 | 10158 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10159 | PyObject * _resultobj; |
10160 | wxSlider * _arg0; | |
10161 | int _arg1; | |
2d091820 | 10162 | PyObject * _argo0 = 0; |
107e4716 | 10163 | char *_kwnames[] = { "self","len", NULL }; |
70551f47 RD |
10164 | |
10165 | self = self; | |
107e4716 | 10166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10167 | return NULL; |
2d091820 RD |
10168 | if (_argo0) { |
10169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); |
10172 | return NULL; | |
10173 | } | |
10174 | } | |
ab9bc19b RD |
10175 | { |
10176 | wxPy_BEGIN_ALLOW_THREADS; | |
10177 | wxSlider_SetThumbLength(_arg0,_arg1); | |
10178 | ||
10179 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10180 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10181 | } Py_INCREF(Py_None); |
70551f47 RD |
10182 | _resultobj = Py_None; |
10183 | return _resultobj; | |
10184 | } | |
10185 | ||
10186 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
107e4716 | 10187 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10188 | PyObject * _resultobj; |
10189 | wxSlider * _arg0; | |
10190 | int _arg1; | |
2d091820 | 10191 | PyObject * _argo0 = 0; |
107e4716 | 10192 | char *_kwnames[] = { "self","tickPos", NULL }; |
70551f47 RD |
10193 | |
10194 | self = self; | |
107e4716 | 10195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10196 | return NULL; |
2d091820 RD |
10197 | if (_argo0) { |
10198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); |
10201 | return NULL; | |
10202 | } | |
10203 | } | |
ab9bc19b RD |
10204 | { |
10205 | wxPy_BEGIN_ALLOW_THREADS; | |
10206 | wxSlider_SetTick(_arg0,_arg1); | |
10207 | ||
10208 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10209 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10210 | } Py_INCREF(Py_None); |
70551f47 RD |
10211 | _resultobj = Py_None; |
10212 | return _resultobj; | |
10213 | } | |
10214 | ||
10215 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 10216 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10217 | PyObject * _resultobj; |
10218 | wxSlider * _arg0; | |
10219 | int _arg1; | |
2d091820 | 10220 | PyObject * _argo0 = 0; |
107e4716 | 10221 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
10222 | |
10223 | self = self; | |
107e4716 | 10224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10225 | return NULL; |
2d091820 RD |
10226 | if (_argo0) { |
10227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); |
10230 | return NULL; | |
10231 | } | |
10232 | } | |
ab9bc19b RD |
10233 | { |
10234 | wxPy_BEGIN_ALLOW_THREADS; | |
10235 | wxSlider_SetValue(_arg0,_arg1); | |
10236 | ||
10237 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10238 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10239 | } Py_INCREF(Py_None); |
70551f47 RD |
10240 | _resultobj = Py_None; |
10241 | return _resultobj; | |
10242 | } | |
10243 | ||
f6bcfd97 BP |
10244 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { |
10245 | wxSpinCtrl *src; | |
10246 | wxSpinButton *dest; | |
10247 | src = (wxSpinCtrl *) ptr; | |
10248 | dest = (wxSpinButton *) src; | |
10249 | return (void *) dest; | |
10250 | } | |
10251 | ||
10252 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
10253 | wxSpinCtrl *src; | |
10254 | wxControl *dest; | |
10255 | src = (wxSpinCtrl *) ptr; | |
10256 | dest = (wxControl *) src; | |
10257 | return (void *) dest; | |
10258 | } | |
10259 | ||
10260 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
10261 | wxSpinCtrl *src; | |
10262 | wxWindow *dest; | |
10263 | src = (wxSpinCtrl *) ptr; | |
10264 | dest = (wxWindow *) src; | |
10265 | return (void *) dest; | |
10266 | } | |
10267 | ||
10268 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
10269 | wxSpinCtrl *src; | |
10270 | wxEvtHandler *dest; | |
10271 | src = (wxSpinCtrl *) ptr; | |
10272 | dest = (wxEvtHandler *) src; | |
10273 | return (void *) dest; | |
10274 | } | |
10275 | ||
9df61a29 RD |
10276 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { |
10277 | wxSpinCtrl *src; | |
10278 | wxObject *dest; | |
10279 | src = (wxSpinCtrl *) ptr; | |
10280 | dest = (wxObject *) src; | |
10281 | return (void *) dest; | |
10282 | } | |
10283 | ||
f6bcfd97 BP |
10284 | #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)) |
10285 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10286 | PyObject * _resultobj; | |
10287 | wxSpinCtrl * _result; | |
10288 | wxWindow * _arg0; | |
10289 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10290 | char * _arg2 = (char *) ""; | |
b68dc582 RD |
10291 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
10292 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
f6bcfd97 BP |
10293 | long _arg5 = (long ) wxSP_ARROW_KEYS; |
10294 | int _arg6 = (int ) 0; | |
10295 | int _arg7 = (int ) 100; | |
10296 | int _arg8 = (int ) 0; | |
10297 | char * _arg9 = (char *) "wxSpinCtrl"; | |
10298 | PyObject * _argo0 = 0; | |
10299 | wxPoint temp; | |
10300 | PyObject * _obj3 = 0; | |
10301 | wxSize temp0; | |
10302 | PyObject * _obj4 = 0; | |
10303 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10304 | char _ptemp[128]; | |
10305 | ||
10306 | self = self; | |
10307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
10308 | return NULL; | |
10309 | if (_argo0) { | |
10310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
10313 | return NULL; | |
10314 | } | |
10315 | } | |
10316 | if (_obj3) | |
10317 | { | |
10318 | _arg3 = &temp; | |
10319 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10320 | return NULL; | |
10321 | } | |
10322 | if (_obj4) | |
10323 | { | |
10324 | _arg4 = &temp0; | |
10325 | if (! wxSize_helper(_obj4, &_arg4)) | |
10326 | return NULL; | |
10327 | } | |
10328 | { | |
10329 | wxPy_BEGIN_ALLOW_THREADS; | |
10330 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
10331 | ||
10332 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10333 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10334 | } if (_result) { |
10335 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10336 | _resultobj = Py_BuildValue("s",_ptemp); | |
10337 | } else { | |
10338 | Py_INCREF(Py_None); | |
10339 | _resultobj = Py_None; | |
10340 | } | |
10341 | return _resultobj; | |
10342 | } | |
10343 | ||
aa2a5b86 RD |
10344 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) |
10345 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10346 | PyObject * _resultobj; | |
10347 | wxSpinCtrl * _result; | |
10348 | char *_kwnames[] = { NULL }; | |
10349 | char _ptemp[128]; | |
10350 | ||
10351 | self = self; | |
10352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
10353 | return NULL; | |
10354 | { | |
10355 | wxPy_BEGIN_ALLOW_THREADS; | |
10356 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); | |
10357 | ||
10358 | wxPy_END_ALLOW_THREADS; | |
10359 | if (PyErr_Occurred()) return NULL; | |
10360 | } if (_result) { | |
10361 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10362 | _resultobj = Py_BuildValue("s",_ptemp); | |
10363 | } else { | |
10364 | Py_INCREF(Py_None); | |
10365 | _resultobj = Py_None; | |
10366 | } | |
10367 | return _resultobj; | |
10368 | } | |
10369 | ||
10370 | #define wxSpinCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
10371 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10372 | PyObject * _resultobj; | |
10373 | bool _result; | |
10374 | wxSpinCtrl * _arg0; | |
10375 | wxWindow * _arg1; | |
10376 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10377 | char * _arg3 = (char *) ""; | |
10378 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10379 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10380 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
10381 | int _arg7 = (int ) 0; | |
10382 | int _arg8 = (int ) 100; | |
10383 | int _arg9 = (int ) 0; | |
10384 | char * _arg10 = (char *) "wxSpinCtrl"; | |
10385 | PyObject * _argo0 = 0; | |
10386 | PyObject * _argo1 = 0; | |
10387 | wxPoint temp; | |
10388 | PyObject * _obj4 = 0; | |
10389 | wxSize temp0; | |
10390 | PyObject * _obj5 = 0; | |
10391 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10392 | ||
10393 | self = self; | |
10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOliiis:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_arg10)) | |
10395 | return NULL; | |
10396 | if (_argo0) { | |
10397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
10400 | return NULL; | |
10401 | } | |
10402 | } | |
10403 | if (_argo1) { | |
10404 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10405 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
10407 | return NULL; | |
10408 | } | |
10409 | } | |
10410 | if (_obj4) | |
10411 | { | |
10412 | _arg4 = &temp; | |
10413 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10414 | return NULL; | |
10415 | } | |
10416 | if (_obj5) | |
10417 | { | |
10418 | _arg5 = &temp0; | |
10419 | if (! wxSize_helper(_obj5, &_arg5)) | |
10420 | return NULL; | |
10421 | } | |
10422 | { | |
10423 | wxPy_BEGIN_ALLOW_THREADS; | |
10424 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,_arg10); | |
10425 | ||
10426 | wxPy_END_ALLOW_THREADS; | |
10427 | if (PyErr_Occurred()) return NULL; | |
10428 | } _resultobj = Py_BuildValue("i",_result); | |
10429 | return _resultobj; | |
10430 | } | |
10431 | ||
c368d904 RD |
10432 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) |
10433 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10434 | PyObject * _resultobj; | |
10435 | int _result; | |
10436 | wxSpinCtrl * _arg0; | |
10437 | PyObject * _argo0 = 0; | |
10438 | char *_kwnames[] = { "self", NULL }; | |
10439 | ||
10440 | self = self; | |
10441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
10442 | return NULL; | |
10443 | if (_argo0) { | |
10444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
10447 | return NULL; | |
10448 | } | |
10449 | } | |
10450 | { | |
10451 | wxPy_BEGIN_ALLOW_THREADS; | |
10452 | _result = (int )wxSpinCtrl_GetMax(_arg0); | |
10453 | ||
10454 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10455 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10456 | } _resultobj = Py_BuildValue("i",_result); |
10457 | return _resultobj; | |
10458 | } | |
10459 | ||
10460 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
10461 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10462 | PyObject * _resultobj; | |
10463 | int _result; | |
10464 | wxSpinCtrl * _arg0; | |
10465 | PyObject * _argo0 = 0; | |
10466 | char *_kwnames[] = { "self", NULL }; | |
10467 | ||
10468 | self = self; | |
10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
10470 | return NULL; | |
10471 | if (_argo0) { | |
10472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
10475 | return NULL; | |
10476 | } | |
10477 | } | |
10478 | { | |
10479 | wxPy_BEGIN_ALLOW_THREADS; | |
10480 | _result = (int )wxSpinCtrl_GetMin(_arg0); | |
10481 | ||
10482 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10483 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10484 | } _resultobj = Py_BuildValue("i",_result); |
10485 | return _resultobj; | |
10486 | } | |
10487 | ||
10488 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
10489 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10490 | PyObject * _resultobj; | |
10491 | int _result; | |
10492 | wxSpinCtrl * _arg0; | |
10493 | PyObject * _argo0 = 0; | |
10494 | char *_kwnames[] = { "self", NULL }; | |
10495 | ||
10496 | self = self; | |
10497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
10498 | return NULL; | |
10499 | if (_argo0) { | |
10500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
10503 | return NULL; | |
10504 | } | |
10505 | } | |
10506 | { | |
10507 | wxPy_BEGIN_ALLOW_THREADS; | |
10508 | _result = (int )wxSpinCtrl_GetValue(_arg0); | |
10509 | ||
10510 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10511 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10512 | } _resultobj = Py_BuildValue("i",_result); |
10513 | return _resultobj; | |
10514 | } | |
10515 | ||
10516 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10517 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10518 | PyObject * _resultobj; | |
10519 | wxSpinCtrl * _arg0; | |
10520 | int _arg1; | |
10521 | int _arg2; | |
10522 | PyObject * _argo0 = 0; | |
10523 | char *_kwnames[] = { "self","min","max", NULL }; | |
10524 | ||
10525 | self = self; | |
10526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10527 | return NULL; | |
10528 | if (_argo0) { | |
10529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
10532 | return NULL; | |
10533 | } | |
10534 | } | |
10535 | { | |
10536 | wxPy_BEGIN_ALLOW_THREADS; | |
10537 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); | |
10538 | ||
10539 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10540 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10541 | } Py_INCREF(Py_None); |
10542 | _resultobj = Py_None; | |
10543 | return _resultobj; | |
10544 | } | |
10545 | ||
10546 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10547 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10548 | PyObject * _resultobj; | |
10549 | wxSpinCtrl * _arg0; | |
10550 | int _arg1; | |
10551 | PyObject * _argo0 = 0; | |
10552 | char *_kwnames[] = { "self","value", NULL }; | |
10553 | ||
10554 | self = self; | |
10555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
10556 | return NULL; | |
10557 | if (_argo0) { | |
10558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
10561 | return NULL; | |
10562 | } | |
10563 | } | |
10564 | { | |
10565 | wxPy_BEGIN_ALLOW_THREADS; | |
10566 | wxSpinCtrl_SetValue(_arg0,_arg1); | |
10567 | ||
10568 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10569 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10570 | } Py_INCREF(Py_None); |
10571 | _resultobj = Py_None; | |
10572 | return _resultobj; | |
10573 | } | |
10574 | ||
7a446686 RD |
10575 | static void *SwigwxToggleButtonTowxControl(void *ptr) { |
10576 | wxToggleButton *src; | |
10577 | wxControl *dest; | |
10578 | src = (wxToggleButton *) ptr; | |
10579 | dest = (wxControl *) src; | |
10580 | return (void *) dest; | |
10581 | } | |
10582 | ||
10583 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
10584 | wxToggleButton *src; | |
10585 | wxWindow *dest; | |
10586 | src = (wxToggleButton *) ptr; | |
10587 | dest = (wxWindow *) src; | |
10588 | return (void *) dest; | |
10589 | } | |
10590 | ||
10591 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
10592 | wxToggleButton *src; | |
10593 | wxEvtHandler *dest; | |
10594 | src = (wxToggleButton *) ptr; | |
10595 | dest = (wxEvtHandler *) src; | |
10596 | return (void *) dest; | |
10597 | } | |
10598 | ||
9df61a29 RD |
10599 | static void *SwigwxToggleButtonTowxObject(void *ptr) { |
10600 | wxToggleButton *src; | |
10601 | wxObject *dest; | |
10602 | src = (wxToggleButton *) ptr; | |
10603 | dest = (wxObject *) src; | |
10604 | return (void *) dest; | |
10605 | } | |
10606 | ||
7a446686 RD |
10607 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
10608 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10609 | PyObject * _resultobj; | |
10610 | wxToggleButton * _result; | |
10611 | wxWindow * _arg0; | |
10612 | wxWindowID _arg1; | |
10613 | wxString * _arg2; | |
10614 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10615 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10616 | long _arg5 = (long ) 0; | |
10617 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
10618 | char * _arg7 = (char *) "toggle"; | |
10619 | PyObject * _argo0 = 0; | |
10620 | PyObject * _obj2 = 0; | |
10621 | wxPoint temp; | |
10622 | PyObject * _obj3 = 0; | |
10623 | wxSize temp0; | |
10624 | PyObject * _obj4 = 0; | |
10625 | PyObject * _argo6 = 0; | |
10626 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
10627 | char _ptemp[128]; | |
10628 | ||
10629 | self = self; | |
10630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
10631 | return NULL; | |
10632 | if (_argo0) { | |
10633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
10636 | return NULL; | |
10637 | } | |
10638 | } | |
10639 | { | |
10640 | #if PYTHON_API_VERSION >= 1009 | |
10641 | char* tmpPtr; int tmpSize; | |
10642 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
10643 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10644 | return NULL; | |
10645 | } | |
10646 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
10647 | return NULL; | |
10648 | _arg2 = new wxString(tmpPtr, tmpSize); | |
10649 | #else | |
10650 | if (!PyString_Check(_obj2)) { | |
10651 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10652 | return NULL; | |
10653 | } | |
10654 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
10655 | #endif | |
10656 | } | |
10657 | if (_obj3) | |
10658 | { | |
10659 | _arg3 = &temp; | |
10660 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10661 | return NULL; | |
10662 | } | |
10663 | if (_obj4) | |
10664 | { | |
10665 | _arg4 = &temp0; | |
10666 | if (! wxSize_helper(_obj4, &_arg4)) | |
10667 | return NULL; | |
10668 | } | |
10669 | if (_argo6) { | |
10670 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
10671 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
10672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
10673 | return NULL; | |
10674 | } | |
10675 | } | |
10676 | { | |
10677 | wxPy_BEGIN_ALLOW_THREADS; | |
10678 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
10679 | ||
10680 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10681 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
10682 | } if (_result) { |
10683 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10684 | _resultobj = Py_BuildValue("s",_ptemp); | |
10685 | } else { | |
10686 | Py_INCREF(Py_None); | |
10687 | _resultobj = Py_None; | |
10688 | } | |
10689 | { | |
10690 | if (_obj2) | |
10691 | delete _arg2; | |
10692 | } | |
10693 | return _resultobj; | |
10694 | } | |
10695 | ||
aa2a5b86 RD |
10696 | #define new_wxPreToggleButton() (new wxToggleButton()) |
10697 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10698 | PyObject * _resultobj; | |
10699 | wxToggleButton * _result; | |
10700 | char *_kwnames[] = { NULL }; | |
10701 | char _ptemp[128]; | |
10702 | ||
10703 | self = self; | |
10704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
10705 | return NULL; | |
10706 | { | |
10707 | wxPy_BEGIN_ALLOW_THREADS; | |
10708 | _result = (wxToggleButton *)new_wxPreToggleButton(); | |
10709 | ||
10710 | wxPy_END_ALLOW_THREADS; | |
10711 | if (PyErr_Occurred()) return NULL; | |
10712 | } if (_result) { | |
10713 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10714 | _resultobj = Py_BuildValue("s",_ptemp); | |
10715 | } else { | |
10716 | Py_INCREF(Py_None); | |
10717 | _resultobj = Py_None; | |
10718 | } | |
10719 | return _resultobj; | |
10720 | } | |
10721 | ||
10722 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10723 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10724 | PyObject * _resultobj; | |
10725 | bool _result; | |
10726 | wxToggleButton * _arg0; | |
10727 | wxWindow * _arg1; | |
10728 | wxWindowID _arg2; | |
10729 | wxString * _arg3; | |
10730 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10731 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10732 | long _arg6 = (long ) 0; | |
10733 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
10734 | char * _arg8 = (char *) "toggle"; | |
10735 | PyObject * _argo0 = 0; | |
10736 | PyObject * _argo1 = 0; | |
10737 | PyObject * _obj3 = 0; | |
10738 | wxPoint temp; | |
10739 | PyObject * _obj4 = 0; | |
10740 | wxSize temp0; | |
10741 | PyObject * _obj5 = 0; | |
10742 | PyObject * _argo7 = 0; | |
10743 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
10744 | ||
10745 | self = self; | |
10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
10747 | return NULL; | |
10748 | if (_argo0) { | |
10749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
10752 | return NULL; | |
10753 | } | |
10754 | } | |
10755 | if (_argo1) { | |
10756 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10757 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
10759 | return NULL; | |
10760 | } | |
10761 | } | |
10762 | { | |
10763 | #if PYTHON_API_VERSION >= 1009 | |
10764 | char* tmpPtr; int tmpSize; | |
10765 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
10766 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10767 | return NULL; | |
10768 | } | |
10769 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
10770 | return NULL; | |
10771 | _arg3 = new wxString(tmpPtr, tmpSize); | |
10772 | #else | |
10773 | if (!PyString_Check(_obj3)) { | |
10774 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10775 | return NULL; | |
10776 | } | |
10777 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
10778 | #endif | |
10779 | } | |
10780 | if (_obj4) | |
10781 | { | |
10782 | _arg4 = &temp; | |
10783 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10784 | return NULL; | |
10785 | } | |
10786 | if (_obj5) | |
10787 | { | |
10788 | _arg5 = &temp0; | |
10789 | if (! wxSize_helper(_obj5, &_arg5)) | |
10790 | return NULL; | |
10791 | } | |
10792 | if (_argo7) { | |
10793 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
10794 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
10795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); | |
10796 | return NULL; | |
10797 | } | |
10798 | } | |
10799 | { | |
10800 | wxPy_BEGIN_ALLOW_THREADS; | |
10801 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
10802 | ||
10803 | wxPy_END_ALLOW_THREADS; | |
10804 | if (PyErr_Occurred()) return NULL; | |
10805 | } _resultobj = Py_BuildValue("i",_result); | |
10806 | { | |
10807 | if (_obj3) | |
10808 | delete _arg3; | |
10809 | } | |
10810 | return _resultobj; | |
10811 | } | |
10812 | ||
7a446686 RD |
10813 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
10814 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10815 | PyObject * _resultobj; | |
10816 | wxToggleButton * _arg0; | |
10817 | bool _arg1; | |
10818 | PyObject * _argo0 = 0; | |
10819 | int tempbool1; | |
10820 | char *_kwnames[] = { "self","value", NULL }; | |
10821 | ||
10822 | self = self; | |
10823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
10824 | return NULL; | |
10825 | if (_argo0) { | |
10826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
10829 | return NULL; | |
10830 | } | |
10831 | } | |
10832 | _arg1 = (bool ) tempbool1; | |
10833 | { | |
10834 | wxPy_BEGIN_ALLOW_THREADS; | |
10835 | wxToggleButton_SetValue(_arg0,_arg1); | |
10836 | ||
10837 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10838 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
10839 | } Py_INCREF(Py_None); |
10840 | _resultobj = Py_None; | |
10841 | return _resultobj; | |
10842 | } | |
10843 | ||
10844 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
10845 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10846 | PyObject * _resultobj; | |
10847 | bool _result; | |
10848 | wxToggleButton * _arg0; | |
10849 | PyObject * _argo0 = 0; | |
10850 | char *_kwnames[] = { "self", NULL }; | |
10851 | ||
10852 | self = self; | |
10853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
10854 | return NULL; | |
10855 | if (_argo0) { | |
10856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
10859 | return NULL; | |
10860 | } | |
10861 | } | |
10862 | { | |
10863 | wxPy_BEGIN_ALLOW_THREADS; | |
10864 | _result = (bool )wxToggleButton_GetValue(_arg0); | |
10865 | ||
10866 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10867 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
10868 | } _resultobj = Py_BuildValue("i",_result); |
10869 | return _resultobj; | |
10870 | } | |
10871 | ||
10872 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
10873 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10874 | PyObject * _resultobj; | |
10875 | wxToggleButton * _arg0; | |
10876 | wxString * _arg1; | |
10877 | PyObject * _argo0 = 0; | |
10878 | PyObject * _obj1 = 0; | |
10879 | char *_kwnames[] = { "self","label", NULL }; | |
10880 | ||
10881 | self = self; | |
10882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
10883 | return NULL; | |
10884 | if (_argo0) { | |
10885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
10888 | return NULL; | |
10889 | } | |
10890 | } | |
10891 | { | |
10892 | #if PYTHON_API_VERSION >= 1009 | |
10893 | char* tmpPtr; int tmpSize; | |
10894 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
10895 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10896 | return NULL; | |
10897 | } | |
10898 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10899 | return NULL; | |
10900 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10901 | #else | |
10902 | if (!PyString_Check(_obj1)) { | |
10903 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10904 | return NULL; | |
10905 | } | |
10906 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10907 | #endif | |
10908 | } | |
10909 | { | |
10910 | wxPy_BEGIN_ALLOW_THREADS; | |
10911 | wxToggleButton_SetLabel(_arg0,*_arg1); | |
10912 | ||
10913 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10914 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
10915 | } Py_INCREF(Py_None); |
10916 | _resultobj = Py_None; | |
10917 | { | |
10918 | if (_obj1) | |
10919 | delete _arg1; | |
10920 | } | |
10921 | return _resultobj; | |
10922 | } | |
10923 | ||
70551f47 | 10924 | static PyMethodDef controlscMethods[] = { |
7a446686 RD |
10925 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10926 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10928 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, |
10929 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
7a446686 | 10930 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
10931 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
10932 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10936 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10937 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10938 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10939 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, |
10940 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10944 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
10945 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
10946 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10947 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10948 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
10949 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
10955 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10958 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, |
10959 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10960 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, |
10961 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10962 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10963 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, |
10964 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10965 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, |
10966 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
10967 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
10968 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10969 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 10970 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10971 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10972 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 10973 | { "wxRadioBox_SetItemLabel", (PyCFunction) _wrap_wxRadioBox_SetItemLabel, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10974 | { "wxRadioBox_GetItemLabel", (PyCFunction) _wrap_wxRadioBox_GetItemLabel, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 10975 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10976 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, |
10977 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10979 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, |
10980 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10981 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, |
10982 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10985 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, |
10986 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10987 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, |
10988 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10989 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10990 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10991 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10992 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10993 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, |
10994 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10995 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, |
10996 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
2fc99549 | 10998 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10999 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
11000 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11003 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, |
11004 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11005 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, |
4120ef2b | 11006 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 11007 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, |
9d6da64a RD |
11008 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, |
11009 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
4120ef2b RD |
11011 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
11012 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11013 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, |
11014 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
11017 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11025 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11026 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11027 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11028 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
11029 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
11030 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11031 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11032 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
11033 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
11034 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
11035 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
11036 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11037 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
11038 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
11039 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
11040 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11041 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11042 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11044 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11045 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11046 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11047 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11048 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, |
9d6da64a RD |
11049 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11050 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11051 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11052 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11053 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11054 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11055 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11056 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11057 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11058 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11059 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11060 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, |
d29aba2f | 11061 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11062 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, |
11063 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11064 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11065 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11066 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, |
11067 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11068 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11069 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11070 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
11071 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
11072 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
11073 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 11074 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, |
37f6a977 | 11075 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11076 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11077 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11078 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11079 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11080 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11081 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, |
11082 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11083 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11084 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, |
11085 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11086 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11087 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, |
11088 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11089 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11090 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11091 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11092 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, |
11093 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11094 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11095 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11096 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11097 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11098 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11099 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11100 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11101 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, |
11102 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11103 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 11104 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11105 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11106 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
11107 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11108 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11109 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11110 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11111 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11112 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11113 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11114 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, |
11115 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11116 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, |
11117 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11118 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11119 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11120 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 11121 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11122 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
11123 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11124 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11125 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11126 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11127 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, |
11128 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11129 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, |
11130 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11131 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11132 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11133 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11134 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11135 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, |
11136 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
11137 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11138 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, |
11139 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11140 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11141 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11142 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11143 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11144 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11145 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11146 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11147 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11148 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 11149 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
ab2208b5 RD |
11150 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
11151 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11152 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11153 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11154 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11155 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 RD |
11156 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, |
11157 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11158 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
11159 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11160 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11161 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
11162 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11163 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11164 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11165 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11166 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11167 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11168 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 11169 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11170 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, |
11171 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 11172 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, |
70551f47 RD |
11173 | { NULL, NULL } |
11174 | }; | |
2d091820 RD |
11175 | #ifdef __cplusplus |
11176 | } | |
11177 | #endif | |
11178 | /* | |
11179 | * This table is used by the pointer type-checker | |
11180 | */ | |
11181 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2d091820 | 11182 | { "_signed_long","_long",0}, |
4120ef2b | 11183 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
11184 | { "_wxPrintQuality","_int",0}, |
11185 | { "_wxPrintQuality","_signed_int",0}, | |
11186 | { "_wxPrintQuality","_unsigned_int",0}, | |
11187 | { "_wxPrintQuality","_wxWindowID",0}, | |
11188 | { "_wxPrintQuality","_uint",0}, | |
11189 | { "_wxPrintQuality","_EBool",0}, | |
11190 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11191 | { "_wxPrintQuality","_time_t",0}, |
7a446686 RD |
11192 | { "_class_wxEvtHandler","_class_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
11193 | { "_class_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, | |
f6bcfd97 BP |
11194 | { "_class_wxEvtHandler","_class_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
11195 | { "_class_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
2d091820 RD |
11196 | { "_class_wxEvtHandler","_class_wxSlider",SwigwxSliderTowxEvtHandler}, |
11197 | { "_class_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
11198 | { "_class_wxEvtHandler","_class_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
11199 | { "_class_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
11200 | { "_class_wxEvtHandler","_class_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
11201 | { "_class_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
11202 | { "_class_wxEvtHandler","_class_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
11203 | { "_class_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
11204 | { "_class_wxEvtHandler","_class_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
11205 | { "_class_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
11206 | { "_class_wxEvtHandler","_class_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
11207 | { "_class_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
11208 | { "_class_wxEvtHandler","_class_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
11209 | { "_class_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
11210 | { "_class_wxEvtHandler","_class_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
11211 | { "_class_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
11212 | { "_class_wxEvtHandler","_class_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
11213 | { "_class_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
11214 | { "_class_wxEvtHandler","_class_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
11215 | { "_class_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
11216 | { "_class_wxEvtHandler","_class_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
11217 | { "_class_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
11218 | { "_class_wxEvtHandler","_class_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
11219 | { "_class_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
11220 | { "_class_wxEvtHandler","_class_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
11221 | { "_class_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
11222 | { "_class_wxEvtHandler","_class_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
11223 | { "_class_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
11224 | { "_class_wxEvtHandler","_class_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
11225 | { "_class_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
11226 | { "_class_wxEvtHandler","_class_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
11227 | { "_class_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
11228 | { "_class_wxEvtHandler","_class_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
11229 | { "_class_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
11230 | { "_class_wxEvtHandler","_class_wxButton",SwigwxButtonTowxEvtHandler}, | |
11231 | { "_class_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
65191ae8 RD |
11232 | { "_class_wxEvtHandler","_class_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, |
11233 | { "_class_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, | |
2d091820 RD |
11234 | { "_class_wxEvtHandler","_class_wxControl",SwigwxControlTowxEvtHandler}, |
11235 | { "_class_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
2d091820 | 11236 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
11237 | { "_wxChoice","_class_wxComboBox",SwigwxComboBoxTowxChoice}, |
11238 | { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, | |
2d091820 RD |
11239 | { "_long","_unsigned_long",0}, |
11240 | { "_long","_signed_long",0}, | |
9df61a29 RD |
11241 | { "_class_wxObject","_class_wxToggleButton",SwigwxToggleButtonTowxObject}, |
11242 | { "_class_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, | |
11243 | { "_class_wxObject","_class_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
11244 | { "_class_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
11245 | { "_class_wxObject","_class_wxSlider",SwigwxSliderTowxObject}, | |
11246 | { "_class_wxObject","_wxSlider",SwigwxSliderTowxObject}, | |
11247 | { "_class_wxObject","_class_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
11248 | { "_class_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
11249 | { "_class_wxObject","_class_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
11250 | { "_class_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
11251 | { "_class_wxObject","_class_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
11252 | { "_class_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
11253 | { "_class_wxObject","_class_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
11254 | { "_class_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
11255 | { "_class_wxObject","_class_wxScrollBar",SwigwxScrollBarTowxObject}, | |
11256 | { "_class_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, | |
11257 | { "_class_wxObject","_class_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
11258 | { "_class_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
11259 | { "_class_wxObject","_class_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
11260 | { "_class_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
11261 | { "_class_wxObject","_class_wxListBox",SwigwxListBoxTowxObject}, | |
11262 | { "_class_wxObject","_wxListBox",SwigwxListBoxTowxObject}, | |
11263 | { "_class_wxObject","_class_wxStaticText",SwigwxStaticTextTowxObject}, | |
11264 | { "_class_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, | |
11265 | { "_class_wxObject","_class_wxStaticLine",SwigwxStaticLineTowxObject}, | |
11266 | { "_class_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, | |
11267 | { "_class_wxObject","_class_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
11268 | { "_class_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
11269 | { "_class_wxObject","_class_wxGauge",SwigwxGaugeTowxObject}, | |
11270 | { "_class_wxObject","_wxGauge",SwigwxGaugeTowxObject}, | |
11271 | { "_class_wxObject","_class_wxComboBox",SwigwxComboBoxTowxObject}, | |
11272 | { "_class_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, | |
11273 | { "_class_wxObject","_class_wxChoice",SwigwxChoiceTowxObject}, | |
11274 | { "_class_wxObject","_wxChoice",SwigwxChoiceTowxObject}, | |
11275 | { "_class_wxObject","_class_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
11276 | { "_class_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
11277 | { "_class_wxObject","_class_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
11278 | { "_class_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
11279 | { "_class_wxObject","_class_wxButton",SwigwxButtonTowxObject}, | |
11280 | { "_class_wxObject","_wxButton",SwigwxButtonTowxObject}, | |
65191ae8 RD |
11281 | { "_class_wxObject","_class_wxControlWithItems",SwigwxControlWithItemsTowxObject}, |
11282 | { "_class_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, | |
9df61a29 RD |
11283 | { "_class_wxObject","_class_wxControl",SwigwxControlTowxObject}, |
11284 | { "_class_wxObject","_wxControl",SwigwxControlTowxObject}, | |
4120ef2b | 11285 | { "_size_t","_wxCoord",0}, |
2d091820 | 11286 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11287 | { "_size_t","_time_t",0}, |
2d091820 RD |
11288 | { "_size_t","_unsigned_int",0}, |
11289 | { "_size_t","_int",0}, | |
11290 | { "_size_t","_wxWindowID",0}, | |
11291 | { "_size_t","_uint",0}, | |
4120ef2b | 11292 | { "_uint","_wxCoord",0}, |
2d091820 | 11293 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11294 | { "_uint","_time_t",0}, |
2d091820 RD |
11295 | { "_uint","_size_t",0}, |
11296 | { "_uint","_unsigned_int",0}, | |
11297 | { "_uint","_int",0}, | |
11298 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11299 | { "_wxChar","_char",0}, |
2d091820 RD |
11300 | { "_class_wxButton","_class_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
11301 | { "_class_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
f6bcfd97 | 11302 | { "_char","_wxChar",0}, |
f6bcfd97 BP |
11303 | { "_wxSpinButton","_class_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
11304 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
059a841c | 11305 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 11306 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
11307 | { "_EBool","_wxPrintQuality",0}, |
11308 | { "_EBool","_signed_int",0}, | |
11309 | { "_EBool","_int",0}, | |
11310 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 11311 | { "_unsigned_long","_long",0}, |
059a841c | 11312 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
f6bcfd97 BP |
11313 | { "_class_wxSpinButton","_class_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
11314 | { "_class_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
4120ef2b | 11315 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
11316 | { "_signed_int","_wxPrintQuality",0}, |
11317 | { "_signed_int","_EBool",0}, | |
11318 | { "_signed_int","_wxWindowID",0}, | |
11319 | { "_signed_int","_int",0}, | |
2d091820 RD |
11320 | { "_wxListBox","_class_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
11321 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
2d091820 RD |
11322 | { "_WXTYPE","_short",0}, |
11323 | { "_WXTYPE","_signed_short",0}, | |
11324 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
11325 | { "_unsigned_short","_WXTYPE",0}, |
11326 | { "_unsigned_short","_short",0}, | |
7a446686 RD |
11327 | { "_class_wxWindow","_class_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
11328 | { "_class_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, | |
f6bcfd97 BP |
11329 | { "_class_wxWindow","_class_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
11330 | { "_class_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
2d091820 RD |
11331 | { "_class_wxWindow","_class_wxSlider",SwigwxSliderTowxWindow}, |
11332 | { "_class_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
11333 | { "_class_wxWindow","_class_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
11334 | { "_class_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
11335 | { "_class_wxWindow","_class_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
11336 | { "_class_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
11337 | { "_class_wxWindow","_class_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
11338 | { "_class_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
11339 | { "_class_wxWindow","_class_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
11340 | { "_class_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
11341 | { "_class_wxWindow","_class_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
11342 | { "_class_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
11343 | { "_class_wxWindow","_class_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
11344 | { "_class_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
11345 | { "_class_wxWindow","_class_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
11346 | { "_class_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
11347 | { "_class_wxWindow","_class_wxListBox",SwigwxListBoxTowxWindow}, | |
11348 | { "_class_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
11349 | { "_class_wxWindow","_class_wxStaticText",SwigwxStaticTextTowxWindow}, | |
11350 | { "_class_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
11351 | { "_class_wxWindow","_class_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
11352 | { "_class_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
11353 | { "_class_wxWindow","_class_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
11354 | { "_class_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
11355 | { "_class_wxWindow","_class_wxGauge",SwigwxGaugeTowxWindow}, | |
11356 | { "_class_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
11357 | { "_class_wxWindow","_class_wxComboBox",SwigwxComboBoxTowxWindow}, | |
11358 | { "_class_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
11359 | { "_class_wxWindow","_class_wxChoice",SwigwxChoiceTowxWindow}, | |
11360 | { "_class_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
11361 | { "_class_wxWindow","_class_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
11362 | { "_class_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
11363 | { "_class_wxWindow","_class_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
11364 | { "_class_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
11365 | { "_class_wxWindow","_class_wxButton",SwigwxButtonTowxWindow}, | |
11366 | { "_class_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
65191ae8 RD |
11367 | { "_class_wxWindow","_class_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, |
11368 | { "_class_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, | |
2d091820 RD |
11369 | { "_class_wxWindow","_class_wxControl",SwigwxControlTowxWindow}, |
11370 | { "_class_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
9df61a29 RD |
11371 | { "_wxObject","_class_wxToggleButton",SwigwxToggleButtonTowxObject}, |
11372 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, | |
11373 | { "_wxObject","_class_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
11374 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
11375 | { "_wxObject","_class_wxSlider",SwigwxSliderTowxObject}, | |
11376 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, | |
11377 | { "_wxObject","_class_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
11378 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
11379 | { "_wxObject","_class_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
11380 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
11381 | { "_wxObject","_class_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
11382 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
11383 | { "_wxObject","_class_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
11384 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
11385 | { "_wxObject","_class_wxScrollBar",SwigwxScrollBarTowxObject}, | |
11386 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, | |
11387 | { "_wxObject","_class_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
11388 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
11389 | { "_wxObject","_class_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
11390 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
11391 | { "_wxObject","_class_wxListBox",SwigwxListBoxTowxObject}, | |
11392 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, | |
11393 | { "_wxObject","_class_wxStaticText",SwigwxStaticTextTowxObject}, | |
11394 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, | |
11395 | { "_wxObject","_class_wxStaticLine",SwigwxStaticLineTowxObject}, | |
11396 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, | |
11397 | { "_wxObject","_class_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
11398 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
11399 | { "_wxObject","_class_wxGauge",SwigwxGaugeTowxObject}, | |
11400 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, | |
11401 | { "_wxObject","_class_wxComboBox",SwigwxComboBoxTowxObject}, | |
11402 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, | |
11403 | { "_wxObject","_class_wxChoice",SwigwxChoiceTowxObject}, | |
11404 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, | |
11405 | { "_wxObject","_class_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
11406 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
11407 | { "_wxObject","_class_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
11408 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
11409 | { "_wxObject","_class_wxButton",SwigwxButtonTowxObject}, | |
11410 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, | |
65191ae8 RD |
11411 | { "_wxObject","_class_wxControlWithItems",SwigwxControlWithItemsTowxObject}, |
11412 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, | |
9df61a29 RD |
11413 | { "_wxObject","_class_wxControl",SwigwxControlTowxObject}, |
11414 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, | |
2d091820 RD |
11415 | { "_signed_short","_WXTYPE",0}, |
11416 | { "_signed_short","_short",0}, | |
2d091820 | 11417 | { "_unsigned_char","_byte",0}, |
7a446686 RD |
11418 | { "_wxControl","_class_wxToggleButton",SwigwxToggleButtonTowxControl}, |
11419 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, | |
f6bcfd97 BP |
11420 | { "_wxControl","_class_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
11421 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
2d091820 RD |
11422 | { "_wxControl","_class_wxSlider",SwigwxSliderTowxControl}, |
11423 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
11424 | { "_wxControl","_class_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
11425 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
11426 | { "_wxControl","_class_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
11427 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
11428 | { "_wxControl","_class_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
11429 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
11430 | { "_wxControl","_class_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
11431 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
11432 | { "_wxControl","_class_wxScrollBar",SwigwxScrollBarTowxControl}, | |
11433 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
11434 | { "_wxControl","_class_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
11435 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
11436 | { "_wxControl","_class_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
11437 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
11438 | { "_wxControl","_class_wxListBox",SwigwxListBoxTowxControl}, | |
11439 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
11440 | { "_wxControl","_class_wxStaticText",SwigwxStaticTextTowxControl}, | |
11441 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
11442 | { "_wxControl","_class_wxStaticLine",SwigwxStaticLineTowxControl}, | |
11443 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
11444 | { "_wxControl","_class_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
11445 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
11446 | { "_wxControl","_class_wxGauge",SwigwxGaugeTowxControl}, | |
11447 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
11448 | { "_wxControl","_class_wxComboBox",SwigwxComboBoxTowxControl}, | |
11449 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
11450 | { "_wxControl","_class_wxChoice",SwigwxChoiceTowxControl}, | |
11451 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
11452 | { "_wxControl","_class_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
11453 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
11454 | { "_wxControl","_class_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
11455 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
11456 | { "_wxControl","_class_wxButton",SwigwxButtonTowxControl}, | |
11457 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
65191ae8 RD |
11458 | { "_wxControl","_class_wxControlWithItems",SwigwxControlWithItemsTowxControl}, |
11459 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, | |
2d091820 RD |
11460 | { "_class_wxListBox","_class_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
11461 | { "_class_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
4120ef2b | 11462 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 11463 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11464 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
11465 | { "_unsigned_int","_size_t",0}, |
11466 | { "_unsigned_int","_uint",0}, | |
11467 | { "_unsigned_int","_wxWindowID",0}, | |
11468 | { "_unsigned_int","_int",0}, | |
2d091820 RD |
11469 | { "_short","_WXTYPE",0}, |
11470 | { "_short","_unsigned_short",0}, | |
11471 | { "_short","_signed_short",0}, | |
65191ae8 RD |
11472 | { "_wxControlWithItems","_class_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, |
11473 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, | |
11474 | { "_wxControlWithItems","_class_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
11475 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
11476 | { "_wxControlWithItems","_class_wxComboBox",SwigwxComboBoxTowxControlWithItems}, | |
11477 | { "_wxControlWithItems","_wxComboBox",SwigwxComboBoxTowxControlWithItems}, | |
11478 | { "_wxControlWithItems","_class_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
11479 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
2d091820 RD |
11480 | { "_class_wxChoice","_class_wxComboBox",SwigwxComboBoxTowxChoice}, |
11481 | { "_class_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, | |
4120ef2b | 11482 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 11483 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11484 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
11485 | { "_wxWindowID","_size_t",0}, |
11486 | { "_wxWindowID","_EBool",0}, | |
11487 | { "_wxWindowID","_uint",0}, | |
11488 | { "_wxWindowID","_int",0}, | |
11489 | { "_wxWindowID","_signed_int",0}, | |
11490 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 11491 | { "_int","_wxCoord",0}, |
2d091820 | 11492 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11493 | { "_int","_time_t",0}, |
2d091820 RD |
11494 | { "_int","_size_t",0}, |
11495 | { "_int","_EBool",0}, | |
11496 | { "_int","_uint",0}, | |
11497 | { "_int","_wxWindowID",0}, | |
11498 | { "_int","_unsigned_int",0}, | |
11499 | { "_int","_signed_int",0}, | |
c368d904 RD |
11500 | { "_time_t","_wxCoord",0}, |
11501 | { "_time_t","_wxPrintQuality",0}, | |
11502 | { "_time_t","_unsigned_int",0}, | |
11503 | { "_time_t","_int",0}, | |
11504 | { "_time_t","_wxWindowID",0}, | |
11505 | { "_time_t","_uint",0}, | |
11506 | { "_time_t","_size_t",0}, | |
2d091820 RD |
11507 | { "_wxButton","_class_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
11508 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
7a446686 RD |
11509 | { "_class_wxControl","_class_wxToggleButton",SwigwxToggleButtonTowxControl}, |
11510 | { "_class_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, | |
f6bcfd97 BP |
11511 | { "_class_wxControl","_class_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
11512 | { "_class_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
2d091820 RD |
11513 | { "_class_wxControl","_class_wxSlider",SwigwxSliderTowxControl}, |
11514 | { "_class_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
11515 | { "_class_wxControl","_class_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
11516 | { "_class_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
11517 | { "_class_wxControl","_class_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
11518 | { "_class_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
11519 | { "_class_wxControl","_class_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
11520 | { "_class_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
11521 | { "_class_wxControl","_class_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
11522 | { "_class_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
11523 | { "_class_wxControl","_class_wxScrollBar",SwigwxScrollBarTowxControl}, | |
11524 | { "_class_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
11525 | { "_class_wxControl","_class_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
11526 | { "_class_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
11527 | { "_class_wxControl","_class_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
11528 | { "_class_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
11529 | { "_class_wxControl","_class_wxListBox",SwigwxListBoxTowxControl}, | |
11530 | { "_class_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
11531 | { "_class_wxControl","_class_wxStaticText",SwigwxStaticTextTowxControl}, | |
11532 | { "_class_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
11533 | { "_class_wxControl","_class_wxStaticLine",SwigwxStaticLineTowxControl}, | |
11534 | { "_class_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
11535 | { "_class_wxControl","_class_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
11536 | { "_class_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
11537 | { "_class_wxControl","_class_wxGauge",SwigwxGaugeTowxControl}, | |
11538 | { "_class_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
11539 | { "_class_wxControl","_class_wxComboBox",SwigwxComboBoxTowxControl}, | |
11540 | { "_class_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
11541 | { "_class_wxControl","_class_wxChoice",SwigwxChoiceTowxControl}, | |
11542 | { "_class_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
11543 | { "_class_wxControl","_class_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
11544 | { "_class_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
11545 | { "_class_wxControl","_class_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
11546 | { "_class_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
11547 | { "_class_wxControl","_class_wxButton",SwigwxButtonTowxControl}, | |
11548 | { "_class_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
65191ae8 RD |
11549 | { "_class_wxControl","_class_wxControlWithItems",SwigwxControlWithItemsTowxControl}, |
11550 | { "_class_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, | |
4120ef2b RD |
11551 | { "_wxCoord","_int",0}, |
11552 | { "_wxCoord","_signed_int",0}, | |
11553 | { "_wxCoord","_unsigned_int",0}, | |
11554 | { "_wxCoord","_wxWindowID",0}, | |
11555 | { "_wxCoord","_uint",0}, | |
11556 | { "_wxCoord","_EBool",0}, | |
11557 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11558 | { "_wxCoord","_time_t",0}, |
4120ef2b | 11559 | { "_wxCoord","_wxPrintQuality",0}, |
65191ae8 RD |
11560 | { "_class_wxControlWithItems","_class_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, |
11561 | { "_class_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, | |
11562 | { "_class_wxControlWithItems","_class_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
11563 | { "_class_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
11564 | { "_class_wxControlWithItems","_class_wxComboBox",SwigwxComboBoxTowxControlWithItems}, | |
11565 | { "_class_wxControlWithItems","_wxComboBox",SwigwxComboBoxTowxControlWithItems}, | |
11566 | { "_class_wxControlWithItems","_class_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
11567 | { "_class_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
7a446686 RD |
11568 | { "_wxEvtHandler","_class_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
11569 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, | |
f6bcfd97 BP |
11570 | { "_wxEvtHandler","_class_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
11571 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
2d091820 RD |
11572 | { "_wxEvtHandler","_class_wxSlider",SwigwxSliderTowxEvtHandler}, |
11573 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
11574 | { "_wxEvtHandler","_class_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
11575 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
11576 | { "_wxEvtHandler","_class_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
11577 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
11578 | { "_wxEvtHandler","_class_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
11579 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
11580 | { "_wxEvtHandler","_class_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
11581 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
11582 | { "_wxEvtHandler","_class_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
11583 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
11584 | { "_wxEvtHandler","_class_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
11585 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
11586 | { "_wxEvtHandler","_class_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
11587 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
11588 | { "_wxEvtHandler","_class_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
11589 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
11590 | { "_wxEvtHandler","_class_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
11591 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
11592 | { "_wxEvtHandler","_class_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
11593 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
11594 | { "_wxEvtHandler","_class_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
11595 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
11596 | { "_wxEvtHandler","_class_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
11597 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
11598 | { "_wxEvtHandler","_class_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
11599 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
11600 | { "_wxEvtHandler","_class_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
11601 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
11602 | { "_wxEvtHandler","_class_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
11603 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
11604 | { "_wxEvtHandler","_class_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
11605 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
11606 | { "_wxEvtHandler","_class_wxButton",SwigwxButtonTowxEvtHandler}, | |
11607 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
65191ae8 RD |
11608 | { "_wxEvtHandler","_class_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, |
11609 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, | |
2d091820 RD |
11610 | { "_wxEvtHandler","_class_wxControl",SwigwxControlTowxEvtHandler}, |
11611 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
7a446686 RD |
11612 | { "_wxWindow","_class_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
11613 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, | |
f6bcfd97 BP |
11614 | { "_wxWindow","_class_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
11615 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
2d091820 RD |
11616 | { "_wxWindow","_class_wxSlider",SwigwxSliderTowxWindow}, |
11617 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
11618 | { "_wxWindow","_class_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
11619 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
11620 | { "_wxWindow","_class_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
11621 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
11622 | { "_wxWindow","_class_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
11623 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
11624 | { "_wxWindow","_class_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
11625 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
11626 | { "_wxWindow","_class_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
11627 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
11628 | { "_wxWindow","_class_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
11629 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
11630 | { "_wxWindow","_class_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
11631 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
11632 | { "_wxWindow","_class_wxListBox",SwigwxListBoxTowxWindow}, | |
11633 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
11634 | { "_wxWindow","_class_wxStaticText",SwigwxStaticTextTowxWindow}, | |
11635 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
11636 | { "_wxWindow","_class_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
11637 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
11638 | { "_wxWindow","_class_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
11639 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
11640 | { "_wxWindow","_class_wxGauge",SwigwxGaugeTowxWindow}, | |
11641 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
11642 | { "_wxWindow","_class_wxComboBox",SwigwxComboBoxTowxWindow}, | |
11643 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
11644 | { "_wxWindow","_class_wxChoice",SwigwxChoiceTowxWindow}, | |
11645 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
11646 | { "_wxWindow","_class_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
11647 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
11648 | { "_wxWindow","_class_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
11649 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
11650 | { "_wxWindow","_class_wxButton",SwigwxButtonTowxWindow}, | |
11651 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
65191ae8 RD |
11652 | { "_wxWindow","_class_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, |
11653 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, | |
2d091820 RD |
11654 | { "_wxWindow","_class_wxControl",SwigwxControlTowxWindow}, |
11655 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
2d091820 RD |
11656 | {0,0,0}}; |
11657 | ||
70551f47 RD |
11658 | static PyObject *SWIG_globals; |
11659 | #ifdef __cplusplus | |
11660 | extern "C" | |
11661 | #endif | |
2d091820 | 11662 | SWIGEXPORT(void) initcontrolsc() { |
70551f47 RD |
11663 | PyObject *m, *d; |
11664 | SWIG_globals = SWIG_newvarlink(); | |
11665 | m = Py_InitModule("controlsc", controlscMethods); | |
11666 | d = PyModule_GetDict(m); | |
37f6a977 RD |
11667 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
11668 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
7a446686 | 11669 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
2d091820 RD |
11670 | { |
11671 | int i; | |
11672 | for (i = 0; _swig_mapping[i].n1; i++) | |
11673 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11674 | } | |
70551f47 | 11675 | } |