]>
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 | |
70551f47 | 109 | |
56f5d962 RD |
110 | wxSize wxButton_GetDefaultSize() { |
111 | return wxButton::GetDefaultSize(); | |
112 | } | |
2d091820 RD |
113 | #ifdef __cplusplus |
114 | extern "C" { | |
115 | #endif | |
37f6a977 RD |
116 | static int _wrap_wxDefaultValidator_set(PyObject *val) { |
117 | ||
118 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
119 | return 1; | |
120 | } | |
121 | ||
122 | static PyObject *_wrap_wxDefaultValidator_get() { | |
123 | PyObject * pyobj; | |
124 | char ptemp[128]; | |
125 | ||
126 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
127 | pyobj = PyString_FromString(ptemp); | |
128 | return pyobj; | |
129 | } | |
130 | ||
56f5d962 RD |
131 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
132 | PyObject * _resultobj; | |
133 | wxSize * _result; | |
134 | char *_kwnames[] = { NULL }; | |
135 | char _ptemp[128]; | |
136 | ||
137 | self = self; | |
138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
139 | return NULL; | |
140 | { | |
141 | wxPy_BEGIN_ALLOW_THREADS; | |
142 | _result = new wxSize (wxButton_GetDefaultSize()); | |
143 | ||
144 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 145 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
146 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
147 | _resultobj = Py_BuildValue("s",_ptemp); | |
148 | return _resultobj; | |
149 | } | |
150 | ||
70551f47 RD |
151 | static void *SwigwxControlTowxWindow(void *ptr) { |
152 | wxControl *src; | |
153 | wxWindow *dest; | |
154 | src = (wxControl *) ptr; | |
155 | dest = (wxWindow *) src; | |
156 | return (void *) dest; | |
157 | } | |
158 | ||
159 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
160 | wxControl *src; | |
161 | wxEvtHandler *dest; | |
162 | src = (wxControl *) ptr; | |
163 | dest = (wxEvtHandler *) src; | |
164 | return (void *) dest; | |
165 | } | |
166 | ||
9df61a29 RD |
167 | static void *SwigwxControlTowxObject(void *ptr) { |
168 | wxControl *src; | |
169 | wxObject *dest; | |
170 | src = (wxControl *) ptr; | |
171 | dest = (wxObject *) src; | |
172 | return (void *) dest; | |
173 | } | |
174 | ||
ab2208b5 | 175 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
56f5d962 RD |
176 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
177 | PyObject * _resultobj; | |
178 | wxControl * _result; | |
ab2208b5 RD |
179 | wxWindow * _arg0; |
180 | wxWindowID _arg1; | |
b68dc582 RD |
181 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
182 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
ab2208b5 | 183 | long _arg4 = (long ) 0; |
b68dc582 | 184 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
ab2208b5 | 185 | char * _arg6 = (char *) "control"; |
56f5d962 | 186 | PyObject * _argo0 = 0; |
56f5d962 | 187 | wxPoint temp; |
ab2208b5 | 188 | PyObject * _obj2 = 0; |
56f5d962 | 189 | wxSize temp0; |
ab2208b5 RD |
190 | PyObject * _obj3 = 0; |
191 | PyObject * _argo5 = 0; | |
192 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
193 | char _ptemp[128]; | |
56f5d962 RD |
194 | |
195 | self = self; | |
ab2208b5 | 196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
56f5d962 RD |
197 | return NULL; |
198 | if (_argo0) { | |
199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 RD |
200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
56f5d962 RD |
202 | return NULL; |
203 | } | |
204 | } | |
ab2208b5 | 205 | if (_obj2) |
56f5d962 | 206 | { |
ab2208b5 RD |
207 | _arg2 = &temp; |
208 | if (! wxPoint_helper(_obj2, &_arg2)) | |
56f5d962 RD |
209 | return NULL; |
210 | } | |
ab2208b5 | 211 | if (_obj3) |
56f5d962 | 212 | { |
ab2208b5 RD |
213 | _arg3 = &temp0; |
214 | if (! wxSize_helper(_obj3, &_arg3)) | |
56f5d962 RD |
215 | return NULL; |
216 | } | |
ab2208b5 RD |
217 | if (_argo5) { |
218 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
219 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
56f5d962 RD |
221 | return NULL; |
222 | } | |
223 | } | |
224 | { | |
225 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 226 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
56f5d962 RD |
227 | |
228 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 229 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
230 | } if (_result) { |
231 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
232 | _resultobj = Py_BuildValue("s",_ptemp); | |
233 | } else { | |
234 | Py_INCREF(Py_None); | |
235 | _resultobj = Py_None; | |
236 | } | |
56f5d962 RD |
237 | return _resultobj; |
238 | } | |
239 | ||
240 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) | |
241 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
242 | PyObject * _resultobj; | |
243 | wxControl * _arg0; | |
244 | wxCommandEvent * _arg1; | |
245 | PyObject * _argo0 = 0; | |
246 | PyObject * _argo1 = 0; | |
247 | char *_kwnames[] = { "self","event", NULL }; | |
248 | ||
249 | self = self; | |
250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) | |
251 | return NULL; | |
252 | if (_argo0) { | |
253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); | |
256 | return NULL; | |
257 | } | |
258 | } | |
259 | if (_argo1) { | |
260 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
261 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); | |
263 | return NULL; | |
264 | } | |
265 | } | |
266 | { | |
267 | wxPy_BEGIN_ALLOW_THREADS; | |
268 | wxControl_Command(_arg0,*_arg1); | |
269 | ||
270 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 271 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
272 | } Py_INCREF(Py_None); |
273 | _resultobj = Py_None; | |
274 | return _resultobj; | |
275 | } | |
276 | ||
70551f47 | 277 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) |
107e4716 | 278 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
279 | PyObject * _resultobj; |
280 | wxString * _result; | |
281 | wxControl * _arg0; | |
2d091820 | 282 | PyObject * _argo0 = 0; |
107e4716 | 283 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
284 | |
285 | self = self; | |
107e4716 | 286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) |
70551f47 | 287 | return NULL; |
2d091820 RD |
288 | if (_argo0) { |
289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
70551f47 RD |
291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); |
292 | return NULL; | |
293 | } | |
294 | } | |
70551f47 | 295 | { |
ab9bc19b RD |
296 | wxPy_BEGIN_ALLOW_THREADS; |
297 | _result = new wxString (wxControl_GetLabel(_arg0)); | |
298 | ||
299 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 300 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 301 | }{ |
e02c03a4 | 302 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
303 | } |
304 | { | |
305 | delete _result; | |
306 | } | |
307 | return _resultobj; | |
308 | } | |
309 | ||
310 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
107e4716 | 311 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
312 | PyObject * _resultobj; |
313 | wxControl * _arg0; | |
314 | wxString * _arg1; | |
2d091820 | 315 | PyObject * _argo0 = 0; |
70551f47 | 316 | PyObject * _obj1 = 0; |
107e4716 | 317 | char *_kwnames[] = { "self","label", NULL }; |
70551f47 RD |
318 | |
319 | self = self; | |
107e4716 | 320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) |
70551f47 | 321 | return NULL; |
2d091820 RD |
322 | if (_argo0) { |
323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
70551f47 RD |
325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); |
326 | return NULL; | |
327 | } | |
328 | } | |
329 | { | |
2cd2fac8 RD |
330 | #if PYTHON_API_VERSION >= 1009 |
331 | char* tmpPtr; int tmpSize; | |
332 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 333 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
334 | return NULL; |
335 | } | |
336 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
337 | return NULL; | |
338 | _arg1 = new wxString(tmpPtr, tmpSize); | |
339 | #else | |
70551f47 RD |
340 | if (!PyString_Check(_obj1)) { |
341 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
342 | return NULL; | |
343 | } | |
2cd2fac8 RD |
344 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
345 | #endif | |
70551f47 | 346 | } |
ab9bc19b RD |
347 | { |
348 | wxPy_BEGIN_ALLOW_THREADS; | |
349 | wxControl_SetLabel(_arg0,*_arg1); | |
350 | ||
351 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 352 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 353 | } Py_INCREF(Py_None); |
70551f47 RD |
354 | _resultobj = Py_None; |
355 | { | |
356 | if (_obj1) | |
357 | delete _arg1; | |
358 | } | |
359 | return _resultobj; | |
360 | } | |
361 | ||
362 | static void *SwigwxButtonTowxControl(void *ptr) { | |
363 | wxButton *src; | |
364 | wxControl *dest; | |
365 | src = (wxButton *) ptr; | |
366 | dest = (wxControl *) src; | |
367 | return (void *) dest; | |
368 | } | |
369 | ||
370 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
371 | wxButton *src; | |
372 | wxWindow *dest; | |
373 | src = (wxButton *) ptr; | |
374 | dest = (wxWindow *) src; | |
375 | return (void *) dest; | |
376 | } | |
377 | ||
378 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
379 | wxButton *src; | |
380 | wxEvtHandler *dest; | |
381 | src = (wxButton *) ptr; | |
382 | dest = (wxEvtHandler *) src; | |
383 | return (void *) dest; | |
384 | } | |
385 | ||
9df61a29 RD |
386 | static void *SwigwxButtonTowxObject(void *ptr) { |
387 | wxButton *src; | |
388 | wxObject *dest; | |
389 | src = (wxButton *) ptr; | |
390 | dest = (wxObject *) src; | |
391 | return (void *) dest; | |
392 | } | |
393 | ||
70551f47 | 394 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 395 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
396 | PyObject * _resultobj; |
397 | wxButton * _result; | |
398 | wxWindow * _arg0; | |
399 | wxWindowID _arg1; | |
400 | wxString * _arg2; | |
b68dc582 RD |
401 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
402 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 403 | long _arg5 = (long ) 0; |
b68dc582 | 404 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
405 | char * _arg7 = (char *) "button"; |
406 | PyObject * _argo0 = 0; | |
70551f47 | 407 | PyObject * _obj2 = 0; |
37f6a977 RD |
408 | wxPoint temp; |
409 | PyObject * _obj3 = 0; | |
410 | wxSize temp0; | |
411 | PyObject * _obj4 = 0; | |
2d091820 | 412 | PyObject * _argo6 = 0; |
107e4716 | 413 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
414 | char _ptemp[128]; |
415 | ||
416 | self = self; | |
37f6a977 | 417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 418 | return NULL; |
2d091820 RD |
419 | if (_argo0) { |
420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); |
423 | return NULL; | |
424 | } | |
425 | } | |
426 | { | |
2cd2fac8 RD |
427 | #if PYTHON_API_VERSION >= 1009 |
428 | char* tmpPtr; int tmpSize; | |
429 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 430 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
431 | return NULL; |
432 | } | |
433 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
434 | return NULL; | |
435 | _arg2 = new wxString(tmpPtr, tmpSize); | |
436 | #else | |
70551f47 RD |
437 | if (!PyString_Check(_obj2)) { |
438 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
439 | return NULL; | |
440 | } | |
2cd2fac8 RD |
441 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
442 | #endif | |
70551f47 | 443 | } |
37f6a977 RD |
444 | if (_obj3) |
445 | { | |
446 | _arg3 = &temp; | |
447 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 448 | return NULL; |
37f6a977 RD |
449 | } |
450 | if (_obj4) | |
451 | { | |
452 | _arg4 = &temp0; | |
453 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 454 | return NULL; |
37f6a977 | 455 | } |
2d091820 RD |
456 | if (_argo6) { |
457 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
458 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); |
460 | return NULL; | |
461 | } | |
462 | } | |
ab9bc19b RD |
463 | { |
464 | wxPy_BEGIN_ALLOW_THREADS; | |
465 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
466 | ||
467 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 468 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
469 | } if (_result) { |
470 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
471 | _resultobj = Py_BuildValue("s",_ptemp); | |
472 | } else { | |
473 | Py_INCREF(Py_None); | |
474 | _resultobj = Py_None; | |
475 | } | |
70551f47 RD |
476 | { |
477 | if (_obj2) | |
478 | delete _arg2; | |
479 | } | |
480 | return _resultobj; | |
481 | } | |
482 | ||
483 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) | |
107e4716 | 484 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
485 | PyObject * _resultobj; |
486 | wxButton * _arg0; | |
2d091820 | 487 | PyObject * _argo0 = 0; |
107e4716 | 488 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
489 | |
490 | self = self; | |
107e4716 | 491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) |
70551f47 | 492 | return NULL; |
2d091820 RD |
493 | if (_argo0) { |
494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
70551f47 RD |
496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); |
497 | return NULL; | |
498 | } | |
499 | } | |
ab9bc19b RD |
500 | { |
501 | wxPy_BEGIN_ALLOW_THREADS; | |
502 | wxButton_SetDefault(_arg0); | |
503 | ||
504 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 505 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 506 | } Py_INCREF(Py_None); |
70551f47 RD |
507 | _resultobj = Py_None; |
508 | return _resultobj; | |
509 | } | |
510 | ||
ab2208b5 RD |
511 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
512 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
513 | PyObject * _resultobj; | |
514 | wxButton * _arg0; | |
515 | wxColour * _arg1; | |
516 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
517 | wxColour temp; |
518 | PyObject * _obj1 = 0; | |
ab2208b5 RD |
519 | char *_kwnames[] = { "self","colour", NULL }; |
520 | ||
521 | self = self; | |
f6bcfd97 | 522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
ab2208b5 RD |
523 | return NULL; |
524 | if (_argo0) { | |
525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
528 | return NULL; | |
529 | } | |
530 | } | |
f6bcfd97 BP |
531 | { |
532 | _arg1 = &temp; | |
533 | if (! wxColour_helper(_obj1, &_arg1)) | |
ab2208b5 | 534 | return NULL; |
f6bcfd97 | 535 | } |
ab2208b5 RD |
536 | { |
537 | wxPy_BEGIN_ALLOW_THREADS; | |
538 | wxButton_SetBackgroundColour(_arg0,*_arg1); | |
539 | ||
540 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 541 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
542 | } Py_INCREF(Py_None); |
543 | _resultobj = Py_None; | |
544 | return _resultobj; | |
545 | } | |
546 | ||
547 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
548 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
549 | PyObject * _resultobj; | |
550 | wxButton * _arg0; | |
551 | wxColour * _arg1; | |
552 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
553 | wxColour temp; |
554 | PyObject * _obj1 = 0; | |
ab2208b5 RD |
555 | char *_kwnames[] = { "self","colour", NULL }; |
556 | ||
557 | self = self; | |
f6bcfd97 | 558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
ab2208b5 RD |
559 | return NULL; |
560 | if (_argo0) { | |
561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
564 | return NULL; | |
565 | } | |
566 | } | |
f6bcfd97 BP |
567 | { |
568 | _arg1 = &temp; | |
569 | if (! wxColour_helper(_obj1, &_arg1)) | |
ab2208b5 | 570 | return NULL; |
f6bcfd97 | 571 | } |
ab2208b5 RD |
572 | { |
573 | wxPy_BEGIN_ALLOW_THREADS; | |
574 | wxButton_SetForegroundColour(_arg0,*_arg1); | |
575 | ||
576 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 577 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
578 | } Py_INCREF(Py_None); |
579 | _resultobj = Py_None; | |
580 | return _resultobj; | |
581 | } | |
582 | ||
70551f47 RD |
583 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { |
584 | wxBitmapButton *src; | |
585 | wxButton *dest; | |
586 | src = (wxBitmapButton *) ptr; | |
587 | dest = (wxButton *) src; | |
588 | return (void *) dest; | |
589 | } | |
590 | ||
591 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
592 | wxBitmapButton *src; | |
593 | wxControl *dest; | |
594 | src = (wxBitmapButton *) ptr; | |
595 | dest = (wxControl *) src; | |
596 | return (void *) dest; | |
597 | } | |
598 | ||
599 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
600 | wxBitmapButton *src; | |
601 | wxWindow *dest; | |
602 | src = (wxBitmapButton *) ptr; | |
603 | dest = (wxWindow *) src; | |
604 | return (void *) dest; | |
605 | } | |
606 | ||
607 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
608 | wxBitmapButton *src; | |
609 | wxEvtHandler *dest; | |
610 | src = (wxBitmapButton *) ptr; | |
611 | dest = (wxEvtHandler *) src; | |
612 | return (void *) dest; | |
613 | } | |
614 | ||
9df61a29 RD |
615 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { |
616 | wxBitmapButton *src; | |
617 | wxObject *dest; | |
618 | src = (wxBitmapButton *) ptr; | |
619 | dest = (wxObject *) src; | |
620 | return (void *) dest; | |
621 | } | |
622 | ||
70551f47 | 623 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 624 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
625 | PyObject * _resultobj; |
626 | wxBitmapButton * _result; | |
627 | wxWindow * _arg0; | |
628 | wxWindowID _arg1; | |
629 | wxBitmap * _arg2; | |
b68dc582 RD |
630 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
631 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 632 | long _arg5 = (long ) wxBU_AUTODRAW; |
b68dc582 | 633 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
634 | char * _arg7 = (char *) "button"; |
635 | PyObject * _argo0 = 0; | |
636 | PyObject * _argo2 = 0; | |
37f6a977 RD |
637 | wxPoint temp; |
638 | PyObject * _obj3 = 0; | |
639 | wxSize temp0; | |
640 | PyObject * _obj4 = 0; | |
2d091820 | 641 | PyObject * _argo6 = 0; |
107e4716 | 642 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; |
70551f47 RD |
643 | char _ptemp[128]; |
644 | ||
645 | self = self; | |
37f6a977 | 646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 647 | return NULL; |
2d091820 RD |
648 | if (_argo0) { |
649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); |
652 | return NULL; | |
653 | } | |
654 | } | |
2d091820 RD |
655 | if (_argo2) { |
656 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
657 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
70551f47 RD |
658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); |
659 | return NULL; | |
660 | } | |
661 | } | |
37f6a977 RD |
662 | if (_obj3) |
663 | { | |
664 | _arg3 = &temp; | |
665 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 666 | return NULL; |
37f6a977 RD |
667 | } |
668 | if (_obj4) | |
669 | { | |
670 | _arg4 = &temp0; | |
671 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 672 | return NULL; |
37f6a977 | 673 | } |
2d091820 RD |
674 | if (_argo6) { |
675 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
676 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); |
678 | return NULL; | |
679 | } | |
680 | } | |
ab9bc19b RD |
681 | { |
682 | wxPy_BEGIN_ALLOW_THREADS; | |
683 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
684 | ||
685 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 686 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
687 | } if (_result) { |
688 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
689 | _resultobj = Py_BuildValue("s",_ptemp); | |
690 | } else { | |
691 | Py_INCREF(Py_None); | |
692 | _resultobj = Py_None; | |
693 | } | |
70551f47 RD |
694 | return _resultobj; |
695 | } | |
696 | ||
697 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) | |
107e4716 | 698 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
699 | PyObject * _resultobj; |
700 | wxBitmap * _result; | |
701 | wxBitmapButton * _arg0; | |
2d091820 | 702 | PyObject * _argo0 = 0; |
107e4716 | 703 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
704 | char _ptemp[128]; |
705 | ||
706 | self = self; | |
107e4716 | 707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) |
70551f47 | 708 | return NULL; |
2d091820 RD |
709 | if (_argo0) { |
710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
70551f47 RD |
712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); |
713 | return NULL; | |
714 | } | |
715 | } | |
ab9bc19b RD |
716 | { |
717 | wxPy_BEGIN_ALLOW_THREADS; | |
718 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapLabel(_arg0); | |
70551f47 | 719 | _result = (wxBitmap *) &_result_ref; |
ab9bc19b RD |
720 | |
721 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 722 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
723 | } if (_result) { |
724 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
725 | _resultobj = Py_BuildValue("s",_ptemp); | |
726 | } else { | |
727 | Py_INCREF(Py_None); | |
728 | _resultobj = Py_None; | |
729 | } | |
70551f47 RD |
730 | return _resultobj; |
731 | } | |
732 | ||
c95e68d8 | 733 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) |
107e4716 | 734 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
735 | PyObject * _resultobj; |
736 | wxBitmap * _result; | |
737 | wxBitmapButton * _arg0; | |
2d091820 | 738 | PyObject * _argo0 = 0; |
107e4716 | 739 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
740 | char _ptemp[128]; |
741 | ||
742 | self = self; | |
107e4716 | 743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) |
c95e68d8 | 744 | return NULL; |
2d091820 RD |
745 | if (_argo0) { |
746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); |
749 | return NULL; | |
750 | } | |
751 | } | |
ab9bc19b RD |
752 | { |
753 | wxPy_BEGIN_ALLOW_THREADS; | |
754 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapDisabled(_arg0); | |
c95e68d8 | 755 | _result = (wxBitmap *) &_result_ref; |
ab9bc19b RD |
756 | |
757 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 758 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
759 | } if (_result) { |
760 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
761 | _resultobj = Py_BuildValue("s",_ptemp); | |
762 | } else { | |
763 | Py_INCREF(Py_None); | |
764 | _resultobj = Py_None; | |
765 | } | |
c95e68d8 RD |
766 | return _resultobj; |
767 | } | |
768 | ||
769 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
107e4716 | 770 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
771 | PyObject * _resultobj; |
772 | wxBitmap * _result; | |
773 | wxBitmapButton * _arg0; | |
2d091820 | 774 | PyObject * _argo0 = 0; |
107e4716 | 775 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
776 | char _ptemp[128]; |
777 | ||
778 | self = self; | |
107e4716 | 779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) |
c95e68d8 | 780 | return NULL; |
2d091820 RD |
781 | if (_argo0) { |
782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); |
785 | return NULL; | |
786 | } | |
787 | } | |
ab9bc19b RD |
788 | { |
789 | wxPy_BEGIN_ALLOW_THREADS; | |
790 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapFocus(_arg0); | |
c95e68d8 | 791 | _result = (wxBitmap *) &_result_ref; |
ab9bc19b RD |
792 | |
793 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 794 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
795 | } if (_result) { |
796 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
797 | _resultobj = Py_BuildValue("s",_ptemp); | |
798 | } else { | |
799 | Py_INCREF(Py_None); | |
800 | _resultobj = Py_None; | |
801 | } | |
c95e68d8 RD |
802 | return _resultobj; |
803 | } | |
804 | ||
805 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
107e4716 | 806 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
807 | PyObject * _resultobj; |
808 | wxBitmap * _result; | |
809 | wxBitmapButton * _arg0; | |
2d091820 | 810 | PyObject * _argo0 = 0; |
107e4716 | 811 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
812 | char _ptemp[128]; |
813 | ||
814 | self = self; | |
107e4716 | 815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) |
c95e68d8 | 816 | return NULL; |
2d091820 RD |
817 | if (_argo0) { |
818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); |
821 | return NULL; | |
822 | } | |
823 | } | |
ab9bc19b RD |
824 | { |
825 | wxPy_BEGIN_ALLOW_THREADS; | |
826 | wxBitmap & _result_ref = wxBitmapButton_GetBitmapSelected(_arg0); | |
c95e68d8 | 827 | _result = (wxBitmap *) &_result_ref; |
ab9bc19b RD |
828 | |
829 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 830 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
831 | } if (_result) { |
832 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
833 | _resultobj = Py_BuildValue("s",_ptemp); | |
834 | } else { | |
835 | Py_INCREF(Py_None); | |
836 | _resultobj = Py_None; | |
837 | } | |
c95e68d8 RD |
838 | return _resultobj; |
839 | } | |
840 | ||
841 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
107e4716 | 842 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
843 | PyObject * _resultobj; |
844 | wxBitmapButton * _arg0; | |
845 | wxBitmap * _arg1; | |
2d091820 RD |
846 | PyObject * _argo0 = 0; |
847 | PyObject * _argo1 = 0; | |
107e4716 | 848 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
849 | |
850 | self = self; | |
107e4716 | 851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 852 | return NULL; |
2d091820 RD |
853 | if (_argo0) { |
854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); |
857 | return NULL; | |
858 | } | |
859 | } | |
2d091820 RD |
860 | if (_argo1) { |
861 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
862 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); |
864 | return NULL; | |
865 | } | |
866 | } | |
ab9bc19b RD |
867 | { |
868 | wxPy_BEGIN_ALLOW_THREADS; | |
869 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); | |
870 | ||
871 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 872 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 873 | } Py_INCREF(Py_None); |
c95e68d8 RD |
874 | _resultobj = Py_None; |
875 | return _resultobj; | |
876 | } | |
877 | ||
878 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
107e4716 | 879 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
880 | PyObject * _resultobj; |
881 | wxBitmapButton * _arg0; | |
882 | wxBitmap * _arg1; | |
2d091820 RD |
883 | PyObject * _argo0 = 0; |
884 | PyObject * _argo1 = 0; | |
107e4716 | 885 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
886 | |
887 | self = self; | |
107e4716 | 888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 889 | return NULL; |
2d091820 RD |
890 | if (_argo0) { |
891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); |
894 | return NULL; | |
895 | } | |
896 | } | |
2d091820 RD |
897 | if (_argo1) { |
898 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
899 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); |
901 | return NULL; | |
902 | } | |
903 | } | |
ab9bc19b RD |
904 | { |
905 | wxPy_BEGIN_ALLOW_THREADS; | |
906 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); | |
907 | ||
908 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 909 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 910 | } Py_INCREF(Py_None); |
c95e68d8 RD |
911 | _resultobj = Py_None; |
912 | return _resultobj; | |
913 | } | |
914 | ||
915 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
107e4716 | 916 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
917 | PyObject * _resultobj; |
918 | wxBitmapButton * _arg0; | |
919 | wxBitmap * _arg1; | |
2d091820 RD |
920 | PyObject * _argo0 = 0; |
921 | PyObject * _argo1 = 0; | |
107e4716 | 922 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
923 | |
924 | self = self; | |
107e4716 | 925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 926 | return NULL; |
2d091820 RD |
927 | if (_argo0) { |
928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); |
931 | return NULL; | |
932 | } | |
933 | } | |
2d091820 RD |
934 | if (_argo1) { |
935 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
936 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); |
938 | return NULL; | |
939 | } | |
940 | } | |
ab9bc19b RD |
941 | { |
942 | wxPy_BEGIN_ALLOW_THREADS; | |
943 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); | |
944 | ||
945 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 946 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 947 | } Py_INCREF(Py_None); |
c95e68d8 RD |
948 | _resultobj = Py_None; |
949 | return _resultobj; | |
950 | } | |
951 | ||
70551f47 | 952 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) |
107e4716 | 953 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
954 | PyObject * _resultobj; |
955 | wxBitmapButton * _arg0; | |
956 | wxBitmap * _arg1; | |
2d091820 RD |
957 | PyObject * _argo0 = 0; |
958 | PyObject * _argo1 = 0; | |
107e4716 | 959 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
960 | |
961 | self = self; | |
107e4716 | 962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) |
70551f47 | 963 | return NULL; |
2d091820 RD |
964 | if (_argo0) { |
965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
70551f47 RD |
967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); |
968 | return NULL; | |
969 | } | |
970 | } | |
2d091820 RD |
971 | if (_argo1) { |
972 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
973 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); |
975 | return NULL; | |
976 | } | |
977 | } | |
ab9bc19b RD |
978 | { |
979 | wxPy_BEGIN_ALLOW_THREADS; | |
980 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); | |
981 | ||
982 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 983 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 984 | } Py_INCREF(Py_None); |
70551f47 RD |
985 | _resultobj = Py_None; |
986 | return _resultobj; | |
987 | } | |
988 | ||
f6bcfd97 BP |
989 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
990 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
991 | PyObject * _resultobj; | |
992 | wxBitmapButton * _arg0; | |
993 | int _arg1; | |
994 | int _arg2; | |
995 | PyObject * _argo0 = 0; | |
996 | char *_kwnames[] = { "self","x","y", NULL }; | |
997 | ||
998 | self = self; | |
999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1000 | return NULL; | |
1001 | if (_argo0) { | |
1002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1005 | return NULL; | |
1006 | } | |
1007 | } | |
1008 | { | |
1009 | wxPy_BEGIN_ALLOW_THREADS; | |
1010 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); | |
1011 | ||
1012 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1013 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1014 | } Py_INCREF(Py_None); |
1015 | _resultobj = Py_None; | |
1016 | return _resultobj; | |
1017 | } | |
1018 | ||
1019 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1020 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1021 | PyObject * _resultobj; | |
1022 | int _result; | |
1023 | wxBitmapButton * _arg0; | |
1024 | PyObject * _argo0 = 0; | |
1025 | char *_kwnames[] = { "self", NULL }; | |
1026 | ||
1027 | self = self; | |
1028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1029 | return NULL; | |
1030 | if (_argo0) { | |
1031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1034 | return NULL; | |
1035 | } | |
1036 | } | |
1037 | { | |
1038 | wxPy_BEGIN_ALLOW_THREADS; | |
1039 | _result = (int )wxBitmapButton_GetMarginX(_arg0); | |
1040 | ||
1041 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1042 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1043 | } _resultobj = Py_BuildValue("i",_result); |
1044 | return _resultobj; | |
1045 | } | |
1046 | ||
1047 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1048 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1049 | PyObject * _resultobj; | |
1050 | int _result; | |
1051 | wxBitmapButton * _arg0; | |
1052 | PyObject * _argo0 = 0; | |
1053 | char *_kwnames[] = { "self", NULL }; | |
1054 | ||
1055 | self = self; | |
1056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1057 | return NULL; | |
1058 | if (_argo0) { | |
1059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1062 | return NULL; | |
1063 | } | |
1064 | } | |
1065 | { | |
1066 | wxPy_BEGIN_ALLOW_THREADS; | |
1067 | _result = (int )wxBitmapButton_GetMarginY(_arg0); | |
1068 | ||
1069 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1070 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1071 | } _resultobj = Py_BuildValue("i",_result); |
1072 | return _resultobj; | |
1073 | } | |
1074 | ||
70551f47 RD |
1075 | static void *SwigwxCheckBoxTowxControl(void *ptr) { |
1076 | wxCheckBox *src; | |
1077 | wxControl *dest; | |
1078 | src = (wxCheckBox *) ptr; | |
1079 | dest = (wxControl *) src; | |
1080 | return (void *) dest; | |
1081 | } | |
1082 | ||
1083 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1084 | wxCheckBox *src; | |
1085 | wxWindow *dest; | |
1086 | src = (wxCheckBox *) ptr; | |
1087 | dest = (wxWindow *) src; | |
1088 | return (void *) dest; | |
1089 | } | |
1090 | ||
1091 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1092 | wxCheckBox *src; | |
1093 | wxEvtHandler *dest; | |
1094 | src = (wxCheckBox *) ptr; | |
1095 | dest = (wxEvtHandler *) src; | |
1096 | return (void *) dest; | |
1097 | } | |
1098 | ||
9df61a29 RD |
1099 | static void *SwigwxCheckBoxTowxObject(void *ptr) { |
1100 | wxCheckBox *src; | |
1101 | wxObject *dest; | |
1102 | src = (wxCheckBox *) ptr; | |
1103 | dest = (wxObject *) src; | |
1104 | return (void *) dest; | |
1105 | } | |
1106 | ||
70551f47 | 1107 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 1108 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1109 | PyObject * _resultobj; |
1110 | wxCheckBox * _result; | |
1111 | wxWindow * _arg0; | |
1112 | wxWindowID _arg1; | |
1113 | wxString * _arg2; | |
b68dc582 RD |
1114 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1115 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 1116 | long _arg5 = (long ) 0; |
b68dc582 | 1117 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
1118 | char * _arg7 = (char *) "checkBox"; |
1119 | PyObject * _argo0 = 0; | |
70551f47 | 1120 | PyObject * _obj2 = 0; |
37f6a977 RD |
1121 | wxPoint temp; |
1122 | PyObject * _obj3 = 0; | |
1123 | wxSize temp0; | |
1124 | PyObject * _obj4 = 0; | |
2d091820 | 1125 | PyObject * _argo6 = 0; |
107e4716 | 1126 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; |
70551f47 RD |
1127 | char _ptemp[128]; |
1128 | ||
1129 | self = self; | |
37f6a977 | 1130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 1131 | return NULL; |
2d091820 RD |
1132 | if (_argo0) { |
1133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); |
1136 | return NULL; | |
1137 | } | |
1138 | } | |
1139 | { | |
2cd2fac8 RD |
1140 | #if PYTHON_API_VERSION >= 1009 |
1141 | char* tmpPtr; int tmpSize; | |
1142 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1143 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1144 | return NULL; |
1145 | } | |
1146 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1147 | return NULL; | |
1148 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1149 | #else | |
70551f47 RD |
1150 | if (!PyString_Check(_obj2)) { |
1151 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1152 | return NULL; | |
1153 | } | |
2cd2fac8 RD |
1154 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1155 | #endif | |
70551f47 | 1156 | } |
37f6a977 RD |
1157 | if (_obj3) |
1158 | { | |
1159 | _arg3 = &temp; | |
1160 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1161 | return NULL; |
37f6a977 RD |
1162 | } |
1163 | if (_obj4) | |
1164 | { | |
1165 | _arg4 = &temp0; | |
1166 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1167 | return NULL; |
37f6a977 | 1168 | } |
2d091820 RD |
1169 | if (_argo6) { |
1170 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1171 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
1172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); |
1173 | return NULL; | |
1174 | } | |
1175 | } | |
ab9bc19b RD |
1176 | { |
1177 | wxPy_BEGIN_ALLOW_THREADS; | |
1178 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
1179 | ||
1180 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1181 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1182 | } if (_result) { |
1183 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1184 | _resultobj = Py_BuildValue("s",_ptemp); | |
1185 | } else { | |
1186 | Py_INCREF(Py_None); | |
1187 | _resultobj = Py_None; | |
1188 | } | |
70551f47 RD |
1189 | { |
1190 | if (_obj2) | |
1191 | delete _arg2; | |
1192 | } | |
1193 | return _resultobj; | |
1194 | } | |
1195 | ||
1196 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 1197 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1198 | PyObject * _resultobj; |
1199 | bool _result; | |
1200 | wxCheckBox * _arg0; | |
2d091820 | 1201 | PyObject * _argo0 = 0; |
107e4716 | 1202 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1203 | |
1204 | self = self; | |
107e4716 | 1205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) |
70551f47 | 1206 | return NULL; |
2d091820 RD |
1207 | if (_argo0) { |
1208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
70551f47 RD |
1210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); |
1211 | return NULL; | |
1212 | } | |
1213 | } | |
ab9bc19b RD |
1214 | { |
1215 | wxPy_BEGIN_ALLOW_THREADS; | |
1216 | _result = (bool )wxCheckBox_GetValue(_arg0); | |
1217 | ||
1218 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1219 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1220 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1221 | return _resultobj; |
1222 | } | |
1223 | ||
1224 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 1225 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1226 | PyObject * _resultobj; |
1227 | wxCheckBox * _arg0; | |
1228 | bool _arg1; | |
2d091820 | 1229 | PyObject * _argo0 = 0; |
70551f47 | 1230 | int tempbool1; |
107e4716 | 1231 | char *_kwnames[] = { "self","state", NULL }; |
70551f47 RD |
1232 | |
1233 | self = self; | |
107e4716 | 1234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 1235 | return NULL; |
2d091820 RD |
1236 | if (_argo0) { |
1237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
70551f47 RD |
1239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); |
1240 | return NULL; | |
1241 | } | |
1242 | } | |
1243 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
1244 | { |
1245 | wxPy_BEGIN_ALLOW_THREADS; | |
1246 | wxCheckBox_SetValue(_arg0,_arg1); | |
1247 | ||
1248 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1249 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1250 | } Py_INCREF(Py_None); |
70551f47 RD |
1251 | _resultobj = Py_None; |
1252 | return _resultobj; | |
1253 | } | |
1254 | ||
1255 | static void *SwigwxChoiceTowxControl(void *ptr) { | |
1256 | wxChoice *src; | |
1257 | wxControl *dest; | |
1258 | src = (wxChoice *) ptr; | |
1259 | dest = (wxControl *) src; | |
1260 | return (void *) dest; | |
1261 | } | |
1262 | ||
1263 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
1264 | wxChoice *src; | |
1265 | wxWindow *dest; | |
1266 | src = (wxChoice *) ptr; | |
1267 | dest = (wxWindow *) src; | |
1268 | return (void *) dest; | |
1269 | } | |
1270 | ||
1271 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
1272 | wxChoice *src; | |
1273 | wxEvtHandler *dest; | |
1274 | src = (wxChoice *) ptr; | |
1275 | dest = (wxEvtHandler *) src; | |
1276 | return (void *) dest; | |
1277 | } | |
1278 | ||
9df61a29 RD |
1279 | static void *SwigwxChoiceTowxObject(void *ptr) { |
1280 | wxChoice *src; | |
1281 | wxObject *dest; | |
1282 | src = (wxChoice *) ptr; | |
1283 | dest = (wxObject *) src; | |
1284 | return (void *) dest; | |
1285 | } | |
1286 | ||
70551f47 | 1287 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 1288 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1289 | PyObject * _resultobj; |
1290 | wxChoice * _result; | |
1291 | wxWindow * _arg0; | |
1292 | wxWindowID _arg1; | |
b68dc582 RD |
1293 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
1294 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
1295 | int _arg4 = (int ) 0; |
1296 | wxString * _arg5 = (wxString *) NULL; | |
1297 | long _arg6 = (long ) 0; | |
b68dc582 | 1298 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
1299 | char * _arg8 = (char *) "choice"; |
1300 | PyObject * _argo0 = 0; | |
37f6a977 RD |
1301 | wxPoint temp; |
1302 | PyObject * _obj2 = 0; | |
1303 | wxSize temp0; | |
1304 | PyObject * _obj3 = 0; | |
70551f47 | 1305 | PyObject * _obj5 = 0; |
2d091820 | 1306 | PyObject * _argo7 = 0; |
e02c03a4 | 1307 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
1308 | char _ptemp[128]; |
1309 | ||
1310 | self = self; | |
37f6a977 | 1311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
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_wxChoice. Expected _wxWindow_p."); |
1317 | return NULL; | |
1318 | } | |
1319 | } | |
37f6a977 RD |
1320 | if (_obj2) |
1321 | { | |
1322 | _arg2 = &temp; | |
1323 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 1324 | return NULL; |
37f6a977 RD |
1325 | } |
1326 | if (_obj3) | |
1327 | { | |
1328 | _arg3 = &temp0; | |
1329 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 1330 | return NULL; |
37f6a977 | 1331 | } |
70551f47 RD |
1332 | if (_obj5) |
1333 | { | |
1334 | _arg5 = wxString_LIST_helper(_obj5); | |
1335 | if (_arg5 == NULL) { | |
1336 | return NULL; | |
1337 | } | |
1338 | } | |
2d091820 RD |
1339 | if (_argo7) { |
1340 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1341 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
70551f47 RD |
1342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); |
1343 | return NULL; | |
1344 | } | |
1345 | } | |
1346 | { | |
ab9bc19b RD |
1347 | if (_obj5) { |
1348 | _arg4 = PyList_Size(_obj5); | |
1349 | } | |
1350 | else { | |
1351 | _arg4 = 0; | |
1352 | } | |
70551f47 | 1353 | } |
ab9bc19b RD |
1354 | { |
1355 | wxPy_BEGIN_ALLOW_THREADS; | |
1356 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
1357 | ||
1358 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1359 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1360 | } if (_result) { |
1361 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
1362 | _resultobj = Py_BuildValue("s",_ptemp); | |
1363 | } else { | |
1364 | Py_INCREF(Py_None); | |
1365 | _resultobj = Py_None; | |
1366 | } | |
70551f47 RD |
1367 | { |
1368 | delete [] _arg5; | |
1369 | } | |
1370 | return _resultobj; | |
1371 | } | |
1372 | ||
1373 | #define wxChoice_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
107e4716 | 1374 | static PyObject *_wrap_wxChoice_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1375 | PyObject * _resultobj; |
1376 | wxChoice * _arg0; | |
1377 | wxString * _arg1; | |
2d091820 | 1378 | PyObject * _argo0 = 0; |
70551f47 | 1379 | PyObject * _obj1 = 0; |
107e4716 | 1380 | char *_kwnames[] = { "self","item", NULL }; |
70551f47 RD |
1381 | |
1382 | self = self; | |
107e4716 | 1383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_Append",_kwnames,&_argo0,&_obj1)) |
70551f47 | 1384 | return NULL; |
2d091820 RD |
1385 | if (_argo0) { |
1386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Append. Expected _wxChoice_p."); |
1389 | return NULL; | |
1390 | } | |
1391 | } | |
1392 | { | |
2cd2fac8 RD |
1393 | #if PYTHON_API_VERSION >= 1009 |
1394 | char* tmpPtr; int tmpSize; | |
1395 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1396 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1397 | return NULL; |
1398 | } | |
1399 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1400 | return NULL; | |
1401 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1402 | #else | |
70551f47 RD |
1403 | if (!PyString_Check(_obj1)) { |
1404 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1405 | return NULL; | |
1406 | } | |
2cd2fac8 RD |
1407 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1408 | #endif | |
70551f47 | 1409 | } |
ab9bc19b RD |
1410 | { |
1411 | wxPy_BEGIN_ALLOW_THREADS; | |
1412 | wxChoice_Append(_arg0,*_arg1); | |
1413 | ||
1414 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1415 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1416 | } Py_INCREF(Py_None); |
70551f47 RD |
1417 | _resultobj = Py_None; |
1418 | { | |
1419 | if (_obj1) | |
1420 | delete _arg1; | |
1421 | } | |
1422 | return _resultobj; | |
1423 | } | |
1424 | ||
1425 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 1426 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1427 | PyObject * _resultobj; |
1428 | wxChoice * _arg0; | |
2d091820 | 1429 | PyObject * _argo0 = 0; |
107e4716 | 1430 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1431 | |
1432 | self = self; | |
107e4716 | 1433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) |
70551f47 | 1434 | return NULL; |
2d091820 RD |
1435 | if (_argo0) { |
1436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); |
1439 | return NULL; | |
1440 | } | |
1441 | } | |
ab9bc19b RD |
1442 | { |
1443 | wxPy_BEGIN_ALLOW_THREADS; | |
1444 | wxChoice_Clear(_arg0); | |
1445 | ||
1446 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1447 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1448 | } Py_INCREF(Py_None); |
70551f47 RD |
1449 | _resultobj = Py_None; |
1450 | return _resultobj; | |
1451 | } | |
1452 | ||
1453 | #define wxChoice_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
107e4716 | 1454 | static PyObject *_wrap_wxChoice_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1455 | PyObject * _resultobj; |
1456 | int _result; | |
1457 | wxChoice * _arg0; | |
1458 | wxString * _arg1; | |
2d091820 | 1459 | PyObject * _argo0 = 0; |
70551f47 | 1460 | PyObject * _obj1 = 0; |
107e4716 | 1461 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
1462 | |
1463 | self = self; | |
107e4716 | 1464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_FindString",_kwnames,&_argo0,&_obj1)) |
70551f47 | 1465 | return NULL; |
2d091820 RD |
1466 | if (_argo0) { |
1467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_FindString. Expected _wxChoice_p."); |
1470 | return NULL; | |
1471 | } | |
1472 | } | |
1473 | { | |
2cd2fac8 RD |
1474 | #if PYTHON_API_VERSION >= 1009 |
1475 | char* tmpPtr; int tmpSize; | |
1476 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1477 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1478 | return NULL; |
1479 | } | |
1480 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1481 | return NULL; | |
1482 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1483 | #else | |
70551f47 RD |
1484 | if (!PyString_Check(_obj1)) { |
1485 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1486 | return NULL; | |
1487 | } | |
2cd2fac8 RD |
1488 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1489 | #endif | |
70551f47 | 1490 | } |
ab9bc19b RD |
1491 | { |
1492 | wxPy_BEGIN_ALLOW_THREADS; | |
1493 | _result = (int )wxChoice_FindString(_arg0,*_arg1); | |
1494 | ||
1495 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1496 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1497 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1498 | { |
1499 | if (_obj1) | |
1500 | delete _arg1; | |
1501 | } | |
1502 | return _resultobj; | |
1503 | } | |
1504 | ||
1505 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) | |
107e4716 | 1506 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1507 | PyObject * _resultobj; |
1508 | int _result; | |
1509 | wxChoice * _arg0; | |
2d091820 | 1510 | PyObject * _argo0 = 0; |
107e4716 | 1511 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1512 | |
1513 | self = self; | |
107e4716 | 1514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) |
70551f47 | 1515 | return NULL; |
2d091820 RD |
1516 | if (_argo0) { |
1517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); |
1520 | return NULL; | |
1521 | } | |
1522 | } | |
ab9bc19b RD |
1523 | { |
1524 | wxPy_BEGIN_ALLOW_THREADS; | |
1525 | _result = (int )wxChoice_GetColumns(_arg0); | |
1526 | ||
1527 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1528 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1529 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1530 | return _resultobj; |
1531 | } | |
1532 | ||
1533 | #define wxChoice_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
107e4716 | 1534 | static PyObject *_wrap_wxChoice_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1535 | PyObject * _resultobj; |
1536 | int _result; | |
1537 | wxChoice * _arg0; | |
2d091820 | 1538 | PyObject * _argo0 = 0; |
107e4716 | 1539 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1540 | |
1541 | self = self; | |
107e4716 | 1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetSelection",_kwnames,&_argo0)) |
70551f47 | 1543 | return NULL; |
2d091820 RD |
1544 | if (_argo0) { |
1545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetSelection. Expected _wxChoice_p."); |
1548 | return NULL; | |
1549 | } | |
1550 | } | |
ab9bc19b RD |
1551 | { |
1552 | wxPy_BEGIN_ALLOW_THREADS; | |
1553 | _result = (int )wxChoice_GetSelection(_arg0); | |
1554 | ||
1555 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1556 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1557 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1558 | return _resultobj; |
1559 | } | |
1560 | ||
1561 | #define wxChoice_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
107e4716 | 1562 | static PyObject *_wrap_wxChoice_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1563 | PyObject * _resultobj; |
1564 | wxString * _result; | |
1565 | wxChoice * _arg0; | |
1566 | int _arg1; | |
2d091820 | 1567 | PyObject * _argo0 = 0; |
107e4716 | 1568 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
1569 | |
1570 | self = self; | |
107e4716 | 1571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_GetString",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1572 | return NULL; |
2d091820 RD |
1573 | if (_argo0) { |
1574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetString. Expected _wxChoice_p."); |
1577 | return NULL; | |
1578 | } | |
1579 | } | |
70551f47 | 1580 | { |
ab9bc19b RD |
1581 | wxPy_BEGIN_ALLOW_THREADS; |
1582 | _result = new wxString (wxChoice_GetString(_arg0,_arg1)); | |
1583 | ||
1584 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1585 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1586 | }{ |
e02c03a4 | 1587 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
1588 | } |
1589 | { | |
1590 | delete _result; | |
1591 | } | |
1592 | return _resultobj; | |
1593 | } | |
1594 | ||
1595 | #define wxChoice_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
107e4716 | 1596 | static PyObject *_wrap_wxChoice_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1597 | PyObject * _resultobj; |
1598 | wxString * _result; | |
1599 | wxChoice * _arg0; | |
2d091820 | 1600 | PyObject * _argo0 = 0; |
107e4716 | 1601 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1602 | |
1603 | self = self; | |
107e4716 | 1604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetStringSelection",_kwnames,&_argo0)) |
70551f47 | 1605 | return NULL; |
2d091820 RD |
1606 | if (_argo0) { |
1607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetStringSelection. Expected _wxChoice_p."); |
1610 | return NULL; | |
1611 | } | |
1612 | } | |
70551f47 | 1613 | { |
ab9bc19b RD |
1614 | wxPy_BEGIN_ALLOW_THREADS; |
1615 | _result = new wxString (wxChoice_GetStringSelection(_arg0)); | |
1616 | ||
1617 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1618 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1619 | }{ |
e02c03a4 | 1620 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
1621 | } |
1622 | { | |
1623 | delete _result; | |
1624 | } | |
1625 | return _resultobj; | |
1626 | } | |
1627 | ||
1628 | #define wxChoice_Number(_swigobj) (_swigobj->Number()) | |
107e4716 | 1629 | static PyObject *_wrap_wxChoice_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1630 | PyObject * _resultobj; |
1631 | int _result; | |
1632 | wxChoice * _arg0; | |
2d091820 | 1633 | PyObject * _argo0 = 0; |
107e4716 | 1634 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1635 | |
1636 | self = self; | |
107e4716 | 1637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Number",_kwnames,&_argo0)) |
70551f47 | 1638 | return NULL; |
2d091820 RD |
1639 | if (_argo0) { |
1640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Number. Expected _wxChoice_p."); |
1643 | return NULL; | |
1644 | } | |
1645 | } | |
ab9bc19b RD |
1646 | { |
1647 | wxPy_BEGIN_ALLOW_THREADS; | |
1648 | _result = (int )wxChoice_Number(_arg0); | |
1649 | ||
1650 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1651 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1652 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1653 | return _resultobj; |
1654 | } | |
1655 | ||
1656 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
107e4716 | 1657 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1658 | PyObject * _resultobj; |
1659 | wxChoice * _arg0; | |
2d091820 RD |
1660 | int _arg1 = (int ) 1; |
1661 | PyObject * _argo0 = 0; | |
107e4716 | 1662 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
1663 | |
1664 | self = self; | |
107e4716 | 1665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1666 | return NULL; |
2d091820 RD |
1667 | if (_argo0) { |
1668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); |
1671 | return NULL; | |
1672 | } | |
1673 | } | |
ab9bc19b RD |
1674 | { |
1675 | wxPy_BEGIN_ALLOW_THREADS; | |
1676 | wxChoice_SetColumns(_arg0,_arg1); | |
1677 | ||
1678 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1679 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1680 | } Py_INCREF(Py_None); |
70551f47 RD |
1681 | _resultobj = Py_None; |
1682 | return _resultobj; | |
1683 | } | |
1684 | ||
1685 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 1686 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1687 | PyObject * _resultobj; |
1688 | wxChoice * _arg0; | |
1689 | int _arg1; | |
2d091820 | 1690 | PyObject * _argo0 = 0; |
107e4716 | 1691 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
1692 | |
1693 | self = self; | |
107e4716 | 1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1695 | return NULL; |
2d091820 RD |
1696 | if (_argo0) { |
1697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); |
1700 | return NULL; | |
1701 | } | |
1702 | } | |
ab9bc19b RD |
1703 | { |
1704 | wxPy_BEGIN_ALLOW_THREADS; | |
1705 | wxChoice_SetSelection(_arg0,_arg1); | |
1706 | ||
1707 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1708 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1709 | } Py_INCREF(Py_None); |
70551f47 RD |
1710 | _resultobj = Py_None; |
1711 | return _resultobj; | |
1712 | } | |
1713 | ||
1714 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
107e4716 | 1715 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1716 | PyObject * _resultobj; |
1717 | wxChoice * _arg0; | |
1718 | wxString * _arg1; | |
2d091820 | 1719 | PyObject * _argo0 = 0; |
70551f47 | 1720 | PyObject * _obj1 = 0; |
107e4716 | 1721 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
1722 | |
1723 | self = self; | |
107e4716 | 1724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
70551f47 | 1725 | return NULL; |
2d091820 RD |
1726 | if (_argo0) { |
1727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
1729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); |
1730 | return NULL; | |
1731 | } | |
1732 | } | |
1733 | { | |
2cd2fac8 RD |
1734 | #if PYTHON_API_VERSION >= 1009 |
1735 | char* tmpPtr; int tmpSize; | |
1736 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1737 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1738 | return NULL; |
1739 | } | |
1740 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1741 | return NULL; | |
1742 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1743 | #else | |
70551f47 RD |
1744 | if (!PyString_Check(_obj1)) { |
1745 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1746 | return NULL; | |
1747 | } | |
2cd2fac8 RD |
1748 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1749 | #endif | |
70551f47 | 1750 | } |
ab9bc19b RD |
1751 | { |
1752 | wxPy_BEGIN_ALLOW_THREADS; | |
1753 | wxChoice_SetStringSelection(_arg0,*_arg1); | |
1754 | ||
1755 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1756 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1757 | } Py_INCREF(Py_None); |
70551f47 RD |
1758 | _resultobj = Py_None; |
1759 | { | |
1760 | if (_obj1) | |
1761 | delete _arg1; | |
1762 | } | |
1763 | return _resultobj; | |
1764 | } | |
1765 | ||
d24a34bb RD |
1766 | static void *SwigwxComboBoxTowxChoice(void *ptr) { |
1767 | wxComboBox *src; | |
1768 | wxChoice *dest; | |
1769 | src = (wxComboBox *) ptr; | |
1770 | dest = (wxChoice *) src; | |
1771 | return (void *) dest; | |
1772 | } | |
1773 | ||
70551f47 RD |
1774 | static void *SwigwxComboBoxTowxControl(void *ptr) { |
1775 | wxComboBox *src; | |
1776 | wxControl *dest; | |
1777 | src = (wxComboBox *) ptr; | |
1778 | dest = (wxControl *) src; | |
1779 | return (void *) dest; | |
1780 | } | |
1781 | ||
1782 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
1783 | wxComboBox *src; | |
1784 | wxWindow *dest; | |
1785 | src = (wxComboBox *) ptr; | |
1786 | dest = (wxWindow *) src; | |
1787 | return (void *) dest; | |
1788 | } | |
1789 | ||
1790 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
1791 | wxComboBox *src; | |
1792 | wxEvtHandler *dest; | |
1793 | src = (wxComboBox *) ptr; | |
1794 | dest = (wxEvtHandler *) src; | |
1795 | return (void *) dest; | |
1796 | } | |
1797 | ||
9df61a29 RD |
1798 | static void *SwigwxComboBoxTowxObject(void *ptr) { |
1799 | wxComboBox *src; | |
1800 | wxObject *dest; | |
1801 | src = (wxComboBox *) ptr; | |
1802 | dest = (wxObject *) src; | |
1803 | return (void *) dest; | |
1804 | } | |
1805 | ||
70551f47 | 1806 | #define new_wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) |
107e4716 | 1807 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1808 | PyObject * _resultobj; |
1809 | wxComboBox * _result; | |
1810 | wxWindow * _arg0; | |
1811 | wxWindowID _arg1; | |
2d091820 | 1812 | char * _arg2 = (char *) ""; |
b68dc582 RD |
1813 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1814 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
1815 | int _arg5 = (int ) 0; |
1816 | wxString * _arg6 = (wxString *) NULL; | |
1817 | long _arg7 = (long ) 0; | |
b68dc582 | 1818 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
1819 | char * _arg9 = (char *) "comboBox"; |
1820 | PyObject * _argo0 = 0; | |
37f6a977 RD |
1821 | wxPoint temp; |
1822 | PyObject * _obj3 = 0; | |
1823 | wxSize temp0; | |
1824 | PyObject * _obj4 = 0; | |
70551f47 | 1825 | PyObject * _obj6 = 0; |
2d091820 | 1826 | PyObject * _argo8 = 0; |
e02c03a4 | 1827 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
1828 | char _ptemp[128]; |
1829 | ||
1830 | self = self; | |
37f6a977 | 1831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
70551f47 | 1832 | return NULL; |
2d091820 RD |
1833 | if (_argo0) { |
1834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); |
1837 | return NULL; | |
1838 | } | |
1839 | } | |
37f6a977 RD |
1840 | if (_obj3) |
1841 | { | |
1842 | _arg3 = &temp; | |
1843 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1844 | return NULL; |
37f6a977 RD |
1845 | } |
1846 | if (_obj4) | |
1847 | { | |
1848 | _arg4 = &temp0; | |
1849 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1850 | return NULL; |
37f6a977 | 1851 | } |
70551f47 RD |
1852 | if (_obj6) |
1853 | { | |
1854 | _arg6 = wxString_LIST_helper(_obj6); | |
1855 | if (_arg6 == NULL) { | |
1856 | return NULL; | |
1857 | } | |
1858 | } | |
2d091820 RD |
1859 | if (_argo8) { |
1860 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
1861 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
70551f47 RD |
1862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); |
1863 | return NULL; | |
1864 | } | |
1865 | } | |
1866 | { | |
ab9bc19b RD |
1867 | if (_obj6) { |
1868 | _arg5 = PyList_Size(_obj6); | |
1869 | } | |
1870 | else { | |
1871 | _arg5 = 0; | |
1872 | } | |
70551f47 | 1873 | } |
ab9bc19b RD |
1874 | { |
1875 | wxPy_BEGIN_ALLOW_THREADS; | |
1876 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
1877 | ||
1878 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1879 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1880 | } if (_result) { |
1881 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
1882 | _resultobj = Py_BuildValue("s",_ptemp); | |
1883 | } else { | |
1884 | Py_INCREF(Py_None); | |
1885 | _resultobj = Py_None; | |
1886 | } | |
70551f47 RD |
1887 | { |
1888 | delete [] _arg6; | |
1889 | } | |
1890 | return _resultobj; | |
1891 | } | |
1892 | ||
1893 | #define wxComboBox_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
107e4716 | 1894 | static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1895 | PyObject * _resultobj; |
1896 | wxComboBox * _arg0; | |
1897 | wxString * _arg1; | |
2d091820 | 1898 | PyObject * _argo0 = 0; |
70551f47 | 1899 | PyObject * _obj1 = 0; |
107e4716 | 1900 | char *_kwnames[] = { "self","item", NULL }; |
70551f47 RD |
1901 | |
1902 | self = self; | |
107e4716 | 1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_Append",_kwnames,&_argo0,&_obj1)) |
70551f47 | 1904 | return NULL; |
2d091820 RD |
1905 | if (_argo0) { |
1906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
1908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p."); |
1909 | return NULL; | |
1910 | } | |
1911 | } | |
1912 | { | |
2cd2fac8 RD |
1913 | #if PYTHON_API_VERSION >= 1009 |
1914 | char* tmpPtr; int tmpSize; | |
1915 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1916 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1917 | return NULL; |
1918 | } | |
1919 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1920 | return NULL; | |
1921 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1922 | #else | |
70551f47 RD |
1923 | if (!PyString_Check(_obj1)) { |
1924 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1925 | return NULL; | |
1926 | } | |
2cd2fac8 RD |
1927 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1928 | #endif | |
70551f47 | 1929 | } |
ab9bc19b RD |
1930 | { |
1931 | wxPy_BEGIN_ALLOW_THREADS; | |
1932 | wxComboBox_Append(_arg0,*_arg1); | |
1933 | ||
1934 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1935 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1936 | } Py_INCREF(Py_None); |
70551f47 RD |
1937 | _resultobj = Py_None; |
1938 | { | |
1939 | if (_obj1) | |
1940 | delete _arg1; | |
1941 | } | |
1942 | return _resultobj; | |
1943 | } | |
1944 | ||
1945 | #define wxComboBox_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 1946 | static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1947 | PyObject * _resultobj; |
1948 | wxComboBox * _arg0; | |
2d091820 | 1949 | PyObject * _argo0 = 0; |
107e4716 | 1950 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1951 | |
1952 | self = self; | |
107e4716 | 1953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0)) |
70551f47 | 1954 | return NULL; |
2d091820 RD |
1955 | if (_argo0) { |
1956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
1958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p."); |
1959 | return NULL; | |
1960 | } | |
1961 | } | |
ab9bc19b RD |
1962 | { |
1963 | wxPy_BEGIN_ALLOW_THREADS; | |
1964 | wxComboBox_Clear(_arg0); | |
1965 | ||
1966 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1967 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1968 | } Py_INCREF(Py_None); |
70551f47 RD |
1969 | _resultobj = Py_None; |
1970 | return _resultobj; | |
1971 | } | |
1972 | ||
1973 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) | |
107e4716 | 1974 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1975 | PyObject * _resultobj; |
1976 | wxComboBox * _arg0; | |
2d091820 | 1977 | PyObject * _argo0 = 0; |
107e4716 | 1978 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1979 | |
1980 | self = self; | |
107e4716 | 1981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) |
70551f47 | 1982 | return NULL; |
2d091820 RD |
1983 | if (_argo0) { |
1984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
1986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); |
1987 | return NULL; | |
1988 | } | |
1989 | } | |
ab9bc19b RD |
1990 | { |
1991 | wxPy_BEGIN_ALLOW_THREADS; | |
1992 | wxComboBox_Copy(_arg0); | |
1993 | ||
1994 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1995 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1996 | } Py_INCREF(Py_None); |
70551f47 RD |
1997 | _resultobj = Py_None; |
1998 | return _resultobj; | |
1999 | } | |
2000 | ||
2001 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
107e4716 | 2002 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2003 | PyObject * _resultobj; |
2004 | wxComboBox * _arg0; | |
2d091820 | 2005 | PyObject * _argo0 = 0; |
107e4716 | 2006 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2007 | |
2008 | self = self; | |
107e4716 | 2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) |
70551f47 | 2010 | return NULL; |
2d091820 RD |
2011 | if (_argo0) { |
2012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); |
2015 | return NULL; | |
2016 | } | |
2017 | } | |
ab9bc19b RD |
2018 | { |
2019 | wxPy_BEGIN_ALLOW_THREADS; | |
2020 | wxComboBox_Cut(_arg0); | |
2021 | ||
2022 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2023 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2024 | } Py_INCREF(Py_None); |
70551f47 RD |
2025 | _resultobj = Py_None; |
2026 | return _resultobj; | |
2027 | } | |
2028 | ||
2029 | #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
107e4716 | 2030 | static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2031 | PyObject * _resultobj; |
2032 | wxComboBox * _arg0; | |
2033 | int _arg1; | |
2d091820 | 2034 | PyObject * _argo0 = 0; |
107e4716 | 2035 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
2036 | |
2037 | self = self; | |
107e4716 | 2038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2039 | return NULL; |
2d091820 RD |
2040 | if (_argo0) { |
2041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p."); |
2044 | return NULL; | |
2045 | } | |
2046 | } | |
ab9bc19b RD |
2047 | { |
2048 | wxPy_BEGIN_ALLOW_THREADS; | |
2049 | wxComboBox_Delete(_arg0,_arg1); | |
2050 | ||
2051 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2052 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2053 | } Py_INCREF(Py_None); |
70551f47 RD |
2054 | _resultobj = Py_None; |
2055 | return _resultobj; | |
2056 | } | |
2057 | ||
2058 | #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
107e4716 | 2059 | static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2060 | PyObject * _resultobj; |
2061 | int _result; | |
2062 | wxComboBox * _arg0; | |
2063 | wxString * _arg1; | |
2d091820 | 2064 | PyObject * _argo0 = 0; |
70551f47 | 2065 | PyObject * _obj1 = 0; |
107e4716 | 2066 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
2067 | |
2068 | self = self; | |
107e4716 | 2069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1)) |
70551f47 | 2070 | return NULL; |
2d091820 RD |
2071 | if (_argo0) { |
2072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p."); |
2075 | return NULL; | |
2076 | } | |
2077 | } | |
2078 | { | |
2cd2fac8 RD |
2079 | #if PYTHON_API_VERSION >= 1009 |
2080 | char* tmpPtr; int tmpSize; | |
2081 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2082 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2083 | return NULL; |
2084 | } | |
2085 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2086 | return NULL; | |
2087 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2088 | #else | |
70551f47 RD |
2089 | if (!PyString_Check(_obj1)) { |
2090 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2091 | return NULL; | |
2092 | } | |
2cd2fac8 RD |
2093 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2094 | #endif | |
70551f47 | 2095 | } |
ab9bc19b RD |
2096 | { |
2097 | wxPy_BEGIN_ALLOW_THREADS; | |
2098 | _result = (int )wxComboBox_FindString(_arg0,*_arg1); | |
2099 | ||
2100 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2101 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2102 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2103 | { |
2104 | if (_obj1) | |
2105 | delete _arg1; | |
2106 | } | |
2107 | return _resultobj; | |
2108 | } | |
2109 | ||
2110 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
107e4716 | 2111 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2112 | PyObject * _resultobj; |
2113 | long _result; | |
2114 | wxComboBox * _arg0; | |
2d091820 | 2115 | PyObject * _argo0 = 0; |
107e4716 | 2116 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2117 | |
2118 | self = self; | |
107e4716 | 2119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) |
70551f47 | 2120 | return NULL; |
2d091820 RD |
2121 | if (_argo0) { |
2122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); |
2125 | return NULL; | |
2126 | } | |
2127 | } | |
ab9bc19b RD |
2128 | { |
2129 | wxPy_BEGIN_ALLOW_THREADS; | |
2130 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); | |
2131 | ||
2132 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2133 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2134 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
2135 | return _resultobj; |
2136 | } | |
2137 | ||
2138 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
107e4716 | 2139 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2140 | PyObject * _resultobj; |
2141 | long _result; | |
2142 | wxComboBox * _arg0; | |
2d091820 | 2143 | PyObject * _argo0 = 0; |
107e4716 | 2144 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2145 | |
2146 | self = self; | |
107e4716 | 2147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) |
70551f47 | 2148 | return NULL; |
2d091820 RD |
2149 | if (_argo0) { |
2150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); |
2153 | return NULL; | |
2154 | } | |
2155 | } | |
ab9bc19b RD |
2156 | { |
2157 | wxPy_BEGIN_ALLOW_THREADS; | |
2158 | _result = (long )wxComboBox_GetLastPosition(_arg0); | |
2159 | ||
2160 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2161 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2162 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
2163 | return _resultobj; |
2164 | } | |
2165 | ||
2166 | #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
107e4716 | 2167 | static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2168 | PyObject * _resultobj; |
2169 | int _result; | |
2170 | wxComboBox * _arg0; | |
2d091820 | 2171 | PyObject * _argo0 = 0; |
107e4716 | 2172 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2173 | |
2174 | self = self; | |
107e4716 | 2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0)) |
70551f47 | 2176 | return NULL; |
2d091820 RD |
2177 | if (_argo0) { |
2178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p."); |
2181 | return NULL; | |
2182 | } | |
2183 | } | |
ab9bc19b RD |
2184 | { |
2185 | wxPy_BEGIN_ALLOW_THREADS; | |
2186 | _result = (int )wxComboBox_GetSelection(_arg0); | |
2187 | ||
2188 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2189 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2190 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2191 | return _resultobj; |
2192 | } | |
2193 | ||
2194 | #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
107e4716 | 2195 | static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2196 | PyObject * _resultobj; |
2197 | wxString * _result; | |
2198 | wxComboBox * _arg0; | |
2199 | int _arg1; | |
2d091820 | 2200 | PyObject * _argo0 = 0; |
107e4716 | 2201 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
2202 | |
2203 | self = self; | |
107e4716 | 2204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2205 | return NULL; |
2d091820 RD |
2206 | if (_argo0) { |
2207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p."); |
2210 | return NULL; | |
2211 | } | |
2212 | } | |
70551f47 | 2213 | { |
ab9bc19b RD |
2214 | wxPy_BEGIN_ALLOW_THREADS; |
2215 | _result = new wxString (wxComboBox_GetString(_arg0,_arg1)); | |
2216 | ||
2217 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2218 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2219 | }{ |
e02c03a4 | 2220 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
2221 | } |
2222 | { | |
2223 | delete _result; | |
2224 | } | |
2225 | return _resultobj; | |
2226 | } | |
2227 | ||
2228 | #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
107e4716 | 2229 | static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2230 | PyObject * _resultobj; |
2231 | wxString * _result; | |
2232 | wxComboBox * _arg0; | |
2d091820 | 2233 | PyObject * _argo0 = 0; |
107e4716 | 2234 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2235 | |
2236 | self = self; | |
107e4716 | 2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0)) |
70551f47 | 2238 | return NULL; |
2d091820 RD |
2239 | if (_argo0) { |
2240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p."); |
2243 | return NULL; | |
2244 | } | |
2245 | } | |
70551f47 | 2246 | { |
ab9bc19b RD |
2247 | wxPy_BEGIN_ALLOW_THREADS; |
2248 | _result = new wxString (wxComboBox_GetStringSelection(_arg0)); | |
2249 | ||
2250 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2251 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2252 | }{ |
e02c03a4 | 2253 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
2254 | } |
2255 | { | |
2256 | delete _result; | |
2257 | } | |
2258 | return _resultobj; | |
2259 | } | |
2260 | ||
2261 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 2262 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2263 | PyObject * _resultobj; |
2264 | wxString * _result; | |
2265 | wxComboBox * _arg0; | |
2d091820 | 2266 | PyObject * _argo0 = 0; |
107e4716 | 2267 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2268 | |
2269 | self = self; | |
107e4716 | 2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) |
70551f47 | 2271 | return NULL; |
2d091820 RD |
2272 | if (_argo0) { |
2273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); |
2276 | return NULL; | |
2277 | } | |
2278 | } | |
70551f47 | 2279 | { |
ab9bc19b RD |
2280 | wxPy_BEGIN_ALLOW_THREADS; |
2281 | _result = new wxString (wxComboBox_GetValue(_arg0)); | |
2282 | ||
2283 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2284 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2285 | }{ |
e02c03a4 | 2286 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
2287 | } |
2288 | { | |
2289 | delete _result; | |
2290 | } | |
2291 | return _resultobj; | |
2292 | } | |
2293 | ||
2294 | #define wxComboBox_Number(_swigobj) (_swigobj->Number()) | |
107e4716 | 2295 | static PyObject *_wrap_wxComboBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2296 | PyObject * _resultobj; |
2297 | int _result; | |
2298 | wxComboBox * _arg0; | |
2d091820 | 2299 | PyObject * _argo0 = 0; |
107e4716 | 2300 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2301 | |
2302 | self = self; | |
107e4716 | 2303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Number",_kwnames,&_argo0)) |
70551f47 | 2304 | return NULL; |
2d091820 RD |
2305 | if (_argo0) { |
2306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Number. Expected _wxComboBox_p."); |
2309 | return NULL; | |
2310 | } | |
2311 | } | |
ab9bc19b RD |
2312 | { |
2313 | wxPy_BEGIN_ALLOW_THREADS; | |
2314 | _result = (int )wxComboBox_Number(_arg0); | |
2315 | ||
2316 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2317 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2318 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2319 | return _resultobj; |
2320 | } | |
2321 | ||
2322 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) | |
107e4716 | 2323 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2324 | PyObject * _resultobj; |
2325 | wxComboBox * _arg0; | |
2d091820 | 2326 | PyObject * _argo0 = 0; |
107e4716 | 2327 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2328 | |
2329 | self = self; | |
107e4716 | 2330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) |
70551f47 | 2331 | return NULL; |
2d091820 RD |
2332 | if (_argo0) { |
2333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); |
2336 | return NULL; | |
2337 | } | |
2338 | } | |
ab9bc19b RD |
2339 | { |
2340 | wxPy_BEGIN_ALLOW_THREADS; | |
2341 | wxComboBox_Paste(_arg0); | |
2342 | ||
2343 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2344 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2345 | } Py_INCREF(Py_None); |
70551f47 RD |
2346 | _resultobj = Py_None; |
2347 | return _resultobj; | |
2348 | } | |
2349 | ||
2350 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 2351 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2352 | PyObject * _resultobj; |
2353 | wxComboBox * _arg0; | |
2354 | long _arg1; | |
2355 | long _arg2; | |
2356 | wxString * _arg3; | |
2d091820 | 2357 | PyObject * _argo0 = 0; |
70551f47 | 2358 | PyObject * _obj3 = 0; |
107e4716 | 2359 | char *_kwnames[] = { "self","from","to","text", NULL }; |
70551f47 RD |
2360 | |
2361 | self = self; | |
107e4716 | 2362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 2363 | return NULL; |
2d091820 RD |
2364 | if (_argo0) { |
2365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); |
2368 | return NULL; | |
2369 | } | |
2370 | } | |
2371 | { | |
2cd2fac8 RD |
2372 | #if PYTHON_API_VERSION >= 1009 |
2373 | char* tmpPtr; int tmpSize; | |
2374 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 2375 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2376 | return NULL; |
2377 | } | |
2378 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2379 | return NULL; | |
2380 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2381 | #else | |
70551f47 RD |
2382 | if (!PyString_Check(_obj3)) { |
2383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2384 | return NULL; | |
2385 | } | |
2cd2fac8 RD |
2386 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2387 | #endif | |
70551f47 | 2388 | } |
ab9bc19b RD |
2389 | { |
2390 | wxPy_BEGIN_ALLOW_THREADS; | |
2391 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); | |
2392 | ||
2393 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2394 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2395 | } Py_INCREF(Py_None); |
70551f47 RD |
2396 | _resultobj = Py_None; |
2397 | { | |
2398 | if (_obj3) | |
2399 | delete _arg3; | |
2400 | } | |
2401 | return _resultobj; | |
2402 | } | |
2403 | ||
2404 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
107e4716 | 2405 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2406 | PyObject * _resultobj; |
2407 | wxComboBox * _arg0; | |
2408 | long _arg1; | |
2409 | long _arg2; | |
2d091820 | 2410 | PyObject * _argo0 = 0; |
107e4716 | 2411 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
2412 | |
2413 | self = self; | |
107e4716 | 2414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 2415 | return NULL; |
2d091820 RD |
2416 | if (_argo0) { |
2417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); |
2420 | return NULL; | |
2421 | } | |
2422 | } | |
ab9bc19b RD |
2423 | { |
2424 | wxPy_BEGIN_ALLOW_THREADS; | |
2425 | wxComboBox_Remove(_arg0,_arg1,_arg2); | |
2426 | ||
2427 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2428 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2429 | } Py_INCREF(Py_None); |
70551f47 RD |
2430 | _resultobj = Py_None; |
2431 | return _resultobj; | |
2432 | } | |
2433 | ||
2434 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
107e4716 | 2435 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2436 | PyObject * _resultobj; |
2437 | wxComboBox * _arg0; | |
2438 | long _arg1; | |
2d091820 | 2439 | PyObject * _argo0 = 0; |
107e4716 | 2440 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
2441 | |
2442 | self = self; | |
107e4716 | 2443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2444 | return NULL; |
2d091820 RD |
2445 | if (_argo0) { |
2446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); |
2449 | return NULL; | |
2450 | } | |
2451 | } | |
ab9bc19b RD |
2452 | { |
2453 | wxPy_BEGIN_ALLOW_THREADS; | |
2454 | wxComboBox_SetInsertionPoint(_arg0,_arg1); | |
2455 | ||
2456 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2457 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2458 | } Py_INCREF(Py_None); |
70551f47 RD |
2459 | _resultobj = Py_None; |
2460 | return _resultobj; | |
2461 | } | |
2462 | ||
2463 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
107e4716 | 2464 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2465 | PyObject * _resultobj; |
2466 | wxComboBox * _arg0; | |
2d091820 | 2467 | PyObject * _argo0 = 0; |
107e4716 | 2468 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2469 | |
2470 | self = self; | |
107e4716 | 2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) |
70551f47 | 2472 | return NULL; |
2d091820 RD |
2473 | if (_argo0) { |
2474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); |
2477 | return NULL; | |
2478 | } | |
2479 | } | |
ab9bc19b RD |
2480 | { |
2481 | wxPy_BEGIN_ALLOW_THREADS; | |
2482 | wxComboBox_SetInsertionPointEnd(_arg0); | |
2483 | ||
2484 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2485 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2486 | } Py_INCREF(Py_None); |
70551f47 RD |
2487 | _resultobj = Py_None; |
2488 | return _resultobj; | |
2489 | } | |
2490 | ||
2d091820 | 2491 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
107e4716 | 2492 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2d091820 RD |
2493 | PyObject * _resultobj; |
2494 | wxComboBox * _arg0; | |
2495 | int _arg1; | |
2496 | PyObject * _argo0 = 0; | |
107e4716 | 2497 | char *_kwnames[] = { "self","n", NULL }; |
2d091820 RD |
2498 | |
2499 | self = self; | |
107e4716 | 2500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
2d091820 RD |
2501 | return NULL; |
2502 | if (_argo0) { | |
2503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
2506 | return NULL; | |
2507 | } | |
2508 | } | |
2509 | { | |
2510 | wxPy_BEGIN_ALLOW_THREADS; | |
2511 | wxComboBox_SetSelection(_arg0,_arg1); | |
2512 | ||
2513 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2514 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2515 | } Py_INCREF(Py_None); |
2516 | _resultobj = Py_None; | |
2517 | return _resultobj; | |
2518 | } | |
2519 | ||
70551f47 | 2520 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) |
107e4716 | 2521 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2522 | PyObject * _resultobj; |
2523 | wxComboBox * _arg0; | |
2524 | long _arg1; | |
2525 | long _arg2; | |
2d091820 | 2526 | PyObject * _argo0 = 0; |
107e4716 | 2527 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
2528 | |
2529 | self = self; | |
107e4716 | 2530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 2531 | return NULL; |
2d091820 RD |
2532 | if (_argo0) { |
2533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); |
2536 | return NULL; | |
2537 | } | |
2538 | } | |
ab9bc19b RD |
2539 | { |
2540 | wxPy_BEGIN_ALLOW_THREADS; | |
2541 | wxComboBox_SetMark(_arg0,_arg1,_arg2); | |
2542 | ||
2543 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2544 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2545 | } Py_INCREF(Py_None); |
70551f47 RD |
2546 | _resultobj = Py_None; |
2547 | return _resultobj; | |
2548 | } | |
2549 | ||
2550 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 2551 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2552 | PyObject * _resultobj; |
2553 | wxComboBox * _arg0; | |
2554 | wxString * _arg1; | |
2d091820 | 2555 | PyObject * _argo0 = 0; |
70551f47 | 2556 | PyObject * _obj1 = 0; |
107e4716 | 2557 | char *_kwnames[] = { "self","text", NULL }; |
70551f47 RD |
2558 | |
2559 | self = self; | |
107e4716 | 2560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 2561 | return NULL; |
2d091820 RD |
2562 | if (_argo0) { |
2563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); |
2566 | return NULL; | |
2567 | } | |
2568 | } | |
2569 | { | |
2cd2fac8 RD |
2570 | #if PYTHON_API_VERSION >= 1009 |
2571 | char* tmpPtr; int tmpSize; | |
2572 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2573 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2574 | return NULL; |
2575 | } | |
2576 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2577 | return NULL; | |
2578 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2579 | #else | |
70551f47 RD |
2580 | if (!PyString_Check(_obj1)) { |
2581 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2582 | return NULL; | |
2583 | } | |
2cd2fac8 RD |
2584 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2585 | #endif | |
70551f47 | 2586 | } |
ab9bc19b RD |
2587 | { |
2588 | wxPy_BEGIN_ALLOW_THREADS; | |
2589 | wxComboBox_SetValue(_arg0,*_arg1); | |
2590 | ||
2591 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2592 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2593 | } Py_INCREF(Py_None); |
70551f47 RD |
2594 | _resultobj = Py_None; |
2595 | { | |
2596 | if (_obj1) | |
2597 | delete _arg1; | |
2598 | } | |
2599 | return _resultobj; | |
2600 | } | |
2601 | ||
2602 | static void *SwigwxGaugeTowxControl(void *ptr) { | |
2603 | wxGauge *src; | |
2604 | wxControl *dest; | |
2605 | src = (wxGauge *) ptr; | |
2606 | dest = (wxControl *) src; | |
2607 | return (void *) dest; | |
2608 | } | |
2609 | ||
2610 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
2611 | wxGauge *src; | |
2612 | wxWindow *dest; | |
2613 | src = (wxGauge *) ptr; | |
2614 | dest = (wxWindow *) src; | |
2615 | return (void *) dest; | |
2616 | } | |
2617 | ||
2618 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
2619 | wxGauge *src; | |
2620 | wxEvtHandler *dest; | |
2621 | src = (wxGauge *) ptr; | |
2622 | dest = (wxEvtHandler *) src; | |
2623 | return (void *) dest; | |
2624 | } | |
2625 | ||
9df61a29 RD |
2626 | static void *SwigwxGaugeTowxObject(void *ptr) { |
2627 | wxGauge *src; | |
2628 | wxObject *dest; | |
2629 | src = (wxGauge *) ptr; | |
2630 | dest = (wxObject *) src; | |
2631 | return (void *) dest; | |
2632 | } | |
2633 | ||
70551f47 | 2634 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 2635 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2636 | PyObject * _resultobj; |
2637 | wxGauge * _result; | |
2638 | wxWindow * _arg0; | |
2639 | wxWindowID _arg1; | |
2640 | int _arg2; | |
b68dc582 RD |
2641 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2642 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 2643 | long _arg5 = (long ) wxGA_HORIZONTAL; |
b68dc582 | 2644 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
2645 | char * _arg7 = (char *) "gauge"; |
2646 | PyObject * _argo0 = 0; | |
37f6a977 RD |
2647 | wxPoint temp; |
2648 | PyObject * _obj3 = 0; | |
2649 | wxSize temp0; | |
2650 | PyObject * _obj4 = 0; | |
2d091820 | 2651 | PyObject * _argo6 = 0; |
107e4716 | 2652 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; |
70551f47 RD |
2653 | char _ptemp[128]; |
2654 | ||
2655 | self = self; | |
37f6a977 | 2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 2657 | return NULL; |
2d091820 RD |
2658 | if (_argo0) { |
2659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); |
2662 | return NULL; | |
2663 | } | |
2664 | } | |
37f6a977 RD |
2665 | if (_obj3) |
2666 | { | |
2667 | _arg3 = &temp; | |
2668 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 2669 | return NULL; |
37f6a977 RD |
2670 | } |
2671 | if (_obj4) | |
2672 | { | |
2673 | _arg4 = &temp0; | |
2674 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 2675 | return NULL; |
37f6a977 | 2676 | } |
2d091820 RD |
2677 | if (_argo6) { |
2678 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2679 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
2680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); |
2681 | return NULL; | |
2682 | } | |
2683 | } | |
ab9bc19b RD |
2684 | { |
2685 | wxPy_BEGIN_ALLOW_THREADS; | |
2686 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
2687 | ||
2688 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2689 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2690 | } if (_result) { |
2691 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
2692 | _resultobj = Py_BuildValue("s",_ptemp); | |
2693 | } else { | |
2694 | Py_INCREF(Py_None); | |
2695 | _resultobj = Py_None; | |
2696 | } | |
70551f47 RD |
2697 | return _resultobj; |
2698 | } | |
2699 | ||
2700 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) | |
107e4716 | 2701 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2702 | PyObject * _resultobj; |
2703 | int _result; | |
2704 | wxGauge * _arg0; | |
2d091820 | 2705 | PyObject * _argo0 = 0; |
107e4716 | 2706 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2707 | |
2708 | self = self; | |
107e4716 | 2709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) |
70551f47 | 2710 | return NULL; |
2d091820 RD |
2711 | if (_argo0) { |
2712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
2714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); |
2715 | return NULL; | |
2716 | } | |
2717 | } | |
ab9bc19b RD |
2718 | { |
2719 | wxPy_BEGIN_ALLOW_THREADS; | |
2720 | _result = (int )wxGauge_GetBezelFace(_arg0); | |
2721 | ||
2722 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2723 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2724 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2725 | return _resultobj; |
2726 | } | |
2727 | ||
2728 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
107e4716 | 2729 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2730 | PyObject * _resultobj; |
2731 | int _result; | |
2732 | wxGauge * _arg0; | |
2d091820 | 2733 | PyObject * _argo0 = 0; |
107e4716 | 2734 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2735 | |
2736 | self = self; | |
107e4716 | 2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) |
70551f47 | 2738 | return NULL; |
2d091820 RD |
2739 | if (_argo0) { |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); |
2743 | return NULL; | |
2744 | } | |
2745 | } | |
ab9bc19b RD |
2746 | { |
2747 | wxPy_BEGIN_ALLOW_THREADS; | |
2748 | _result = (int )wxGauge_GetRange(_arg0); | |
2749 | ||
2750 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2751 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2752 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2753 | return _resultobj; |
2754 | } | |
2755 | ||
2756 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
107e4716 | 2757 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2758 | PyObject * _resultobj; |
2759 | int _result; | |
2760 | wxGauge * _arg0; | |
2d091820 | 2761 | PyObject * _argo0 = 0; |
107e4716 | 2762 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2763 | |
2764 | self = self; | |
107e4716 | 2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) |
70551f47 | 2766 | return NULL; |
2d091820 RD |
2767 | if (_argo0) { |
2768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
2770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); |
2771 | return NULL; | |
2772 | } | |
2773 | } | |
ab9bc19b RD |
2774 | { |
2775 | wxPy_BEGIN_ALLOW_THREADS; | |
2776 | _result = (int )wxGauge_GetShadowWidth(_arg0); | |
2777 | ||
2778 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2779 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2780 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2781 | return _resultobj; |
2782 | } | |
2783 | ||
2784 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 2785 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2786 | PyObject * _resultobj; |
2787 | int _result; | |
2788 | wxGauge * _arg0; | |
2d091820 | 2789 | PyObject * _argo0 = 0; |
107e4716 | 2790 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2791 | |
2792 | self = self; | |
107e4716 | 2793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) |
70551f47 | 2794 | return NULL; |
2d091820 RD |
2795 | if (_argo0) { |
2796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
2798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); |
2799 | return NULL; | |
2800 | } | |
2801 | } | |
ab9bc19b RD |
2802 | { |
2803 | wxPy_BEGIN_ALLOW_THREADS; | |
2804 | _result = (int )wxGauge_GetValue(_arg0); | |
2805 | ||
2806 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2807 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2808 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2809 | return _resultobj; |
2810 | } | |
2811 | ||
2812 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
107e4716 | 2813 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2814 | PyObject * _resultobj; |
2815 | wxGauge * _arg0; | |
2816 | int _arg1; | |
2d091820 | 2817 | PyObject * _argo0 = 0; |
107e4716 | 2818 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
2819 | |
2820 | self = self; | |
107e4716 | 2821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2822 | return NULL; |
2d091820 RD |
2823 | if (_argo0) { |
2824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
2826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); |
2827 | return NULL; | |
2828 | } | |
2829 | } | |
ab9bc19b RD |
2830 | { |
2831 | wxPy_BEGIN_ALLOW_THREADS; | |
2832 | wxGauge_SetBezelFace(_arg0,_arg1); | |
2833 | ||
2834 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2835 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2836 | } Py_INCREF(Py_None); |
70551f47 RD |
2837 | _resultobj = Py_None; |
2838 | return _resultobj; | |
2839 | } | |
2840 | ||
2841 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
107e4716 | 2842 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2843 | PyObject * _resultobj; |
2844 | wxGauge * _arg0; | |
2845 | int _arg1; | |
2d091820 | 2846 | PyObject * _argo0 = 0; |
107e4716 | 2847 | char *_kwnames[] = { "self","range", NULL }; |
70551f47 RD |
2848 | |
2849 | self = self; | |
107e4716 | 2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2851 | return NULL; |
2d091820 RD |
2852 | if (_argo0) { |
2853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
2855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); |
2856 | return NULL; | |
2857 | } | |
2858 | } | |
ab9bc19b RD |
2859 | { |
2860 | wxPy_BEGIN_ALLOW_THREADS; | |
2861 | wxGauge_SetRange(_arg0,_arg1); | |
2862 | ||
2863 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2864 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2865 | } Py_INCREF(Py_None); |
70551f47 RD |
2866 | _resultobj = Py_None; |
2867 | return _resultobj; | |
2868 | } | |
2869 | ||
2870 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
107e4716 | 2871 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2872 | PyObject * _resultobj; |
2873 | wxGauge * _arg0; | |
2874 | int _arg1; | |
2d091820 | 2875 | PyObject * _argo0 = 0; |
107e4716 | 2876 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
2877 | |
2878 | self = self; | |
107e4716 | 2879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2880 | return NULL; |
2d091820 RD |
2881 | if (_argo0) { |
2882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
2884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); |
2885 | return NULL; | |
2886 | } | |
2887 | } | |
ab9bc19b RD |
2888 | { |
2889 | wxPy_BEGIN_ALLOW_THREADS; | |
2890 | wxGauge_SetShadowWidth(_arg0,_arg1); | |
2891 | ||
2892 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2893 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2894 | } Py_INCREF(Py_None); |
70551f47 RD |
2895 | _resultobj = Py_None; |
2896 | return _resultobj; | |
2897 | } | |
2898 | ||
2899 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 2900 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2901 | PyObject * _resultobj; |
2902 | wxGauge * _arg0; | |
2903 | int _arg1; | |
2d091820 | 2904 | PyObject * _argo0 = 0; |
107e4716 | 2905 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
2906 | |
2907 | self = self; | |
107e4716 | 2908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2909 | return NULL; |
2d091820 RD |
2910 | if (_argo0) { |
2911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
2913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); |
2914 | return NULL; | |
2915 | } | |
2916 | } | |
ab9bc19b RD |
2917 | { |
2918 | wxPy_BEGIN_ALLOW_THREADS; | |
2919 | wxGauge_SetValue(_arg0,_arg1); | |
2920 | ||
2921 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2922 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2923 | } Py_INCREF(Py_None); |
70551f47 RD |
2924 | _resultobj = Py_None; |
2925 | return _resultobj; | |
2926 | } | |
2927 | ||
2928 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
2929 | wxStaticBox *src; | |
2930 | wxControl *dest; | |
2931 | src = (wxStaticBox *) ptr; | |
2932 | dest = (wxControl *) src; | |
2933 | return (void *) dest; | |
2934 | } | |
2935 | ||
2936 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
2937 | wxStaticBox *src; | |
2938 | wxWindow *dest; | |
2939 | src = (wxStaticBox *) ptr; | |
2940 | dest = (wxWindow *) src; | |
2941 | return (void *) dest; | |
2942 | } | |
2943 | ||
2944 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
2945 | wxStaticBox *src; | |
2946 | wxEvtHandler *dest; | |
2947 | src = (wxStaticBox *) ptr; | |
2948 | dest = (wxEvtHandler *) src; | |
2949 | return (void *) dest; | |
2950 | } | |
2951 | ||
9df61a29 RD |
2952 | static void *SwigwxStaticBoxTowxObject(void *ptr) { |
2953 | wxStaticBox *src; | |
2954 | wxObject *dest; | |
2955 | src = (wxStaticBox *) ptr; | |
2956 | dest = (wxObject *) src; | |
2957 | return (void *) dest; | |
2958 | } | |
2959 | ||
70551f47 | 2960 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 2961 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2962 | PyObject * _resultobj; |
2963 | wxStaticBox * _result; | |
2964 | wxWindow * _arg0; | |
2965 | wxWindowID _arg1; | |
2966 | wxString * _arg2; | |
b68dc582 RD |
2967 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2968 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
2969 | long _arg5 = (long ) 0; |
2970 | char * _arg6 = (char *) "staticBox"; | |
2971 | PyObject * _argo0 = 0; | |
70551f47 | 2972 | PyObject * _obj2 = 0; |
37f6a977 RD |
2973 | wxPoint temp; |
2974 | PyObject * _obj3 = 0; | |
2975 | wxSize temp0; | |
2976 | PyObject * _obj4 = 0; | |
107e4716 | 2977 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
70551f47 RD |
2978 | char _ptemp[128]; |
2979 | ||
2980 | self = self; | |
37f6a977 | 2981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
70551f47 | 2982 | return NULL; |
2d091820 RD |
2983 | if (_argo0) { |
2984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); |
2987 | return NULL; | |
2988 | } | |
2989 | } | |
2990 | { | |
2cd2fac8 RD |
2991 | #if PYTHON_API_VERSION >= 1009 |
2992 | char* tmpPtr; int tmpSize; | |
2993 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 2994 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2995 | return NULL; |
2996 | } | |
2997 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2998 | return NULL; | |
2999 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3000 | #else | |
70551f47 RD |
3001 | if (!PyString_Check(_obj2)) { |
3002 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3003 | return NULL; | |
3004 | } | |
2cd2fac8 RD |
3005 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3006 | #endif | |
70551f47 | 3007 | } |
37f6a977 RD |
3008 | if (_obj3) |
3009 | { | |
3010 | _arg3 = &temp; | |
3011 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 3012 | return NULL; |
37f6a977 RD |
3013 | } |
3014 | if (_obj4) | |
3015 | { | |
3016 | _arg4 = &temp0; | |
3017 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 3018 | return NULL; |
37f6a977 | 3019 | } |
ab9bc19b RD |
3020 | { |
3021 | wxPy_BEGIN_ALLOW_THREADS; | |
3022 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
3023 | ||
3024 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3025 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3026 | } if (_result) { |
3027 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3028 | _resultobj = Py_BuildValue("s",_ptemp); | |
3029 | } else { | |
3030 | Py_INCREF(Py_None); | |
3031 | _resultobj = Py_None; | |
3032 | } | |
70551f47 RD |
3033 | { |
3034 | if (_obj2) | |
3035 | delete _arg2; | |
3036 | } | |
3037 | return _resultobj; | |
3038 | } | |
3039 | ||
d24a34bb RD |
3040 | static void *SwigwxStaticLineTowxControl(void *ptr) { |
3041 | wxStaticLine *src; | |
3042 | wxControl *dest; | |
3043 | src = (wxStaticLine *) ptr; | |
3044 | dest = (wxControl *) src; | |
3045 | return (void *) dest; | |
3046 | } | |
3047 | ||
3048 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
3049 | wxStaticLine *src; | |
3050 | wxWindow *dest; | |
3051 | src = (wxStaticLine *) ptr; | |
3052 | dest = (wxWindow *) src; | |
3053 | return (void *) dest; | |
3054 | } | |
3055 | ||
3056 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
3057 | wxStaticLine *src; | |
3058 | wxEvtHandler *dest; | |
3059 | src = (wxStaticLine *) ptr; | |
3060 | dest = (wxEvtHandler *) src; | |
3061 | return (void *) dest; | |
3062 | } | |
3063 | ||
9df61a29 RD |
3064 | static void *SwigwxStaticLineTowxObject(void *ptr) { |
3065 | wxStaticLine *src; | |
3066 | wxObject *dest; | |
3067 | src = (wxStaticLine *) ptr; | |
3068 | dest = (wxObject *) src; | |
3069 | return (void *) dest; | |
3070 | } | |
3071 | ||
d24a34bb | 3072 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 3073 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
3074 | PyObject * _resultobj; |
3075 | wxStaticLine * _result; | |
3076 | wxWindow * _arg0; | |
3077 | wxWindowID _arg1; | |
b68dc582 RD |
3078 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3079 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
3080 | long _arg4 = (long ) wxLI_HORIZONTAL; |
3081 | char * _arg5 = (char *) "staticLine"; | |
3082 | PyObject * _argo0 = 0; | |
37f6a977 RD |
3083 | wxPoint temp; |
3084 | PyObject * _obj2 = 0; | |
3085 | wxSize temp0; | |
3086 | PyObject * _obj3 = 0; | |
107e4716 | 3087 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
d24a34bb RD |
3088 | char _ptemp[128]; |
3089 | ||
3090 | self = self; | |
37f6a977 | 3091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
d24a34bb | 3092 | return NULL; |
2d091820 RD |
3093 | if (_argo0) { |
3094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
3096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); |
3097 | return NULL; | |
3098 | } | |
3099 | } | |
37f6a977 RD |
3100 | if (_obj2) |
3101 | { | |
3102 | _arg2 = &temp; | |
3103 | if (! wxPoint_helper(_obj2, &_arg2)) | |
d24a34bb | 3104 | return NULL; |
37f6a977 RD |
3105 | } |
3106 | if (_obj3) | |
3107 | { | |
3108 | _arg3 = &temp0; | |
3109 | if (! wxSize_helper(_obj3, &_arg3)) | |
d24a34bb | 3110 | return NULL; |
37f6a977 | 3111 | } |
d24a34bb RD |
3112 | { |
3113 | wxPy_BEGIN_ALLOW_THREADS; | |
3114 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
3115 | ||
3116 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3117 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3118 | } if (_result) { |
3119 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
3120 | _resultobj = Py_BuildValue("s",_ptemp); | |
3121 | } else { | |
3122 | Py_INCREF(Py_None); | |
3123 | _resultobj = Py_None; | |
3124 | } | |
d24a34bb RD |
3125 | return _resultobj; |
3126 | } | |
3127 | ||
70551f47 RD |
3128 | static void *SwigwxStaticTextTowxControl(void *ptr) { |
3129 | wxStaticText *src; | |
3130 | wxControl *dest; | |
3131 | src = (wxStaticText *) ptr; | |
3132 | dest = (wxControl *) src; | |
3133 | return (void *) dest; | |
3134 | } | |
3135 | ||
3136 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
3137 | wxStaticText *src; | |
3138 | wxWindow *dest; | |
3139 | src = (wxStaticText *) ptr; | |
3140 | dest = (wxWindow *) src; | |
3141 | return (void *) dest; | |
3142 | } | |
3143 | ||
3144 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
3145 | wxStaticText *src; | |
3146 | wxEvtHandler *dest; | |
3147 | src = (wxStaticText *) ptr; | |
3148 | dest = (wxEvtHandler *) src; | |
3149 | return (void *) dest; | |
3150 | } | |
3151 | ||
9df61a29 RD |
3152 | static void *SwigwxStaticTextTowxObject(void *ptr) { |
3153 | wxStaticText *src; | |
3154 | wxObject *dest; | |
3155 | src = (wxStaticText *) ptr; | |
3156 | dest = (wxObject *) src; | |
3157 | return (void *) dest; | |
3158 | } | |
3159 | ||
70551f47 | 3160 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 3161 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3162 | PyObject * _resultobj; |
3163 | wxStaticText * _result; | |
3164 | wxWindow * _arg0; | |
3165 | wxWindowID _arg1; | |
3166 | wxString * _arg2; | |
b68dc582 RD |
3167 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3168 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
3169 | long _arg5 = (long ) 0; |
3170 | char * _arg6 = (char *) "staticText"; | |
3171 | PyObject * _argo0 = 0; | |
70551f47 | 3172 | PyObject * _obj2 = 0; |
37f6a977 RD |
3173 | wxPoint temp; |
3174 | PyObject * _obj3 = 0; | |
3175 | wxSize temp0; | |
3176 | PyObject * _obj4 = 0; | |
107e4716 | 3177 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
70551f47 RD |
3178 | char _ptemp[128]; |
3179 | ||
3180 | self = self; | |
37f6a977 | 3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
70551f47 | 3182 | return NULL; |
2d091820 RD |
3183 | if (_argo0) { |
3184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); |
3187 | return NULL; | |
3188 | } | |
3189 | } | |
3190 | { | |
2cd2fac8 RD |
3191 | #if PYTHON_API_VERSION >= 1009 |
3192 | char* tmpPtr; int tmpSize; | |
3193 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 3194 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3195 | return NULL; |
3196 | } | |
3197 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3198 | return NULL; | |
3199 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3200 | #else | |
70551f47 RD |
3201 | if (!PyString_Check(_obj2)) { |
3202 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3203 | return NULL; | |
3204 | } | |
2cd2fac8 RD |
3205 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3206 | #endif | |
70551f47 | 3207 | } |
37f6a977 RD |
3208 | if (_obj3) |
3209 | { | |
3210 | _arg3 = &temp; | |
3211 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 3212 | return NULL; |
37f6a977 RD |
3213 | } |
3214 | if (_obj4) | |
3215 | { | |
3216 | _arg4 = &temp0; | |
3217 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 3218 | return NULL; |
37f6a977 | 3219 | } |
ab9bc19b RD |
3220 | { |
3221 | wxPy_BEGIN_ALLOW_THREADS; | |
3222 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
3223 | ||
3224 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3225 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3226 | } if (_result) { |
3227 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
3228 | _resultobj = Py_BuildValue("s",_ptemp); | |
3229 | } else { | |
3230 | Py_INCREF(Py_None); | |
3231 | _resultobj = Py_None; | |
3232 | } | |
70551f47 RD |
3233 | { |
3234 | if (_obj2) | |
3235 | delete _arg2; | |
3236 | } | |
3237 | return _resultobj; | |
3238 | } | |
3239 | ||
3240 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
107e4716 | 3241 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3242 | PyObject * _resultobj; |
3243 | wxString * _result; | |
3244 | wxStaticText * _arg0; | |
2d091820 | 3245 | PyObject * _argo0 = 0; |
107e4716 | 3246 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3247 | |
3248 | self = self; | |
107e4716 | 3249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) |
70551f47 | 3250 | return NULL; |
2d091820 RD |
3251 | if (_argo0) { |
3252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
70551f47 RD |
3254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); |
3255 | return NULL; | |
3256 | } | |
3257 | } | |
70551f47 | 3258 | { |
ab9bc19b RD |
3259 | wxPy_BEGIN_ALLOW_THREADS; |
3260 | _result = new wxString (wxStaticText_GetLabel(_arg0)); | |
3261 | ||
3262 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3263 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3264 | }{ |
e02c03a4 | 3265 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
3266 | } |
3267 | { | |
3268 | delete _result; | |
3269 | } | |
3270 | return _resultobj; | |
3271 | } | |
3272 | ||
3273 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
107e4716 | 3274 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3275 | PyObject * _resultobj; |
3276 | wxStaticText * _arg0; | |
3277 | wxString * _arg1; | |
2d091820 | 3278 | PyObject * _argo0 = 0; |
70551f47 | 3279 | PyObject * _obj1 = 0; |
107e4716 | 3280 | char *_kwnames[] = { "self","label", NULL }; |
70551f47 RD |
3281 | |
3282 | self = self; | |
107e4716 | 3283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3284 | return NULL; |
2d091820 RD |
3285 | if (_argo0) { |
3286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
70551f47 RD |
3288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); |
3289 | return NULL; | |
3290 | } | |
3291 | } | |
3292 | { | |
2cd2fac8 RD |
3293 | #if PYTHON_API_VERSION >= 1009 |
3294 | char* tmpPtr; int tmpSize; | |
3295 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 3296 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3297 | return NULL; |
3298 | } | |
3299 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3300 | return NULL; | |
3301 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3302 | #else | |
70551f47 RD |
3303 | if (!PyString_Check(_obj1)) { |
3304 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3305 | return NULL; | |
3306 | } | |
2cd2fac8 RD |
3307 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3308 | #endif | |
70551f47 | 3309 | } |
ab9bc19b RD |
3310 | { |
3311 | wxPy_BEGIN_ALLOW_THREADS; | |
3312 | wxStaticText_SetLabel(_arg0,*_arg1); | |
3313 | ||
3314 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3315 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3316 | } Py_INCREF(Py_None); |
70551f47 RD |
3317 | _resultobj = Py_None; |
3318 | { | |
3319 | if (_obj1) | |
3320 | delete _arg1; | |
3321 | } | |
3322 | return _resultobj; | |
3323 | } | |
3324 | ||
3325 | static void *SwigwxListBoxTowxControl(void *ptr) { | |
3326 | wxListBox *src; | |
3327 | wxControl *dest; | |
3328 | src = (wxListBox *) ptr; | |
3329 | dest = (wxControl *) src; | |
3330 | return (void *) dest; | |
3331 | } | |
3332 | ||
3333 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
3334 | wxListBox *src; | |
3335 | wxWindow *dest; | |
3336 | src = (wxListBox *) ptr; | |
3337 | dest = (wxWindow *) src; | |
3338 | return (void *) dest; | |
3339 | } | |
3340 | ||
3341 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
3342 | wxListBox *src; | |
3343 | wxEvtHandler *dest; | |
3344 | src = (wxListBox *) ptr; | |
3345 | dest = (wxEvtHandler *) src; | |
3346 | return (void *) dest; | |
3347 | } | |
3348 | ||
9df61a29 RD |
3349 | static void *SwigwxListBoxTowxObject(void *ptr) { |
3350 | wxListBox *src; | |
3351 | wxObject *dest; | |
3352 | src = (wxListBox *) ptr; | |
3353 | dest = (wxObject *) src; | |
3354 | return (void *) dest; | |
3355 | } | |
3356 | ||
70551f47 | 3357 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 3358 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3359 | PyObject * _resultobj; |
3360 | wxListBox * _result; | |
3361 | wxWindow * _arg0; | |
3362 | wxWindowID _arg1; | |
b68dc582 RD |
3363 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3364 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
70551f47 | 3365 | int _arg4; |
2d091820 RD |
3366 | wxString * _arg5 = (wxString *) NULL; |
3367 | long _arg6 = (long ) 0; | |
b68dc582 | 3368 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
3369 | char * _arg8 = (char *) "listBox"; |
3370 | PyObject * _argo0 = 0; | |
37f6a977 RD |
3371 | wxPoint temp; |
3372 | PyObject * _obj2 = 0; | |
3373 | wxSize temp0; | |
3374 | PyObject * _obj3 = 0; | |
70551f47 | 3375 | PyObject * _obj5 = 0; |
2d091820 | 3376 | PyObject * _argo7 = 0; |
e02c03a4 | 3377 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
3378 | char _ptemp[128]; |
3379 | ||
3380 | self = self; | |
37f6a977 | 3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
70551f47 | 3382 | return NULL; |
2d091820 RD |
3383 | if (_argo0) { |
3384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); |
3387 | return NULL; | |
3388 | } | |
3389 | } | |
37f6a977 RD |
3390 | if (_obj2) |
3391 | { | |
3392 | _arg2 = &temp; | |
3393 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 3394 | return NULL; |
37f6a977 RD |
3395 | } |
3396 | if (_obj3) | |
3397 | { | |
3398 | _arg3 = &temp0; | |
3399 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 3400 | return NULL; |
37f6a977 | 3401 | } |
70551f47 RD |
3402 | if (_obj5) |
3403 | { | |
3404 | _arg5 = wxString_LIST_helper(_obj5); | |
3405 | if (_arg5 == NULL) { | |
3406 | return NULL; | |
3407 | } | |
3408 | } | |
2d091820 RD |
3409 | if (_argo7) { |
3410 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3411 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
70551f47 RD |
3412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); |
3413 | return NULL; | |
3414 | } | |
3415 | } | |
3416 | { | |
ab9bc19b RD |
3417 | if (_obj5) { |
3418 | _arg4 = PyList_Size(_obj5); | |
3419 | } | |
3420 | else { | |
3421 | _arg4 = 0; | |
3422 | } | |
70551f47 | 3423 | } |
ab9bc19b RD |
3424 | { |
3425 | wxPy_BEGIN_ALLOW_THREADS; | |
3426 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
3427 | ||
3428 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3429 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3430 | } if (_result) { |
3431 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
3432 | _resultobj = Py_BuildValue("s",_ptemp); | |
3433 | } else { | |
3434 | Py_INCREF(Py_None); | |
3435 | _resultobj = Py_None; | |
3436 | } | |
70551f47 RD |
3437 | { |
3438 | delete [] _arg5; | |
3439 | } | |
3440 | return _resultobj; | |
3441 | } | |
3442 | ||
3443 | #define wxListBox_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
107e4716 | 3444 | static PyObject *_wrap_wxListBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3445 | PyObject * _resultobj; |
3446 | wxListBox * _arg0; | |
3447 | wxString * _arg1; | |
2d091820 | 3448 | PyObject * _argo0 = 0; |
70551f47 | 3449 | PyObject * _obj1 = 0; |
107e4716 | 3450 | char *_kwnames[] = { "self","item", NULL }; |
70551f47 RD |
3451 | |
3452 | self = self; | |
107e4716 | 3453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Append",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3454 | return NULL; |
2d091820 RD |
3455 | if (_argo0) { |
3456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Append. Expected _wxListBox_p."); |
3459 | return NULL; | |
3460 | } | |
3461 | } | |
3462 | { | |
2cd2fac8 RD |
3463 | #if PYTHON_API_VERSION >= 1009 |
3464 | char* tmpPtr; int tmpSize; | |
3465 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 3466 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3467 | return NULL; |
3468 | } | |
3469 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3470 | return NULL; | |
3471 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3472 | #else | |
70551f47 RD |
3473 | if (!PyString_Check(_obj1)) { |
3474 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3475 | return NULL; | |
3476 | } | |
2cd2fac8 RD |
3477 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3478 | #endif | |
70551f47 | 3479 | } |
ab9bc19b RD |
3480 | { |
3481 | wxPy_BEGIN_ALLOW_THREADS; | |
3482 | wxListBox_Append(_arg0,*_arg1); | |
3483 | ||
3484 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3485 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3486 | } Py_INCREF(Py_None); |
70551f47 RD |
3487 | _resultobj = Py_None; |
3488 | { | |
3489 | if (_obj1) | |
3490 | delete _arg1; | |
3491 | } | |
3492 | return _resultobj; | |
3493 | } | |
3494 | ||
3495 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 3496 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3497 | PyObject * _resultobj; |
3498 | wxListBox * _arg0; | |
2d091820 | 3499 | PyObject * _argo0 = 0; |
107e4716 | 3500 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3501 | |
3502 | self = self; | |
107e4716 | 3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) |
70551f47 | 3504 | return NULL; |
2d091820 RD |
3505 | if (_argo0) { |
3506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); |
3509 | return NULL; | |
3510 | } | |
3511 | } | |
ab9bc19b RD |
3512 | { |
3513 | wxPy_BEGIN_ALLOW_THREADS; | |
3514 | wxListBox_Clear(_arg0); | |
3515 | ||
3516 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3517 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3518 | } Py_INCREF(Py_None); |
70551f47 RD |
3519 | _resultobj = Py_None; |
3520 | return _resultobj; | |
3521 | } | |
3522 | ||
3523 | #define wxListBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
107e4716 | 3524 | static PyObject *_wrap_wxListBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3525 | PyObject * _resultobj; |
3526 | wxListBox * _arg0; | |
3527 | int _arg1; | |
2d091820 | 3528 | PyObject * _argo0 = 0; |
107e4716 | 3529 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
3530 | |
3531 | self = self; | |
107e4716 | 3532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Delete",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3533 | return NULL; |
2d091820 RD |
3534 | if (_argo0) { |
3535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Delete. Expected _wxListBox_p."); |
3538 | return NULL; | |
3539 | } | |
3540 | } | |
ab9bc19b RD |
3541 | { |
3542 | wxPy_BEGIN_ALLOW_THREADS; | |
3543 | wxListBox_Delete(_arg0,_arg1); | |
3544 | ||
3545 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3546 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3547 | } Py_INCREF(Py_None); |
70551f47 RD |
3548 | _resultobj = Py_None; |
3549 | return _resultobj; | |
3550 | } | |
3551 | ||
3552 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) | |
107e4716 | 3553 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3554 | PyObject * _resultobj; |
3555 | wxListBox * _arg0; | |
3556 | int _arg1; | |
2d091820 | 3557 | PyObject * _argo0 = 0; |
107e4716 | 3558 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
3559 | |
3560 | self = self; | |
107e4716 | 3561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3562 | return NULL; |
2d091820 RD |
3563 | if (_argo0) { |
3564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); |
3567 | return NULL; | |
3568 | } | |
3569 | } | |
ab9bc19b RD |
3570 | { |
3571 | wxPy_BEGIN_ALLOW_THREADS; | |
3572 | wxListBox_Deselect(_arg0,_arg1); | |
3573 | ||
3574 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3575 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3576 | } Py_INCREF(Py_None); |
70551f47 RD |
3577 | _resultobj = Py_None; |
3578 | return _resultobj; | |
3579 | } | |
3580 | ||
3581 | #define wxListBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
107e4716 | 3582 | static PyObject *_wrap_wxListBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3583 | PyObject * _resultobj; |
3584 | int _result; | |
3585 | wxListBox * _arg0; | |
3586 | wxString * _arg1; | |
2d091820 | 3587 | PyObject * _argo0 = 0; |
70551f47 | 3588 | PyObject * _obj1 = 0; |
107e4716 | 3589 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
3590 | |
3591 | self = self; | |
107e4716 | 3592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_FindString",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3593 | return NULL; |
2d091820 RD |
3594 | if (_argo0) { |
3595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_FindString. Expected _wxListBox_p."); |
3598 | return NULL; | |
3599 | } | |
3600 | } | |
3601 | { | |
2cd2fac8 RD |
3602 | #if PYTHON_API_VERSION >= 1009 |
3603 | char* tmpPtr; int tmpSize; | |
3604 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 3605 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3606 | return NULL; |
3607 | } | |
3608 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3609 | return NULL; | |
3610 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3611 | #else | |
70551f47 RD |
3612 | if (!PyString_Check(_obj1)) { |
3613 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3614 | return NULL; | |
3615 | } | |
2cd2fac8 RD |
3616 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3617 | #endif | |
70551f47 | 3618 | } |
ab9bc19b RD |
3619 | { |
3620 | wxPy_BEGIN_ALLOW_THREADS; | |
3621 | _result = (int )wxListBox_FindString(_arg0,*_arg1); | |
3622 | ||
3623 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3624 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3625 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3626 | { |
3627 | if (_obj1) | |
3628 | delete _arg1; | |
3629 | } | |
3630 | return _resultobj; | |
3631 | } | |
3632 | ||
3633 | #define wxListBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
107e4716 | 3634 | static PyObject *_wrap_wxListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3635 | PyObject * _resultobj; |
3636 | int _result; | |
3637 | wxListBox * _arg0; | |
2d091820 | 3638 | PyObject * _argo0 = 0; |
107e4716 | 3639 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3640 | |
3641 | self = self; | |
107e4716 | 3642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelection",_kwnames,&_argo0)) |
70551f47 | 3643 | return NULL; |
2d091820 RD |
3644 | if (_argo0) { |
3645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelection. Expected _wxListBox_p."); |
3648 | return NULL; | |
3649 | } | |
3650 | } | |
ab9bc19b RD |
3651 | { |
3652 | wxPy_BEGIN_ALLOW_THREADS; | |
3653 | _result = (int )wxListBox_GetSelection(_arg0); | |
3654 | ||
3655 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3656 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
3657 | } _resultobj = Py_BuildValue("i",_result); |
3658 | return _resultobj; | |
3659 | } | |
3660 | ||
3661 | static PyObject * wxListBox_GetSelections(wxListBox *self) { | |
3662 | wxArrayInt lst; | |
3663 | self->GetSelections(lst); | |
3664 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
f6bcfd97 | 3665 | for(size_t i=0; i<lst.GetCount(); i++) { |
ab9bc19b RD |
3666 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
3667 | } | |
3668 | return tup; | |
3669 | } | |
107e4716 | 3670 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
3671 | PyObject * _resultobj; |
3672 | PyObject * _result; | |
3673 | wxListBox * _arg0; | |
2d091820 | 3674 | PyObject * _argo0 = 0; |
107e4716 | 3675 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
3676 | |
3677 | self = self; | |
107e4716 | 3678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) |
ab9bc19b | 3679 | return NULL; |
2d091820 RD |
3680 | if (_argo0) { |
3681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
ab9bc19b RD |
3683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); |
3684 | return NULL; | |
3685 | } | |
3686 | } | |
3687 | { | |
3688 | wxPy_BEGIN_ALLOW_THREADS; | |
3689 | _result = (PyObject *)wxListBox_GetSelections(_arg0); | |
3690 | ||
3691 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3692 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
3693 | }{ |
3694 | _resultobj = _result; | |
3695 | } | |
70551f47 RD |
3696 | return _resultobj; |
3697 | } | |
3698 | ||
37f6a977 RD |
3699 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
3700 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3701 | PyObject * _resultobj; | |
3702 | wxListBox * _arg0; | |
3703 | int _arg1; | |
3704 | wxString * _arg2; | |
3705 | int _arg3; | |
3706 | PyObject * _argo0 = 0; | |
3707 | PyObject * _obj2 = 0; | |
e02c03a4 | 3708 | char *_kwnames[] = { "self","choices","pos", NULL }; |
37f6a977 RD |
3709 | |
3710 | self = self; | |
3711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
3712 | return NULL; | |
3713 | if (_argo0) { | |
3714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
3716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
3717 | return NULL; | |
3718 | } | |
3719 | } | |
3720 | { | |
3721 | _arg2 = wxString_LIST_helper(_obj2); | |
3722 | if (_arg2 == NULL) { | |
3723 | return NULL; | |
3724 | } | |
3725 | } | |
3726 | { | |
3727 | if (_obj2) { | |
3728 | _arg1 = PyList_Size(_obj2); | |
3729 | } | |
3730 | else { | |
3731 | _arg1 = 0; | |
3732 | } | |
3733 | } | |
3734 | { | |
3735 | wxPy_BEGIN_ALLOW_THREADS; | |
3736 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
3737 | ||
3738 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3739 | if (PyErr_Occurred()) return NULL; |
37f6a977 RD |
3740 | } Py_INCREF(Py_None); |
3741 | _resultobj = Py_None; | |
3742 | { | |
3743 | delete [] _arg2; | |
3744 | } | |
3745 | return _resultobj; | |
3746 | } | |
3747 | ||
70551f47 | 3748 | #define wxListBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) |
107e4716 | 3749 | static PyObject *_wrap_wxListBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3750 | PyObject * _resultobj; |
3751 | wxString * _result; | |
3752 | wxListBox * _arg0; | |
3753 | int _arg1; | |
2d091820 | 3754 | PyObject * _argo0 = 0; |
107e4716 | 3755 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
3756 | |
3757 | self = self; | |
107e4716 | 3758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_GetString",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3759 | return NULL; |
2d091820 RD |
3760 | if (_argo0) { |
3761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetString. Expected _wxListBox_p."); |
3764 | return NULL; | |
3765 | } | |
3766 | } | |
70551f47 | 3767 | { |
ab9bc19b RD |
3768 | wxPy_BEGIN_ALLOW_THREADS; |
3769 | _result = new wxString (wxListBox_GetString(_arg0,_arg1)); | |
3770 | ||
3771 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3772 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3773 | }{ |
e02c03a4 | 3774 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
3775 | } |
3776 | { | |
3777 | delete _result; | |
3778 | } | |
3779 | return _resultobj; | |
3780 | } | |
3781 | ||
3782 | #define wxListBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
107e4716 | 3783 | static PyObject *_wrap_wxListBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3784 | PyObject * _resultobj; |
3785 | wxString * _result; | |
3786 | wxListBox * _arg0; | |
2d091820 | 3787 | PyObject * _argo0 = 0; |
107e4716 | 3788 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3789 | |
3790 | self = self; | |
107e4716 | 3791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetStringSelection",_kwnames,&_argo0)) |
70551f47 | 3792 | return NULL; |
2d091820 RD |
3793 | if (_argo0) { |
3794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetStringSelection. Expected _wxListBox_p."); |
3797 | return NULL; | |
3798 | } | |
3799 | } | |
70551f47 | 3800 | { |
ab9bc19b RD |
3801 | wxPy_BEGIN_ALLOW_THREADS; |
3802 | _result = new wxString (wxListBox_GetStringSelection(_arg0)); | |
3803 | ||
3804 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3805 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3806 | }{ |
e02c03a4 | 3807 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
3808 | } |
3809 | { | |
3810 | delete _result; | |
3811 | } | |
3812 | return _resultobj; | |
3813 | } | |
3814 | ||
3815 | #define wxListBox_Number(_swigobj) (_swigobj->Number()) | |
107e4716 | 3816 | static PyObject *_wrap_wxListBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3817 | PyObject * _resultobj; |
3818 | int _result; | |
3819 | wxListBox * _arg0; | |
2d091820 | 3820 | PyObject * _argo0 = 0; |
107e4716 | 3821 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3822 | |
3823 | self = self; | |
107e4716 | 3824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Number",_kwnames,&_argo0)) |
70551f47 | 3825 | return NULL; |
2d091820 RD |
3826 | if (_argo0) { |
3827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Number. Expected _wxListBox_p."); |
3830 | return NULL; | |
3831 | } | |
3832 | } | |
ab9bc19b RD |
3833 | { |
3834 | wxPy_BEGIN_ALLOW_THREADS; | |
3835 | _result = (int )wxListBox_Number(_arg0); | |
3836 | ||
3837 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3838 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3839 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3840 | return _resultobj; |
3841 | } | |
3842 | ||
3843 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
107e4716 | 3844 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3845 | PyObject * _resultobj; |
3846 | bool _result; | |
3847 | wxListBox * _arg0; | |
3848 | int _arg1; | |
2d091820 | 3849 | PyObject * _argo0 = 0; |
107e4716 | 3850 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
3851 | |
3852 | self = self; | |
107e4716 | 3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3854 | return NULL; |
2d091820 RD |
3855 | if (_argo0) { |
3856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); |
3859 | return NULL; | |
3860 | } | |
3861 | } | |
ab9bc19b RD |
3862 | { |
3863 | wxPy_BEGIN_ALLOW_THREADS; | |
3864 | _result = (bool )wxListBox_Selected(_arg0,_arg1); | |
3865 | ||
3866 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3867 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3868 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3869 | return _resultobj; |
3870 | } | |
3871 | ||
3872 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
107e4716 | 3873 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3874 | PyObject * _resultobj; |
3875 | wxListBox * _arg0; | |
3876 | int _arg1; | |
3877 | wxString * _arg2; | |
2d091820 | 3878 | PyObject * _argo0 = 0; |
70551f47 | 3879 | PyObject * _obj2 = 0; |
e02c03a4 | 3880 | char *_kwnames[] = { "self","choices", NULL }; |
70551f47 RD |
3881 | |
3882 | self = self; | |
107e4716 | 3883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) |
70551f47 | 3884 | return NULL; |
2d091820 RD |
3885 | if (_argo0) { |
3886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); |
3889 | return NULL; | |
3890 | } | |
3891 | } | |
3892 | if (_obj2) | |
3893 | { | |
3894 | _arg2 = wxString_LIST_helper(_obj2); | |
3895 | if (_arg2 == NULL) { | |
3896 | return NULL; | |
3897 | } | |
3898 | } | |
3899 | { | |
ab9bc19b RD |
3900 | if (_obj2) { |
3901 | _arg1 = PyList_Size(_obj2); | |
3902 | } | |
3903 | else { | |
3904 | _arg1 = 0; | |
3905 | } | |
70551f47 | 3906 | } |
ab9bc19b RD |
3907 | { |
3908 | wxPy_BEGIN_ALLOW_THREADS; | |
3909 | wxListBox_Set(_arg0,_arg1,_arg2); | |
3910 | ||
3911 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3912 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3913 | } Py_INCREF(Py_None); |
70551f47 RD |
3914 | _resultobj = Py_None; |
3915 | { | |
3916 | delete [] _arg2; | |
3917 | } | |
3918 | return _resultobj; | |
3919 | } | |
3920 | ||
3921 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
107e4716 | 3922 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3923 | PyObject * _resultobj; |
3924 | wxListBox * _arg0; | |
3925 | int _arg1; | |
2d091820 | 3926 | PyObject * _argo0 = 0; |
107e4716 | 3927 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
3928 | |
3929 | self = self; | |
107e4716 | 3930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3931 | return NULL; |
2d091820 RD |
3932 | if (_argo0) { |
3933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); |
3936 | return NULL; | |
3937 | } | |
3938 | } | |
ab9bc19b RD |
3939 | { |
3940 | wxPy_BEGIN_ALLOW_THREADS; | |
3941 | wxListBox_SetFirstItem(_arg0,_arg1); | |
3942 | ||
3943 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3944 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3945 | } Py_INCREF(Py_None); |
70551f47 RD |
3946 | _resultobj = Py_None; |
3947 | return _resultobj; | |
3948 | } | |
3949 | ||
3950 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
107e4716 | 3951 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3952 | PyObject * _resultobj; |
3953 | wxListBox * _arg0; | |
3954 | wxString * _arg1; | |
2d091820 | 3955 | PyObject * _argo0 = 0; |
70551f47 | 3956 | PyObject * _obj1 = 0; |
107e4716 | 3957 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
3958 | |
3959 | self = self; | |
107e4716 | 3960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3961 | return NULL; |
2d091820 RD |
3962 | if (_argo0) { |
3963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
3965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); |
3966 | return NULL; | |
3967 | } | |
3968 | } | |
3969 | { | |
2cd2fac8 RD |
3970 | #if PYTHON_API_VERSION >= 1009 |
3971 | char* tmpPtr; int tmpSize; | |
3972 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 3973 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3974 | return NULL; |
3975 | } | |
3976 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3977 | return NULL; | |
3978 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3979 | #else | |
70551f47 RD |
3980 | if (!PyString_Check(_obj1)) { |
3981 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3982 | return NULL; | |
3983 | } | |
2cd2fac8 RD |
3984 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3985 | #endif | |
70551f47 | 3986 | } |
ab9bc19b RD |
3987 | { |
3988 | wxPy_BEGIN_ALLOW_THREADS; | |
3989 | wxListBox_SetFirstItemStr(_arg0,*_arg1); | |
3990 | ||
3991 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3992 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3993 | } Py_INCREF(Py_None); |
70551f47 RD |
3994 | _resultobj = Py_None; |
3995 | { | |
3996 | if (_obj1) | |
3997 | delete _arg1; | |
3998 | } | |
3999 | return _resultobj; | |
4000 | } | |
4001 | ||
4002 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 4003 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4004 | PyObject * _resultobj; |
4005 | wxListBox * _arg0; | |
4006 | int _arg1; | |
2d091820 RD |
4007 | bool _arg2 = (bool ) TRUE; |
4008 | PyObject * _argo0 = 0; | |
4009 | int tempbool2 = (int) TRUE; | |
107e4716 | 4010 | char *_kwnames[] = { "self","n","select", NULL }; |
70551f47 RD |
4011 | |
4012 | self = self; | |
107e4716 | 4013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 4014 | return NULL; |
2d091820 RD |
4015 | if (_argo0) { |
4016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); |
4019 | return NULL; | |
4020 | } | |
4021 | } | |
4022 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
4023 | { |
4024 | wxPy_BEGIN_ALLOW_THREADS; | |
4025 | wxListBox_SetSelection(_arg0,_arg1,_arg2); | |
4026 | ||
4027 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4028 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4029 | } Py_INCREF(Py_None); |
70551f47 RD |
4030 | _resultobj = Py_None; |
4031 | return _resultobj; | |
4032 | } | |
4033 | ||
4034 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
107e4716 | 4035 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4036 | PyObject * _resultobj; |
4037 | wxListBox * _arg0; | |
4038 | int _arg1; | |
4039 | wxString * _arg2; | |
2d091820 | 4040 | PyObject * _argo0 = 0; |
70551f47 | 4041 | PyObject * _obj2 = 0; |
107e4716 | 4042 | char *_kwnames[] = { "self","n","string", NULL }; |
70551f47 RD |
4043 | |
4044 | self = self; | |
107e4716 | 4045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 4046 | return NULL; |
2d091820 RD |
4047 | if (_argo0) { |
4048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); |
4051 | return NULL; | |
4052 | } | |
4053 | } | |
4054 | { | |
2cd2fac8 RD |
4055 | #if PYTHON_API_VERSION >= 1009 |
4056 | char* tmpPtr; int tmpSize; | |
4057 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 4058 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4059 | return NULL; |
4060 | } | |
4061 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4062 | return NULL; | |
4063 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4064 | #else | |
70551f47 RD |
4065 | if (!PyString_Check(_obj2)) { |
4066 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4067 | return NULL; | |
4068 | } | |
2cd2fac8 RD |
4069 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4070 | #endif | |
70551f47 | 4071 | } |
ab9bc19b RD |
4072 | { |
4073 | wxPy_BEGIN_ALLOW_THREADS; | |
4074 | wxListBox_SetString(_arg0,_arg1,*_arg2); | |
4075 | ||
4076 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4077 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4078 | } Py_INCREF(Py_None); |
70551f47 RD |
4079 | _resultobj = Py_None; |
4080 | { | |
4081 | if (_obj2) | |
4082 | delete _arg2; | |
4083 | } | |
4084 | return _resultobj; | |
4085 | } | |
4086 | ||
4087 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
107e4716 | 4088 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4089 | PyObject * _resultobj; |
4090 | wxListBox * _arg0; | |
4091 | wxString * _arg1; | |
2d091820 RD |
4092 | bool _arg2 = (bool ) TRUE; |
4093 | PyObject * _argo0 = 0; | |
70551f47 | 4094 | PyObject * _obj1 = 0; |
2d091820 | 4095 | int tempbool2 = (int) TRUE; |
107e4716 | 4096 | char *_kwnames[] = { "self","string","select", NULL }; |
70551f47 RD |
4097 | |
4098 | self = self; | |
107e4716 | 4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) |
70551f47 | 4100 | return NULL; |
2d091820 RD |
4101 | if (_argo0) { |
4102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); |
4105 | return NULL; | |
4106 | } | |
4107 | } | |
4108 | { | |
2cd2fac8 RD |
4109 | #if PYTHON_API_VERSION >= 1009 |
4110 | char* tmpPtr; int tmpSize; | |
4111 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4112 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4113 | return NULL; |
4114 | } | |
4115 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4116 | return NULL; | |
4117 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4118 | #else | |
70551f47 RD |
4119 | if (!PyString_Check(_obj1)) { |
4120 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4121 | return NULL; | |
4122 | } | |
2cd2fac8 RD |
4123 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4124 | #endif | |
70551f47 RD |
4125 | } |
4126 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
4127 | { |
4128 | wxPy_BEGIN_ALLOW_THREADS; | |
4129 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); | |
4130 | ||
4131 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4132 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4133 | } Py_INCREF(Py_None); |
70551f47 RD |
4134 | _resultobj = Py_None; |
4135 | { | |
4136 | if (_obj1) | |
4137 | delete _arg1; | |
4138 | } | |
4139 | return _resultobj; | |
4140 | } | |
4141 | ||
c95e68d8 RD |
4142 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { |
4143 | wxCheckListBox *src; | |
4144 | wxListBox *dest; | |
4145 | src = (wxCheckListBox *) ptr; | |
4146 | dest = (wxListBox *) src; | |
4147 | return (void *) dest; | |
4148 | } | |
4149 | ||
4150 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { | |
4151 | wxCheckListBox *src; | |
4152 | wxControl *dest; | |
4153 | src = (wxCheckListBox *) ptr; | |
4154 | dest = (wxControl *) src; | |
4155 | return (void *) dest; | |
4156 | } | |
4157 | ||
4158 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
4159 | wxCheckListBox *src; | |
4160 | wxWindow *dest; | |
4161 | src = (wxCheckListBox *) ptr; | |
4162 | dest = (wxWindow *) src; | |
4163 | return (void *) dest; | |
4164 | } | |
4165 | ||
4166 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
4167 | wxCheckListBox *src; | |
4168 | wxEvtHandler *dest; | |
4169 | src = (wxCheckListBox *) ptr; | |
4170 | dest = (wxEvtHandler *) src; | |
4171 | return (void *) dest; | |
4172 | } | |
4173 | ||
9df61a29 RD |
4174 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { |
4175 | wxCheckListBox *src; | |
4176 | wxObject *dest; | |
4177 | src = (wxCheckListBox *) ptr; | |
4178 | dest = (wxObject *) src; | |
4179 | return (void *) dest; | |
4180 | } | |
4181 | ||
c95e68d8 | 4182 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 4183 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
4184 | PyObject * _resultobj; |
4185 | wxCheckListBox * _result; | |
4186 | wxWindow * _arg0; | |
4187 | wxWindowID _arg1; | |
b68dc582 RD |
4188 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
4189 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
4190 | int _arg4 = (int ) 0; |
4191 | wxString * _arg5 = (wxString *) NULL; | |
4192 | long _arg6 = (long ) 0; | |
b68dc582 | 4193 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
4194 | char * _arg8 = (char *) "listBox"; |
4195 | PyObject * _argo0 = 0; | |
37f6a977 RD |
4196 | wxPoint temp; |
4197 | PyObject * _obj2 = 0; | |
4198 | wxSize temp0; | |
4199 | PyObject * _obj3 = 0; | |
c95e68d8 | 4200 | PyObject * _obj5 = 0; |
2d091820 | 4201 | PyObject * _argo7 = 0; |
e02c03a4 | 4202 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
c95e68d8 RD |
4203 | char _ptemp[128]; |
4204 | ||
4205 | self = self; | |
37f6a977 | 4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
c95e68d8 | 4207 | return NULL; |
2d091820 RD |
4208 | if (_argo0) { |
4209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
4211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); |
4212 | return NULL; | |
4213 | } | |
4214 | } | |
37f6a977 RD |
4215 | if (_obj2) |
4216 | { | |
4217 | _arg2 = &temp; | |
4218 | if (! wxPoint_helper(_obj2, &_arg2)) | |
c95e68d8 | 4219 | return NULL; |
37f6a977 RD |
4220 | } |
4221 | if (_obj3) | |
4222 | { | |
4223 | _arg3 = &temp0; | |
4224 | if (! wxSize_helper(_obj3, &_arg3)) | |
c95e68d8 | 4225 | return NULL; |
37f6a977 | 4226 | } |
c95e68d8 RD |
4227 | if (_obj5) |
4228 | { | |
4229 | _arg5 = wxString_LIST_helper(_obj5); | |
4230 | if (_arg5 == NULL) { | |
4231 | return NULL; | |
4232 | } | |
4233 | } | |
2d091820 RD |
4234 | if (_argo7) { |
4235 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4236 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
c95e68d8 RD |
4237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); |
4238 | return NULL; | |
4239 | } | |
4240 | } | |
4241 | { | |
ab9bc19b RD |
4242 | if (_obj5) { |
4243 | _arg4 = PyList_Size(_obj5); | |
4244 | } | |
4245 | else { | |
4246 | _arg4 = 0; | |
4247 | } | |
c95e68d8 | 4248 | } |
ab9bc19b RD |
4249 | { |
4250 | wxPy_BEGIN_ALLOW_THREADS; | |
4251 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
4252 | ||
4253 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4254 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4255 | } if (_result) { |
4256 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
4257 | _resultobj = Py_BuildValue("s",_ptemp); | |
4258 | } else { | |
4259 | Py_INCREF(Py_None); | |
4260 | _resultobj = Py_None; | |
4261 | } | |
c95e68d8 RD |
4262 | { |
4263 | delete [] _arg5; | |
4264 | } | |
4265 | return _resultobj; | |
4266 | } | |
4267 | ||
4268 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
107e4716 | 4269 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
4270 | PyObject * _resultobj; |
4271 | bool _result; | |
4272 | wxCheckListBox * _arg0; | |
4273 | int _arg1; | |
2d091820 | 4274 | PyObject * _argo0 = 0; |
107e4716 | 4275 | char *_kwnames[] = { "self","uiIndex", NULL }; |
c95e68d8 RD |
4276 | |
4277 | self = self; | |
107e4716 | 4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 4279 | return NULL; |
2d091820 RD |
4280 | if (_argo0) { |
4281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
4283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); |
4284 | return NULL; | |
4285 | } | |
4286 | } | |
ab9bc19b RD |
4287 | { |
4288 | wxPy_BEGIN_ALLOW_THREADS; | |
4289 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); | |
4290 | ||
4291 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4292 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4293 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
4294 | return _resultobj; |
4295 | } | |
4296 | ||
4297 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
107e4716 | 4298 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
4299 | PyObject * _resultobj; |
4300 | wxCheckListBox * _arg0; | |
4301 | int _arg1; | |
d29aba2f | 4302 | int _arg2 = (int ) TRUE; |
2d091820 | 4303 | PyObject * _argo0 = 0; |
107e4716 | 4304 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; |
c95e68d8 RD |
4305 | |
4306 | self = self; | |
d29aba2f | 4307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) |
c95e68d8 | 4308 | return NULL; |
2d091820 RD |
4309 | if (_argo0) { |
4310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
4312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); |
4313 | return NULL; | |
4314 | } | |
4315 | } | |
ab9bc19b RD |
4316 | { |
4317 | wxPy_BEGIN_ALLOW_THREADS; | |
4318 | wxCheckListBox_Check(_arg0,_arg1,_arg2); | |
4319 | ||
4320 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4321 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4322 | } Py_INCREF(Py_None); |
c95e68d8 RD |
4323 | _resultobj = Py_None; |
4324 | return _resultobj; | |
4325 | } | |
4326 | ||
d29aba2f RD |
4327 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
4328 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4329 | PyObject * _resultobj; | |
4330 | wxCheckListBox * _arg0; | |
4331 | int _arg1; | |
4332 | wxString * _arg2; | |
4333 | int _arg3; | |
4334 | PyObject * _argo0 = 0; | |
4335 | PyObject * _obj2 = 0; | |
e02c03a4 | 4336 | char *_kwnames[] = { "self","choices","pos", NULL }; |
d29aba2f RD |
4337 | |
4338 | self = self; | |
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4340 | return NULL; | |
4341 | if (_argo0) { | |
4342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
4348 | { | |
4349 | _arg2 = wxString_LIST_helper(_obj2); | |
4350 | if (_arg2 == NULL) { | |
4351 | return NULL; | |
4352 | } | |
4353 | } | |
4354 | { | |
4355 | if (_obj2) { | |
4356 | _arg1 = PyList_Size(_obj2); | |
4357 | } | |
4358 | else { | |
4359 | _arg1 = 0; | |
4360 | } | |
4361 | } | |
4362 | { | |
4363 | wxPy_BEGIN_ALLOW_THREADS; | |
4364 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
4365 | ||
4366 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4367 | if (PyErr_Occurred()) return NULL; |
d29aba2f RD |
4368 | } Py_INCREF(Py_None); |
4369 | _resultobj = Py_None; | |
4370 | { | |
4371 | delete [] _arg2; | |
4372 | } | |
4373 | return _resultobj; | |
4374 | } | |
4375 | ||
c95e68d8 | 4376 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) |
107e4716 | 4377 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
4378 | PyObject * _resultobj; |
4379 | int _result; | |
4380 | wxCheckListBox * _arg0; | |
2d091820 | 4381 | PyObject * _argo0 = 0; |
107e4716 | 4382 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
4383 | |
4384 | self = self; | |
107e4716 | 4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) |
c95e68d8 | 4386 | return NULL; |
2d091820 RD |
4387 | if (_argo0) { |
4388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
4390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); |
4391 | return NULL; | |
4392 | } | |
4393 | } | |
ab9bc19b RD |
4394 | { |
4395 | wxPy_BEGIN_ALLOW_THREADS; | |
4396 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); | |
4397 | ||
4398 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4399 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4400 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
4401 | return _resultobj; |
4402 | } | |
4403 | ||
9d6da64a RD |
4404 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) |
4405 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4406 | PyObject * _resultobj; | |
4407 | wxTextAttr * _result; | |
4408 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
4409 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
4410 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
4411 | wxColour temp; | |
4412 | PyObject * _obj0 = 0; | |
4413 | wxColour temp0; | |
4414 | PyObject * _obj1 = 0; | |
4415 | PyObject * _argo2 = 0; | |
4416 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
4417 | char _ptemp[128]; | |
4418 | ||
4419 | self = self; | |
4420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
4421 | return NULL; | |
4422 | if (_obj0) | |
4423 | { | |
4424 | _arg0 = &temp; | |
4425 | if (! wxColour_helper(_obj0, &_arg0)) | |
4426 | return NULL; | |
4427 | } | |
4428 | if (_obj1) | |
4429 | { | |
4430 | _arg1 = &temp0; | |
4431 | if (! wxColour_helper(_obj1, &_arg1)) | |
4432 | return NULL; | |
4433 | } | |
4434 | if (_argo2) { | |
4435 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4436 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
4437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
4438 | return NULL; | |
4439 | } | |
4440 | } | |
4441 | { | |
4442 | wxPy_BEGIN_ALLOW_THREADS; | |
4443 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); | |
4444 | ||
4445 | wxPy_END_ALLOW_THREADS; | |
4446 | if (PyErr_Occurred()) return NULL; | |
4447 | } if (_result) { | |
4448 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
4449 | _resultobj = Py_BuildValue("s",_ptemp); | |
4450 | } else { | |
4451 | Py_INCREF(Py_None); | |
4452 | _resultobj = Py_None; | |
4453 | } | |
4454 | return _resultobj; | |
4455 | } | |
4456 | ||
4457 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
4458 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4459 | PyObject * _resultobj; | |
4460 | wxTextAttr * _arg0; | |
4461 | PyObject * _argo0 = 0; | |
4462 | char *_kwnames[] = { "self", NULL }; | |
4463 | ||
4464 | self = self; | |
4465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
4466 | return NULL; | |
4467 | if (_argo0) { | |
4468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
4470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
4471 | return NULL; | |
4472 | } | |
4473 | } | |
4474 | { | |
4475 | wxPy_BEGIN_ALLOW_THREADS; | |
4476 | delete_wxTextAttr(_arg0); | |
4477 | ||
4478 | wxPy_END_ALLOW_THREADS; | |
4479 | if (PyErr_Occurred()) return NULL; | |
4480 | } Py_INCREF(Py_None); | |
4481 | _resultobj = Py_None; | |
4482 | return _resultobj; | |
4483 | } | |
4484 | ||
4485 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
4486 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4487 | PyObject * _resultobj; | |
4488 | wxTextAttr * _arg0; | |
4489 | wxColour * _arg1; | |
4490 | PyObject * _argo0 = 0; | |
4491 | wxColour temp; | |
4492 | PyObject * _obj1 = 0; | |
4493 | char *_kwnames[] = { "self","colText", NULL }; | |
4494 | ||
4495 | self = self; | |
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
4497 | return NULL; | |
4498 | if (_argo0) { | |
4499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
4501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
4502 | return NULL; | |
4503 | } | |
4504 | } | |
4505 | { | |
4506 | _arg1 = &temp; | |
4507 | if (! wxColour_helper(_obj1, &_arg1)) | |
4508 | return NULL; | |
4509 | } | |
4510 | { | |
4511 | wxPy_BEGIN_ALLOW_THREADS; | |
4512 | wxTextAttr_SetTextColour(_arg0,*_arg1); | |
4513 | ||
4514 | wxPy_END_ALLOW_THREADS; | |
4515 | if (PyErr_Occurred()) return NULL; | |
4516 | } Py_INCREF(Py_None); | |
4517 | _resultobj = Py_None; | |
4518 | return _resultobj; | |
4519 | } | |
4520 | ||
4521 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
4522 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4523 | PyObject * _resultobj; | |
4524 | wxTextAttr * _arg0; | |
4525 | wxColour * _arg1; | |
4526 | PyObject * _argo0 = 0; | |
4527 | wxColour temp; | |
4528 | PyObject * _obj1 = 0; | |
4529 | char *_kwnames[] = { "self","colBack", NULL }; | |
4530 | ||
4531 | self = self; | |
4532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
4533 | return NULL; | |
4534 | if (_argo0) { | |
4535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
4537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
4538 | return NULL; | |
4539 | } | |
4540 | } | |
4541 | { | |
4542 | _arg1 = &temp; | |
4543 | if (! wxColour_helper(_obj1, &_arg1)) | |
4544 | return NULL; | |
4545 | } | |
4546 | { | |
4547 | wxPy_BEGIN_ALLOW_THREADS; | |
4548 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); | |
4549 | ||
4550 | wxPy_END_ALLOW_THREADS; | |
4551 | if (PyErr_Occurred()) return NULL; | |
4552 | } Py_INCREF(Py_None); | |
4553 | _resultobj = Py_None; | |
4554 | return _resultobj; | |
4555 | } | |
4556 | ||
4557 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
4558 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4559 | PyObject * _resultobj; | |
4560 | wxTextAttr * _arg0; | |
4561 | wxFont * _arg1; | |
4562 | PyObject * _argo0 = 0; | |
4563 | PyObject * _argo1 = 0; | |
4564 | char *_kwnames[] = { "self","font", NULL }; | |
4565 | ||
4566 | self = self; | |
4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
4568 | return NULL; | |
4569 | if (_argo0) { | |
4570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
4572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
4573 | return NULL; | |
4574 | } | |
4575 | } | |
4576 | if (_argo1) { | |
4577 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4578 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
4580 | return NULL; | |
4581 | } | |
4582 | } | |
4583 | { | |
4584 | wxPy_BEGIN_ALLOW_THREADS; | |
4585 | wxTextAttr_SetFont(_arg0,*_arg1); | |
4586 | ||
4587 | wxPy_END_ALLOW_THREADS; | |
4588 | if (PyErr_Occurred()) return NULL; | |
4589 | } Py_INCREF(Py_None); | |
4590 | _resultobj = Py_None; | |
4591 | return _resultobj; | |
4592 | } | |
4593 | ||
4594 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
4595 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4596 | PyObject * _resultobj; | |
4597 | bool _result; | |
4598 | wxTextAttr * _arg0; | |
4599 | PyObject * _argo0 = 0; | |
4600 | char *_kwnames[] = { "self", NULL }; | |
4601 | ||
4602 | self = self; | |
4603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
4604 | return NULL; | |
4605 | if (_argo0) { | |
4606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
4608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
4609 | return NULL; | |
4610 | } | |
4611 | } | |
4612 | { | |
4613 | wxPy_BEGIN_ALLOW_THREADS; | |
4614 | _result = (bool )wxTextAttr_HasTextColour(_arg0); | |
4615 | ||
4616 | wxPy_END_ALLOW_THREADS; | |
4617 | if (PyErr_Occurred()) return NULL; | |
4618 | } _resultobj = Py_BuildValue("i",_result); | |
4619 | return _resultobj; | |
4620 | } | |
4621 | ||
4622 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
4623 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4624 | PyObject * _resultobj; | |
4625 | bool _result; | |
4626 | wxTextAttr * _arg0; | |
4627 | PyObject * _argo0 = 0; | |
4628 | char *_kwnames[] = { "self", NULL }; | |
4629 | ||
4630 | self = self; | |
4631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
4632 | return NULL; | |
4633 | if (_argo0) { | |
4634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
4636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
4637 | return NULL; | |
4638 | } | |
4639 | } | |
4640 | { | |
4641 | wxPy_BEGIN_ALLOW_THREADS; | |
4642 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); | |
4643 | ||
4644 | wxPy_END_ALLOW_THREADS; | |
4645 | if (PyErr_Occurred()) return NULL; | |
4646 | } _resultobj = Py_BuildValue("i",_result); | |
4647 | return _resultobj; | |
4648 | } | |
4649 | ||
4650 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
4651 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4652 | PyObject * _resultobj; | |
4653 | bool _result; | |
4654 | wxTextAttr * _arg0; | |
4655 | PyObject * _argo0 = 0; | |
4656 | char *_kwnames[] = { "self", NULL }; | |
4657 | ||
4658 | self = self; | |
4659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
4660 | return NULL; | |
4661 | if (_argo0) { | |
4662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
4664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
4665 | return NULL; | |
4666 | } | |
4667 | } | |
4668 | { | |
4669 | wxPy_BEGIN_ALLOW_THREADS; | |
4670 | _result = (bool )wxTextAttr_HasFont(_arg0); | |
4671 | ||
4672 | wxPy_END_ALLOW_THREADS; | |
4673 | if (PyErr_Occurred()) return NULL; | |
4674 | } _resultobj = Py_BuildValue("i",_result); | |
4675 | return _resultobj; | |
4676 | } | |
4677 | ||
4678 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
4679 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4680 | PyObject * _resultobj; | |
4681 | wxColour * _result; | |
4682 | wxTextAttr * _arg0; | |
4683 | PyObject * _argo0 = 0; | |
4684 | char *_kwnames[] = { "self", NULL }; | |
4685 | char _ptemp[128]; | |
4686 | ||
4687 | self = self; | |
4688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
4689 | return NULL; | |
4690 | if (_argo0) { | |
4691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
4693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
4694 | return NULL; | |
4695 | } | |
4696 | } | |
4697 | { | |
4698 | wxPy_BEGIN_ALLOW_THREADS; | |
4699 | const wxColour & _result_ref = wxTextAttr_GetTextColour(_arg0); | |
4700 | _result = (wxColour *) &_result_ref; | |
4701 | ||
4702 | wxPy_END_ALLOW_THREADS; | |
4703 | if (PyErr_Occurred()) return NULL; | |
4704 | } if (_result) { | |
4705 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4706 | _resultobj = Py_BuildValue("s",_ptemp); | |
4707 | } else { | |
4708 | Py_INCREF(Py_None); | |
4709 | _resultobj = Py_None; | |
4710 | } | |
4711 | return _resultobj; | |
4712 | } | |
4713 | ||
4714 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
4715 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4716 | PyObject * _resultobj; | |
4717 | wxColour * _result; | |
4718 | wxTextAttr * _arg0; | |
4719 | PyObject * _argo0 = 0; | |
4720 | char *_kwnames[] = { "self", NULL }; | |
4721 | char _ptemp[128]; | |
4722 | ||
4723 | self = self; | |
4724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
4725 | return NULL; | |
4726 | if (_argo0) { | |
4727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
4729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
4730 | return NULL; | |
4731 | } | |
4732 | } | |
4733 | { | |
4734 | wxPy_BEGIN_ALLOW_THREADS; | |
4735 | const wxColour & _result_ref = wxTextAttr_GetBackgroundColour(_arg0); | |
4736 | _result = (wxColour *) &_result_ref; | |
4737 | ||
4738 | wxPy_END_ALLOW_THREADS; | |
4739 | if (PyErr_Occurred()) return NULL; | |
4740 | } if (_result) { | |
4741 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4742 | _resultobj = Py_BuildValue("s",_ptemp); | |
4743 | } else { | |
4744 | Py_INCREF(Py_None); | |
4745 | _resultobj = Py_None; | |
4746 | } | |
4747 | return _resultobj; | |
4748 | } | |
4749 | ||
4750 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
4751 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject * _resultobj; | |
4753 | wxFont * _result; | |
4754 | wxTextAttr * _arg0; | |
4755 | PyObject * _argo0 = 0; | |
4756 | char *_kwnames[] = { "self", NULL }; | |
4757 | char _ptemp[128]; | |
4758 | ||
4759 | self = self; | |
4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
4761 | return NULL; | |
4762 | if (_argo0) { | |
4763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
4765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
4766 | return NULL; | |
4767 | } | |
4768 | } | |
4769 | { | |
4770 | wxPy_BEGIN_ALLOW_THREADS; | |
4771 | const wxFont & _result_ref = wxTextAttr_GetFont(_arg0); | |
4772 | _result = (wxFont *) &_result_ref; | |
4773 | ||
4774 | wxPy_END_ALLOW_THREADS; | |
4775 | if (PyErr_Occurred()) return NULL; | |
4776 | } if (_result) { | |
4777 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4778 | _resultobj = Py_BuildValue("s",_ptemp); | |
4779 | } else { | |
4780 | Py_INCREF(Py_None); | |
4781 | _resultobj = Py_None; | |
4782 | } | |
4783 | return _resultobj; | |
4784 | } | |
4785 | ||
70551f47 RD |
4786 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
4787 | wxTextCtrl *src; | |
4788 | wxControl *dest; | |
4789 | src = (wxTextCtrl *) ptr; | |
4790 | dest = (wxControl *) src; | |
4791 | return (void *) dest; | |
4792 | } | |
4793 | ||
4794 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
4795 | wxTextCtrl *src; | |
4796 | wxWindow *dest; | |
4797 | src = (wxTextCtrl *) ptr; | |
4798 | dest = (wxWindow *) src; | |
4799 | return (void *) dest; | |
4800 | } | |
4801 | ||
4802 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
4803 | wxTextCtrl *src; | |
4804 | wxEvtHandler *dest; | |
4805 | src = (wxTextCtrl *) ptr; | |
4806 | dest = (wxEvtHandler *) src; | |
4807 | return (void *) dest; | |
4808 | } | |
4809 | ||
9df61a29 RD |
4810 | static void *SwigwxTextCtrlTowxObject(void *ptr) { |
4811 | wxTextCtrl *src; | |
4812 | wxObject *dest; | |
4813 | src = (wxTextCtrl *) ptr; | |
4814 | dest = (wxObject *) src; | |
4815 | return (void *) dest; | |
4816 | } | |
4817 | ||
70551f47 | 4818 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 4819 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4820 | PyObject * _resultobj; |
4821 | wxTextCtrl * _result; | |
4822 | wxWindow * _arg0; | |
4823 | wxWindowID _arg1; | |
2d091820 | 4824 | char * _arg2 = (char *) ""; |
b68dc582 RD |
4825 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4826 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 4827 | long _arg5 = (long ) 0; |
b68dc582 | 4828 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
4829 | char * _arg7 = (char *) "text"; |
4830 | PyObject * _argo0 = 0; | |
37f6a977 RD |
4831 | wxPoint temp; |
4832 | PyObject * _obj3 = 0; | |
4833 | wxSize temp0; | |
4834 | PyObject * _obj4 = 0; | |
2d091820 | 4835 | PyObject * _argo6 = 0; |
107e4716 | 4836 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; |
70551f47 RD |
4837 | char _ptemp[128]; |
4838 | ||
4839 | self = self; | |
37f6a977 | 4840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 4841 | return NULL; |
2d091820 RD |
4842 | if (_argo0) { |
4843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); |
4846 | return NULL; | |
4847 | } | |
4848 | } | |
37f6a977 RD |
4849 | if (_obj3) |
4850 | { | |
4851 | _arg3 = &temp; | |
4852 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4853 | return NULL; |
37f6a977 RD |
4854 | } |
4855 | if (_obj4) | |
4856 | { | |
4857 | _arg4 = &temp0; | |
4858 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4859 | return NULL; |
37f6a977 | 4860 | } |
2d091820 RD |
4861 | if (_argo6) { |
4862 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
4863 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
4864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); |
4865 | return NULL; | |
4866 | } | |
4867 | } | |
ab9bc19b RD |
4868 | { |
4869 | wxPy_BEGIN_ALLOW_THREADS; | |
4870 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
4871 | ||
4872 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4873 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4874 | } if (_result) { |
4875 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
4876 | _resultobj = Py_BuildValue("s",_ptemp); | |
4877 | } else { | |
4878 | Py_INCREF(Py_None); | |
4879 | _resultobj = Py_None; | |
4880 | } | |
70551f47 RD |
4881 | return _resultobj; |
4882 | } | |
4883 | ||
4884 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 4885 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4886 | PyObject * _resultobj; |
4887 | wxTextCtrl * _arg0; | |
2d091820 | 4888 | PyObject * _argo0 = 0; |
107e4716 | 4889 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4890 | |
4891 | self = self; | |
107e4716 | 4892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
70551f47 | 4893 | return NULL; |
2d091820 RD |
4894 | if (_argo0) { |
4895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
4897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
4898 | return NULL; | |
4899 | } | |
4900 | } | |
ab9bc19b RD |
4901 | { |
4902 | wxPy_BEGIN_ALLOW_THREADS; | |
4903 | wxTextCtrl_Clear(_arg0); | |
4904 | ||
4905 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4906 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4907 | } Py_INCREF(Py_None); |
70551f47 RD |
4908 | _resultobj = Py_None; |
4909 | return _resultobj; | |
4910 | } | |
4911 | ||
4912 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) | |
107e4716 | 4913 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4914 | PyObject * _resultobj; |
4915 | wxTextCtrl * _arg0; | |
2d091820 | 4916 | PyObject * _argo0 = 0; |
107e4716 | 4917 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4918 | |
4919 | self = self; | |
107e4716 | 4920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
70551f47 | 4921 | return NULL; |
2d091820 RD |
4922 | if (_argo0) { |
4923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
4925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
4926 | return NULL; | |
4927 | } | |
4928 | } | |
ab9bc19b RD |
4929 | { |
4930 | wxPy_BEGIN_ALLOW_THREADS; | |
4931 | wxTextCtrl_Copy(_arg0); | |
4932 | ||
4933 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4934 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4935 | } Py_INCREF(Py_None); |
70551f47 RD |
4936 | _resultobj = Py_None; |
4937 | return _resultobj; | |
4938 | } | |
4939 | ||
4940 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) | |
107e4716 | 4941 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4942 | PyObject * _resultobj; |
4943 | wxTextCtrl * _arg0; | |
2d091820 | 4944 | PyObject * _argo0 = 0; |
107e4716 | 4945 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4946 | |
4947 | self = self; | |
107e4716 | 4948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
70551f47 | 4949 | return NULL; |
2d091820 RD |
4950 | if (_argo0) { |
4951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
4953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
4954 | return NULL; | |
4955 | } | |
4956 | } | |
ab9bc19b RD |
4957 | { |
4958 | wxPy_BEGIN_ALLOW_THREADS; | |
4959 | wxTextCtrl_Cut(_arg0); | |
4960 | ||
4961 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4962 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4963 | } Py_INCREF(Py_None); |
70551f47 RD |
4964 | _resultobj = Py_None; |
4965 | return _resultobj; | |
4966 | } | |
4967 | ||
4968 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) | |
107e4716 | 4969 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4970 | PyObject * _resultobj; |
4971 | wxTextCtrl * _arg0; | |
2d091820 | 4972 | PyObject * _argo0 = 0; |
107e4716 | 4973 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4974 | |
4975 | self = self; | |
107e4716 | 4976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
70551f47 | 4977 | return NULL; |
2d091820 RD |
4978 | if (_argo0) { |
4979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
4981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
4982 | return NULL; | |
4983 | } | |
4984 | } | |
ab9bc19b RD |
4985 | { |
4986 | wxPy_BEGIN_ALLOW_THREADS; | |
4987 | wxTextCtrl_DiscardEdits(_arg0); | |
4988 | ||
4989 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4990 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4991 | } Py_INCREF(Py_None); |
70551f47 RD |
4992 | _resultobj = Py_None; |
4993 | return _resultobj; | |
4994 | } | |
4995 | ||
4996 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
107e4716 | 4997 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4998 | PyObject * _resultobj; |
4999 | long _result; | |
5000 | wxTextCtrl * _arg0; | |
2d091820 | 5001 | PyObject * _argo0 = 0; |
107e4716 | 5002 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5003 | |
5004 | self = self; | |
107e4716 | 5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
70551f47 | 5006 | return NULL; |
2d091820 RD |
5007 | if (_argo0) { |
5008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
5011 | return NULL; | |
5012 | } | |
5013 | } | |
ab9bc19b RD |
5014 | { |
5015 | wxPy_BEGIN_ALLOW_THREADS; | |
5016 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); | |
5017 | ||
5018 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5019 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5020 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
5021 | return _resultobj; |
5022 | } | |
5023 | ||
5024 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
107e4716 | 5025 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5026 | PyObject * _resultobj; |
5027 | long _result; | |
5028 | wxTextCtrl * _arg0; | |
2d091820 | 5029 | PyObject * _argo0 = 0; |
107e4716 | 5030 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5031 | |
5032 | self = self; | |
107e4716 | 5033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
70551f47 | 5034 | return NULL; |
2d091820 RD |
5035 | if (_argo0) { |
5036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
5039 | return NULL; | |
5040 | } | |
5041 | } | |
ab9bc19b RD |
5042 | { |
5043 | wxPy_BEGIN_ALLOW_THREADS; | |
5044 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); | |
5045 | ||
5046 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5047 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5048 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
5049 | return _resultobj; |
5050 | } | |
5051 | ||
faf3cb35 | 5052 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) |
107e4716 | 5053 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 RD |
5054 | PyObject * _resultobj; |
5055 | int _result; | |
5056 | wxTextCtrl * _arg0; | |
5057 | long _arg1; | |
2d091820 | 5058 | PyObject * _argo0 = 0; |
107e4716 | 5059 | char *_kwnames[] = { "self","lineNo", NULL }; |
faf3cb35 RD |
5060 | |
5061 | self = self; | |
107e4716 | 5062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
faf3cb35 | 5063 | return NULL; |
2d091820 RD |
5064 | if (_argo0) { |
5065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
faf3cb35 RD |
5067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
5068 | return NULL; | |
5069 | } | |
5070 | } | |
ab9bc19b RD |
5071 | { |
5072 | wxPy_BEGIN_ALLOW_THREADS; | |
5073 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); | |
5074 | ||
5075 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5076 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5077 | } _resultobj = Py_BuildValue("i",_result); |
faf3cb35 RD |
5078 | return _resultobj; |
5079 | } | |
5080 | ||
5081 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) | |
107e4716 | 5082 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 RD |
5083 | PyObject * _resultobj; |
5084 | wxString * _result; | |
5085 | wxTextCtrl * _arg0; | |
5086 | long _arg1; | |
2d091820 | 5087 | PyObject * _argo0 = 0; |
107e4716 | 5088 | char *_kwnames[] = { "self","lineNo", NULL }; |
faf3cb35 RD |
5089 | |
5090 | self = self; | |
107e4716 | 5091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
faf3cb35 | 5092 | return NULL; |
2d091820 RD |
5093 | if (_argo0) { |
5094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
faf3cb35 RD |
5096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
5097 | return NULL; | |
5098 | } | |
5099 | } | |
faf3cb35 | 5100 | { |
ab9bc19b RD |
5101 | wxPy_BEGIN_ALLOW_THREADS; |
5102 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); | |
5103 | ||
5104 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5105 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5106 | }{ |
e02c03a4 | 5107 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
faf3cb35 RD |
5108 | } |
5109 | { | |
5110 | delete _result; | |
5111 | } | |
5112 | return _resultobj; | |
5113 | } | |
5114 | ||
5115 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) | |
107e4716 | 5116 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 RD |
5117 | PyObject * _resultobj; |
5118 | int _result; | |
5119 | wxTextCtrl * _arg0; | |
2d091820 | 5120 | PyObject * _argo0 = 0; |
107e4716 | 5121 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
5122 | |
5123 | self = self; | |
107e4716 | 5124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
faf3cb35 | 5125 | return NULL; |
2d091820 RD |
5126 | if (_argo0) { |
5127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
faf3cb35 RD |
5129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
5130 | return NULL; | |
5131 | } | |
5132 | } | |
ab9bc19b RD |
5133 | { |
5134 | wxPy_BEGIN_ALLOW_THREADS; | |
5135 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); | |
5136 | ||
5137 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5138 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5139 | } _resultobj = Py_BuildValue("i",_result); |
faf3cb35 RD |
5140 | return _resultobj; |
5141 | } | |
5142 | ||
70551f47 | 5143 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) |
107e4716 | 5144 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5145 | PyObject * _resultobj; |
5146 | wxString * _result; | |
5147 | wxTextCtrl * _arg0; | |
2d091820 | 5148 | PyObject * _argo0 = 0; |
107e4716 | 5149 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5150 | |
5151 | self = self; | |
107e4716 | 5152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
70551f47 | 5153 | return NULL; |
2d091820 RD |
5154 | if (_argo0) { |
5155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
5158 | return NULL; | |
5159 | } | |
5160 | } | |
70551f47 | 5161 | { |
ab9bc19b RD |
5162 | wxPy_BEGIN_ALLOW_THREADS; |
5163 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); | |
5164 | ||
5165 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5166 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5167 | }{ |
e02c03a4 | 5168 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
5169 | } |
5170 | { | |
5171 | delete _result; | |
5172 | } | |
5173 | return _resultobj; | |
5174 | } | |
5175 | ||
5176 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) | |
107e4716 | 5177 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5178 | PyObject * _resultobj; |
5179 | bool _result; | |
5180 | wxTextCtrl * _arg0; | |
2d091820 | 5181 | PyObject * _argo0 = 0; |
107e4716 | 5182 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5183 | |
5184 | self = self; | |
107e4716 | 5185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
70551f47 | 5186 | return NULL; |
2d091820 RD |
5187 | if (_argo0) { |
5188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
5191 | return NULL; | |
5192 | } | |
5193 | } | |
ab9bc19b RD |
5194 | { |
5195 | wxPy_BEGIN_ALLOW_THREADS; | |
5196 | _result = (bool )wxTextCtrl_IsModified(_arg0); | |
5197 | ||
5198 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5199 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5200 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5201 | return _resultobj; |
5202 | } | |
5203 | ||
5204 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
107e4716 | 5205 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5206 | PyObject * _resultobj; |
5207 | bool _result; | |
5208 | wxTextCtrl * _arg0; | |
5209 | wxString * _arg1; | |
2d091820 | 5210 | PyObject * _argo0 = 0; |
70551f47 | 5211 | PyObject * _obj1 = 0; |
107e4716 | 5212 | char *_kwnames[] = { "self","filename", NULL }; |
70551f47 RD |
5213 | |
5214 | self = self; | |
107e4716 | 5215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5216 | return NULL; |
2d091820 RD |
5217 | if (_argo0) { |
5218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); |
5221 | return NULL; | |
5222 | } | |
5223 | } | |
5224 | { | |
2cd2fac8 RD |
5225 | #if PYTHON_API_VERSION >= 1009 |
5226 | char* tmpPtr; int tmpSize; | |
5227 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5228 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5229 | return NULL; |
5230 | } | |
5231 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5232 | return NULL; | |
5233 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5234 | #else | |
70551f47 RD |
5235 | if (!PyString_Check(_obj1)) { |
5236 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5237 | return NULL; | |
5238 | } | |
2cd2fac8 RD |
5239 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5240 | #endif | |
70551f47 | 5241 | } |
ab9bc19b RD |
5242 | { |
5243 | wxPy_BEGIN_ALLOW_THREADS; | |
5244 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); | |
5245 | ||
5246 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5247 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5248 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5249 | { |
5250 | if (_obj1) | |
5251 | delete _arg1; | |
5252 | } | |
5253 | return _resultobj; | |
5254 | } | |
5255 | ||
5256 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) | |
107e4716 | 5257 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5258 | PyObject * _resultobj; |
5259 | wxTextCtrl * _arg0; | |
2d091820 | 5260 | PyObject * _argo0 = 0; |
107e4716 | 5261 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5262 | |
5263 | self = self; | |
107e4716 | 5264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
70551f47 | 5265 | return NULL; |
2d091820 RD |
5266 | if (_argo0) { |
5267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
5270 | return NULL; | |
5271 | } | |
5272 | } | |
ab9bc19b RD |
5273 | { |
5274 | wxPy_BEGIN_ALLOW_THREADS; | |
5275 | wxTextCtrl_Paste(_arg0); | |
5276 | ||
5277 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5278 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5279 | } Py_INCREF(Py_None); |
70551f47 RD |
5280 | _resultobj = Py_None; |
5281 | return _resultobj; | |
5282 | } | |
5283 | ||
faf3cb35 | 5284 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 5285 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 RD |
5286 | PyObject * _resultobj; |
5287 | wxTextCtrl * _arg0; | |
5288 | long _arg1; | |
5289 | long * _arg2; | |
5290 | long temp; | |
5291 | long * _arg3; | |
5292 | long temp0; | |
2d091820 | 5293 | PyObject * _argo0 = 0; |
107e4716 | 5294 | char *_kwnames[] = { "self","pos", NULL }; |
faf3cb35 RD |
5295 | |
5296 | self = self; | |
5297 | { | |
5298 | _arg2 = &temp; | |
5299 | } | |
5300 | { | |
5301 | _arg3 = &temp0; | |
5302 | } | |
107e4716 | 5303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) |
faf3cb35 | 5304 | return NULL; |
2d091820 RD |
5305 | if (_argo0) { |
5306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
faf3cb35 RD |
5308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
5309 | return NULL; | |
5310 | } | |
5311 | } | |
ab9bc19b RD |
5312 | { |
5313 | wxPy_BEGIN_ALLOW_THREADS; | |
5314 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); | |
5315 | ||
5316 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5317 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5318 | } Py_INCREF(Py_None); |
faf3cb35 RD |
5319 | _resultobj = Py_None; |
5320 | { | |
5321 | PyObject *o; | |
5322 | o = PyInt_FromLong((long) (*_arg2)); | |
5323 | _resultobj = t_output_helper(_resultobj, o); | |
5324 | } | |
5325 | { | |
5326 | PyObject *o; | |
5327 | o = PyInt_FromLong((long) (*_arg3)); | |
5328 | _resultobj = t_output_helper(_resultobj, o); | |
5329 | } | |
5330 | return _resultobj; | |
5331 | } | |
5332 | ||
70551f47 | 5333 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) |
107e4716 | 5334 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5335 | PyObject * _resultobj; |
5336 | wxTextCtrl * _arg0; | |
5337 | long _arg1; | |
5338 | long _arg2; | |
2d091820 | 5339 | PyObject * _argo0 = 0; |
107e4716 | 5340 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
5341 | |
5342 | self = self; | |
107e4716 | 5343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 5344 | return NULL; |
2d091820 RD |
5345 | if (_argo0) { |
5346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); |
5349 | return NULL; | |
5350 | } | |
5351 | } | |
ab9bc19b RD |
5352 | { |
5353 | wxPy_BEGIN_ALLOW_THREADS; | |
5354 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); | |
5355 | ||
5356 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5357 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5358 | } Py_INCREF(Py_None); |
70551f47 RD |
5359 | _resultobj = Py_None; |
5360 | return _resultobj; | |
5361 | } | |
5362 | ||
5363 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 5364 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5365 | PyObject * _resultobj; |
5366 | wxTextCtrl * _arg0; | |
5367 | long _arg1; | |
5368 | long _arg2; | |
5369 | wxString * _arg3; | |
2d091820 | 5370 | PyObject * _argo0 = 0; |
70551f47 | 5371 | PyObject * _obj3 = 0; |
107e4716 | 5372 | char *_kwnames[] = { "self","from","to","value", NULL }; |
70551f47 RD |
5373 | |
5374 | self = self; | |
107e4716 | 5375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 5376 | return NULL; |
2d091820 RD |
5377 | if (_argo0) { |
5378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
5381 | return NULL; | |
5382 | } | |
5383 | } | |
5384 | { | |
2cd2fac8 RD |
5385 | #if PYTHON_API_VERSION >= 1009 |
5386 | char* tmpPtr; int tmpSize; | |
5387 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 5388 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5389 | return NULL; |
5390 | } | |
5391 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
5392 | return NULL; | |
5393 | _arg3 = new wxString(tmpPtr, tmpSize); | |
5394 | #else | |
70551f47 RD |
5395 | if (!PyString_Check(_obj3)) { |
5396 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5397 | return NULL; | |
5398 | } | |
2cd2fac8 RD |
5399 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
5400 | #endif | |
70551f47 | 5401 | } |
ab9bc19b RD |
5402 | { |
5403 | wxPy_BEGIN_ALLOW_THREADS; | |
5404 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); | |
5405 | ||
5406 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5407 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5408 | } Py_INCREF(Py_None); |
70551f47 RD |
5409 | _resultobj = Py_None; |
5410 | { | |
5411 | if (_obj3) | |
5412 | delete _arg3; | |
5413 | } | |
5414 | return _resultobj; | |
5415 | } | |
5416 | ||
5417 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) | |
107e4716 | 5418 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5419 | PyObject * _resultobj; |
5420 | bool _result; | |
5421 | wxTextCtrl * _arg0; | |
5422 | wxString * _arg1; | |
2d091820 | 5423 | PyObject * _argo0 = 0; |
70551f47 | 5424 | PyObject * _obj1 = 0; |
107e4716 | 5425 | char *_kwnames[] = { "self","filename", NULL }; |
70551f47 RD |
5426 | |
5427 | self = self; | |
107e4716 | 5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5429 | return NULL; |
2d091820 RD |
5430 | if (_argo0) { |
5431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
5434 | return NULL; | |
5435 | } | |
5436 | } | |
5437 | { | |
2cd2fac8 RD |
5438 | #if PYTHON_API_VERSION >= 1009 |
5439 | char* tmpPtr; int tmpSize; | |
5440 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5441 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5442 | return NULL; |
5443 | } | |
5444 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5445 | return NULL; | |
5446 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5447 | #else | |
70551f47 RD |
5448 | if (!PyString_Check(_obj1)) { |
5449 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5450 | return NULL; | |
5451 | } | |
2cd2fac8 RD |
5452 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5453 | #endif | |
70551f47 | 5454 | } |
ab9bc19b RD |
5455 | { |
5456 | wxPy_BEGIN_ALLOW_THREADS; | |
5457 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); | |
5458 | ||
5459 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5460 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5461 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5462 | { |
5463 | if (_obj1) | |
5464 | delete _arg1; | |
5465 | } | |
5466 | return _resultobj; | |
5467 | } | |
5468 | ||
5469 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
107e4716 | 5470 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5471 | PyObject * _resultobj; |
5472 | wxTextCtrl * _arg0; | |
5473 | bool _arg1; | |
2d091820 | 5474 | PyObject * _argo0 = 0; |
70551f47 | 5475 | int tempbool1; |
107e4716 | 5476 | char *_kwnames[] = { "self","editable", NULL }; |
70551f47 RD |
5477 | |
5478 | self = self; | |
107e4716 | 5479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 5480 | return NULL; |
2d091820 RD |
5481 | if (_argo0) { |
5482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
5485 | return NULL; | |
5486 | } | |
5487 | } | |
5488 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
5489 | { |
5490 | wxPy_BEGIN_ALLOW_THREADS; | |
5491 | wxTextCtrl_SetEditable(_arg0,_arg1); | |
5492 | ||
5493 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5494 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5495 | } Py_INCREF(Py_None); |
70551f47 RD |
5496 | _resultobj = Py_None; |
5497 | return _resultobj; | |
5498 | } | |
5499 | ||
5500 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
107e4716 | 5501 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5502 | PyObject * _resultobj; |
5503 | wxTextCtrl * _arg0; | |
5504 | long _arg1; | |
2d091820 | 5505 | PyObject * _argo0 = 0; |
107e4716 | 5506 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
5507 | |
5508 | self = self; | |
107e4716 | 5509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5510 | return NULL; |
2d091820 RD |
5511 | if (_argo0) { |
5512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
5515 | return NULL; | |
5516 | } | |
5517 | } | |
ab9bc19b RD |
5518 | { |
5519 | wxPy_BEGIN_ALLOW_THREADS; | |
5520 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); | |
5521 | ||
5522 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5523 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5524 | } Py_INCREF(Py_None); |
70551f47 RD |
5525 | _resultobj = Py_None; |
5526 | return _resultobj; | |
5527 | } | |
5528 | ||
5529 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
107e4716 | 5530 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5531 | PyObject * _resultobj; |
5532 | wxTextCtrl * _arg0; | |
2d091820 | 5533 | PyObject * _argo0 = 0; |
107e4716 | 5534 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5535 | |
5536 | self = self; | |
107e4716 | 5537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
70551f47 | 5538 | return NULL; |
2d091820 RD |
5539 | if (_argo0) { |
5540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
5543 | return NULL; | |
5544 | } | |
5545 | } | |
ab9bc19b RD |
5546 | { |
5547 | wxPy_BEGIN_ALLOW_THREADS; | |
5548 | wxTextCtrl_SetInsertionPointEnd(_arg0); | |
5549 | ||
5550 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5551 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5552 | } Py_INCREF(Py_None); |
70551f47 RD |
5553 | _resultobj = Py_None; |
5554 | return _resultobj; | |
5555 | } | |
5556 | ||
5557 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 5558 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5559 | PyObject * _resultobj; |
5560 | wxTextCtrl * _arg0; | |
5561 | long _arg1; | |
5562 | long _arg2; | |
2d091820 | 5563 | PyObject * _argo0 = 0; |
107e4716 | 5564 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
5565 | |
5566 | self = self; | |
107e4716 | 5567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 5568 | return NULL; |
2d091820 RD |
5569 | if (_argo0) { |
5570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); |
5573 | return NULL; | |
5574 | } | |
5575 | } | |
ab9bc19b RD |
5576 | { |
5577 | wxPy_BEGIN_ALLOW_THREADS; | |
5578 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); | |
5579 | ||
5580 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5581 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5582 | } Py_INCREF(Py_None); |
70551f47 RD |
5583 | _resultobj = Py_None; |
5584 | return _resultobj; | |
5585 | } | |
5586 | ||
5587 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 5588 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5589 | PyObject * _resultobj; |
5590 | wxTextCtrl * _arg0; | |
5591 | wxString * _arg1; | |
2d091820 | 5592 | PyObject * _argo0 = 0; |
70551f47 | 5593 | PyObject * _obj1 = 0; |
107e4716 | 5594 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
5595 | |
5596 | self = self; | |
107e4716 | 5597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5598 | return NULL; |
2d091820 RD |
5599 | if (_argo0) { |
5600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
5603 | return NULL; | |
5604 | } | |
5605 | } | |
5606 | { | |
2cd2fac8 RD |
5607 | #if PYTHON_API_VERSION >= 1009 |
5608 | char* tmpPtr; int tmpSize; | |
5609 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5610 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5611 | return NULL; |
5612 | } | |
5613 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5614 | return NULL; | |
5615 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5616 | #else | |
70551f47 RD |
5617 | if (!PyString_Check(_obj1)) { |
5618 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5619 | return NULL; | |
5620 | } | |
2cd2fac8 RD |
5621 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5622 | #endif | |
70551f47 | 5623 | } |
ab9bc19b RD |
5624 | { |
5625 | wxPy_BEGIN_ALLOW_THREADS; | |
5626 | wxTextCtrl_SetValue(_arg0,*_arg1); | |
5627 | ||
5628 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5629 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5630 | } Py_INCREF(Py_None); |
70551f47 RD |
5631 | _resultobj = Py_None; |
5632 | { | |
5633 | if (_obj1) | |
5634 | delete _arg1; | |
5635 | } | |
5636 | return _resultobj; | |
5637 | } | |
5638 | ||
5639 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
107e4716 | 5640 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5641 | PyObject * _resultobj; |
5642 | wxTextCtrl * _arg0; | |
5643 | long _arg1; | |
2d091820 | 5644 | PyObject * _argo0 = 0; |
107e4716 | 5645 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
5646 | |
5647 | self = self; | |
107e4716 | 5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5649 | return NULL; |
2d091820 RD |
5650 | if (_argo0) { |
5651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); |
5654 | return NULL; | |
5655 | } | |
5656 | } | |
ab9bc19b RD |
5657 | { |
5658 | wxPy_BEGIN_ALLOW_THREADS; | |
5659 | wxTextCtrl_ShowPosition(_arg0,_arg1); | |
5660 | ||
5661 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5662 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5663 | } Py_INCREF(Py_None); |
70551f47 RD |
5664 | _resultobj = Py_None; |
5665 | return _resultobj; | |
5666 | } | |
5667 | ||
5668 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) | |
107e4716 | 5669 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5670 | PyObject * _resultobj; |
5671 | wxTextCtrl * _arg0; | |
5672 | wxString * _arg1; | |
2d091820 | 5673 | PyObject * _argo0 = 0; |
70551f47 | 5674 | PyObject * _obj1 = 0; |
107e4716 | 5675 | char *_kwnames[] = { "self","text", NULL }; |
70551f47 RD |
5676 | |
5677 | self = self; | |
107e4716 | 5678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5679 | return NULL; |
2d091820 RD |
5680 | if (_argo0) { |
5681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
5683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
5684 | return NULL; | |
5685 | } | |
5686 | } | |
5687 | { | |
2cd2fac8 RD |
5688 | #if PYTHON_API_VERSION >= 1009 |
5689 | char* tmpPtr; int tmpSize; | |
5690 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5691 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5692 | return NULL; |
5693 | } | |
5694 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5695 | return NULL; | |
5696 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5697 | #else | |
70551f47 RD |
5698 | if (!PyString_Check(_obj1)) { |
5699 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5700 | return NULL; | |
5701 | } | |
2cd2fac8 RD |
5702 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5703 | #endif | |
70551f47 | 5704 | } |
ab9bc19b RD |
5705 | { |
5706 | wxPy_BEGIN_ALLOW_THREADS; | |
5707 | wxTextCtrl_WriteText(_arg0,*_arg1); | |
5708 | ||
5709 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5710 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
5711 | } Py_INCREF(Py_None); |
5712 | _resultobj = Py_None; | |
5713 | { | |
5714 | if (_obj1) | |
5715 | delete _arg1; | |
5716 | } | |
5717 | return _resultobj; | |
5718 | } | |
5719 | ||
5720 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) | |
107e4716 | 5721 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
5722 | PyObject * _resultobj; |
5723 | wxTextCtrl * _arg0; | |
5724 | wxString * _arg1; | |
2d091820 | 5725 | PyObject * _argo0 = 0; |
ab9bc19b | 5726 | PyObject * _obj1 = 0; |
107e4716 | 5727 | char *_kwnames[] = { "self","text", NULL }; |
ab9bc19b RD |
5728 | |
5729 | self = self; | |
107e4716 | 5730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
ab9bc19b | 5731 | return NULL; |
2d091820 RD |
5732 | if (_argo0) { |
5733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
ab9bc19b RD |
5735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
5736 | return NULL; | |
5737 | } | |
5738 | } | |
5739 | { | |
2cd2fac8 RD |
5740 | #if PYTHON_API_VERSION >= 1009 |
5741 | char* tmpPtr; int tmpSize; | |
5742 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5743 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5744 | return NULL; |
5745 | } | |
5746 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5747 | return NULL; | |
5748 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5749 | #else | |
ab9bc19b RD |
5750 | if (!PyString_Check(_obj1)) { |
5751 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5752 | return NULL; | |
5753 | } | |
2cd2fac8 RD |
5754 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5755 | #endif | |
ab9bc19b RD |
5756 | } |
5757 | { | |
5758 | wxPy_BEGIN_ALLOW_THREADS; | |
5759 | wxTextCtrl_AppendText(_arg0,*_arg1); | |
5760 | ||
5761 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5762 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5763 | } Py_INCREF(Py_None); |
70551f47 RD |
5764 | _resultobj = Py_None; |
5765 | { | |
5766 | if (_obj1) | |
5767 | delete _arg1; | |
5768 | } | |
5769 | return _resultobj; | |
5770 | } | |
5771 | ||
faf3cb35 | 5772 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) |
107e4716 | 5773 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 RD |
5774 | PyObject * _resultobj; |
5775 | long _result; | |
5776 | wxTextCtrl * _arg0; | |
5777 | long _arg1; | |
5778 | long _arg2; | |
2d091820 | 5779 | PyObject * _argo0 = 0; |
107e4716 | 5780 | char *_kwnames[] = { "self","x","y", NULL }; |
faf3cb35 RD |
5781 | |
5782 | self = self; | |
107e4716 | 5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
faf3cb35 | 5784 | return NULL; |
2d091820 RD |
5785 | if (_argo0) { |
5786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
faf3cb35 RD |
5788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
5789 | return NULL; | |
5790 | } | |
5791 | } | |
ab9bc19b RD |
5792 | { |
5793 | wxPy_BEGIN_ALLOW_THREADS; | |
5794 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); | |
5795 | ||
5796 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5797 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5798 | } _resultobj = Py_BuildValue("l",_result); |
faf3cb35 RD |
5799 | return _resultobj; |
5800 | } | |
5801 | ||
53920141 | 5802 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) |
107e4716 | 5803 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
5804 | PyObject * _resultobj; |
5805 | bool _result; | |
5806 | wxTextCtrl * _arg0; | |
2d091820 | 5807 | PyObject * _argo0 = 0; |
107e4716 | 5808 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
5809 | |
5810 | self = self; | |
107e4716 | 5811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) |
53920141 | 5812 | return NULL; |
2d091820 RD |
5813 | if (_argo0) { |
5814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
5816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); |
5817 | return NULL; | |
5818 | } | |
5819 | } | |
5820 | { | |
5821 | wxPy_BEGIN_ALLOW_THREADS; | |
5822 | _result = (bool )wxTextCtrl_CanCopy(_arg0); | |
5823 | ||
5824 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5825 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
5826 | } _resultobj = Py_BuildValue("i",_result); |
5827 | return _resultobj; | |
5828 | } | |
5829 | ||
5830 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
107e4716 | 5831 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
5832 | PyObject * _resultobj; |
5833 | bool _result; | |
5834 | wxTextCtrl * _arg0; | |
2d091820 | 5835 | PyObject * _argo0 = 0; |
107e4716 | 5836 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
5837 | |
5838 | self = self; | |
107e4716 | 5839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) |
53920141 | 5840 | return NULL; |
2d091820 RD |
5841 | if (_argo0) { |
5842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
5844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); |
5845 | return NULL; | |
5846 | } | |
5847 | } | |
5848 | { | |
5849 | wxPy_BEGIN_ALLOW_THREADS; | |
5850 | _result = (bool )wxTextCtrl_CanCut(_arg0); | |
5851 | ||
5852 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5853 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
5854 | } _resultobj = Py_BuildValue("i",_result); |
5855 | return _resultobj; | |
5856 | } | |
5857 | ||
5858 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
107e4716 | 5859 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
5860 | PyObject * _resultobj; |
5861 | bool _result; | |
5862 | wxTextCtrl * _arg0; | |
2d091820 | 5863 | PyObject * _argo0 = 0; |
107e4716 | 5864 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
5865 | |
5866 | self = self; | |
107e4716 | 5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) |
53920141 | 5868 | return NULL; |
2d091820 RD |
5869 | if (_argo0) { |
5870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
5872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); |
5873 | return NULL; | |
5874 | } | |
5875 | } | |
5876 | { | |
5877 | wxPy_BEGIN_ALLOW_THREADS; | |
5878 | _result = (bool )wxTextCtrl_CanPaste(_arg0); | |
5879 | ||
5880 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5881 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
5882 | } _resultobj = Py_BuildValue("i",_result); |
5883 | return _resultobj; | |
5884 | } | |
5885 | ||
5886 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) | |
107e4716 | 5887 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
5888 | PyObject * _resultobj; |
5889 | bool _result; | |
5890 | wxTextCtrl * _arg0; | |
2d091820 | 5891 | PyObject * _argo0 = 0; |
107e4716 | 5892 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
5893 | |
5894 | self = self; | |
107e4716 | 5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
53920141 | 5896 | return NULL; |
2d091820 RD |
5897 | if (_argo0) { |
5898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
5900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
5901 | return NULL; | |
5902 | } | |
5903 | } | |
5904 | { | |
5905 | wxPy_BEGIN_ALLOW_THREADS; | |
5906 | _result = (bool )wxTextCtrl_CanRedo(_arg0); | |
5907 | ||
5908 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5909 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
5910 | } _resultobj = Py_BuildValue("i",_result); |
5911 | return _resultobj; | |
5912 | } | |
5913 | ||
5914 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) | |
107e4716 | 5915 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
5916 | PyObject * _resultobj; |
5917 | bool _result; | |
5918 | wxTextCtrl * _arg0; | |
2d091820 | 5919 | PyObject * _argo0 = 0; |
107e4716 | 5920 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
5921 | |
5922 | self = self; | |
107e4716 | 5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
53920141 | 5924 | return NULL; |
2d091820 RD |
5925 | if (_argo0) { |
5926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
5929 | return NULL; | |
5930 | } | |
5931 | } | |
5932 | { | |
5933 | wxPy_BEGIN_ALLOW_THREADS; | |
5934 | _result = (bool )wxTextCtrl_CanUndo(_arg0); | |
5935 | ||
5936 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5937 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
5938 | } _resultobj = Py_BuildValue("i",_result); |
5939 | return _resultobj; | |
5940 | } | |
5941 | ||
5942 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 5943 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
5944 | PyObject * _resultobj; |
5945 | wxTextCtrl * _arg0; | |
5946 | long * _arg1; | |
5947 | long temp; | |
5948 | long * _arg2; | |
5949 | long temp0; | |
2d091820 | 5950 | PyObject * _argo0 = 0; |
107e4716 | 5951 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
5952 | |
5953 | self = self; | |
5954 | { | |
5955 | _arg1 = &temp; | |
5956 | } | |
5957 | { | |
5958 | _arg2 = &temp0; | |
5959 | } | |
107e4716 | 5960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) |
53920141 | 5961 | return NULL; |
2d091820 RD |
5962 | if (_argo0) { |
5963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
5965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
5966 | return NULL; | |
5967 | } | |
5968 | } | |
5969 | { | |
5970 | wxPy_BEGIN_ALLOW_THREADS; | |
5971 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); | |
5972 | ||
5973 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5974 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
5975 | } Py_INCREF(Py_None); |
5976 | _resultobj = Py_None; | |
5977 | { | |
5978 | PyObject *o; | |
5979 | o = PyInt_FromLong((long) (*_arg1)); | |
5980 | _resultobj = t_output_helper(_resultobj, o); | |
5981 | } | |
5982 | { | |
5983 | PyObject *o; | |
5984 | o = PyInt_FromLong((long) (*_arg2)); | |
5985 | _resultobj = t_output_helper(_resultobj, o); | |
5986 | } | |
5987 | return _resultobj; | |
5988 | } | |
5989 | ||
5990 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) | |
107e4716 | 5991 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
5992 | PyObject * _resultobj; |
5993 | bool _result; | |
5994 | wxTextCtrl * _arg0; | |
2d091820 | 5995 | PyObject * _argo0 = 0; |
107e4716 | 5996 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
5997 | |
5998 | self = self; | |
107e4716 | 5999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
53920141 | 6000 | return NULL; |
2d091820 RD |
6001 | if (_argo0) { |
6002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
6004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
6005 | return NULL; | |
6006 | } | |
6007 | } | |
6008 | { | |
6009 | wxPy_BEGIN_ALLOW_THREADS; | |
6010 | _result = (bool )wxTextCtrl_IsEditable(_arg0); | |
6011 | ||
6012 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6013 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
6014 | } _resultobj = Py_BuildValue("i",_result); |
6015 | return _resultobj; | |
6016 | } | |
6017 | ||
4120ef2b RD |
6018 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
6019 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6020 | PyObject * _resultobj; | |
6021 | wxTextCtrl * _arg0; | |
6022 | PyObject * _argo0 = 0; | |
6023 | char *_kwnames[] = { "self", NULL }; | |
6024 | ||
6025 | self = self; | |
6026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) | |
6027 | return NULL; | |
6028 | if (_argo0) { | |
6029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); | |
6032 | return NULL; | |
6033 | } | |
6034 | } | |
6035 | { | |
6036 | wxPy_BEGIN_ALLOW_THREADS; | |
6037 | wxTextCtrl_Undo(_arg0); | |
6038 | ||
6039 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6040 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
6041 | } Py_INCREF(Py_None); |
6042 | _resultobj = Py_None; | |
6043 | return _resultobj; | |
6044 | } | |
6045 | ||
6046 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) | |
6047 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6048 | PyObject * _resultobj; | |
6049 | wxTextCtrl * _arg0; | |
6050 | PyObject * _argo0 = 0; | |
6051 | char *_kwnames[] = { "self", NULL }; | |
6052 | ||
6053 | self = self; | |
6054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) | |
6055 | return NULL; | |
6056 | if (_argo0) { | |
6057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); | |
6060 | return NULL; | |
6061 | } | |
6062 | } | |
6063 | { | |
6064 | wxPy_BEGIN_ALLOW_THREADS; | |
6065 | wxTextCtrl_Redo(_arg0); | |
6066 | ||
6067 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6068 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
6069 | } Py_INCREF(Py_None); |
6070 | _resultobj = Py_None; | |
6071 | return _resultobj; | |
6072 | } | |
6073 | ||
9d6da64a RD |
6074 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) |
6075 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6076 | PyObject * _resultobj; | |
6077 | bool _result; | |
6078 | wxTextCtrl * _arg0; | |
6079 | long _arg1; | |
6080 | long _arg2; | |
6081 | wxTextAttr * _arg3; | |
6082 | PyObject * _argo0 = 0; | |
6083 | PyObject * _argo3 = 0; | |
6084 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
6085 | ||
6086 | self = self; | |
6087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) | |
6088 | return NULL; | |
6089 | if (_argo0) { | |
6090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); | |
6093 | return NULL; | |
6094 | } | |
6095 | } | |
6096 | if (_argo3) { | |
6097 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6098 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
6099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
6100 | return NULL; | |
6101 | } | |
6102 | } | |
6103 | { | |
6104 | wxPy_BEGIN_ALLOW_THREADS; | |
6105 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); | |
6106 | ||
6107 | wxPy_END_ALLOW_THREADS; | |
6108 | if (PyErr_Occurred()) return NULL; | |
6109 | } _resultobj = Py_BuildValue("i",_result); | |
6110 | return _resultobj; | |
6111 | } | |
6112 | ||
6113 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) | |
6114 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6115 | PyObject * _resultobj; | |
6116 | bool _result; | |
6117 | wxTextCtrl * _arg0; | |
6118 | wxTextAttr * _arg1; | |
6119 | PyObject * _argo0 = 0; | |
6120 | PyObject * _argo1 = 0; | |
6121 | char *_kwnames[] = { "self","style", NULL }; | |
6122 | ||
6123 | self = self; | |
6124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) | |
6125 | return NULL; | |
6126 | if (_argo0) { | |
6127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); | |
6130 | return NULL; | |
6131 | } | |
6132 | } | |
6133 | if (_argo1) { | |
6134 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6135 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
6137 | return NULL; | |
6138 | } | |
6139 | } | |
6140 | { | |
6141 | wxPy_BEGIN_ALLOW_THREADS; | |
6142 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); | |
6143 | ||
6144 | wxPy_END_ALLOW_THREADS; | |
6145 | if (PyErr_Occurred()) return NULL; | |
6146 | } _resultobj = Py_BuildValue("i",_result); | |
6147 | return _resultobj; | |
6148 | } | |
6149 | ||
6150 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) | |
6151 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6152 | PyObject * _resultobj; | |
6153 | wxTextAttr * _result; | |
6154 | wxTextCtrl * _arg0; | |
6155 | PyObject * _argo0 = 0; | |
6156 | char *_kwnames[] = { "self", NULL }; | |
6157 | char _ptemp[128]; | |
6158 | ||
6159 | self = self; | |
6160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) | |
6161 | return NULL; | |
6162 | if (_argo0) { | |
6163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); | |
6166 | return NULL; | |
6167 | } | |
6168 | } | |
6169 | { | |
6170 | wxPy_BEGIN_ALLOW_THREADS; | |
6171 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); | |
6172 | _result = (wxTextAttr *) &_result_ref; | |
6173 | ||
6174 | wxPy_END_ALLOW_THREADS; | |
6175 | if (PyErr_Occurred()) return NULL; | |
6176 | } if (_result) { | |
6177 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
6178 | _resultobj = Py_BuildValue("s",_ptemp); | |
6179 | } else { | |
6180 | Py_INCREF(Py_None); | |
6181 | _resultobj = Py_None; | |
6182 | } | |
6183 | return _resultobj; | |
6184 | } | |
6185 | ||
4120ef2b | 6186 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { |
9d6da64a | 6187 | self->AppendText(text); |
4120ef2b RD |
6188 | } |
6189 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6190 | PyObject * _resultobj; | |
6191 | wxTextCtrl * _arg0; | |
6192 | wxString * _arg1; | |
6193 | PyObject * _argo0 = 0; | |
6194 | PyObject * _obj1 = 0; | |
6195 | char *_kwnames[] = { "self","text", NULL }; | |
6196 | ||
6197 | self = self; | |
6198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
6199 | return NULL; | |
6200 | if (_argo0) { | |
6201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
6204 | return NULL; | |
6205 | } | |
6206 | } | |
6207 | { | |
2cd2fac8 RD |
6208 | #if PYTHON_API_VERSION >= 1009 |
6209 | char* tmpPtr; int tmpSize; | |
6210 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6211 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6212 | return NULL; |
6213 | } | |
6214 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6215 | return NULL; | |
6216 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6217 | #else | |
4120ef2b RD |
6218 | if (!PyString_Check(_obj1)) { |
6219 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6220 | return NULL; | |
6221 | } | |
2cd2fac8 RD |
6222 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6223 | #endif | |
4120ef2b RD |
6224 | } |
6225 | { | |
6226 | wxPy_BEGIN_ALLOW_THREADS; | |
6227 | wxTextCtrl_write(_arg0,*_arg1); | |
6228 | ||
6229 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6230 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
6231 | } Py_INCREF(Py_None); |
6232 | _resultobj = Py_None; | |
6233 | { | |
6234 | if (_obj1) | |
6235 | delete _arg1; | |
6236 | } | |
6237 | return _resultobj; | |
6238 | } | |
6239 | ||
70551f47 RD |
6240 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
6241 | wxScrollBar *src; | |
6242 | wxControl *dest; | |
6243 | src = (wxScrollBar *) ptr; | |
6244 | dest = (wxControl *) src; | |
6245 | return (void *) dest; | |
6246 | } | |
6247 | ||
6248 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
6249 | wxScrollBar *src; | |
6250 | wxWindow *dest; | |
6251 | src = (wxScrollBar *) ptr; | |
6252 | dest = (wxWindow *) src; | |
6253 | return (void *) dest; | |
6254 | } | |
6255 | ||
6256 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
6257 | wxScrollBar *src; | |
6258 | wxEvtHandler *dest; | |
6259 | src = (wxScrollBar *) ptr; | |
6260 | dest = (wxEvtHandler *) src; | |
6261 | return (void *) dest; | |
6262 | } | |
6263 | ||
9df61a29 RD |
6264 | static void *SwigwxScrollBarTowxObject(void *ptr) { |
6265 | wxScrollBar *src; | |
6266 | wxObject *dest; | |
6267 | src = (wxScrollBar *) ptr; | |
6268 | dest = (wxObject *) src; | |
6269 | return (void *) dest; | |
6270 | } | |
6271 | ||
70551f47 | 6272 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 6273 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6274 | PyObject * _resultobj; |
6275 | wxScrollBar * _result; | |
6276 | wxWindow * _arg0; | |
2d091820 | 6277 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6278 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6279 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 | 6280 | long _arg4 = (long ) wxSB_HORIZONTAL; |
b68dc582 | 6281 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
6282 | char * _arg6 = (char *) "scrollBar"; |
6283 | PyObject * _argo0 = 0; | |
37f6a977 RD |
6284 | wxPoint temp; |
6285 | PyObject * _obj2 = 0; | |
6286 | wxSize temp0; | |
6287 | PyObject * _obj3 = 0; | |
2d091820 | 6288 | PyObject * _argo5 = 0; |
107e4716 | 6289 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
70551f47 RD |
6290 | char _ptemp[128]; |
6291 | ||
6292 | self = self; | |
37f6a977 | 6293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
70551f47 | 6294 | return NULL; |
2d091820 RD |
6295 | if (_argo0) { |
6296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
6298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); |
6299 | return NULL; | |
6300 | } | |
6301 | } | |
37f6a977 RD |
6302 | if (_obj2) |
6303 | { | |
6304 | _arg2 = &temp; | |
6305 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 6306 | return NULL; |
37f6a977 RD |
6307 | } |
6308 | if (_obj3) | |
6309 | { | |
6310 | _arg3 = &temp0; | |
6311 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 6312 | return NULL; |
37f6a977 | 6313 | } |
2d091820 RD |
6314 | if (_argo5) { |
6315 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6316 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
70551f47 RD |
6317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); |
6318 | return NULL; | |
6319 | } | |
6320 | } | |
ab9bc19b RD |
6321 | { |
6322 | wxPy_BEGIN_ALLOW_THREADS; | |
6323 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
6324 | ||
6325 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6326 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
6327 | } if (_result) { |
6328 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
6329 | _resultobj = Py_BuildValue("s",_ptemp); | |
6330 | } else { | |
6331 | Py_INCREF(Py_None); | |
6332 | _resultobj = Py_None; | |
6333 | } | |
70551f47 RD |
6334 | return _resultobj; |
6335 | } | |
6336 | ||
6337 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) | |
107e4716 | 6338 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6339 | PyObject * _resultobj; |
6340 | int _result; | |
6341 | wxScrollBar * _arg0; | |
2d091820 | 6342 | PyObject * _argo0 = 0; |
107e4716 | 6343 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6344 | |
6345 | self = self; | |
107e4716 | 6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) |
70551f47 | 6347 | return NULL; |
2d091820 RD |
6348 | if (_argo0) { |
6349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
6351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); |
6352 | return NULL; | |
6353 | } | |
6354 | } | |
ab9bc19b RD |
6355 | { |
6356 | wxPy_BEGIN_ALLOW_THREADS; | |
6357 | _result = (int )wxScrollBar_GetRange(_arg0); | |
6358 | ||
6359 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6360 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6361 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6362 | return _resultobj; |
6363 | } | |
6364 | ||
6365 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
107e4716 | 6366 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6367 | PyObject * _resultobj; |
6368 | int _result; | |
6369 | wxScrollBar * _arg0; | |
2d091820 | 6370 | PyObject * _argo0 = 0; |
107e4716 | 6371 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6372 | |
6373 | self = self; | |
107e4716 | 6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) |
70551f47 | 6375 | return NULL; |
2d091820 RD |
6376 | if (_argo0) { |
6377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
6379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); |
6380 | return NULL; | |
6381 | } | |
6382 | } | |
ab9bc19b RD |
6383 | { |
6384 | wxPy_BEGIN_ALLOW_THREADS; | |
6385 | _result = (int )wxScrollBar_GetPageSize(_arg0); | |
6386 | ||
6387 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6388 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6389 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6390 | return _resultobj; |
6391 | } | |
6392 | ||
105e45b9 | 6393 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) |
107e4716 | 6394 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6395 | PyObject * _resultobj; |
6396 | int _result; | |
6397 | wxScrollBar * _arg0; | |
2d091820 | 6398 | PyObject * _argo0 = 0; |
107e4716 | 6399 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6400 | |
6401 | self = self; | |
107e4716 | 6402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) |
70551f47 | 6403 | return NULL; |
2d091820 RD |
6404 | if (_argo0) { |
6405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
105e45b9 | 6407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); |
70551f47 RD |
6408 | return NULL; |
6409 | } | |
6410 | } | |
ab9bc19b RD |
6411 | { |
6412 | wxPy_BEGIN_ALLOW_THREADS; | |
6413 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); | |
6414 | ||
6415 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6416 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6417 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6418 | return _resultobj; |
6419 | } | |
6420 | ||
6421 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
107e4716 | 6422 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6423 | PyObject * _resultobj; |
6424 | int _result; | |
6425 | wxScrollBar * _arg0; | |
2d091820 | 6426 | PyObject * _argo0 = 0; |
107e4716 | 6427 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6428 | |
6429 | self = self; | |
107e4716 | 6430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) |
70551f47 | 6431 | return NULL; |
2d091820 RD |
6432 | if (_argo0) { |
6433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
6435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); |
6436 | return NULL; | |
6437 | } | |
6438 | } | |
ab9bc19b RD |
6439 | { |
6440 | wxPy_BEGIN_ALLOW_THREADS; | |
6441 | _result = (int )wxScrollBar_GetThumbSize(_arg0); | |
6442 | ||
6443 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6444 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6445 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6446 | return _resultobj; |
6447 | } | |
6448 | ||
105e45b9 | 6449 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
107e4716 | 6450 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6451 | PyObject * _resultobj; |
6452 | wxScrollBar * _arg0; | |
6453 | int _arg1; | |
2d091820 | 6454 | PyObject * _argo0 = 0; |
107e4716 | 6455 | char *_kwnames[] = { "self","viewStart", NULL }; |
70551f47 RD |
6456 | |
6457 | self = self; | |
107e4716 | 6458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6459 | return NULL; |
2d091820 RD |
6460 | if (_argo0) { |
6461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
105e45b9 | 6463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); |
70551f47 RD |
6464 | return NULL; |
6465 | } | |
6466 | } | |
ab9bc19b RD |
6467 | { |
6468 | wxPy_BEGIN_ALLOW_THREADS; | |
6469 | wxScrollBar_SetThumbPosition(_arg0,_arg1); | |
6470 | ||
6471 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6472 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6473 | } Py_INCREF(Py_None); |
70551f47 RD |
6474 | _resultobj = Py_None; |
6475 | return _resultobj; | |
6476 | } | |
6477 | ||
6478 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 6479 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6480 | PyObject * _resultobj; |
6481 | wxScrollBar * _arg0; | |
6482 | int _arg1; | |
6483 | int _arg2; | |
6484 | int _arg3; | |
6485 | int _arg4; | |
2d091820 RD |
6486 | bool _arg5 = (bool ) TRUE; |
6487 | PyObject * _argo0 = 0; | |
6488 | int tempbool5 = (int) TRUE; | |
107e4716 | 6489 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; |
70551f47 RD |
6490 | |
6491 | self = self; | |
107e4716 | 6492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
70551f47 | 6493 | return NULL; |
2d091820 RD |
6494 | if (_argo0) { |
6495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
6497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); |
6498 | return NULL; | |
6499 | } | |
6500 | } | |
6501 | _arg5 = (bool ) tempbool5; | |
ab9bc19b RD |
6502 | { |
6503 | wxPy_BEGIN_ALLOW_THREADS; | |
6504 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6505 | ||
6506 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6507 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6508 | } Py_INCREF(Py_None); |
70551f47 RD |
6509 | _resultobj = Py_None; |
6510 | return _resultobj; | |
6511 | } | |
6512 | ||
62bd0874 RD |
6513 | static void *SwigwxSpinButtonTowxControl(void *ptr) { |
6514 | wxSpinButton *src; | |
6515 | wxControl *dest; | |
6516 | src = (wxSpinButton *) ptr; | |
6517 | dest = (wxControl *) src; | |
6518 | return (void *) dest; | |
6519 | } | |
6520 | ||
6521 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
6522 | wxSpinButton *src; | |
6523 | wxWindow *dest; | |
6524 | src = (wxSpinButton *) ptr; | |
6525 | dest = (wxWindow *) src; | |
6526 | return (void *) dest; | |
6527 | } | |
6528 | ||
6529 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
6530 | wxSpinButton *src; | |
6531 | wxEvtHandler *dest; | |
6532 | src = (wxSpinButton *) ptr; | |
6533 | dest = (wxEvtHandler *) src; | |
6534 | return (void *) dest; | |
6535 | } | |
6536 | ||
9df61a29 RD |
6537 | static void *SwigwxSpinButtonTowxObject(void *ptr) { |
6538 | wxSpinButton *src; | |
6539 | wxObject *dest; | |
6540 | src = (wxSpinButton *) ptr; | |
6541 | dest = (wxObject *) src; | |
6542 | return (void *) dest; | |
6543 | } | |
6544 | ||
62bd0874 | 6545 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 6546 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
6547 | PyObject * _resultobj; |
6548 | wxSpinButton * _result; | |
6549 | wxWindow * _arg0; | |
2d091820 | 6550 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6551 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6552 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
6553 | long _arg4 = (long ) wxSP_HORIZONTAL; |
6554 | char * _arg5 = (char *) "spinButton"; | |
6555 | PyObject * _argo0 = 0; | |
37f6a977 RD |
6556 | wxPoint temp; |
6557 | PyObject * _obj2 = 0; | |
6558 | wxSize temp0; | |
6559 | PyObject * _obj3 = 0; | |
107e4716 | 6560 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
62bd0874 RD |
6561 | char _ptemp[128]; |
6562 | ||
6563 | self = self; | |
37f6a977 | 6564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
62bd0874 | 6565 | return NULL; |
2d091820 RD |
6566 | if (_argo0) { |
6567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
62bd0874 RD |
6569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); |
6570 | return NULL; | |
6571 | } | |
6572 | } | |
37f6a977 RD |
6573 | if (_obj2) |
6574 | { | |
6575 | _arg2 = &temp; | |
6576 | if (! wxPoint_helper(_obj2, &_arg2)) | |
62bd0874 | 6577 | return NULL; |
37f6a977 RD |
6578 | } |
6579 | if (_obj3) | |
6580 | { | |
6581 | _arg3 = &temp0; | |
6582 | if (! wxSize_helper(_obj3, &_arg3)) | |
62bd0874 | 6583 | return NULL; |
37f6a977 | 6584 | } |
ab9bc19b RD |
6585 | { |
6586 | wxPy_BEGIN_ALLOW_THREADS; | |
6587 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6588 | ||
6589 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6590 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
6591 | } if (_result) { |
6592 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
6593 | _resultobj = Py_BuildValue("s",_ptemp); | |
6594 | } else { | |
6595 | Py_INCREF(Py_None); | |
6596 | _resultobj = Py_None; | |
6597 | } | |
62bd0874 RD |
6598 | return _resultobj; |
6599 | } | |
6600 | ||
6601 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) | |
107e4716 | 6602 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
6603 | PyObject * _resultobj; |
6604 | int _result; | |
6605 | wxSpinButton * _arg0; | |
2d091820 | 6606 | PyObject * _argo0 = 0; |
107e4716 | 6607 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
6608 | |
6609 | self = self; | |
107e4716 | 6610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) |
62bd0874 | 6611 | return NULL; |
2d091820 RD |
6612 | if (_argo0) { |
6613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
6615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); |
6616 | return NULL; | |
6617 | } | |
6618 | } | |
ab9bc19b RD |
6619 | { |
6620 | wxPy_BEGIN_ALLOW_THREADS; | |
6621 | _result = (int )wxSpinButton_GetMax(_arg0); | |
6622 | ||
6623 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6624 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6625 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
6626 | return _resultobj; |
6627 | } | |
6628 | ||
6629 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
107e4716 | 6630 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
6631 | PyObject * _resultobj; |
6632 | int _result; | |
6633 | wxSpinButton * _arg0; | |
2d091820 | 6634 | PyObject * _argo0 = 0; |
107e4716 | 6635 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
6636 | |
6637 | self = self; | |
107e4716 | 6638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) |
62bd0874 | 6639 | return NULL; |
2d091820 RD |
6640 | if (_argo0) { |
6641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
6643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); |
6644 | return NULL; | |
6645 | } | |
6646 | } | |
ab9bc19b RD |
6647 | { |
6648 | wxPy_BEGIN_ALLOW_THREADS; | |
6649 | _result = (int )wxSpinButton_GetMin(_arg0); | |
6650 | ||
6651 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6652 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6653 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
6654 | return _resultobj; |
6655 | } | |
6656 | ||
6657 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 6658 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
6659 | PyObject * _resultobj; |
6660 | int _result; | |
6661 | wxSpinButton * _arg0; | |
2d091820 | 6662 | PyObject * _argo0 = 0; |
107e4716 | 6663 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
6664 | |
6665 | self = self; | |
107e4716 | 6666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) |
62bd0874 | 6667 | return NULL; |
2d091820 RD |
6668 | if (_argo0) { |
6669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
6671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); |
6672 | return NULL; | |
6673 | } | |
6674 | } | |
ab9bc19b RD |
6675 | { |
6676 | wxPy_BEGIN_ALLOW_THREADS; | |
6677 | _result = (int )wxSpinButton_GetValue(_arg0); | |
6678 | ||
6679 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6680 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6681 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
6682 | return _resultobj; |
6683 | } | |
6684 | ||
6685 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 6686 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
6687 | PyObject * _resultobj; |
6688 | wxSpinButton * _arg0; | |
6689 | int _arg1; | |
6690 | int _arg2; | |
2d091820 | 6691 | PyObject * _argo0 = 0; |
107e4716 | 6692 | char *_kwnames[] = { "self","min","max", NULL }; |
62bd0874 RD |
6693 | |
6694 | self = self; | |
107e4716 | 6695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
62bd0874 | 6696 | return NULL; |
2d091820 RD |
6697 | if (_argo0) { |
6698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
6700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); |
6701 | return NULL; | |
6702 | } | |
6703 | } | |
ab9bc19b RD |
6704 | { |
6705 | wxPy_BEGIN_ALLOW_THREADS; | |
6706 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); | |
6707 | ||
6708 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6709 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6710 | } Py_INCREF(Py_None); |
62bd0874 RD |
6711 | _resultobj = Py_None; |
6712 | return _resultobj; | |
6713 | } | |
6714 | ||
6715 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 6716 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
6717 | PyObject * _resultobj; |
6718 | wxSpinButton * _arg0; | |
6719 | int _arg1; | |
2d091820 | 6720 | PyObject * _argo0 = 0; |
107e4716 | 6721 | char *_kwnames[] = { "self","value", NULL }; |
62bd0874 RD |
6722 | |
6723 | self = self; | |
107e4716 | 6724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) |
62bd0874 | 6725 | return NULL; |
2d091820 RD |
6726 | if (_argo0) { |
6727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
6729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); |
6730 | return NULL; | |
6731 | } | |
6732 | } | |
ab9bc19b RD |
6733 | { |
6734 | wxPy_BEGIN_ALLOW_THREADS; | |
6735 | wxSpinButton_SetValue(_arg0,_arg1); | |
6736 | ||
6737 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6738 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6739 | } Py_INCREF(Py_None); |
62bd0874 RD |
6740 | _resultobj = Py_None; |
6741 | return _resultobj; | |
6742 | } | |
6743 | ||
70551f47 RD |
6744 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { |
6745 | wxStaticBitmap *src; | |
6746 | wxControl *dest; | |
6747 | src = (wxStaticBitmap *) ptr; | |
6748 | dest = (wxControl *) src; | |
6749 | return (void *) dest; | |
6750 | } | |
6751 | ||
6752 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
6753 | wxStaticBitmap *src; | |
6754 | wxWindow *dest; | |
6755 | src = (wxStaticBitmap *) ptr; | |
6756 | dest = (wxWindow *) src; | |
6757 | return (void *) dest; | |
6758 | } | |
6759 | ||
6760 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
6761 | wxStaticBitmap *src; | |
6762 | wxEvtHandler *dest; | |
6763 | src = (wxStaticBitmap *) ptr; | |
6764 | dest = (wxEvtHandler *) src; | |
6765 | return (void *) dest; | |
6766 | } | |
6767 | ||
9df61a29 RD |
6768 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { |
6769 | wxStaticBitmap *src; | |
6770 | wxObject *dest; | |
6771 | src = (wxStaticBitmap *) ptr; | |
6772 | dest = (wxObject *) src; | |
6773 | return (void *) dest; | |
6774 | } | |
6775 | ||
70551f47 | 6776 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 6777 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6778 | PyObject * _resultobj; |
6779 | wxStaticBitmap * _result; | |
6780 | wxWindow * _arg0; | |
6781 | wxWindowID _arg1; | |
6782 | wxBitmap * _arg2; | |
b68dc582 RD |
6783 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6784 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
6785 | long _arg5 = (long ) 0; |
6786 | char * _arg6 = (char *) "staticBitmap"; | |
6787 | PyObject * _argo0 = 0; | |
6788 | PyObject * _argo2 = 0; | |
37f6a977 RD |
6789 | wxPoint temp; |
6790 | PyObject * _obj3 = 0; | |
6791 | wxSize temp0; | |
6792 | PyObject * _obj4 = 0; | |
107e4716 | 6793 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; |
70551f47 RD |
6794 | char _ptemp[128]; |
6795 | ||
6796 | self = self; | |
37f6a977 | 6797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) |
70551f47 | 6798 | return NULL; |
2d091820 RD |
6799 | if (_argo0) { |
6800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
6802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); |
6803 | return NULL; | |
6804 | } | |
6805 | } | |
2d091820 RD |
6806 | if (_argo2) { |
6807 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6808 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
70551f47 RD |
6809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); |
6810 | return NULL; | |
6811 | } | |
6812 | } | |
37f6a977 RD |
6813 | if (_obj3) |
6814 | { | |
6815 | _arg3 = &temp; | |
6816 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 6817 | return NULL; |
37f6a977 RD |
6818 | } |
6819 | if (_obj4) | |
6820 | { | |
6821 | _arg4 = &temp0; | |
6822 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 6823 | return NULL; |
37f6a977 | 6824 | } |
ab9bc19b RD |
6825 | { |
6826 | wxPy_BEGIN_ALLOW_THREADS; | |
6827 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
6828 | ||
6829 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6830 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
6831 | } if (_result) { |
6832 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
6833 | _resultobj = Py_BuildValue("s",_ptemp); | |
6834 | } else { | |
6835 | Py_INCREF(Py_None); | |
6836 | _resultobj = Py_None; | |
6837 | } | |
70551f47 RD |
6838 | return _resultobj; |
6839 | } | |
6840 | ||
6841 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
107e4716 | 6842 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6843 | PyObject * _resultobj; |
6844 | wxBitmap * _result; | |
6845 | wxStaticBitmap * _arg0; | |
2d091820 | 6846 | PyObject * _argo0 = 0; |
107e4716 | 6847 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6848 | char _ptemp[128]; |
6849 | ||
6850 | self = self; | |
107e4716 | 6851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) |
70551f47 | 6852 | return NULL; |
2d091820 RD |
6853 | if (_argo0) { |
6854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
70551f47 RD |
6856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); |
6857 | return NULL; | |
6858 | } | |
6859 | } | |
ab9bc19b RD |
6860 | { |
6861 | wxPy_BEGIN_ALLOW_THREADS; | |
6862 | const wxBitmap & _result_ref = wxStaticBitmap_GetBitmap(_arg0); | |
70551f47 | 6863 | _result = (wxBitmap *) &_result_ref; |
ab9bc19b RD |
6864 | |
6865 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6866 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
6867 | } if (_result) { |
6868 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6869 | _resultobj = Py_BuildValue("s",_ptemp); | |
6870 | } else { | |
6871 | Py_INCREF(Py_None); | |
6872 | _resultobj = Py_None; | |
6873 | } | |
70551f47 RD |
6874 | return _resultobj; |
6875 | } | |
6876 | ||
6877 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
107e4716 | 6878 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6879 | PyObject * _resultobj; |
6880 | wxStaticBitmap * _arg0; | |
6881 | wxBitmap * _arg1; | |
2d091820 RD |
6882 | PyObject * _argo0 = 0; |
6883 | PyObject * _argo1 = 0; | |
107e4716 | 6884 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
6885 | |
6886 | self = self; | |
107e4716 | 6887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6888 | return NULL; |
2d091820 RD |
6889 | if (_argo0) { |
6890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
70551f47 RD |
6892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); |
6893 | return NULL; | |
6894 | } | |
6895 | } | |
2d091820 RD |
6896 | if (_argo1) { |
6897 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6898 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
6899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); |
6900 | return NULL; | |
6901 | } | |
6902 | } | |
ab9bc19b RD |
6903 | { |
6904 | wxPy_BEGIN_ALLOW_THREADS; | |
6905 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); | |
6906 | ||
6907 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6908 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6909 | } Py_INCREF(Py_None); |
70551f47 RD |
6910 | _resultobj = Py_None; |
6911 | return _resultobj; | |
6912 | } | |
6913 | ||
8bf5d46e | 6914 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
107e4716 | 6915 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
6916 | PyObject * _resultobj; |
6917 | wxStaticBitmap * _arg0; | |
6918 | wxIcon * _arg1; | |
2d091820 RD |
6919 | PyObject * _argo0 = 0; |
6920 | PyObject * _argo1 = 0; | |
107e4716 | 6921 | char *_kwnames[] = { "self","icon", NULL }; |
8bf5d46e RD |
6922 | |
6923 | self = self; | |
107e4716 | 6924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) |
8bf5d46e | 6925 | return NULL; |
2d091820 RD |
6926 | if (_argo0) { |
6927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8bf5d46e RD |
6929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); |
6930 | return NULL; | |
6931 | } | |
6932 | } | |
2d091820 RD |
6933 | if (_argo1) { |
6934 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6935 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8bf5d46e RD |
6936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); |
6937 | return NULL; | |
6938 | } | |
6939 | } | |
6940 | { | |
6941 | wxPy_BEGIN_ALLOW_THREADS; | |
6942 | wxStaticBitmap_SetIcon(_arg0,*_arg1); | |
6943 | ||
6944 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6945 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
6946 | } Py_INCREF(Py_None); |
6947 | _resultobj = Py_None; | |
6948 | return _resultobj; | |
6949 | } | |
6950 | ||
70551f47 RD |
6951 | static void *SwigwxRadioBoxTowxControl(void *ptr) { |
6952 | wxRadioBox *src; | |
6953 | wxControl *dest; | |
6954 | src = (wxRadioBox *) ptr; | |
6955 | dest = (wxControl *) src; | |
6956 | return (void *) dest; | |
6957 | } | |
6958 | ||
6959 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
6960 | wxRadioBox *src; | |
6961 | wxWindow *dest; | |
6962 | src = (wxRadioBox *) ptr; | |
6963 | dest = (wxWindow *) src; | |
6964 | return (void *) dest; | |
6965 | } | |
6966 | ||
6967 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
6968 | wxRadioBox *src; | |
6969 | wxEvtHandler *dest; | |
6970 | src = (wxRadioBox *) ptr; | |
6971 | dest = (wxEvtHandler *) src; | |
6972 | return (void *) dest; | |
6973 | } | |
6974 | ||
9df61a29 RD |
6975 | static void *SwigwxRadioBoxTowxObject(void *ptr) { |
6976 | wxRadioBox *src; | |
6977 | wxObject *dest; | |
6978 | src = (wxRadioBox *) ptr; | |
6979 | dest = (wxObject *) src; | |
6980 | return (void *) dest; | |
6981 | } | |
6982 | ||
70551f47 | 6983 | #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 | 6984 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6985 | PyObject * _resultobj; |
6986 | wxRadioBox * _result; | |
6987 | wxWindow * _arg0; | |
6988 | wxWindowID _arg1; | |
6989 | wxString * _arg2; | |
b68dc582 RD |
6990 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6991 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
6992 | int _arg5 = (int ) 0; |
6993 | wxString * _arg6 = (wxString *) NULL; | |
6994 | int _arg7 = (int ) 0; | |
6995 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
b68dc582 | 6996 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
6997 | char * _arg10 = (char *) "radioBox"; |
6998 | PyObject * _argo0 = 0; | |
70551f47 | 6999 | PyObject * _obj2 = 0; |
37f6a977 RD |
7000 | wxPoint temp; |
7001 | PyObject * _obj3 = 0; | |
7002 | wxSize temp0; | |
7003 | PyObject * _obj4 = 0; | |
70551f47 | 7004 | PyObject * _obj6 = 0; |
2d091820 | 7005 | PyObject * _argo9 = 0; |
e02c03a4 | 7006 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
70551f47 RD |
7007 | char _ptemp[128]; |
7008 | ||
7009 | self = self; | |
37f6a977 | 7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10)) |
70551f47 | 7011 | return NULL; |
2d091820 RD |
7012 | if (_argo0) { |
7013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
7015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); |
7016 | return NULL; | |
7017 | } | |
7018 | } | |
7019 | { | |
2cd2fac8 RD |
7020 | #if PYTHON_API_VERSION >= 1009 |
7021 | char* tmpPtr; int tmpSize; | |
7022 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7023 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7024 | return NULL; |
7025 | } | |
7026 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7027 | return NULL; | |
7028 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7029 | #else | |
70551f47 RD |
7030 | if (!PyString_Check(_obj2)) { |
7031 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7032 | return NULL; | |
7033 | } | |
2cd2fac8 RD |
7034 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7035 | #endif | |
70551f47 | 7036 | } |
37f6a977 RD |
7037 | if (_obj3) |
7038 | { | |
7039 | _arg3 = &temp; | |
7040 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 7041 | return NULL; |
37f6a977 RD |
7042 | } |
7043 | if (_obj4) | |
7044 | { | |
7045 | _arg4 = &temp0; | |
7046 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 7047 | return NULL; |
37f6a977 | 7048 | } |
70551f47 RD |
7049 | if (_obj6) |
7050 | { | |
7051 | _arg6 = wxString_LIST_helper(_obj6); | |
7052 | if (_arg6 == NULL) { | |
7053 | return NULL; | |
7054 | } | |
7055 | } | |
2d091820 RD |
7056 | if (_argo9) { |
7057 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
7058 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
70551f47 RD |
7059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); |
7060 | return NULL; | |
7061 | } | |
7062 | } | |
7063 | { | |
ab9bc19b RD |
7064 | if (_obj6) { |
7065 | _arg5 = PyList_Size(_obj6); | |
7066 | } | |
7067 | else { | |
7068 | _arg5 = 0; | |
7069 | } | |
70551f47 | 7070 | } |
ab9bc19b RD |
7071 | { |
7072 | wxPy_BEGIN_ALLOW_THREADS; | |
7073 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); | |
7074 | ||
7075 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7076 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
7077 | } if (_result) { |
7078 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
7079 | _resultobj = Py_BuildValue("s",_ptemp); | |
7080 | } else { | |
7081 | Py_INCREF(Py_None); | |
7082 | _resultobj = Py_None; | |
7083 | } | |
70551f47 RD |
7084 | { |
7085 | if (_obj2) | |
7086 | delete _arg2; | |
7087 | } | |
7088 | { | |
7089 | delete [] _arg6; | |
7090 | } | |
7091 | return _resultobj; | |
7092 | } | |
7093 | ||
c3c1cebe | 7094 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
107e4716 | 7095 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7096 | PyObject * _resultobj; |
7097 | wxRadioBox * _arg0; | |
7098 | bool _arg1; | |
2d091820 | 7099 | PyObject * _argo0 = 0; |
70551f47 | 7100 | int tempbool1; |
107e4716 | 7101 | char *_kwnames[] = { "self","enable", NULL }; |
70551f47 RD |
7102 | |
7103 | self = self; | |
107e4716 | 7104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 7105 | return NULL; |
2d091820 RD |
7106 | if (_argo0) { |
7107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 7109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); |
70551f47 RD |
7110 | return NULL; |
7111 | } | |
7112 | } | |
7113 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
7114 | { |
7115 | wxPy_BEGIN_ALLOW_THREADS; | |
7116 | wxRadioBox_Enable(_arg0,_arg1); | |
7117 | ||
7118 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7119 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7120 | } Py_INCREF(Py_None); |
70551f47 RD |
7121 | _resultobj = Py_None; |
7122 | return _resultobj; | |
7123 | } | |
7124 | ||
c3c1cebe | 7125 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
107e4716 | 7126 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7127 | PyObject * _resultobj; |
7128 | wxRadioBox * _arg0; | |
7129 | int _arg1; | |
7130 | bool _arg2; | |
2d091820 | 7131 | PyObject * _argo0 = 0; |
70551f47 | 7132 | int tempbool2; |
107e4716 | 7133 | char *_kwnames[] = { "self","n","enable", NULL }; |
70551f47 RD |
7134 | |
7135 | self = self; | |
107e4716 | 7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 7137 | return NULL; |
2d091820 RD |
7138 | if (_argo0) { |
7139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 7141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); |
70551f47 RD |
7142 | return NULL; |
7143 | } | |
7144 | } | |
7145 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
7146 | { |
7147 | wxPy_BEGIN_ALLOW_THREADS; | |
7148 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); | |
7149 | ||
7150 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7151 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7152 | } Py_INCREF(Py_None); |
70551f47 RD |
7153 | _resultobj = Py_None; |
7154 | return _resultobj; | |
7155 | } | |
7156 | ||
7157 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
107e4716 | 7158 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7159 | PyObject * _resultobj; |
7160 | int _result; | |
7161 | wxRadioBox * _arg0; | |
7162 | wxString * _arg1; | |
2d091820 | 7163 | PyObject * _argo0 = 0; |
70551f47 | 7164 | PyObject * _obj1 = 0; |
107e4716 | 7165 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
7166 | |
7167 | self = self; | |
107e4716 | 7168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7169 | return NULL; |
2d091820 RD |
7170 | if (_argo0) { |
7171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
7173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); |
7174 | return NULL; | |
7175 | } | |
7176 | } | |
7177 | { | |
2cd2fac8 RD |
7178 | #if PYTHON_API_VERSION >= 1009 |
7179 | char* tmpPtr; int tmpSize; | |
7180 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7181 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7182 | return NULL; |
7183 | } | |
7184 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7185 | return NULL; | |
7186 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7187 | #else | |
70551f47 RD |
7188 | if (!PyString_Check(_obj1)) { |
7189 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7190 | return NULL; | |
7191 | } | |
2cd2fac8 RD |
7192 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7193 | #endif | |
70551f47 | 7194 | } |
ab9bc19b RD |
7195 | { |
7196 | wxPy_BEGIN_ALLOW_THREADS; | |
7197 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); | |
7198 | ||
7199 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7200 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7201 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7202 | { |
7203 | if (_obj1) | |
7204 | delete _arg1; | |
7205 | } | |
7206 | return _resultobj; | |
7207 | } | |
7208 | ||
c3c1cebe | 7209 | #define wxRadioBox_GetItemLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
107e4716 | 7210 | static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7211 | PyObject * _resultobj; |
7212 | wxString * _result; | |
7213 | wxRadioBox * _arg0; | |
7214 | int _arg1; | |
2d091820 | 7215 | PyObject * _argo0 = 0; |
107e4716 | 7216 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
7217 | |
7218 | self = self; | |
107e4716 | 7219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetItemLabel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7220 | return NULL; |
2d091820 RD |
7221 | if (_argo0) { |
7222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 7224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetItemLabel. Expected _wxRadioBox_p."); |
70551f47 RD |
7225 | return NULL; |
7226 | } | |
7227 | } | |
70551f47 | 7228 | { |
ab9bc19b RD |
7229 | wxPy_BEGIN_ALLOW_THREADS; |
7230 | _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1)); | |
7231 | ||
7232 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7233 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7234 | }{ |
e02c03a4 | 7235 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
7236 | } |
7237 | { | |
7238 | delete _result; | |
7239 | } | |
7240 | return _resultobj; | |
7241 | } | |
7242 | ||
7243 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
107e4716 | 7244 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7245 | PyObject * _resultobj; |
7246 | int _result; | |
7247 | wxRadioBox * _arg0; | |
2d091820 | 7248 | PyObject * _argo0 = 0; |
107e4716 | 7249 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7250 | |
7251 | self = self; | |
107e4716 | 7252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) |
70551f47 | 7253 | return NULL; |
2d091820 RD |
7254 | if (_argo0) { |
7255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
7257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); |
7258 | return NULL; | |
7259 | } | |
7260 | } | |
ab9bc19b RD |
7261 | { |
7262 | wxPy_BEGIN_ALLOW_THREADS; | |
7263 | _result = (int )wxRadioBox_GetSelection(_arg0); | |
7264 | ||
7265 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7266 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7267 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7268 | return _resultobj; |
7269 | } | |
7270 | ||
7271 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
107e4716 | 7272 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7273 | PyObject * _resultobj; |
7274 | wxString * _result; | |
7275 | wxRadioBox * _arg0; | |
7276 | int _arg1; | |
2d091820 | 7277 | PyObject * _argo0 = 0; |
107e4716 | 7278 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
7279 | |
7280 | self = self; | |
107e4716 | 7281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7282 | return NULL; |
2d091820 RD |
7283 | if (_argo0) { |
7284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
7286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); |
7287 | return NULL; | |
7288 | } | |
7289 | } | |
70551f47 | 7290 | { |
ab9bc19b RD |
7291 | wxPy_BEGIN_ALLOW_THREADS; |
7292 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); | |
7293 | ||
7294 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7295 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7296 | }{ |
e02c03a4 | 7297 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
7298 | } |
7299 | { | |
7300 | delete _result; | |
7301 | } | |
7302 | return _resultobj; | |
7303 | } | |
7304 | ||
7305 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
107e4716 | 7306 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7307 | PyObject * _resultobj; |
7308 | wxString * _result; | |
7309 | wxRadioBox * _arg0; | |
2d091820 | 7310 | PyObject * _argo0 = 0; |
107e4716 | 7311 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7312 | |
7313 | self = self; | |
107e4716 | 7314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) |
70551f47 | 7315 | return NULL; |
2d091820 RD |
7316 | if (_argo0) { |
7317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
7319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); |
7320 | return NULL; | |
7321 | } | |
7322 | } | |
70551f47 | 7323 | { |
ab9bc19b RD |
7324 | wxPy_BEGIN_ALLOW_THREADS; |
7325 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); | |
7326 | ||
7327 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7328 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7329 | }{ |
e02c03a4 | 7330 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
7331 | } |
7332 | { | |
7333 | delete _result; | |
7334 | } | |
7335 | return _resultobj; | |
7336 | } | |
7337 | ||
7338 | #define wxRadioBox_Number(_swigobj) (_swigobj->Number()) | |
107e4716 | 7339 | static PyObject *_wrap_wxRadioBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7340 | PyObject * _resultobj; |
7341 | int _result; | |
7342 | wxRadioBox * _arg0; | |
2d091820 | 7343 | PyObject * _argo0 = 0; |
107e4716 | 7344 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7345 | |
7346 | self = self; | |
107e4716 | 7347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_Number",_kwnames,&_argo0)) |
70551f47 | 7348 | return NULL; |
2d091820 RD |
7349 | if (_argo0) { |
7350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
7352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Number. Expected _wxRadioBox_p."); |
7353 | return NULL; | |
7354 | } | |
7355 | } | |
ab9bc19b RD |
7356 | { |
7357 | wxPy_BEGIN_ALLOW_THREADS; | |
7358 | _result = (int )wxRadioBox_Number(_arg0); | |
7359 | ||
7360 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7361 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7362 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7363 | return _resultobj; |
7364 | } | |
7365 | ||
c3c1cebe | 7366 | #define wxRadioBox_SetItemLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
107e4716 | 7367 | static PyObject *_wrap_wxRadioBox_SetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7368 | PyObject * _resultobj; |
7369 | wxRadioBox * _arg0; | |
7370 | int _arg1; | |
7371 | wxString * _arg2; | |
2d091820 | 7372 | PyObject * _argo0 = 0; |
70551f47 | 7373 | PyObject * _obj2 = 0; |
107e4716 | 7374 | char *_kwnames[] = { "self","n","label", NULL }; |
70551f47 RD |
7375 | |
7376 | self = self; | |
107e4716 | 7377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetItemLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 7378 | return NULL; |
2d091820 RD |
7379 | if (_argo0) { |
7380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 7382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetItemLabel. Expected _wxRadioBox_p."); |
70551f47 RD |
7383 | return NULL; |
7384 | } | |
7385 | } | |
7386 | { | |
2cd2fac8 RD |
7387 | #if PYTHON_API_VERSION >= 1009 |
7388 | char* tmpPtr; int tmpSize; | |
7389 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7390 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7391 | return NULL; |
7392 | } | |
7393 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7394 | return NULL; | |
7395 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7396 | #else | |
70551f47 RD |
7397 | if (!PyString_Check(_obj2)) { |
7398 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7399 | return NULL; | |
7400 | } | |
2cd2fac8 RD |
7401 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7402 | #endif | |
70551f47 | 7403 | } |
ab9bc19b RD |
7404 | { |
7405 | wxPy_BEGIN_ALLOW_THREADS; | |
7406 | wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2); | |
7407 | ||
7408 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7409 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7410 | } Py_INCREF(Py_None); |
70551f47 RD |
7411 | _resultobj = Py_None; |
7412 | { | |
7413 | if (_obj2) | |
7414 | delete _arg2; | |
7415 | } | |
7416 | return _resultobj; | |
7417 | } | |
7418 | ||
7419 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 7420 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7421 | PyObject * _resultobj; |
7422 | wxRadioBox * _arg0; | |
7423 | int _arg1; | |
2d091820 | 7424 | PyObject * _argo0 = 0; |
107e4716 | 7425 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
7426 | |
7427 | self = self; | |
107e4716 | 7428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7429 | return NULL; |
2d091820 RD |
7430 | if (_argo0) { |
7431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
7433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); |
7434 | return NULL; | |
7435 | } | |
7436 | } | |
ab9bc19b RD |
7437 | { |
7438 | wxPy_BEGIN_ALLOW_THREADS; | |
7439 | wxRadioBox_SetSelection(_arg0,_arg1); | |
7440 | ||
7441 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7442 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7443 | } Py_INCREF(Py_None); |
70551f47 RD |
7444 | _resultobj = Py_None; |
7445 | return _resultobj; | |
7446 | } | |
7447 | ||
7448 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
107e4716 | 7449 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7450 | PyObject * _resultobj; |
7451 | wxRadioBox * _arg0; | |
7452 | wxString * _arg1; | |
2d091820 | 7453 | PyObject * _argo0 = 0; |
70551f47 | 7454 | PyObject * _obj1 = 0; |
107e4716 | 7455 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
7456 | |
7457 | self = self; | |
107e4716 | 7458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7459 | return NULL; |
2d091820 RD |
7460 | if (_argo0) { |
7461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
7463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); |
7464 | return NULL; | |
7465 | } | |
7466 | } | |
7467 | { | |
2cd2fac8 RD |
7468 | #if PYTHON_API_VERSION >= 1009 |
7469 | char* tmpPtr; int tmpSize; | |
7470 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7471 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7472 | return NULL; |
7473 | } | |
7474 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7475 | return NULL; | |
7476 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7477 | #else | |
70551f47 RD |
7478 | if (!PyString_Check(_obj1)) { |
7479 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7480 | return NULL; | |
7481 | } | |
2cd2fac8 RD |
7482 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7483 | #endif | |
70551f47 | 7484 | } |
ab9bc19b RD |
7485 | { |
7486 | wxPy_BEGIN_ALLOW_THREADS; | |
7487 | wxRadioBox_SetStringSelection(_arg0,*_arg1); | |
7488 | ||
7489 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7490 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7491 | } Py_INCREF(Py_None); |
70551f47 RD |
7492 | _resultobj = Py_None; |
7493 | { | |
7494 | if (_obj1) | |
7495 | delete _arg1; | |
7496 | } | |
7497 | return _resultobj; | |
7498 | } | |
7499 | ||
7500 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
107e4716 | 7501 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7502 | PyObject * _resultobj; |
7503 | wxRadioBox * _arg0; | |
7504 | bool _arg1; | |
2d091820 | 7505 | PyObject * _argo0 = 0; |
70551f47 | 7506 | int tempbool1; |
107e4716 | 7507 | char *_kwnames[] = { "self","show", NULL }; |
70551f47 RD |
7508 | |
7509 | self = self; | |
107e4716 | 7510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 7511 | return NULL; |
2d091820 RD |
7512 | if (_argo0) { |
7513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
7515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); |
7516 | return NULL; | |
7517 | } | |
7518 | } | |
7519 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
7520 | { |
7521 | wxPy_BEGIN_ALLOW_THREADS; | |
7522 | wxRadioBox_Show(_arg0,_arg1); | |
7523 | ||
7524 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7525 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7526 | } Py_INCREF(Py_None); |
70551f47 RD |
7527 | _resultobj = Py_None; |
7528 | return _resultobj; | |
7529 | } | |
7530 | ||
7531 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
107e4716 | 7532 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7533 | PyObject * _resultobj; |
7534 | wxRadioBox * _arg0; | |
7535 | int _arg1; | |
7536 | bool _arg2; | |
2d091820 | 7537 | PyObject * _argo0 = 0; |
70551f47 | 7538 | int tempbool2; |
107e4716 | 7539 | char *_kwnames[] = { "self","item","show", NULL }; |
70551f47 RD |
7540 | |
7541 | self = self; | |
107e4716 | 7542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 7543 | return NULL; |
2d091820 RD |
7544 | if (_argo0) { |
7545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
7547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); |
7548 | return NULL; | |
7549 | } | |
7550 | } | |
7551 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
7552 | { |
7553 | wxPy_BEGIN_ALLOW_THREADS; | |
7554 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); | |
7555 | ||
7556 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7557 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7558 | } Py_INCREF(Py_None); |
70551f47 RD |
7559 | _resultobj = Py_None; |
7560 | return _resultobj; | |
7561 | } | |
7562 | ||
7563 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
7564 | wxRadioButton *src; | |
7565 | wxControl *dest; | |
7566 | src = (wxRadioButton *) ptr; | |
7567 | dest = (wxControl *) src; | |
7568 | return (void *) dest; | |
7569 | } | |
7570 | ||
7571 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
7572 | wxRadioButton *src; | |
7573 | wxWindow *dest; | |
7574 | src = (wxRadioButton *) ptr; | |
7575 | dest = (wxWindow *) src; | |
7576 | return (void *) dest; | |
7577 | } | |
7578 | ||
7579 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
7580 | wxRadioButton *src; | |
7581 | wxEvtHandler *dest; | |
7582 | src = (wxRadioButton *) ptr; | |
7583 | dest = (wxEvtHandler *) src; | |
7584 | return (void *) dest; | |
7585 | } | |
7586 | ||
9df61a29 RD |
7587 | static void *SwigwxRadioButtonTowxObject(void *ptr) { |
7588 | wxRadioButton *src; | |
7589 | wxObject *dest; | |
7590 | src = (wxRadioButton *) ptr; | |
7591 | dest = (wxObject *) src; | |
7592 | return (void *) dest; | |
7593 | } | |
7594 | ||
70551f47 | 7595 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 7596 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7597 | PyObject * _resultobj; |
7598 | wxRadioButton * _result; | |
7599 | wxWindow * _arg0; | |
7600 | wxWindowID _arg1; | |
7601 | wxString * _arg2; | |
b68dc582 RD |
7602 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
7603 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 7604 | long _arg5 = (long ) 0; |
b68dc582 | 7605 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
7606 | char * _arg7 = (char *) "radioButton"; |
7607 | PyObject * _argo0 = 0; | |
70551f47 | 7608 | PyObject * _obj2 = 0; |
37f6a977 RD |
7609 | wxPoint temp; |
7610 | PyObject * _obj3 = 0; | |
7611 | wxSize temp0; | |
7612 | PyObject * _obj4 = 0; | |
2d091820 | 7613 | PyObject * _argo6 = 0; |
107e4716 | 7614 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
7615 | char _ptemp[128]; |
7616 | ||
7617 | self = self; | |
37f6a977 | 7618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 7619 | return NULL; |
2d091820 RD |
7620 | if (_argo0) { |
7621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
7623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); |
7624 | return NULL; | |
7625 | } | |
7626 | } | |
7627 | { | |
2cd2fac8 RD |
7628 | #if PYTHON_API_VERSION >= 1009 |
7629 | char* tmpPtr; int tmpSize; | |
7630 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7631 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7632 | return NULL; |
7633 | } | |
7634 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7635 | return NULL; | |
7636 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7637 | #else | |
70551f47 RD |
7638 | if (!PyString_Check(_obj2)) { |
7639 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7640 | return NULL; | |
7641 | } | |
2cd2fac8 RD |
7642 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7643 | #endif | |
70551f47 | 7644 | } |
37f6a977 RD |
7645 | if (_obj3) |
7646 | { | |
7647 | _arg3 = &temp; | |
7648 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 7649 | return NULL; |
37f6a977 RD |
7650 | } |
7651 | if (_obj4) | |
7652 | { | |
7653 | _arg4 = &temp0; | |
7654 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 7655 | return NULL; |
37f6a977 | 7656 | } |
2d091820 RD |
7657 | if (_argo6) { |
7658 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7659 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
7660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); |
7661 | return NULL; | |
7662 | } | |
7663 | } | |
ab9bc19b RD |
7664 | { |
7665 | wxPy_BEGIN_ALLOW_THREADS; | |
7666 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
7667 | ||
7668 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7669 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
7670 | } if (_result) { |
7671 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
7672 | _resultobj = Py_BuildValue("s",_ptemp); | |
7673 | } else { | |
7674 | Py_INCREF(Py_None); | |
7675 | _resultobj = Py_None; | |
7676 | } | |
70551f47 RD |
7677 | { |
7678 | if (_obj2) | |
7679 | delete _arg2; | |
7680 | } | |
7681 | return _resultobj; | |
7682 | } | |
7683 | ||
7684 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 7685 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7686 | PyObject * _resultobj; |
7687 | bool _result; | |
7688 | wxRadioButton * _arg0; | |
2d091820 | 7689 | PyObject * _argo0 = 0; |
107e4716 | 7690 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7691 | |
7692 | self = self; | |
107e4716 | 7693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) |
70551f47 | 7694 | return NULL; |
2d091820 RD |
7695 | if (_argo0) { |
7696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
70551f47 RD |
7698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); |
7699 | return NULL; | |
7700 | } | |
7701 | } | |
ab9bc19b RD |
7702 | { |
7703 | wxPy_BEGIN_ALLOW_THREADS; | |
7704 | _result = (bool )wxRadioButton_GetValue(_arg0); | |
7705 | ||
7706 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7707 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7708 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7709 | return _resultobj; |
7710 | } | |
7711 | ||
7712 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 7713 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7714 | PyObject * _resultobj; |
7715 | wxRadioButton * _arg0; | |
7716 | bool _arg1; | |
2d091820 | 7717 | PyObject * _argo0 = 0; |
70551f47 | 7718 | int tempbool1; |
107e4716 | 7719 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
7720 | |
7721 | self = self; | |
107e4716 | 7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 7723 | return NULL; |
2d091820 RD |
7724 | if (_argo0) { |
7725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
70551f47 RD |
7727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); |
7728 | return NULL; | |
7729 | } | |
7730 | } | |
7731 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
7732 | { |
7733 | wxPy_BEGIN_ALLOW_THREADS; | |
7734 | wxRadioButton_SetValue(_arg0,_arg1); | |
7735 | ||
7736 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7737 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7738 | } Py_INCREF(Py_None); |
70551f47 RD |
7739 | _resultobj = Py_None; |
7740 | return _resultobj; | |
7741 | } | |
7742 | ||
7743 | static void *SwigwxSliderTowxControl(void *ptr) { | |
7744 | wxSlider *src; | |
7745 | wxControl *dest; | |
7746 | src = (wxSlider *) ptr; | |
7747 | dest = (wxControl *) src; | |
7748 | return (void *) dest; | |
7749 | } | |
7750 | ||
7751 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
7752 | wxSlider *src; | |
7753 | wxWindow *dest; | |
7754 | src = (wxSlider *) ptr; | |
7755 | dest = (wxWindow *) src; | |
7756 | return (void *) dest; | |
7757 | } | |
7758 | ||
7759 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
7760 | wxSlider *src; | |
7761 | wxEvtHandler *dest; | |
7762 | src = (wxSlider *) ptr; | |
7763 | dest = (wxEvtHandler *) src; | |
7764 | return (void *) dest; | |
7765 | } | |
7766 | ||
9df61a29 RD |
7767 | static void *SwigwxSliderTowxObject(void *ptr) { |
7768 | wxSlider *src; | |
7769 | wxObject *dest; | |
7770 | src = (wxSlider *) ptr; | |
7771 | dest = (wxObject *) src; | |
7772 | return (void *) dest; | |
7773 | } | |
7774 | ||
70551f47 | 7775 | #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 | 7776 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7777 | PyObject * _resultobj; |
7778 | wxSlider * _result; | |
7779 | wxWindow * _arg0; | |
7780 | wxWindowID _arg1; | |
7781 | int _arg2; | |
7782 | int _arg3; | |
7783 | int _arg4; | |
b68dc582 RD |
7784 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
7785 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
2d091820 | 7786 | long _arg7 = (long ) wxSL_HORIZONTAL; |
b68dc582 | 7787 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
7788 | char * _arg9 = (char *) "slider"; |
7789 | PyObject * _argo0 = 0; | |
37f6a977 RD |
7790 | wxPoint temp; |
7791 | PyObject * _obj5 = 0; | |
7792 | wxSize temp0; | |
7793 | PyObject * _obj6 = 0; | |
2d091820 | 7794 | PyObject * _argo8 = 0; |
107e4716 | 7795 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
70551f47 RD |
7796 | char _ptemp[128]; |
7797 | ||
7798 | self = self; | |
37f6a977 | 7799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9)) |
70551f47 | 7800 | return NULL; |
2d091820 RD |
7801 | if (_argo0) { |
7802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
7804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); |
7805 | return NULL; | |
7806 | } | |
7807 | } | |
37f6a977 RD |
7808 | if (_obj5) |
7809 | { | |
7810 | _arg5 = &temp; | |
7811 | if (! wxPoint_helper(_obj5, &_arg5)) | |
70551f47 | 7812 | return NULL; |
37f6a977 RD |
7813 | } |
7814 | if (_obj6) | |
7815 | { | |
7816 | _arg6 = &temp0; | |
7817 | if (! wxSize_helper(_obj6, &_arg6)) | |
70551f47 | 7818 | return NULL; |
37f6a977 | 7819 | } |
2d091820 RD |
7820 | if (_argo8) { |
7821 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
7822 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
70551f47 RD |
7823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); |
7824 | return NULL; | |
7825 | } | |
7826 | } | |
ab9bc19b RD |
7827 | { |
7828 | wxPy_BEGIN_ALLOW_THREADS; | |
7829 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); | |
7830 | ||
7831 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7832 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
7833 | } if (_result) { |
7834 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
7835 | _resultobj = Py_BuildValue("s",_ptemp); | |
7836 | } else { | |
7837 | Py_INCREF(Py_None); | |
7838 | _resultobj = Py_None; | |
7839 | } | |
70551f47 RD |
7840 | return _resultobj; |
7841 | } | |
7842 | ||
7843 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) | |
107e4716 | 7844 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7845 | PyObject * _resultobj; |
7846 | wxSlider * _arg0; | |
2d091820 | 7847 | PyObject * _argo0 = 0; |
107e4716 | 7848 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7849 | |
7850 | self = self; | |
107e4716 | 7851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) |
70551f47 | 7852 | return NULL; |
2d091820 RD |
7853 | if (_argo0) { |
7854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
7856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); |
7857 | return NULL; | |
7858 | } | |
7859 | } | |
ab9bc19b RD |
7860 | { |
7861 | wxPy_BEGIN_ALLOW_THREADS; | |
7862 | wxSlider_ClearSel(_arg0); | |
7863 | ||
7864 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7865 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7866 | } Py_INCREF(Py_None); |
70551f47 RD |
7867 | _resultobj = Py_None; |
7868 | return _resultobj; | |
7869 | } | |
7870 | ||
7871 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
107e4716 | 7872 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7873 | PyObject * _resultobj; |
7874 | wxSlider * _arg0; | |
2d091820 | 7875 | PyObject * _argo0 = 0; |
107e4716 | 7876 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7877 | |
7878 | self = self; | |
107e4716 | 7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) |
70551f47 | 7880 | return NULL; |
2d091820 RD |
7881 | if (_argo0) { |
7882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
7884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); |
7885 | return NULL; | |
7886 | } | |
7887 | } | |
ab9bc19b RD |
7888 | { |
7889 | wxPy_BEGIN_ALLOW_THREADS; | |
7890 | wxSlider_ClearTicks(_arg0); | |
7891 | ||
7892 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7893 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7894 | } Py_INCREF(Py_None); |
70551f47 RD |
7895 | _resultobj = Py_None; |
7896 | return _resultobj; | |
7897 | } | |
7898 | ||
7899 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
107e4716 | 7900 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7901 | PyObject * _resultobj; |
7902 | int _result; | |
7903 | wxSlider * _arg0; | |
2d091820 | 7904 | PyObject * _argo0 = 0; |
107e4716 | 7905 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7906 | |
7907 | self = self; | |
107e4716 | 7908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) |
70551f47 | 7909 | return NULL; |
2d091820 RD |
7910 | if (_argo0) { |
7911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
7913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); |
7914 | return NULL; | |
7915 | } | |
7916 | } | |
ab9bc19b RD |
7917 | { |
7918 | wxPy_BEGIN_ALLOW_THREADS; | |
7919 | _result = (int )wxSlider_GetLineSize(_arg0); | |
7920 | ||
7921 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7922 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7923 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7924 | return _resultobj; |
7925 | } | |
7926 | ||
7927 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
107e4716 | 7928 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7929 | PyObject * _resultobj; |
7930 | int _result; | |
7931 | wxSlider * _arg0; | |
2d091820 | 7932 | PyObject * _argo0 = 0; |
107e4716 | 7933 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7934 | |
7935 | self = self; | |
107e4716 | 7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) |
70551f47 | 7937 | return NULL; |
2d091820 RD |
7938 | if (_argo0) { |
7939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); |
7942 | return NULL; | |
7943 | } | |
7944 | } | |
ab9bc19b RD |
7945 | { |
7946 | wxPy_BEGIN_ALLOW_THREADS; | |
7947 | _result = (int )wxSlider_GetMax(_arg0); | |
7948 | ||
7949 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7950 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7951 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7952 | return _resultobj; |
7953 | } | |
7954 | ||
7955 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
107e4716 | 7956 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7957 | PyObject * _resultobj; |
7958 | int _result; | |
7959 | wxSlider * _arg0; | |
2d091820 | 7960 | PyObject * _argo0 = 0; |
107e4716 | 7961 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7962 | |
7963 | self = self; | |
107e4716 | 7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) |
70551f47 | 7965 | return NULL; |
2d091820 RD |
7966 | if (_argo0) { |
7967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
7969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); |
7970 | return NULL; | |
7971 | } | |
7972 | } | |
ab9bc19b RD |
7973 | { |
7974 | wxPy_BEGIN_ALLOW_THREADS; | |
7975 | _result = (int )wxSlider_GetMin(_arg0); | |
7976 | ||
7977 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7978 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7979 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7980 | return _resultobj; |
7981 | } | |
7982 | ||
7983 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
107e4716 | 7984 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7985 | PyObject * _resultobj; |
7986 | int _result; | |
7987 | wxSlider * _arg0; | |
2d091820 | 7988 | PyObject * _argo0 = 0; |
107e4716 | 7989 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7990 | |
7991 | self = self; | |
107e4716 | 7992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) |
70551f47 | 7993 | return NULL; |
2d091820 RD |
7994 | if (_argo0) { |
7995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
7997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); |
7998 | return NULL; | |
7999 | } | |
8000 | } | |
ab9bc19b RD |
8001 | { |
8002 | wxPy_BEGIN_ALLOW_THREADS; | |
8003 | _result = (int )wxSlider_GetPageSize(_arg0); | |
8004 | ||
8005 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8006 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8007 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8008 | return _resultobj; |
8009 | } | |
8010 | ||
8011 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
107e4716 | 8012 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8013 | PyObject * _resultobj; |
8014 | int _result; | |
8015 | wxSlider * _arg0; | |
2d091820 | 8016 | PyObject * _argo0 = 0; |
107e4716 | 8017 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8018 | |
8019 | self = self; | |
107e4716 | 8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) |
70551f47 | 8021 | return NULL; |
2d091820 RD |
8022 | if (_argo0) { |
8023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); |
8026 | return NULL; | |
8027 | } | |
8028 | } | |
ab9bc19b RD |
8029 | { |
8030 | wxPy_BEGIN_ALLOW_THREADS; | |
8031 | _result = (int )wxSlider_GetSelEnd(_arg0); | |
8032 | ||
8033 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8034 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8035 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8036 | return _resultobj; |
8037 | } | |
8038 | ||
8039 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
107e4716 | 8040 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8041 | PyObject * _resultobj; |
8042 | int _result; | |
8043 | wxSlider * _arg0; | |
2d091820 | 8044 | PyObject * _argo0 = 0; |
107e4716 | 8045 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8046 | |
8047 | self = self; | |
107e4716 | 8048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) |
70551f47 | 8049 | return NULL; |
2d091820 RD |
8050 | if (_argo0) { |
8051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); |
8054 | return NULL; | |
8055 | } | |
8056 | } | |
ab9bc19b RD |
8057 | { |
8058 | wxPy_BEGIN_ALLOW_THREADS; | |
8059 | _result = (int )wxSlider_GetSelStart(_arg0); | |
8060 | ||
8061 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8062 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8063 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8064 | return _resultobj; |
8065 | } | |
8066 | ||
8067 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
107e4716 | 8068 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8069 | PyObject * _resultobj; |
8070 | int _result; | |
8071 | wxSlider * _arg0; | |
2d091820 | 8072 | PyObject * _argo0 = 0; |
107e4716 | 8073 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8074 | |
8075 | self = self; | |
107e4716 | 8076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) |
70551f47 | 8077 | return NULL; |
2d091820 RD |
8078 | if (_argo0) { |
8079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); |
8082 | return NULL; | |
8083 | } | |
8084 | } | |
ab9bc19b RD |
8085 | { |
8086 | wxPy_BEGIN_ALLOW_THREADS; | |
8087 | _result = (int )wxSlider_GetThumbLength(_arg0); | |
8088 | ||
8089 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8090 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8091 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8092 | return _resultobj; |
8093 | } | |
8094 | ||
8095 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
107e4716 | 8096 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8097 | PyObject * _resultobj; |
8098 | int _result; | |
8099 | wxSlider * _arg0; | |
2d091820 | 8100 | PyObject * _argo0 = 0; |
107e4716 | 8101 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8102 | |
8103 | self = self; | |
107e4716 | 8104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) |
70551f47 | 8105 | return NULL; |
2d091820 RD |
8106 | if (_argo0) { |
8107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); |
8110 | return NULL; | |
8111 | } | |
8112 | } | |
ab9bc19b RD |
8113 | { |
8114 | wxPy_BEGIN_ALLOW_THREADS; | |
8115 | _result = (int )wxSlider_GetTickFreq(_arg0); | |
8116 | ||
8117 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8118 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8119 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8120 | return _resultobj; |
8121 | } | |
8122 | ||
8123 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 8124 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8125 | PyObject * _resultobj; |
8126 | int _result; | |
8127 | wxSlider * _arg0; | |
2d091820 | 8128 | PyObject * _argo0 = 0; |
107e4716 | 8129 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8130 | |
8131 | self = self; | |
107e4716 | 8132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) |
70551f47 | 8133 | return NULL; |
2d091820 RD |
8134 | if (_argo0) { |
8135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); |
8138 | return NULL; | |
8139 | } | |
8140 | } | |
ab9bc19b RD |
8141 | { |
8142 | wxPy_BEGIN_ALLOW_THREADS; | |
8143 | _result = (int )wxSlider_GetValue(_arg0); | |
8144 | ||
8145 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8146 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8147 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8148 | return _resultobj; |
8149 | } | |
8150 | ||
8151 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 8152 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8153 | PyObject * _resultobj; |
8154 | wxSlider * _arg0; | |
8155 | int _arg1; | |
8156 | int _arg2; | |
2d091820 | 8157 | PyObject * _argo0 = 0; |
107e4716 | 8158 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; |
70551f47 RD |
8159 | |
8160 | self = self; | |
107e4716 | 8161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 8162 | return NULL; |
2d091820 RD |
8163 | if (_argo0) { |
8164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); |
8167 | return NULL; | |
8168 | } | |
8169 | } | |
ab9bc19b RD |
8170 | { |
8171 | wxPy_BEGIN_ALLOW_THREADS; | |
8172 | wxSlider_SetRange(_arg0,_arg1,_arg2); | |
8173 | ||
8174 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8175 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8176 | } Py_INCREF(Py_None); |
70551f47 RD |
8177 | _resultobj = Py_None; |
8178 | return _resultobj; | |
8179 | } | |
8180 | ||
8181 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
107e4716 | 8182 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8183 | PyObject * _resultobj; |
8184 | wxSlider * _arg0; | |
8185 | int _arg1; | |
8186 | int _arg2; | |
2d091820 | 8187 | PyObject * _argo0 = 0; |
107e4716 | 8188 | char *_kwnames[] = { "self","n","pos", NULL }; |
70551f47 RD |
8189 | |
8190 | self = self; | |
107e4716 | 8191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 8192 | return NULL; |
2d091820 RD |
8193 | if (_argo0) { |
8194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); |
8197 | return NULL; | |
8198 | } | |
8199 | } | |
ab9bc19b RD |
8200 | { |
8201 | wxPy_BEGIN_ALLOW_THREADS; | |
8202 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); | |
8203 | ||
8204 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8205 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8206 | } Py_INCREF(Py_None); |
70551f47 RD |
8207 | _resultobj = Py_None; |
8208 | return _resultobj; | |
8209 | } | |
8210 | ||
8211 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
107e4716 | 8212 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8213 | PyObject * _resultobj; |
8214 | wxSlider * _arg0; | |
8215 | int _arg1; | |
2d091820 | 8216 | PyObject * _argo0 = 0; |
107e4716 | 8217 | char *_kwnames[] = { "self","lineSize", NULL }; |
70551f47 RD |
8218 | |
8219 | self = self; | |
107e4716 | 8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8221 | return NULL; |
2d091820 RD |
8222 | if (_argo0) { |
8223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); |
8226 | return NULL; | |
8227 | } | |
8228 | } | |
ab9bc19b RD |
8229 | { |
8230 | wxPy_BEGIN_ALLOW_THREADS; | |
8231 | wxSlider_SetLineSize(_arg0,_arg1); | |
8232 | ||
8233 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8234 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8235 | } Py_INCREF(Py_None); |
70551f47 RD |
8236 | _resultobj = Py_None; |
8237 | return _resultobj; | |
8238 | } | |
8239 | ||
8240 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
107e4716 | 8241 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8242 | PyObject * _resultobj; |
8243 | wxSlider * _arg0; | |
8244 | int _arg1; | |
2d091820 | 8245 | PyObject * _argo0 = 0; |
107e4716 | 8246 | char *_kwnames[] = { "self","pageSize", NULL }; |
70551f47 RD |
8247 | |
8248 | self = self; | |
107e4716 | 8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8250 | return NULL; |
2d091820 RD |
8251 | if (_argo0) { |
8252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); |
8255 | return NULL; | |
8256 | } | |
8257 | } | |
ab9bc19b RD |
8258 | { |
8259 | wxPy_BEGIN_ALLOW_THREADS; | |
8260 | wxSlider_SetPageSize(_arg0,_arg1); | |
8261 | ||
8262 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8263 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8264 | } Py_INCREF(Py_None); |
70551f47 RD |
8265 | _resultobj = Py_None; |
8266 | return _resultobj; | |
8267 | } | |
8268 | ||
8269 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 8270 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8271 | PyObject * _resultobj; |
8272 | wxSlider * _arg0; | |
8273 | int _arg1; | |
8274 | int _arg2; | |
2d091820 | 8275 | PyObject * _argo0 = 0; |
107e4716 | 8276 | char *_kwnames[] = { "self","startPos","endPos", NULL }; |
70551f47 RD |
8277 | |
8278 | self = self; | |
107e4716 | 8279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 8280 | return NULL; |
2d091820 RD |
8281 | if (_argo0) { |
8282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); |
8285 | return NULL; | |
8286 | } | |
8287 | } | |
ab9bc19b RD |
8288 | { |
8289 | wxPy_BEGIN_ALLOW_THREADS; | |
8290 | wxSlider_SetSelection(_arg0,_arg1,_arg2); | |
8291 | ||
8292 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8293 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8294 | } Py_INCREF(Py_None); |
70551f47 RD |
8295 | _resultobj = Py_None; |
8296 | return _resultobj; | |
8297 | } | |
8298 | ||
8299 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
107e4716 | 8300 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8301 | PyObject * _resultobj; |
8302 | wxSlider * _arg0; | |
8303 | int _arg1; | |
2d091820 | 8304 | PyObject * _argo0 = 0; |
107e4716 | 8305 | char *_kwnames[] = { "self","len", NULL }; |
70551f47 RD |
8306 | |
8307 | self = self; | |
107e4716 | 8308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8309 | return NULL; |
2d091820 RD |
8310 | if (_argo0) { |
8311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); |
8314 | return NULL; | |
8315 | } | |
8316 | } | |
ab9bc19b RD |
8317 | { |
8318 | wxPy_BEGIN_ALLOW_THREADS; | |
8319 | wxSlider_SetThumbLength(_arg0,_arg1); | |
8320 | ||
8321 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8322 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8323 | } Py_INCREF(Py_None); |
70551f47 RD |
8324 | _resultobj = Py_None; |
8325 | return _resultobj; | |
8326 | } | |
8327 | ||
8328 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
107e4716 | 8329 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8330 | PyObject * _resultobj; |
8331 | wxSlider * _arg0; | |
8332 | int _arg1; | |
2d091820 | 8333 | PyObject * _argo0 = 0; |
107e4716 | 8334 | char *_kwnames[] = { "self","tickPos", NULL }; |
70551f47 RD |
8335 | |
8336 | self = self; | |
107e4716 | 8337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8338 | return NULL; |
2d091820 RD |
8339 | if (_argo0) { |
8340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); |
8343 | return NULL; | |
8344 | } | |
8345 | } | |
ab9bc19b RD |
8346 | { |
8347 | wxPy_BEGIN_ALLOW_THREADS; | |
8348 | wxSlider_SetTick(_arg0,_arg1); | |
8349 | ||
8350 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8351 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8352 | } Py_INCREF(Py_None); |
70551f47 RD |
8353 | _resultobj = Py_None; |
8354 | return _resultobj; | |
8355 | } | |
8356 | ||
8357 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 8358 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8359 | PyObject * _resultobj; |
8360 | wxSlider * _arg0; | |
8361 | int _arg1; | |
2d091820 | 8362 | PyObject * _argo0 = 0; |
107e4716 | 8363 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
8364 | |
8365 | self = self; | |
107e4716 | 8366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8367 | return NULL; |
2d091820 RD |
8368 | if (_argo0) { |
8369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
8371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); |
8372 | return NULL; | |
8373 | } | |
8374 | } | |
ab9bc19b RD |
8375 | { |
8376 | wxPy_BEGIN_ALLOW_THREADS; | |
8377 | wxSlider_SetValue(_arg0,_arg1); | |
8378 | ||
8379 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8380 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8381 | } Py_INCREF(Py_None); |
70551f47 RD |
8382 | _resultobj = Py_None; |
8383 | return _resultobj; | |
8384 | } | |
8385 | ||
f6bcfd97 BP |
8386 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { |
8387 | wxSpinCtrl *src; | |
8388 | wxSpinButton *dest; | |
8389 | src = (wxSpinCtrl *) ptr; | |
8390 | dest = (wxSpinButton *) src; | |
8391 | return (void *) dest; | |
8392 | } | |
8393 | ||
8394 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
8395 | wxSpinCtrl *src; | |
8396 | wxControl *dest; | |
8397 | src = (wxSpinCtrl *) ptr; | |
8398 | dest = (wxControl *) src; | |
8399 | return (void *) dest; | |
8400 | } | |
8401 | ||
8402 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
8403 | wxSpinCtrl *src; | |
8404 | wxWindow *dest; | |
8405 | src = (wxSpinCtrl *) ptr; | |
8406 | dest = (wxWindow *) src; | |
8407 | return (void *) dest; | |
8408 | } | |
8409 | ||
8410 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
8411 | wxSpinCtrl *src; | |
8412 | wxEvtHandler *dest; | |
8413 | src = (wxSpinCtrl *) ptr; | |
8414 | dest = (wxEvtHandler *) src; | |
8415 | return (void *) dest; | |
8416 | } | |
8417 | ||
9df61a29 RD |
8418 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { |
8419 | wxSpinCtrl *src; | |
8420 | wxObject *dest; | |
8421 | src = (wxSpinCtrl *) ptr; | |
8422 | dest = (wxObject *) src; | |
8423 | return (void *) dest; | |
8424 | } | |
8425 | ||
f6bcfd97 BP |
8426 | #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)) |
8427 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8428 | PyObject * _resultobj; | |
8429 | wxSpinCtrl * _result; | |
8430 | wxWindow * _arg0; | |
8431 | wxWindowID _arg1 = (wxWindowID ) -1; | |
8432 | char * _arg2 = (char *) ""; | |
b68dc582 RD |
8433 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8434 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
f6bcfd97 BP |
8435 | long _arg5 = (long ) wxSP_ARROW_KEYS; |
8436 | int _arg6 = (int ) 0; | |
8437 | int _arg7 = (int ) 100; | |
8438 | int _arg8 = (int ) 0; | |
8439 | char * _arg9 = (char *) "wxSpinCtrl"; | |
8440 | PyObject * _argo0 = 0; | |
8441 | wxPoint temp; | |
8442 | PyObject * _obj3 = 0; | |
8443 | wxSize temp0; | |
8444 | PyObject * _obj4 = 0; | |
8445 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
8446 | char _ptemp[128]; | |
8447 | ||
8448 | self = self; | |
8449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
8450 | return NULL; | |
8451 | if (_argo0) { | |
8452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
8455 | return NULL; | |
8456 | } | |
8457 | } | |
8458 | if (_obj3) | |
8459 | { | |
8460 | _arg3 = &temp; | |
8461 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8462 | return NULL; | |
8463 | } | |
8464 | if (_obj4) | |
8465 | { | |
8466 | _arg4 = &temp0; | |
8467 | if (! wxSize_helper(_obj4, &_arg4)) | |
8468 | return NULL; | |
8469 | } | |
8470 | { | |
8471 | wxPy_BEGIN_ALLOW_THREADS; | |
8472 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
8473 | ||
8474 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8475 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8476 | } if (_result) { |
8477 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
8478 | _resultobj = Py_BuildValue("s",_ptemp); | |
8479 | } else { | |
8480 | Py_INCREF(Py_None); | |
8481 | _resultobj = Py_None; | |
8482 | } | |
8483 | return _resultobj; | |
8484 | } | |
8485 | ||
c368d904 RD |
8486 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) |
8487 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8488 | PyObject * _resultobj; | |
8489 | int _result; | |
8490 | wxSpinCtrl * _arg0; | |
8491 | PyObject * _argo0 = 0; | |
8492 | char *_kwnames[] = { "self", NULL }; | |
8493 | ||
8494 | self = self; | |
8495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
8496 | return NULL; | |
8497 | if (_argo0) { | |
8498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
8500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
8501 | return NULL; | |
8502 | } | |
8503 | } | |
8504 | { | |
8505 | wxPy_BEGIN_ALLOW_THREADS; | |
8506 | _result = (int )wxSpinCtrl_GetMax(_arg0); | |
8507 | ||
8508 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8509 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
8510 | } _resultobj = Py_BuildValue("i",_result); |
8511 | return _resultobj; | |
8512 | } | |
8513 | ||
8514 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
8515 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8516 | PyObject * _resultobj; | |
8517 | int _result; | |
8518 | wxSpinCtrl * _arg0; | |
8519 | PyObject * _argo0 = 0; | |
8520 | char *_kwnames[] = { "self", NULL }; | |
8521 | ||
8522 | self = self; | |
8523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
8524 | return NULL; | |
8525 | if (_argo0) { | |
8526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
8528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
8529 | return NULL; | |
8530 | } | |
8531 | } | |
8532 | { | |
8533 | wxPy_BEGIN_ALLOW_THREADS; | |
8534 | _result = (int )wxSpinCtrl_GetMin(_arg0); | |
8535 | ||
8536 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8537 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
8538 | } _resultobj = Py_BuildValue("i",_result); |
8539 | return _resultobj; | |
8540 | } | |
8541 | ||
8542 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
8543 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8544 | PyObject * _resultobj; | |
8545 | int _result; | |
8546 | wxSpinCtrl * _arg0; | |
8547 | PyObject * _argo0 = 0; | |
8548 | char *_kwnames[] = { "self", NULL }; | |
8549 | ||
8550 | self = self; | |
8551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
8552 | return NULL; | |
8553 | if (_argo0) { | |
8554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
8556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
8557 | return NULL; | |
8558 | } | |
8559 | } | |
8560 | { | |
8561 | wxPy_BEGIN_ALLOW_THREADS; | |
8562 | _result = (int )wxSpinCtrl_GetValue(_arg0); | |
8563 | ||
8564 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8565 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
8566 | } _resultobj = Py_BuildValue("i",_result); |
8567 | return _resultobj; | |
8568 | } | |
8569 | ||
8570 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
8571 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8572 | PyObject * _resultobj; | |
8573 | wxSpinCtrl * _arg0; | |
8574 | int _arg1; | |
8575 | int _arg2; | |
8576 | PyObject * _argo0 = 0; | |
8577 | char *_kwnames[] = { "self","min","max", NULL }; | |
8578 | ||
8579 | self = self; | |
8580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8581 | return NULL; | |
8582 | if (_argo0) { | |
8583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
8585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
8586 | return NULL; | |
8587 | } | |
8588 | } | |
8589 | { | |
8590 | wxPy_BEGIN_ALLOW_THREADS; | |
8591 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); | |
8592 | ||
8593 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8594 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
8595 | } Py_INCREF(Py_None); |
8596 | _resultobj = Py_None; | |
8597 | return _resultobj; | |
8598 | } | |
8599 | ||
8600 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
8601 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8602 | PyObject * _resultobj; | |
8603 | wxSpinCtrl * _arg0; | |
8604 | int _arg1; | |
8605 | PyObject * _argo0 = 0; | |
8606 | char *_kwnames[] = { "self","value", NULL }; | |
8607 | ||
8608 | self = self; | |
8609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
8610 | return NULL; | |
8611 | if (_argo0) { | |
8612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
8614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
8615 | return NULL; | |
8616 | } | |
8617 | } | |
8618 | { | |
8619 | wxPy_BEGIN_ALLOW_THREADS; | |
8620 | wxSpinCtrl_SetValue(_arg0,_arg1); | |
8621 | ||
8622 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8623 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
8624 | } Py_INCREF(Py_None); |
8625 | _resultobj = Py_None; | |
8626 | return _resultobj; | |
8627 | } | |
8628 | ||
7a446686 RD |
8629 | static void *SwigwxToggleButtonTowxControl(void *ptr) { |
8630 | wxToggleButton *src; | |
8631 | wxControl *dest; | |
8632 | src = (wxToggleButton *) ptr; | |
8633 | dest = (wxControl *) src; | |
8634 | return (void *) dest; | |
8635 | } | |
8636 | ||
8637 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
8638 | wxToggleButton *src; | |
8639 | wxWindow *dest; | |
8640 | src = (wxToggleButton *) ptr; | |
8641 | dest = (wxWindow *) src; | |
8642 | return (void *) dest; | |
8643 | } | |
8644 | ||
8645 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
8646 | wxToggleButton *src; | |
8647 | wxEvtHandler *dest; | |
8648 | src = (wxToggleButton *) ptr; | |
8649 | dest = (wxEvtHandler *) src; | |
8650 | return (void *) dest; | |
8651 | } | |
8652 | ||
9df61a29 RD |
8653 | static void *SwigwxToggleButtonTowxObject(void *ptr) { |
8654 | wxToggleButton *src; | |
8655 | wxObject *dest; | |
8656 | src = (wxToggleButton *) ptr; | |
8657 | dest = (wxObject *) src; | |
8658 | return (void *) dest; | |
8659 | } | |
8660 | ||
7a446686 RD |
8661 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
8662 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8663 | PyObject * _resultobj; | |
8664 | wxToggleButton * _result; | |
8665 | wxWindow * _arg0; | |
8666 | wxWindowID _arg1; | |
8667 | wxString * _arg2; | |
8668 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8669 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8670 | long _arg5 = (long ) 0; | |
8671 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
8672 | char * _arg7 = (char *) "toggle"; | |
8673 | PyObject * _argo0 = 0; | |
8674 | PyObject * _obj2 = 0; | |
8675 | wxPoint temp; | |
8676 | PyObject * _obj3 = 0; | |
8677 | wxSize temp0; | |
8678 | PyObject * _obj4 = 0; | |
8679 | PyObject * _argo6 = 0; | |
8680 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
8681 | char _ptemp[128]; | |
8682 | ||
8683 | self = self; | |
8684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
8685 | return NULL; | |
8686 | if (_argo0) { | |
8687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
8690 | return NULL; | |
8691 | } | |
8692 | } | |
8693 | { | |
8694 | #if PYTHON_API_VERSION >= 1009 | |
8695 | char* tmpPtr; int tmpSize; | |
8696 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8697 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8698 | return NULL; | |
8699 | } | |
8700 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8701 | return NULL; | |
8702 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8703 | #else | |
8704 | if (!PyString_Check(_obj2)) { | |
8705 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8706 | return NULL; | |
8707 | } | |
8708 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8709 | #endif | |
8710 | } | |
8711 | if (_obj3) | |
8712 | { | |
8713 | _arg3 = &temp; | |
8714 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8715 | return NULL; | |
8716 | } | |
8717 | if (_obj4) | |
8718 | { | |
8719 | _arg4 = &temp0; | |
8720 | if (! wxSize_helper(_obj4, &_arg4)) | |
8721 | return NULL; | |
8722 | } | |
8723 | if (_argo6) { | |
8724 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8725 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
8727 | return NULL; | |
8728 | } | |
8729 | } | |
8730 | { | |
8731 | wxPy_BEGIN_ALLOW_THREADS; | |
8732 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
8733 | ||
8734 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8735 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
8736 | } if (_result) { |
8737 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
8738 | _resultobj = Py_BuildValue("s",_ptemp); | |
8739 | } else { | |
8740 | Py_INCREF(Py_None); | |
8741 | _resultobj = Py_None; | |
8742 | } | |
8743 | { | |
8744 | if (_obj2) | |
8745 | delete _arg2; | |
8746 | } | |
8747 | return _resultobj; | |
8748 | } | |
8749 | ||
8750 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
8751 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8752 | PyObject * _resultobj; | |
8753 | wxToggleButton * _arg0; | |
8754 | bool _arg1; | |
8755 | PyObject * _argo0 = 0; | |
8756 | int tempbool1; | |
8757 | char *_kwnames[] = { "self","value", NULL }; | |
8758 | ||
8759 | self = self; | |
8760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
8761 | return NULL; | |
8762 | if (_argo0) { | |
8763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
8765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
8766 | return NULL; | |
8767 | } | |
8768 | } | |
8769 | _arg1 = (bool ) tempbool1; | |
8770 | { | |
8771 | wxPy_BEGIN_ALLOW_THREADS; | |
8772 | wxToggleButton_SetValue(_arg0,_arg1); | |
8773 | ||
8774 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8775 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
8776 | } Py_INCREF(Py_None); |
8777 | _resultobj = Py_None; | |
8778 | return _resultobj; | |
8779 | } | |
8780 | ||
8781 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
8782 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8783 | PyObject * _resultobj; | |
8784 | bool _result; | |
8785 | wxToggleButton * _arg0; | |
8786 | PyObject * _argo0 = 0; | |
8787 | char *_kwnames[] = { "self", NULL }; | |
8788 | ||
8789 | self = self; | |
8790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
8791 | return NULL; | |
8792 | if (_argo0) { | |
8793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
8795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
8796 | return NULL; | |
8797 | } | |
8798 | } | |
8799 | { | |
8800 | wxPy_BEGIN_ALLOW_THREADS; | |
8801 | _result = (bool )wxToggleButton_GetValue(_arg0); | |
8802 | ||
8803 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8804 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
8805 | } _resultobj = Py_BuildValue("i",_result); |
8806 | return _resultobj; | |
8807 | } | |
8808 | ||
8809 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
8810 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8811 | PyObject * _resultobj; | |
8812 | wxToggleButton * _arg0; | |
8813 | wxString * _arg1; | |
8814 | PyObject * _argo0 = 0; | |
8815 | PyObject * _obj1 = 0; | |
8816 | char *_kwnames[] = { "self","label", NULL }; | |
8817 | ||
8818 | self = self; | |
8819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
8820 | return NULL; | |
8821 | if (_argo0) { | |
8822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
8824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
8825 | return NULL; | |
8826 | } | |
8827 | } | |
8828 | { | |
8829 | #if PYTHON_API_VERSION >= 1009 | |
8830 | char* tmpPtr; int tmpSize; | |
8831 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8832 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8833 | return NULL; | |
8834 | } | |
8835 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8836 | return NULL; | |
8837 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8838 | #else | |
8839 | if (!PyString_Check(_obj1)) { | |
8840 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8841 | return NULL; | |
8842 | } | |
8843 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8844 | #endif | |
8845 | } | |
8846 | { | |
8847 | wxPy_BEGIN_ALLOW_THREADS; | |
8848 | wxToggleButton_SetLabel(_arg0,*_arg1); | |
8849 | ||
8850 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8851 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
8852 | } Py_INCREF(Py_None); |
8853 | _resultobj = Py_None; | |
8854 | { | |
8855 | if (_obj1) | |
8856 | delete _arg1; | |
8857 | } | |
8858 | return _resultobj; | |
8859 | } | |
8860 | ||
70551f47 | 8861 | static PyMethodDef controlscMethods[] = { |
7a446686 RD |
8862 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
8863 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8864 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8865 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
8866 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
8867 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
8868 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8869 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
8870 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8871 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8872 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, |
8873 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
8874 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
8875 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8876 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
8877 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
8878 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
8879 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
8880 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8881 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
8882 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
8883 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
8884 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
8885 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
8886 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
8887 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
8888 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
8889 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
8890 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
8891 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, | |
8892 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8893 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8894 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
8895 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
8896 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
8897 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8898 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8899 | { "wxRadioBox_SetItemLabel", (PyCFunction) _wrap_wxRadioBox_SetItemLabel, METH_VARARGS | METH_KEYWORDS }, | |
8900 | { "wxRadioBox_Number", (PyCFunction) _wrap_wxRadioBox_Number, METH_VARARGS | METH_KEYWORDS }, | |
8901 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8902 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
8903 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8904 | { "wxRadioBox_GetItemLabel", (PyCFunction) _wrap_wxRadioBox_GetItemLabel, METH_VARARGS | METH_KEYWORDS }, | |
8905 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
8906 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
8907 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
8908 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
8909 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
8910 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
8911 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
8912 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
8913 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8914 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
8915 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8916 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
8917 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
8918 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
8919 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
8920 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
2fc99549 | 8921 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8922 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
8923 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
8924 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
8925 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
8926 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
4120ef2b | 8927 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
9d6da64a RD |
8928 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, |
8929 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
8930 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
4120ef2b RD |
8931 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
8932 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
8933 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, |
8934 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8935 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
8936 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
8937 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
8938 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
8939 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
8940 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
8941 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
8942 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
8943 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
8944 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
8945 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8946 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
8947 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
8948 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
8949 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
8950 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8951 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
8952 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
8953 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
8954 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
8955 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
8956 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
8957 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
8958 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
8959 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
8960 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
8961 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
8962 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
8963 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
8964 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
8965 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8966 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a RD |
8967 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
8968 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8969 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8970 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
8971 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8972 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8973 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8974 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8975 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8976 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
8977 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 8978 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, |
d29aba2f | 8979 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8980 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, |
8981 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
8982 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
8983 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8984 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
8985 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8986 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
8987 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
8988 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
8989 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
8990 | { "wxListBox_Number", (PyCFunction) _wrap_wxListBox_Number, METH_VARARGS | METH_KEYWORDS }, | |
8991 | { "wxListBox_GetStringSelection", (PyCFunction) _wrap_wxListBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
8992 | { "wxListBox_GetString", (PyCFunction) _wrap_wxListBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
37f6a977 | 8993 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8994 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
8995 | { "wxListBox_GetSelection", (PyCFunction) _wrap_wxListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
8996 | { "wxListBox_FindString", (PyCFunction) _wrap_wxListBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
8997 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
8998 | { "wxListBox_Delete", (PyCFunction) _wrap_wxListBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
8999 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
9000 | { "wxListBox_Append", (PyCFunction) _wrap_wxListBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
9001 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, | |
9002 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9003 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9004 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, | |
9005 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
9006 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
9007 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
9008 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
9009 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
9010 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
9011 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
9012 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
9013 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
9014 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
9015 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, | |
9016 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
9017 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
9018 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
9019 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
9020 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
9021 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9022 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9023 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
9024 | { "wxComboBox_Number", (PyCFunction) _wrap_wxComboBox_Number, METH_VARARGS | METH_KEYWORDS }, | |
9025 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
9026 | { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
9027 | { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
9028 | { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
9029 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
9030 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
9031 | { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
9032 | { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
9033 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
9034 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
9035 | { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
9036 | { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
9037 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, | |
9038 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
9039 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
9040 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
9041 | { "wxChoice_Number", (PyCFunction) _wrap_wxChoice_Number, METH_VARARGS | METH_KEYWORDS }, | |
9042 | { "wxChoice_GetStringSelection", (PyCFunction) _wrap_wxChoice_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
9043 | { "wxChoice_GetString", (PyCFunction) _wrap_wxChoice_GetString, METH_VARARGS | METH_KEYWORDS }, | |
9044 | { "wxChoice_GetSelection", (PyCFunction) _wrap_wxChoice_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
9045 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
9046 | { "wxChoice_FindString", (PyCFunction) _wrap_wxChoice_FindString, METH_VARARGS | METH_KEYWORDS }, | |
9047 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, | |
9048 | { "wxChoice_Append", (PyCFunction) _wrap_wxChoice_Append, METH_VARARGS | METH_KEYWORDS }, | |
9049 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, | |
9050 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
9051 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
9052 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9053 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, |
9054 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
9055 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
9056 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, |
9057 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
9058 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
9059 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
9060 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
9061 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
9062 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
9063 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
9064 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
ab2208b5 RD |
9065 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
9066 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
9067 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, |
9068 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, | |
9069 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9070 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 9071 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
9072 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, |
9073 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
70551f47 RD |
9074 | { NULL, NULL } |
9075 | }; | |
2d091820 RD |
9076 | #ifdef __cplusplus |
9077 | } | |
9078 | #endif | |
9079 | /* | |
9080 | * This table is used by the pointer type-checker | |
9081 | */ | |
9082 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2d091820 | 9083 | { "_signed_long","_long",0}, |
4120ef2b | 9084 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
9085 | { "_wxPrintQuality","_int",0}, |
9086 | { "_wxPrintQuality","_signed_int",0}, | |
9087 | { "_wxPrintQuality","_unsigned_int",0}, | |
9088 | { "_wxPrintQuality","_wxWindowID",0}, | |
9089 | { "_wxPrintQuality","_uint",0}, | |
9090 | { "_wxPrintQuality","_EBool",0}, | |
9091 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9092 | { "_wxPrintQuality","_time_t",0}, |
7a446686 RD |
9093 | { "_class_wxEvtHandler","_class_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
9094 | { "_class_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, | |
f6bcfd97 BP |
9095 | { "_class_wxEvtHandler","_class_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
9096 | { "_class_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
2d091820 RD |
9097 | { "_class_wxEvtHandler","_class_wxSlider",SwigwxSliderTowxEvtHandler}, |
9098 | { "_class_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
9099 | { "_class_wxEvtHandler","_class_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
9100 | { "_class_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
9101 | { "_class_wxEvtHandler","_class_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
9102 | { "_class_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
9103 | { "_class_wxEvtHandler","_class_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
9104 | { "_class_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
9105 | { "_class_wxEvtHandler","_class_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
9106 | { "_class_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
9107 | { "_class_wxEvtHandler","_class_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
9108 | { "_class_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
9109 | { "_class_wxEvtHandler","_class_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
9110 | { "_class_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
9111 | { "_class_wxEvtHandler","_class_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
9112 | { "_class_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
9113 | { "_class_wxEvtHandler","_class_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
9114 | { "_class_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
9115 | { "_class_wxEvtHandler","_class_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
9116 | { "_class_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
9117 | { "_class_wxEvtHandler","_class_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
9118 | { "_class_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
9119 | { "_class_wxEvtHandler","_class_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
9120 | { "_class_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
9121 | { "_class_wxEvtHandler","_class_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
9122 | { "_class_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
9123 | { "_class_wxEvtHandler","_class_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
9124 | { "_class_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
9125 | { "_class_wxEvtHandler","_class_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
9126 | { "_class_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
9127 | { "_class_wxEvtHandler","_class_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
9128 | { "_class_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
9129 | { "_class_wxEvtHandler","_class_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
9130 | { "_class_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
9131 | { "_class_wxEvtHandler","_class_wxButton",SwigwxButtonTowxEvtHandler}, | |
9132 | { "_class_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
9133 | { "_class_wxEvtHandler","_class_wxControl",SwigwxControlTowxEvtHandler}, | |
9134 | { "_class_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
2d091820 | 9135 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
9136 | { "_wxChoice","_class_wxComboBox",SwigwxComboBoxTowxChoice}, |
9137 | { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, | |
2d091820 RD |
9138 | { "_long","_unsigned_long",0}, |
9139 | { "_long","_signed_long",0}, | |
9df61a29 RD |
9140 | { "_class_wxObject","_class_wxToggleButton",SwigwxToggleButtonTowxObject}, |
9141 | { "_class_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, | |
9142 | { "_class_wxObject","_class_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
9143 | { "_class_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
9144 | { "_class_wxObject","_class_wxSlider",SwigwxSliderTowxObject}, | |
9145 | { "_class_wxObject","_wxSlider",SwigwxSliderTowxObject}, | |
9146 | { "_class_wxObject","_class_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
9147 | { "_class_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
9148 | { "_class_wxObject","_class_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
9149 | { "_class_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
9150 | { "_class_wxObject","_class_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
9151 | { "_class_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
9152 | { "_class_wxObject","_class_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
9153 | { "_class_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
9154 | { "_class_wxObject","_class_wxScrollBar",SwigwxScrollBarTowxObject}, | |
9155 | { "_class_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, | |
9156 | { "_class_wxObject","_class_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
9157 | { "_class_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
9158 | { "_class_wxObject","_class_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
9159 | { "_class_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
9160 | { "_class_wxObject","_class_wxListBox",SwigwxListBoxTowxObject}, | |
9161 | { "_class_wxObject","_wxListBox",SwigwxListBoxTowxObject}, | |
9162 | { "_class_wxObject","_class_wxStaticText",SwigwxStaticTextTowxObject}, | |
9163 | { "_class_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, | |
9164 | { "_class_wxObject","_class_wxStaticLine",SwigwxStaticLineTowxObject}, | |
9165 | { "_class_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, | |
9166 | { "_class_wxObject","_class_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
9167 | { "_class_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
9168 | { "_class_wxObject","_class_wxGauge",SwigwxGaugeTowxObject}, | |
9169 | { "_class_wxObject","_wxGauge",SwigwxGaugeTowxObject}, | |
9170 | { "_class_wxObject","_class_wxComboBox",SwigwxComboBoxTowxObject}, | |
9171 | { "_class_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, | |
9172 | { "_class_wxObject","_class_wxChoice",SwigwxChoiceTowxObject}, | |
9173 | { "_class_wxObject","_wxChoice",SwigwxChoiceTowxObject}, | |
9174 | { "_class_wxObject","_class_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
9175 | { "_class_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
9176 | { "_class_wxObject","_class_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
9177 | { "_class_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
9178 | { "_class_wxObject","_class_wxButton",SwigwxButtonTowxObject}, | |
9179 | { "_class_wxObject","_wxButton",SwigwxButtonTowxObject}, | |
9180 | { "_class_wxObject","_class_wxControl",SwigwxControlTowxObject}, | |
9181 | { "_class_wxObject","_wxControl",SwigwxControlTowxObject}, | |
4120ef2b | 9182 | { "_size_t","_wxCoord",0}, |
2d091820 | 9183 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9184 | { "_size_t","_time_t",0}, |
2d091820 RD |
9185 | { "_size_t","_unsigned_int",0}, |
9186 | { "_size_t","_int",0}, | |
9187 | { "_size_t","_wxWindowID",0}, | |
9188 | { "_size_t","_uint",0}, | |
4120ef2b | 9189 | { "_uint","_wxCoord",0}, |
2d091820 | 9190 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9191 | { "_uint","_time_t",0}, |
2d091820 RD |
9192 | { "_uint","_size_t",0}, |
9193 | { "_uint","_unsigned_int",0}, | |
9194 | { "_uint","_int",0}, | |
9195 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9196 | { "_wxChar","_char",0}, |
2d091820 RD |
9197 | { "_class_wxButton","_class_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
9198 | { "_class_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
f6bcfd97 | 9199 | { "_char","_wxChar",0}, |
f6bcfd97 BP |
9200 | { "_wxSpinButton","_class_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
9201 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
4120ef2b | 9202 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
9203 | { "_EBool","_wxPrintQuality",0}, |
9204 | { "_EBool","_signed_int",0}, | |
9205 | { "_EBool","_int",0}, | |
9206 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 9207 | { "_unsigned_long","_long",0}, |
f6bcfd97 BP |
9208 | { "_class_wxSpinButton","_class_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
9209 | { "_class_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
4120ef2b | 9210 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
9211 | { "_signed_int","_wxPrintQuality",0}, |
9212 | { "_signed_int","_EBool",0}, | |
9213 | { "_signed_int","_wxWindowID",0}, | |
9214 | { "_signed_int","_int",0}, | |
2d091820 RD |
9215 | { "_wxListBox","_class_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
9216 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
2d091820 RD |
9217 | { "_WXTYPE","_short",0}, |
9218 | { "_WXTYPE","_signed_short",0}, | |
9219 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
9220 | { "_unsigned_short","_WXTYPE",0}, |
9221 | { "_unsigned_short","_short",0}, | |
7a446686 RD |
9222 | { "_class_wxWindow","_class_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
9223 | { "_class_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, | |
f6bcfd97 BP |
9224 | { "_class_wxWindow","_class_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
9225 | { "_class_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
2d091820 RD |
9226 | { "_class_wxWindow","_class_wxSlider",SwigwxSliderTowxWindow}, |
9227 | { "_class_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
9228 | { "_class_wxWindow","_class_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
9229 | { "_class_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
9230 | { "_class_wxWindow","_class_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
9231 | { "_class_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
9232 | { "_class_wxWindow","_class_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
9233 | { "_class_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
9234 | { "_class_wxWindow","_class_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
9235 | { "_class_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
9236 | { "_class_wxWindow","_class_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
9237 | { "_class_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
9238 | { "_class_wxWindow","_class_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
9239 | { "_class_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
9240 | { "_class_wxWindow","_class_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
9241 | { "_class_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
9242 | { "_class_wxWindow","_class_wxListBox",SwigwxListBoxTowxWindow}, | |
9243 | { "_class_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
9244 | { "_class_wxWindow","_class_wxStaticText",SwigwxStaticTextTowxWindow}, | |
9245 | { "_class_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
9246 | { "_class_wxWindow","_class_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
9247 | { "_class_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
9248 | { "_class_wxWindow","_class_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
9249 | { "_class_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
9250 | { "_class_wxWindow","_class_wxGauge",SwigwxGaugeTowxWindow}, | |
9251 | { "_class_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
9252 | { "_class_wxWindow","_class_wxComboBox",SwigwxComboBoxTowxWindow}, | |
9253 | { "_class_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
9254 | { "_class_wxWindow","_class_wxChoice",SwigwxChoiceTowxWindow}, | |
9255 | { "_class_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
9256 | { "_class_wxWindow","_class_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
9257 | { "_class_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
9258 | { "_class_wxWindow","_class_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
9259 | { "_class_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
9260 | { "_class_wxWindow","_class_wxButton",SwigwxButtonTowxWindow}, | |
9261 | { "_class_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
9262 | { "_class_wxWindow","_class_wxControl",SwigwxControlTowxWindow}, | |
9263 | { "_class_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
9df61a29 RD |
9264 | { "_wxObject","_class_wxToggleButton",SwigwxToggleButtonTowxObject}, |
9265 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, | |
9266 | { "_wxObject","_class_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
9267 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
9268 | { "_wxObject","_class_wxSlider",SwigwxSliderTowxObject}, | |
9269 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, | |
9270 | { "_wxObject","_class_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
9271 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
9272 | { "_wxObject","_class_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
9273 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
9274 | { "_wxObject","_class_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
9275 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
9276 | { "_wxObject","_class_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
9277 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
9278 | { "_wxObject","_class_wxScrollBar",SwigwxScrollBarTowxObject}, | |
9279 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, | |
9280 | { "_wxObject","_class_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
9281 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
9282 | { "_wxObject","_class_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
9283 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
9284 | { "_wxObject","_class_wxListBox",SwigwxListBoxTowxObject}, | |
9285 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, | |
9286 | { "_wxObject","_class_wxStaticText",SwigwxStaticTextTowxObject}, | |
9287 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, | |
9288 | { "_wxObject","_class_wxStaticLine",SwigwxStaticLineTowxObject}, | |
9289 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, | |
9290 | { "_wxObject","_class_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
9291 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
9292 | { "_wxObject","_class_wxGauge",SwigwxGaugeTowxObject}, | |
9293 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, | |
9294 | { "_wxObject","_class_wxComboBox",SwigwxComboBoxTowxObject}, | |
9295 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, | |
9296 | { "_wxObject","_class_wxChoice",SwigwxChoiceTowxObject}, | |
9297 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, | |
9298 | { "_wxObject","_class_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
9299 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
9300 | { "_wxObject","_class_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
9301 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
9302 | { "_wxObject","_class_wxButton",SwigwxButtonTowxObject}, | |
9303 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, | |
9304 | { "_wxObject","_class_wxControl",SwigwxControlTowxObject}, | |
9305 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, | |
2d091820 RD |
9306 | { "_signed_short","_WXTYPE",0}, |
9307 | { "_signed_short","_short",0}, | |
2d091820 | 9308 | { "_unsigned_char","_byte",0}, |
7a446686 RD |
9309 | { "_wxControl","_class_wxToggleButton",SwigwxToggleButtonTowxControl}, |
9310 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, | |
f6bcfd97 BP |
9311 | { "_wxControl","_class_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
9312 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
2d091820 RD |
9313 | { "_wxControl","_class_wxSlider",SwigwxSliderTowxControl}, |
9314 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
9315 | { "_wxControl","_class_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
9316 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
9317 | { "_wxControl","_class_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
9318 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
9319 | { "_wxControl","_class_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
9320 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
9321 | { "_wxControl","_class_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
9322 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
9323 | { "_wxControl","_class_wxScrollBar",SwigwxScrollBarTowxControl}, | |
9324 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
9325 | { "_wxControl","_class_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
9326 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
9327 | { "_wxControl","_class_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
9328 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
9329 | { "_wxControl","_class_wxListBox",SwigwxListBoxTowxControl}, | |
9330 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
9331 | { "_wxControl","_class_wxStaticText",SwigwxStaticTextTowxControl}, | |
9332 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
9333 | { "_wxControl","_class_wxStaticLine",SwigwxStaticLineTowxControl}, | |
9334 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
9335 | { "_wxControl","_class_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
9336 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
9337 | { "_wxControl","_class_wxGauge",SwigwxGaugeTowxControl}, | |
9338 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
9339 | { "_wxControl","_class_wxComboBox",SwigwxComboBoxTowxControl}, | |
9340 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
9341 | { "_wxControl","_class_wxChoice",SwigwxChoiceTowxControl}, | |
9342 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
9343 | { "_wxControl","_class_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
9344 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
9345 | { "_wxControl","_class_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
9346 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
9347 | { "_wxControl","_class_wxButton",SwigwxButtonTowxControl}, | |
9348 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
2d091820 RD |
9349 | { "_class_wxListBox","_class_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
9350 | { "_class_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
4120ef2b | 9351 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 9352 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9353 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
9354 | { "_unsigned_int","_size_t",0}, |
9355 | { "_unsigned_int","_uint",0}, | |
9356 | { "_unsigned_int","_wxWindowID",0}, | |
9357 | { "_unsigned_int","_int",0}, | |
2d091820 RD |
9358 | { "_short","_WXTYPE",0}, |
9359 | { "_short","_unsigned_short",0}, | |
9360 | { "_short","_signed_short",0}, | |
2d091820 RD |
9361 | { "_class_wxChoice","_class_wxComboBox",SwigwxComboBoxTowxChoice}, |
9362 | { "_class_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, | |
4120ef2b | 9363 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 9364 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 9365 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
9366 | { "_wxWindowID","_size_t",0}, |
9367 | { "_wxWindowID","_EBool",0}, | |
9368 | { "_wxWindowID","_uint",0}, | |
9369 | { "_wxWindowID","_int",0}, | |
9370 | { "_wxWindowID","_signed_int",0}, | |
9371 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 9372 | { "_int","_wxCoord",0}, |
2d091820 | 9373 | { "_int","_wxPrintQuality",0}, |
c368d904 | 9374 | { "_int","_time_t",0}, |
2d091820 RD |
9375 | { "_int","_size_t",0}, |
9376 | { "_int","_EBool",0}, | |
9377 | { "_int","_uint",0}, | |
9378 | { "_int","_wxWindowID",0}, | |
9379 | { "_int","_unsigned_int",0}, | |
9380 | { "_int","_signed_int",0}, | |
c368d904 RD |
9381 | { "_time_t","_wxCoord",0}, |
9382 | { "_time_t","_wxPrintQuality",0}, | |
9383 | { "_time_t","_unsigned_int",0}, | |
9384 | { "_time_t","_int",0}, | |
9385 | { "_time_t","_wxWindowID",0}, | |
9386 | { "_time_t","_uint",0}, | |
9387 | { "_time_t","_size_t",0}, | |
2d091820 RD |
9388 | { "_wxButton","_class_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
9389 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
7a446686 RD |
9390 | { "_class_wxControl","_class_wxToggleButton",SwigwxToggleButtonTowxControl}, |
9391 | { "_class_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, | |
f6bcfd97 BP |
9392 | { "_class_wxControl","_class_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
9393 | { "_class_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
2d091820 RD |
9394 | { "_class_wxControl","_class_wxSlider",SwigwxSliderTowxControl}, |
9395 | { "_class_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
9396 | { "_class_wxControl","_class_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
9397 | { "_class_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
9398 | { "_class_wxControl","_class_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
9399 | { "_class_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
9400 | { "_class_wxControl","_class_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
9401 | { "_class_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
9402 | { "_class_wxControl","_class_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
9403 | { "_class_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
9404 | { "_class_wxControl","_class_wxScrollBar",SwigwxScrollBarTowxControl}, | |
9405 | { "_class_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
9406 | { "_class_wxControl","_class_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
9407 | { "_class_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
9408 | { "_class_wxControl","_class_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
9409 | { "_class_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
9410 | { "_class_wxControl","_class_wxListBox",SwigwxListBoxTowxControl}, | |
9411 | { "_class_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
9412 | { "_class_wxControl","_class_wxStaticText",SwigwxStaticTextTowxControl}, | |
9413 | { "_class_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
9414 | { "_class_wxControl","_class_wxStaticLine",SwigwxStaticLineTowxControl}, | |
9415 | { "_class_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
9416 | { "_class_wxControl","_class_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
9417 | { "_class_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
9418 | { "_class_wxControl","_class_wxGauge",SwigwxGaugeTowxControl}, | |
9419 | { "_class_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
9420 | { "_class_wxControl","_class_wxComboBox",SwigwxComboBoxTowxControl}, | |
9421 | { "_class_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
9422 | { "_class_wxControl","_class_wxChoice",SwigwxChoiceTowxControl}, | |
9423 | { "_class_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
9424 | { "_class_wxControl","_class_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
9425 | { "_class_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
9426 | { "_class_wxControl","_class_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
9427 | { "_class_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
9428 | { "_class_wxControl","_class_wxButton",SwigwxButtonTowxControl}, | |
9429 | { "_class_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
4120ef2b RD |
9430 | { "_wxCoord","_int",0}, |
9431 | { "_wxCoord","_signed_int",0}, | |
9432 | { "_wxCoord","_unsigned_int",0}, | |
9433 | { "_wxCoord","_wxWindowID",0}, | |
9434 | { "_wxCoord","_uint",0}, | |
9435 | { "_wxCoord","_EBool",0}, | |
9436 | { "_wxCoord","_size_t",0}, | |
c368d904 | 9437 | { "_wxCoord","_time_t",0}, |
4120ef2b | 9438 | { "_wxCoord","_wxPrintQuality",0}, |
7a446686 RD |
9439 | { "_wxEvtHandler","_class_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
9440 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, | |
f6bcfd97 BP |
9441 | { "_wxEvtHandler","_class_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
9442 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
2d091820 RD |
9443 | { "_wxEvtHandler","_class_wxSlider",SwigwxSliderTowxEvtHandler}, |
9444 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
9445 | { "_wxEvtHandler","_class_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
9446 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
9447 | { "_wxEvtHandler","_class_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
9448 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
9449 | { "_wxEvtHandler","_class_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
9450 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
9451 | { "_wxEvtHandler","_class_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
9452 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
9453 | { "_wxEvtHandler","_class_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
9454 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
9455 | { "_wxEvtHandler","_class_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
9456 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
9457 | { "_wxEvtHandler","_class_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
9458 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
9459 | { "_wxEvtHandler","_class_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
9460 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
9461 | { "_wxEvtHandler","_class_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
9462 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
9463 | { "_wxEvtHandler","_class_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
9464 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
9465 | { "_wxEvtHandler","_class_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
9466 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
9467 | { "_wxEvtHandler","_class_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
9468 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
9469 | { "_wxEvtHandler","_class_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
9470 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
9471 | { "_wxEvtHandler","_class_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
9472 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
9473 | { "_wxEvtHandler","_class_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
9474 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
9475 | { "_wxEvtHandler","_class_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
9476 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
9477 | { "_wxEvtHandler","_class_wxButton",SwigwxButtonTowxEvtHandler}, | |
9478 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
9479 | { "_wxEvtHandler","_class_wxControl",SwigwxControlTowxEvtHandler}, | |
9480 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
7a446686 RD |
9481 | { "_wxWindow","_class_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
9482 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, | |
f6bcfd97 BP |
9483 | { "_wxWindow","_class_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
9484 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
2d091820 RD |
9485 | { "_wxWindow","_class_wxSlider",SwigwxSliderTowxWindow}, |
9486 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
9487 | { "_wxWindow","_class_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
9488 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
9489 | { "_wxWindow","_class_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
9490 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
9491 | { "_wxWindow","_class_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
9492 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
9493 | { "_wxWindow","_class_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
9494 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
9495 | { "_wxWindow","_class_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
9496 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
9497 | { "_wxWindow","_class_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
9498 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
9499 | { "_wxWindow","_class_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
9500 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
9501 | { "_wxWindow","_class_wxListBox",SwigwxListBoxTowxWindow}, | |
9502 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
9503 | { "_wxWindow","_class_wxStaticText",SwigwxStaticTextTowxWindow}, | |
9504 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
9505 | { "_wxWindow","_class_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
9506 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
9507 | { "_wxWindow","_class_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
9508 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
9509 | { "_wxWindow","_class_wxGauge",SwigwxGaugeTowxWindow}, | |
9510 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
9511 | { "_wxWindow","_class_wxComboBox",SwigwxComboBoxTowxWindow}, | |
9512 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
9513 | { "_wxWindow","_class_wxChoice",SwigwxChoiceTowxWindow}, | |
9514 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
9515 | { "_wxWindow","_class_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
9516 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
9517 | { "_wxWindow","_class_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
9518 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
9519 | { "_wxWindow","_class_wxButton",SwigwxButtonTowxWindow}, | |
9520 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
9521 | { "_wxWindow","_class_wxControl",SwigwxControlTowxWindow}, | |
9522 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
2d091820 RD |
9523 | {0,0,0}}; |
9524 | ||
70551f47 RD |
9525 | static PyObject *SWIG_globals; |
9526 | #ifdef __cplusplus | |
9527 | extern "C" | |
9528 | #endif | |
2d091820 | 9529 | SWIGEXPORT(void) initcontrolsc() { |
70551f47 RD |
9530 | PyObject *m, *d; |
9531 | SWIG_globals = SWIG_newvarlink(); | |
9532 | m = Py_InitModule("controlsc", controlscMethods); | |
9533 | d = PyModule_GetDict(m); | |
37f6a977 RD |
9534 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
9535 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
7a446686 | 9536 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
2d091820 RD |
9537 | { |
9538 | int i; | |
9539 | for (i = 0; _swig_mapping[i].n1; i++) | |
9540 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
9541 | } | |
70551f47 | 9542 | } |