]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/controls.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
dbbb98cd | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
dbbb98cd | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrolsc |
55 | ||
56 | #define SWIG_name "controlsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/slider.h> | |
b639c3c5 | 60 | #include <wx/spinbutt.h> |
f6bcfd97 | 61 | #include <wx/spinctrl.h> |
cf694132 | 62 | #include <wx/dynarray.h> |
8bf5d46e | 63 | #include <wx/statline.h> |
d1679124 | 64 | #include <wx/tglbtn.h> |
8ab979d7 RD |
65 | |
66 | #ifdef __WXMSW__ | |
9c039d08 RD |
67 | #if wxUSE_OWNER_DRAWN |
68 | #include <wx/checklst.h> | |
69 | #endif | |
8ab979d7 RD |
70 | #endif |
71 | ||
be4d9c1f RD |
72 | #ifdef __WXGTK__ |
73 | #include <wx/checklst.h> | |
74 | #endif | |
75 | ||
bb0054cd | 76 | |
8ab979d7 RD |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
e0672e2f | 81 | if (!target) { |
8ab979d7 | 82 | target = o; |
e0672e2f | 83 | } else if (target == Py_None) { |
8ab979d7 RD |
84 | Py_DECREF(Py_None); |
85 | target = o; | |
e0672e2f | 86 | } else { |
8ab979d7 RD |
87 | if (!PyTuple_Check(target)) { |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
e0672e2f RD |
92 | o3 = PyTuple_New(1); |
93 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
94 | |
95 | o2 = target; | |
e0672e2f RD |
96 | target = PySequence_Concat(o2, o3); |
97 | Py_DECREF(o2); | |
8ab979d7 RD |
98 | Py_DECREF(o3); |
99 | } | |
100 | return target; | |
101 | } | |
102 | ||
794c5cb1 RD |
103 | #if PYTHON_API_VERSION >= 1009 |
104 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
105 | #else | |
0122b7e3 | 106 | static char* wxStringErrorMsg = "String type required"; |
794c5cb1 | 107 | #endif |
1d99702e RD |
108 | #ifdef __cplusplus |
109 | extern "C" { | |
110 | #endif | |
2f90df85 RD |
111 | static int _wrap_wxDefaultValidator_set(PyObject *val) { |
112 | ||
113 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
114 | return 1; | |
115 | } | |
116 | ||
117 | static PyObject *_wrap_wxDefaultValidator_get() { | |
118 | PyObject * pyobj; | |
119 | char ptemp[128]; | |
120 | ||
121 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
122 | pyobj = PyString_FromString(ptemp); | |
123 | return pyobj; | |
124 | } | |
125 | ||
8ab979d7 RD |
126 | static void *SwigwxControlTowxWindow(void *ptr) { |
127 | wxControl *src; | |
128 | wxWindow *dest; | |
129 | src = (wxControl *) ptr; | |
130 | dest = (wxWindow *) src; | |
131 | return (void *) dest; | |
132 | } | |
133 | ||
134 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
135 | wxControl *src; | |
136 | wxEvtHandler *dest; | |
137 | src = (wxControl *) ptr; | |
138 | dest = (wxEvtHandler *) src; | |
139 | return (void *) dest; | |
140 | } | |
141 | ||
9416aa89 RD |
142 | static void *SwigwxControlTowxObject(void *ptr) { |
143 | wxControl *src; | |
144 | wxObject *dest; | |
145 | src = (wxControl *) ptr; | |
146 | dest = (wxObject *) src; | |
147 | return (void *) dest; | |
148 | } | |
149 | ||
9b3d3bc4 | 150 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
6999b0d8 RD |
151 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
152 | PyObject * _resultobj; | |
153 | wxControl * _result; | |
9b3d3bc4 RD |
154 | wxWindow * _arg0; |
155 | wxWindowID _arg1; | |
e508a2b6 RD |
156 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
157 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
9b3d3bc4 | 158 | long _arg4 = (long ) 0; |
e508a2b6 | 159 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9b3d3bc4 RD |
160 | char * _arg6 = (char *) "control"; |
161 | PyObject * _argo0 = 0; | |
162 | wxPoint temp; | |
163 | PyObject * _obj2 = 0; | |
164 | wxSize temp0; | |
165 | PyObject * _obj3 = 0; | |
166 | PyObject * _argo5 = 0; | |
167 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
6999b0d8 RD |
168 | char _ptemp[128]; |
169 | ||
170 | self = self; | |
9b3d3bc4 RD |
171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
172 | return NULL; | |
173 | if (_argo0) { | |
174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
177 | return NULL; | |
178 | } | |
179 | } | |
180 | if (_obj2) | |
181 | { | |
182 | _arg2 = &temp; | |
183 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6999b0d8 | 184 | return NULL; |
9b3d3bc4 RD |
185 | } |
186 | if (_obj3) | |
187 | { | |
188 | _arg3 = &temp0; | |
189 | if (! wxSize_helper(_obj3, &_arg3)) | |
190 | return NULL; | |
191 | } | |
192 | if (_argo5) { | |
193 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
194 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
196 | return NULL; | |
197 | } | |
198 | } | |
6999b0d8 | 199 | { |
4268f798 | 200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 201 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
6999b0d8 | 202 | |
4268f798 | 203 | wxPyEndAllowThreads(__tstate); |
493f1553 | 204 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
205 | } if (_result) { |
206 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
207 | _resultobj = Py_BuildValue("s",_ptemp); | |
208 | } else { | |
209 | Py_INCREF(Py_None); | |
210 | _resultobj = Py_None; | |
211 | } | |
212 | return _resultobj; | |
213 | } | |
214 | ||
09f3d4e6 RD |
215 | #define new_wxPreControl() (new wxControl()) |
216 | static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
217 | PyObject * _resultobj; | |
218 | wxControl * _result; | |
219 | char *_kwnames[] = { NULL }; | |
220 | char _ptemp[128]; | |
221 | ||
222 | self = self; | |
223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames)) | |
224 | return NULL; | |
225 | { | |
4268f798 | 226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
227 | _result = (wxControl *)new_wxPreControl(); |
228 | ||
4268f798 | 229 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
230 | if (PyErr_Occurred()) return NULL; |
231 | } if (_result) { | |
232 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
233 | _resultobj = Py_BuildValue("s",_ptemp); | |
234 | } else { | |
235 | Py_INCREF(Py_None); | |
236 | _resultobj = Py_None; | |
237 | } | |
238 | return _resultobj; | |
239 | } | |
240 | ||
241 | #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
242 | static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
243 | PyObject * _resultobj; | |
244 | bool _result; | |
245 | wxControl * _arg0; | |
246 | wxWindow * _arg1; | |
247 | wxWindowID _arg2; | |
248 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
249 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
250 | long _arg5 = (long ) 0; | |
251 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
252 | char * _arg7 = (char *) "control"; | |
253 | PyObject * _argo0 = 0; | |
254 | PyObject * _argo1 = 0; | |
255 | wxPoint temp; | |
256 | PyObject * _obj3 = 0; | |
257 | wxSize temp0; | |
258 | PyObject * _obj4 = 0; | |
259 | PyObject * _argo6 = 0; | |
260 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
261 | ||
262 | self = self; | |
263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOs:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
264 | return NULL; | |
265 | if (_argo0) { | |
266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p."); | |
269 | return NULL; | |
270 | } | |
271 | } | |
272 | if (_argo1) { | |
273 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
274 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p."); | |
276 | return NULL; | |
277 | } | |
278 | } | |
279 | if (_obj3) | |
280 | { | |
281 | _arg3 = &temp; | |
282 | if (! wxPoint_helper(_obj3, &_arg3)) | |
283 | return NULL; | |
284 | } | |
285 | if (_obj4) | |
286 | { | |
287 | _arg4 = &temp0; | |
288 | if (! wxSize_helper(_obj4, &_arg4)) | |
289 | return NULL; | |
290 | } | |
291 | if (_argo6) { | |
292 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
293 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p."); | |
295 | return NULL; | |
296 | } | |
297 | } | |
298 | { | |
4268f798 | 299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
300 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
301 | ||
4268f798 | 302 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
303 | if (PyErr_Occurred()) return NULL; |
304 | } _resultobj = Py_BuildValue("i",_result); | |
305 | return _resultobj; | |
306 | } | |
307 | ||
8ab979d7 | 308 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) |
efc5f224 | 309 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
310 | PyObject * _resultobj; |
311 | wxControl * _arg0; | |
312 | wxCommandEvent * _arg1; | |
1d99702e RD |
313 | PyObject * _argo0 = 0; |
314 | PyObject * _argo1 = 0; | |
efc5f224 | 315 | char *_kwnames[] = { "self","event", NULL }; |
8ab979d7 RD |
316 | |
317 | self = self; | |
efc5f224 | 318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 319 | return NULL; |
1d99702e RD |
320 | if (_argo0) { |
321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); |
324 | return NULL; | |
325 | } | |
326 | } | |
1d99702e RD |
327 | if (_argo1) { |
328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
8ab979d7 RD |
330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); |
331 | return NULL; | |
332 | } | |
333 | } | |
cf694132 | 334 | { |
4268f798 | 335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
336 | wxControl_Command(_arg0,*_arg1); |
337 | ||
4268f798 | 338 | wxPyEndAllowThreads(__tstate); |
493f1553 | 339 | if (PyErr_Occurred()) return NULL; |
cf694132 | 340 | } Py_INCREF(Py_None); |
8ab979d7 RD |
341 | _resultobj = Py_None; |
342 | return _resultobj; | |
343 | } | |
344 | ||
345 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
efc5f224 | 346 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
347 | PyObject * _resultobj; |
348 | wxString * _result; | |
349 | wxControl * _arg0; | |
1d99702e | 350 | PyObject * _argo0 = 0; |
efc5f224 | 351 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
352 | |
353 | self = self; | |
efc5f224 | 354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 355 | return NULL; |
1d99702e RD |
356 | if (_argo0) { |
357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); |
360 | return NULL; | |
361 | } | |
362 | } | |
8ab979d7 | 363 | { |
4268f798 | 364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
365 | _result = new wxString (wxControl_GetLabel(_arg0)); |
366 | ||
4268f798 | 367 | wxPyEndAllowThreads(__tstate); |
493f1553 | 368 | if (PyErr_Occurred()) return NULL; |
cf694132 | 369 | }{ |
eec92d76 | 370 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
371 | } |
372 | { | |
373 | delete _result; | |
374 | } | |
375 | return _resultobj; | |
376 | } | |
377 | ||
378 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
efc5f224 | 379 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
380 | PyObject * _resultobj; |
381 | wxControl * _arg0; | |
382 | wxString * _arg1; | |
1d99702e | 383 | PyObject * _argo0 = 0; |
8ab979d7 | 384 | PyObject * _obj1 = 0; |
efc5f224 | 385 | char *_kwnames[] = { "self","label", NULL }; |
8ab979d7 RD |
386 | |
387 | self = self; | |
efc5f224 | 388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 389 | return NULL; |
1d99702e RD |
390 | if (_argo0) { |
391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); |
394 | return NULL; | |
395 | } | |
396 | } | |
397 | { | |
185d7c3e RD |
398 | #if PYTHON_API_VERSION >= 1009 |
399 | char* tmpPtr; int tmpSize; | |
400 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 401 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
402 | return NULL; |
403 | } | |
404 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
405 | return NULL; | |
406 | _arg1 = new wxString(tmpPtr, tmpSize); | |
407 | #else | |
8ab979d7 RD |
408 | if (!PyString_Check(_obj1)) { |
409 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
410 | return NULL; | |
411 | } | |
185d7c3e RD |
412 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
413 | #endif | |
8ab979d7 | 414 | } |
cf694132 | 415 | { |
4268f798 | 416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
417 | wxControl_SetLabel(_arg0,*_arg1); |
418 | ||
4268f798 | 419 | wxPyEndAllowThreads(__tstate); |
493f1553 | 420 | if (PyErr_Occurred()) return NULL; |
cf694132 | 421 | } Py_INCREF(Py_None); |
8ab979d7 RD |
422 | _resultobj = Py_None; |
423 | { | |
424 | if (_obj1) | |
425 | delete _arg1; | |
426 | } | |
427 | return _resultobj; | |
428 | } | |
429 | ||
900d9886 RD |
430 | static void *SwigwxControlWithItemsTowxControl(void *ptr) { |
431 | wxControlWithItems *src; | |
432 | wxControl *dest; | |
433 | src = (wxControlWithItems *) ptr; | |
434 | dest = (wxControl *) src; | |
435 | return (void *) dest; | |
436 | } | |
437 | ||
438 | static void *SwigwxControlWithItemsTowxWindow(void *ptr) { | |
439 | wxControlWithItems *src; | |
440 | wxWindow *dest; | |
441 | src = (wxControlWithItems *) ptr; | |
442 | dest = (wxWindow *) src; | |
443 | return (void *) dest; | |
444 | } | |
445 | ||
446 | static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) { | |
447 | wxControlWithItems *src; | |
448 | wxEvtHandler *dest; | |
449 | src = (wxControlWithItems *) ptr; | |
450 | dest = (wxEvtHandler *) src; | |
451 | return (void *) dest; | |
452 | } | |
453 | ||
454 | static void *SwigwxControlWithItemsTowxObject(void *ptr) { | |
455 | wxControlWithItems *src; | |
456 | wxObject *dest; | |
457 | src = (wxControlWithItems *) ptr; | |
458 | dest = (wxObject *) src; | |
459 | return (void *) dest; | |
460 | } | |
461 | ||
462 | #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
463 | static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
464 | PyObject * _resultobj; | |
465 | wxControlWithItems * _arg0; | |
466 | int _arg1; | |
467 | PyObject * _argo0 = 0; | |
468 | char *_kwnames[] = { "self","n", NULL }; | |
469 | ||
470 | self = self; | |
471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1)) | |
472 | return NULL; | |
473 | if (_argo0) { | |
474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p."); | |
477 | return NULL; | |
478 | } | |
479 | } | |
480 | { | |
4268f798 | 481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
482 | wxControlWithItems_Delete(_arg0,_arg1); |
483 | ||
4268f798 | 484 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
485 | if (PyErr_Occurred()) return NULL; |
486 | } Py_INCREF(Py_None); | |
487 | _resultobj = Py_None; | |
488 | return _resultobj; | |
489 | } | |
490 | ||
491 | #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount()) | |
492 | static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
493 | PyObject * _resultobj; | |
494 | int _result; | |
495 | wxControlWithItems * _arg0; | |
496 | PyObject * _argo0 = 0; | |
497 | char *_kwnames[] = { "self", NULL }; | |
498 | ||
499 | self = self; | |
500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0)) | |
501 | return NULL; | |
502 | if (_argo0) { | |
503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p."); | |
506 | return NULL; | |
507 | } | |
508 | } | |
509 | { | |
4268f798 | 510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
511 | _result = (int )wxControlWithItems_GetCount(_arg0); |
512 | ||
4268f798 | 513 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
514 | if (PyErr_Occurred()) return NULL; |
515 | } _resultobj = Py_BuildValue("i",_result); | |
516 | return _resultobj; | |
517 | } | |
518 | ||
519 | #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
520 | static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
521 | PyObject * _resultobj; | |
522 | wxString * _result; | |
523 | wxControlWithItems * _arg0; | |
524 | int _arg1; | |
525 | PyObject * _argo0 = 0; | |
526 | char *_kwnames[] = { "self","n", NULL }; | |
527 | ||
528 | self = self; | |
529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1)) | |
530 | return NULL; | |
531 | if (_argo0) { | |
532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p."); | |
535 | return NULL; | |
536 | } | |
537 | } | |
538 | { | |
4268f798 | 539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
540 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); |
541 | ||
4268f798 | 542 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
543 | if (PyErr_Occurred()) return NULL; |
544 | }{ | |
545 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
546 | } | |
547 | { | |
548 | delete _result; | |
549 | } | |
550 | return _resultobj; | |
551 | } | |
552 | ||
553 | #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
554 | static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
555 | PyObject * _resultobj; | |
556 | wxControlWithItems * _arg0; | |
557 | int _arg1; | |
558 | wxString * _arg2; | |
559 | PyObject * _argo0 = 0; | |
560 | PyObject * _obj2 = 0; | |
561 | char *_kwnames[] = { "self","n","s", NULL }; | |
562 | ||
563 | self = self; | |
564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
565 | return NULL; | |
566 | if (_argo0) { | |
567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p."); | |
570 | return NULL; | |
571 | } | |
572 | } | |
573 | { | |
574 | #if PYTHON_API_VERSION >= 1009 | |
575 | char* tmpPtr; int tmpSize; | |
576 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
577 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
578 | return NULL; | |
579 | } | |
580 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
581 | return NULL; | |
582 | _arg2 = new wxString(tmpPtr, tmpSize); | |
583 | #else | |
584 | if (!PyString_Check(_obj2)) { | |
585 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
586 | return NULL; | |
587 | } | |
588 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
589 | #endif | |
590 | } | |
591 | { | |
4268f798 | 592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
593 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); |
594 | ||
4268f798 | 595 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
596 | if (PyErr_Occurred()) return NULL; |
597 | } Py_INCREF(Py_None); | |
598 | _resultobj = Py_None; | |
599 | { | |
600 | if (_obj2) | |
601 | delete _arg2; | |
602 | } | |
603 | return _resultobj; | |
604 | } | |
605 | ||
606 | #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
607 | static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
608 | PyObject * _resultobj; | |
609 | int _result; | |
610 | wxControlWithItems * _arg0; | |
611 | wxString * _arg1; | |
612 | PyObject * _argo0 = 0; | |
613 | PyObject * _obj1 = 0; | |
614 | char *_kwnames[] = { "self","s", NULL }; | |
615 | ||
616 | self = self; | |
617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1)) | |
618 | return NULL; | |
619 | if (_argo0) { | |
620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p."); | |
623 | return NULL; | |
624 | } | |
625 | } | |
626 | { | |
627 | #if PYTHON_API_VERSION >= 1009 | |
628 | char* tmpPtr; int tmpSize; | |
629 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
630 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
631 | return NULL; | |
632 | } | |
633 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
634 | return NULL; | |
635 | _arg1 = new wxString(tmpPtr, tmpSize); | |
636 | #else | |
637 | if (!PyString_Check(_obj1)) { | |
638 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
639 | return NULL; | |
640 | } | |
641 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
642 | #endif | |
643 | } | |
644 | { | |
4268f798 | 645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
646 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); |
647 | ||
4268f798 | 648 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
649 | if (PyErr_Occurred()) return NULL; |
650 | } _resultobj = Py_BuildValue("i",_result); | |
651 | { | |
652 | if (_obj1) | |
653 | delete _arg1; | |
654 | } | |
655 | return _resultobj; | |
656 | } | |
657 | ||
658 | #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0)) | |
659 | static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
660 | PyObject * _resultobj; | |
661 | wxControlWithItems * _arg0; | |
662 | int _arg1; | |
663 | PyObject * _argo0 = 0; | |
664 | char *_kwnames[] = { "self","n", NULL }; | |
665 | ||
666 | self = self; | |
667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1)) | |
668 | return NULL; | |
669 | if (_argo0) { | |
670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p."); | |
673 | return NULL; | |
674 | } | |
675 | } | |
676 | { | |
4268f798 | 677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
678 | wxControlWithItems_Select(_arg0,_arg1); |
679 | ||
4268f798 | 680 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
681 | if (PyErr_Occurred()) return NULL; |
682 | } Py_INCREF(Py_None); | |
683 | _resultobj = Py_None; | |
684 | return _resultobj; | |
685 | } | |
686 | ||
687 | #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
688 | static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
689 | PyObject * _resultobj; | |
690 | int _result; | |
691 | wxControlWithItems * _arg0; | |
692 | PyObject * _argo0 = 0; | |
693 | char *_kwnames[] = { "self", NULL }; | |
694 | ||
695 | self = self; | |
696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0)) | |
697 | return NULL; | |
698 | if (_argo0) { | |
699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p."); | |
702 | return NULL; | |
703 | } | |
704 | } | |
705 | { | |
4268f798 | 706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
707 | _result = (int )wxControlWithItems_GetSelection(_arg0); |
708 | ||
4268f798 | 709 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
710 | if (PyErr_Occurred()) return NULL; |
711 | } _resultobj = Py_BuildValue("i",_result); | |
712 | return _resultobj; | |
713 | } | |
714 | ||
715 | #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
716 | static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
717 | PyObject * _resultobj; | |
718 | wxString * _result; | |
719 | wxControlWithItems * _arg0; | |
720 | PyObject * _argo0 = 0; | |
721 | char *_kwnames[] = { "self", NULL }; | |
722 | ||
723 | self = self; | |
724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0)) | |
725 | return NULL; | |
726 | if (_argo0) { | |
727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p."); | |
730 | return NULL; | |
731 | } | |
732 | } | |
733 | { | |
4268f798 | 734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
735 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); |
736 | ||
4268f798 | 737 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
738 | if (PyErr_Occurred()) return NULL; |
739 | }{ | |
740 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
741 | } | |
742 | { | |
743 | delete _result; | |
744 | } | |
745 | return _resultobj; | |
746 | } | |
747 | ||
748 | static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) { | |
749 | if (clientData) { | |
750 | wxPyClientData* data = new wxPyClientData(clientData); | |
751 | self->Append(item, data); | |
752 | } else | |
753 | self->Append(item); | |
754 | } | |
755 | static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
756 | PyObject * _resultobj; | |
757 | wxControlWithItems * _arg0; | |
758 | wxString * _arg1; | |
759 | PyObject * _arg2 = (PyObject *) NULL; | |
760 | PyObject * _argo0 = 0; | |
761 | PyObject * _obj1 = 0; | |
762 | PyObject * _obj2 = 0; | |
763 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
764 | ||
765 | self = self; | |
766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
767 | return NULL; | |
768 | if (_argo0) { | |
769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p."); | |
772 | return NULL; | |
773 | } | |
774 | } | |
775 | { | |
776 | #if PYTHON_API_VERSION >= 1009 | |
777 | char* tmpPtr; int tmpSize; | |
778 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
779 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
780 | return NULL; | |
781 | } | |
782 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
783 | return NULL; | |
784 | _arg1 = new wxString(tmpPtr, tmpSize); | |
785 | #else | |
786 | if (!PyString_Check(_obj1)) { | |
787 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
788 | return NULL; | |
789 | } | |
790 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
791 | #endif | |
792 | } | |
793 | if (_obj2) | |
794 | { | |
795 | _arg2 = _obj2; | |
796 | } | |
797 | { | |
4268f798 | 798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
799 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); |
800 | ||
4268f798 | 801 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
802 | if (PyErr_Occurred()) return NULL; |
803 | } Py_INCREF(Py_None); | |
804 | _resultobj = Py_None; | |
805 | { | |
806 | if (_obj1) | |
807 | delete _arg1; | |
808 | } | |
809 | return _resultobj; | |
810 | } | |
811 | ||
812 | static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) { | |
813 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
814 | if (data) { | |
815 | Py_INCREF(data->m_obj); | |
816 | return data->m_obj; | |
817 | } else { | |
818 | Py_INCREF(Py_None); | |
819 | return Py_None; | |
820 | } | |
821 | } | |
822 | static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
823 | PyObject * _resultobj; | |
824 | PyObject * _result; | |
825 | wxControlWithItems * _arg0; | |
826 | int _arg1; | |
827 | PyObject * _argo0 = 0; | |
828 | char *_kwnames[] = { "self","n", NULL }; | |
829 | ||
830 | self = self; | |
831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1)) | |
832 | return NULL; | |
833 | if (_argo0) { | |
834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p."); | |
837 | return NULL; | |
838 | } | |
839 | } | |
840 | { | |
4268f798 | 841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
842 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); |
843 | ||
4268f798 | 844 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
845 | if (PyErr_Occurred()) return NULL; |
846 | }{ | |
847 | _resultobj = _result; | |
848 | } | |
849 | return _resultobj; | |
850 | } | |
851 | ||
852 | static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) { | |
853 | wxPyClientData* data = new wxPyClientData(clientData); | |
854 | self->SetClientObject(n, data); | |
855 | } | |
856 | static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
857 | PyObject * _resultobj; | |
858 | wxControlWithItems * _arg0; | |
859 | int _arg1; | |
860 | PyObject * _arg2; | |
861 | PyObject * _argo0 = 0; | |
862 | PyObject * _obj2 = 0; | |
863 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
864 | ||
865 | self = self; | |
866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
867 | return NULL; | |
868 | if (_argo0) { | |
869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p."); | |
872 | return NULL; | |
873 | } | |
874 | } | |
875 | { | |
876 | _arg2 = _obj2; | |
877 | } | |
878 | { | |
4268f798 | 879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
880 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); |
881 | ||
4268f798 | 882 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
883 | if (PyErr_Occurred()) return NULL; |
884 | } Py_INCREF(Py_None); | |
885 | _resultobj = Py_None; | |
886 | return _resultobj; | |
887 | } | |
888 | ||
8ab979d7 RD |
889 | static void *SwigwxButtonTowxControl(void *ptr) { |
890 | wxButton *src; | |
891 | wxControl *dest; | |
892 | src = (wxButton *) ptr; | |
893 | dest = (wxControl *) src; | |
894 | return (void *) dest; | |
895 | } | |
896 | ||
897 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
898 | wxButton *src; | |
899 | wxWindow *dest; | |
900 | src = (wxButton *) ptr; | |
901 | dest = (wxWindow *) src; | |
902 | return (void *) dest; | |
903 | } | |
904 | ||
905 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
906 | wxButton *src; | |
907 | wxEvtHandler *dest; | |
908 | src = (wxButton *) ptr; | |
909 | dest = (wxEvtHandler *) src; | |
910 | return (void *) dest; | |
911 | } | |
912 | ||
9416aa89 RD |
913 | static void *SwigwxButtonTowxObject(void *ptr) { |
914 | wxButton *src; | |
915 | wxObject *dest; | |
916 | src = (wxButton *) ptr; | |
917 | dest = (wxObject *) src; | |
918 | return (void *) dest; | |
919 | } | |
920 | ||
8ab979d7 | 921 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 922 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
923 | PyObject * _resultobj; |
924 | wxButton * _result; | |
925 | wxWindow * _arg0; | |
926 | wxWindowID _arg1; | |
927 | wxString * _arg2; | |
e508a2b6 RD |
928 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
929 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 930 | long _arg5 = (long ) 0; |
e508a2b6 | 931 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
932 | char * _arg7 = (char *) "button"; |
933 | PyObject * _argo0 = 0; | |
8ab979d7 | 934 | PyObject * _obj2 = 0; |
2f90df85 RD |
935 | wxPoint temp; |
936 | PyObject * _obj3 = 0; | |
937 | wxSize temp0; | |
938 | PyObject * _obj4 = 0; | |
1d99702e | 939 | PyObject * _argo6 = 0; |
efc5f224 | 940 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
941 | char _ptemp[128]; |
942 | ||
943 | self = self; | |
2f90df85 | 944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 945 | return NULL; |
1d99702e RD |
946 | if (_argo0) { |
947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); |
950 | return NULL; | |
951 | } | |
952 | } | |
953 | { | |
185d7c3e RD |
954 | #if PYTHON_API_VERSION >= 1009 |
955 | char* tmpPtr; int tmpSize; | |
956 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 957 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
958 | return NULL; |
959 | } | |
960 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
961 | return NULL; | |
962 | _arg2 = new wxString(tmpPtr, tmpSize); | |
963 | #else | |
8ab979d7 RD |
964 | if (!PyString_Check(_obj2)) { |
965 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
966 | return NULL; | |
967 | } | |
185d7c3e RD |
968 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
969 | #endif | |
8ab979d7 | 970 | } |
2f90df85 RD |
971 | if (_obj3) |
972 | { | |
973 | _arg3 = &temp; | |
974 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 975 | return NULL; |
2f90df85 RD |
976 | } |
977 | if (_obj4) | |
978 | { | |
979 | _arg4 = &temp0; | |
980 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 981 | return NULL; |
2f90df85 | 982 | } |
1d99702e RD |
983 | if (_argo6) { |
984 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
985 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); |
987 | return NULL; | |
988 | } | |
989 | } | |
cf694132 | 990 | { |
4268f798 | 991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
992 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
993 | ||
4268f798 | 994 | wxPyEndAllowThreads(__tstate); |
493f1553 | 995 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
996 | } if (_result) { |
997 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
998 | _resultobj = Py_BuildValue("s",_ptemp); | |
999 | } else { | |
1000 | Py_INCREF(Py_None); | |
1001 | _resultobj = Py_None; | |
1002 | } | |
8ab979d7 RD |
1003 | { |
1004 | if (_obj2) | |
1005 | delete _arg2; | |
1006 | } | |
1007 | return _resultobj; | |
1008 | } | |
1009 | ||
09f3d4e6 RD |
1010 | #define new_wxPreButton() (new wxButton()) |
1011 | static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1012 | PyObject * _resultobj; | |
1013 | wxButton * _result; | |
1014 | char *_kwnames[] = { NULL }; | |
1015 | char _ptemp[128]; | |
1016 | ||
1017 | self = self; | |
1018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames)) | |
1019 | return NULL; | |
1020 | { | |
4268f798 | 1021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
1022 | _result = (wxButton *)new_wxPreButton(); |
1023 | ||
4268f798 | 1024 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1025 | if (PyErr_Occurred()) return NULL; |
1026 | } if (_result) { | |
1027 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1028 | _resultobj = Py_BuildValue("s",_ptemp); | |
1029 | } else { | |
1030 | Py_INCREF(Py_None); | |
1031 | _resultobj = Py_None; | |
1032 | } | |
1033 | return _resultobj; | |
1034 | } | |
1035 | ||
1036 | #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1037 | static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1038 | PyObject * _resultobj; | |
1039 | bool _result; | |
1040 | wxButton * _arg0; | |
1041 | wxWindow * _arg1; | |
1042 | wxWindowID _arg2; | |
1043 | wxString * _arg3; | |
1044 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1045 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1046 | long _arg6 = (long ) 0; | |
1047 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1048 | char * _arg8 = (char *) "button"; | |
1049 | PyObject * _argo0 = 0; | |
1050 | PyObject * _argo1 = 0; | |
1051 | PyObject * _obj3 = 0; | |
1052 | wxPoint temp; | |
1053 | PyObject * _obj4 = 0; | |
1054 | wxSize temp0; | |
1055 | PyObject * _obj5 = 0; | |
1056 | PyObject * _argo7 = 0; | |
1057 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
1058 | ||
1059 | self = self; | |
1060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1061 | return NULL; | |
1062 | if (_argo0) { | |
1063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p."); | |
1066 | return NULL; | |
1067 | } | |
1068 | } | |
1069 | if (_argo1) { | |
1070 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1071 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p."); | |
1073 | return NULL; | |
1074 | } | |
1075 | } | |
1076 | { | |
1077 | #if PYTHON_API_VERSION >= 1009 | |
1078 | char* tmpPtr; int tmpSize; | |
1079 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
1080 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1081 | return NULL; | |
1082 | } | |
1083 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
1084 | return NULL; | |
1085 | _arg3 = new wxString(tmpPtr, tmpSize); | |
1086 | #else | |
1087 | if (!PyString_Check(_obj3)) { | |
1088 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1089 | return NULL; | |
1090 | } | |
1091 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
1092 | #endif | |
1093 | } | |
1094 | if (_obj4) | |
1095 | { | |
1096 | _arg4 = &temp; | |
1097 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1098 | return NULL; | |
1099 | } | |
1100 | if (_obj5) | |
1101 | { | |
1102 | _arg5 = &temp0; | |
1103 | if (! wxSize_helper(_obj5, &_arg5)) | |
1104 | return NULL; | |
1105 | } | |
1106 | if (_argo7) { | |
1107 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1108 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p."); | |
1110 | return NULL; | |
1111 | } | |
1112 | } | |
1113 | { | |
4268f798 | 1114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
1115 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
1116 | ||
4268f798 | 1117 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1118 | if (PyErr_Occurred()) return NULL; |
1119 | } _resultobj = Py_BuildValue("i",_result); | |
1120 | { | |
1121 | if (_obj3) | |
1122 | delete _arg3; | |
1123 | } | |
1124 | return _resultobj; | |
1125 | } | |
1126 | ||
8ab979d7 | 1127 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) |
efc5f224 | 1128 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1129 | PyObject * _resultobj; |
1130 | wxButton * _arg0; | |
1d99702e | 1131 | PyObject * _argo0 = 0; |
efc5f224 | 1132 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1133 | |
1134 | self = self; | |
efc5f224 | 1135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) |
8ab979d7 | 1136 | return NULL; |
1d99702e RD |
1137 | if (_argo0) { |
1138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
8ab979d7 RD |
1140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); |
1141 | return NULL; | |
1142 | } | |
1143 | } | |
cf694132 | 1144 | { |
4268f798 | 1145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1146 | wxButton_SetDefault(_arg0); |
1147 | ||
4268f798 | 1148 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1149 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1150 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1151 | _resultobj = Py_None; |
1152 | return _resultobj; | |
1153 | } | |
1154 | ||
9b3d3bc4 RD |
1155 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
1156 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1157 | PyObject * _resultobj; | |
1158 | wxButton * _arg0; | |
1159 | wxColour * _arg1; | |
1160 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
1161 | wxColour temp; |
1162 | PyObject * _obj1 = 0; | |
9b3d3bc4 RD |
1163 | char *_kwnames[] = { "self","colour", NULL }; |
1164 | ||
1165 | self = self; | |
f6bcfd97 | 1166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
9b3d3bc4 RD |
1167 | return NULL; |
1168 | if (_argo0) { | |
1169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
1172 | return NULL; | |
1173 | } | |
1174 | } | |
f6bcfd97 BP |
1175 | { |
1176 | _arg1 = &temp; | |
1177 | if (! wxColour_helper(_obj1, &_arg1)) | |
9b3d3bc4 | 1178 | return NULL; |
f6bcfd97 | 1179 | } |
9b3d3bc4 | 1180 | { |
4268f798 | 1181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
1182 | wxButton_SetBackgroundColour(_arg0,*_arg1); |
1183 | ||
4268f798 | 1184 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1185 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1186 | } Py_INCREF(Py_None); |
1187 | _resultobj = Py_None; | |
1188 | return _resultobj; | |
1189 | } | |
1190 | ||
1191 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
1192 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1193 | PyObject * _resultobj; | |
1194 | wxButton * _arg0; | |
1195 | wxColour * _arg1; | |
1196 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
1197 | wxColour temp; |
1198 | PyObject * _obj1 = 0; | |
9b3d3bc4 RD |
1199 | char *_kwnames[] = { "self","colour", NULL }; |
1200 | ||
1201 | self = self; | |
f6bcfd97 | 1202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9b3d3bc4 RD |
1203 | return NULL; |
1204 | if (_argo0) { | |
1205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
1208 | return NULL; | |
1209 | } | |
1210 | } | |
f6bcfd97 BP |
1211 | { |
1212 | _arg1 = &temp; | |
1213 | if (! wxColour_helper(_obj1, &_arg1)) | |
9b3d3bc4 | 1214 | return NULL; |
f6bcfd97 | 1215 | } |
9b3d3bc4 | 1216 | { |
4268f798 | 1217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
1218 | wxButton_SetForegroundColour(_arg0,*_arg1); |
1219 | ||
4268f798 | 1220 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1221 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1222 | } Py_INCREF(Py_None); |
1223 | _resultobj = Py_None; | |
1224 | return _resultobj; | |
1225 | } | |
1226 | ||
09f3d4e6 RD |
1227 | #define wxButton_SetImageLabel(_swigobj,_swigarg0) (_swigobj->SetImageLabel(_swigarg0)) |
1228 | static PyObject *_wrap_wxButton_SetImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1229 | PyObject * _resultobj; | |
1230 | wxButton * _arg0; | |
1231 | wxBitmap * _arg1; | |
1232 | PyObject * _argo0 = 0; | |
1233 | PyObject * _argo1 = 0; | |
1234 | char *_kwnames[] = { "self","bitmap", NULL }; | |
8ab979d7 | 1235 | |
09f3d4e6 RD |
1236 | self = self; |
1237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetImageLabel",_kwnames,&_argo0,&_argo1)) | |
1238 | return NULL; | |
1239 | if (_argo0) { | |
1240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetImageLabel. Expected _wxButton_p."); | |
1243 | return NULL; | |
1244 | } | |
1245 | } | |
1246 | if (_argo1) { | |
1247 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1248 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_SetImageLabel. Expected _wxBitmap_p."); | |
1250 | return NULL; | |
1251 | } | |
1252 | } | |
1253 | { | |
4268f798 | 1254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 | 1255 | wxButton_SetImageLabel(_arg0,*_arg1); |
8ab979d7 | 1256 | |
4268f798 | 1257 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1258 | if (PyErr_Occurred()) return NULL; |
1259 | } Py_INCREF(Py_None); | |
1260 | _resultobj = Py_None; | |
1261 | return _resultobj; | |
8ab979d7 RD |
1262 | } |
1263 | ||
09f3d4e6 RD |
1264 | #define wxButton_SetImageMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageMargins(_swigarg0,_swigarg1)) |
1265 | static PyObject *_wrap_wxButton_SetImageMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1266 | PyObject * _resultobj; | |
1267 | wxButton * _arg0; | |
1268 | wxCoord _arg1; | |
1269 | wxCoord _arg2; | |
1270 | PyObject * _argo0 = 0; | |
1271 | char *_kwnames[] = { "self","x","y", NULL }; | |
8ab979d7 | 1272 | |
09f3d4e6 RD |
1273 | self = self; |
1274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxButton_SetImageMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1275 | return NULL; | |
1276 | if (_argo0) { | |
1277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetImageMargins. Expected _wxButton_p."); | |
1280 | return NULL; | |
1281 | } | |
1282 | } | |
1283 | { | |
4268f798 | 1284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
1285 | wxButton_SetImageMargins(_arg0,_arg1,_arg2); |
1286 | ||
4268f798 | 1287 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1288 | if (PyErr_Occurred()) return NULL; |
1289 | } Py_INCREF(Py_None); | |
1290 | _resultobj = Py_None; | |
1291 | return _resultobj; | |
1292 | } | |
1293 | ||
1294 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1295 | PyObject * _resultobj; | |
1296 | wxSize * _result; | |
1297 | char *_kwnames[] = { NULL }; | |
1298 | char _ptemp[128]; | |
1299 | ||
1300 | self = self; | |
1301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1302 | return NULL; | |
1303 | { | |
4268f798 | 1304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
1305 | _result = new wxSize (wxButton::GetDefaultSize()); |
1306 | ||
4268f798 | 1307 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1308 | if (PyErr_Occurred()) return NULL; |
1309 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1310 | _resultobj = Py_BuildValue("s",_ptemp); | |
1311 | return _resultobj; | |
1312 | } | |
1313 | ||
1314 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1315 | wxBitmapButton *src; | |
1316 | wxButton *dest; | |
1317 | src = (wxBitmapButton *) ptr; | |
1318 | dest = (wxButton *) src; | |
1319 | return (void *) dest; | |
1320 | } | |
1321 | ||
1322 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1323 | wxBitmapButton *src; | |
1324 | wxControl *dest; | |
1325 | src = (wxBitmapButton *) ptr; | |
1326 | dest = (wxControl *) src; | |
1327 | return (void *) dest; | |
1328 | } | |
1329 | ||
1330 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1331 | wxBitmapButton *src; | |
1332 | wxWindow *dest; | |
1333 | src = (wxBitmapButton *) ptr; | |
1334 | dest = (wxWindow *) src; | |
1335 | return (void *) dest; | |
1336 | } | |
1337 | ||
1338 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1339 | wxBitmapButton *src; | |
1340 | wxEvtHandler *dest; | |
1341 | src = (wxBitmapButton *) ptr; | |
1342 | dest = (wxEvtHandler *) src; | |
1343 | return (void *) dest; | |
1344 | } | |
1345 | ||
1346 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1347 | wxBitmapButton *src; | |
1348 | wxObject *dest; | |
1349 | src = (wxBitmapButton *) ptr; | |
1350 | dest = (wxObject *) src; | |
9416aa89 RD |
1351 | return (void *) dest; |
1352 | } | |
1353 | ||
8ab979d7 | 1354 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 1355 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1356 | PyObject * _resultobj; |
1357 | wxBitmapButton * _result; | |
1358 | wxWindow * _arg0; | |
1359 | wxWindowID _arg1; | |
1360 | wxBitmap * _arg2; | |
e508a2b6 RD |
1361 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1362 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 1363 | long _arg5 = (long ) wxBU_AUTODRAW; |
e508a2b6 | 1364 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
1365 | char * _arg7 = (char *) "button"; |
1366 | PyObject * _argo0 = 0; | |
1367 | PyObject * _argo2 = 0; | |
2f90df85 RD |
1368 | wxPoint temp; |
1369 | PyObject * _obj3 = 0; | |
1370 | wxSize temp0; | |
1371 | PyObject * _obj4 = 0; | |
1d99702e | 1372 | PyObject * _argo6 = 0; |
efc5f224 | 1373 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
1374 | char _ptemp[128]; |
1375 | ||
1376 | self = self; | |
2f90df85 | 1377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 1378 | return NULL; |
1d99702e RD |
1379 | if (_argo0) { |
1380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); |
1383 | return NULL; | |
1384 | } | |
1385 | } | |
1d99702e RD |
1386 | if (_argo2) { |
1387 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1388 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8ab979d7 RD |
1389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); |
1390 | return NULL; | |
1391 | } | |
1392 | } | |
2f90df85 RD |
1393 | if (_obj3) |
1394 | { | |
1395 | _arg3 = &temp; | |
1396 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 1397 | return NULL; |
2f90df85 RD |
1398 | } |
1399 | if (_obj4) | |
1400 | { | |
1401 | _arg4 = &temp0; | |
1402 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 1403 | return NULL; |
2f90df85 | 1404 | } |
1d99702e RD |
1405 | if (_argo6) { |
1406 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1407 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
1408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); |
1409 | return NULL; | |
1410 | } | |
1411 | } | |
cf694132 | 1412 | { |
4268f798 | 1413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1414 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
1415 | ||
4268f798 | 1416 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1417 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1418 | } if (_result) { |
1419 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1420 | _resultobj = Py_BuildValue("s",_ptemp); | |
1421 | } else { | |
1422 | Py_INCREF(Py_None); | |
1423 | _resultobj = Py_None; | |
1424 | } | |
8ab979d7 RD |
1425 | return _resultobj; |
1426 | } | |
1427 | ||
09f3d4e6 RD |
1428 | #define new_wxPreBitmapButton() (new wxBitmapButton()) |
1429 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1430 | PyObject * _resultobj; | |
1431 | wxBitmapButton * _result; | |
1432 | char *_kwnames[] = { NULL }; | |
1433 | char _ptemp[128]; | |
1434 | ||
1435 | self = self; | |
1436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1437 | return NULL; | |
1438 | { | |
4268f798 | 1439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
1440 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); |
1441 | ||
4268f798 | 1442 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1443 | if (PyErr_Occurred()) return NULL; |
1444 | } if (_result) { | |
1445 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1446 | _resultobj = Py_BuildValue("s",_ptemp); | |
1447 | } else { | |
1448 | Py_INCREF(Py_None); | |
1449 | _resultobj = Py_None; | |
1450 | } | |
1451 | return _resultobj; | |
1452 | } | |
1453 | ||
1454 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1455 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1456 | PyObject * _resultobj; | |
1457 | bool _result; | |
1458 | wxBitmapButton * _arg0; | |
1459 | wxWindow * _arg1; | |
1460 | wxWindowID _arg2; | |
1461 | wxBitmap * _arg3; | |
1462 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1463 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1464 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1465 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1466 | char * _arg8 = (char *) "button"; | |
1467 | PyObject * _argo0 = 0; | |
1468 | PyObject * _argo1 = 0; | |
1469 | PyObject * _argo3 = 0; | |
1470 | wxPoint temp; | |
1471 | PyObject * _obj4 = 0; | |
1472 | wxSize temp0; | |
1473 | PyObject * _obj5 = 0; | |
1474 | PyObject * _argo7 = 0; | |
1475 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1476 | ||
1477 | self = self; | |
1478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1479 | return NULL; | |
1480 | if (_argo0) { | |
1481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1484 | return NULL; | |
1485 | } | |
1486 | } | |
1487 | if (_argo1) { | |
1488 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1489 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1491 | return NULL; | |
1492 | } | |
1493 | } | |
1494 | if (_argo3) { | |
1495 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1496 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1498 | return NULL; | |
1499 | } | |
1500 | } | |
1501 | if (_obj4) | |
1502 | { | |
1503 | _arg4 = &temp; | |
1504 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1505 | return NULL; | |
1506 | } | |
1507 | if (_obj5) | |
1508 | { | |
1509 | _arg5 = &temp0; | |
1510 | if (! wxSize_helper(_obj5, &_arg5)) | |
1511 | return NULL; | |
1512 | } | |
1513 | if (_argo7) { | |
1514 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1515 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1517 | return NULL; | |
1518 | } | |
1519 | } | |
1520 | { | |
4268f798 | 1521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
1522 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
1523 | ||
4268f798 | 1524 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1525 | if (PyErr_Occurred()) return NULL; |
1526 | } _resultobj = Py_BuildValue("i",_result); | |
1527 | return _resultobj; | |
1528 | } | |
1529 | ||
8ab979d7 | 1530 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) |
efc5f224 | 1531 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1532 | PyObject * _resultobj; |
1533 | wxBitmap * _result; | |
1534 | wxBitmapButton * _arg0; | |
1d99702e | 1535 | PyObject * _argo0 = 0; |
efc5f224 | 1536 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1537 | char _ptemp[128]; |
1538 | ||
1539 | self = self; | |
efc5f224 | 1540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) |
8ab979d7 | 1541 | return NULL; |
1d99702e RD |
1542 | if (_argo0) { |
1543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); |
1546 | return NULL; | |
1547 | } | |
1548 | } | |
cf694132 | 1549 | { |
4268f798 | 1550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 1551 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); |
cf694132 | 1552 | |
4268f798 | 1553 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1554 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1555 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1556 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1557 | return _resultobj; |
1558 | } | |
1559 | ||
1560 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) | |
efc5f224 | 1561 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1562 | PyObject * _resultobj; |
1563 | wxBitmap * _result; | |
1564 | wxBitmapButton * _arg0; | |
1d99702e | 1565 | PyObject * _argo0 = 0; |
efc5f224 | 1566 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1567 | char _ptemp[128]; |
1568 | ||
1569 | self = self; | |
efc5f224 | 1570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) |
8ab979d7 | 1571 | return NULL; |
1d99702e RD |
1572 | if (_argo0) { |
1573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); |
1576 | return NULL; | |
1577 | } | |
1578 | } | |
cf694132 | 1579 | { |
4268f798 | 1580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 1581 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); |
cf694132 | 1582 | |
4268f798 | 1583 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1584 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1585 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1586 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1587 | return _resultobj; |
1588 | } | |
1589 | ||
1590 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
efc5f224 | 1591 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1592 | PyObject * _resultobj; |
1593 | wxBitmap * _result; | |
1594 | wxBitmapButton * _arg0; | |
1d99702e | 1595 | PyObject * _argo0 = 0; |
efc5f224 | 1596 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1597 | char _ptemp[128]; |
1598 | ||
1599 | self = self; | |
efc5f224 | 1600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) |
8ab979d7 | 1601 | return NULL; |
1d99702e RD |
1602 | if (_argo0) { |
1603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); |
1606 | return NULL; | |
1607 | } | |
1608 | } | |
cf694132 | 1609 | { |
4268f798 | 1610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 1611 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); |
cf694132 | 1612 | |
4268f798 | 1613 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1614 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1615 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1616 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1617 | return _resultobj; |
1618 | } | |
1619 | ||
1620 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
efc5f224 | 1621 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1622 | PyObject * _resultobj; |
1623 | wxBitmap * _result; | |
1624 | wxBitmapButton * _arg0; | |
1d99702e | 1625 | PyObject * _argo0 = 0; |
efc5f224 | 1626 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1627 | char _ptemp[128]; |
1628 | ||
1629 | self = self; | |
efc5f224 | 1630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) |
8ab979d7 | 1631 | return NULL; |
1d99702e RD |
1632 | if (_argo0) { |
1633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); |
1636 | return NULL; | |
1637 | } | |
1638 | } | |
cf694132 | 1639 | { |
4268f798 | 1640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 1641 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); |
cf694132 | 1642 | |
4268f798 | 1643 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1644 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1645 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1646 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1647 | return _resultobj; |
1648 | } | |
1649 | ||
1650 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
efc5f224 | 1651 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1652 | PyObject * _resultobj; |
1653 | wxBitmapButton * _arg0; | |
1654 | wxBitmap * _arg1; | |
1d99702e RD |
1655 | PyObject * _argo0 = 0; |
1656 | PyObject * _argo1 = 0; | |
efc5f224 | 1657 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1658 | |
1659 | self = self; | |
efc5f224 | 1660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1661 | return NULL; |
1d99702e RD |
1662 | if (_argo0) { |
1663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); |
1666 | return NULL; | |
1667 | } | |
1668 | } | |
1d99702e RD |
1669 | if (_argo1) { |
1670 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1671 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); |
1673 | return NULL; | |
1674 | } | |
1675 | } | |
cf694132 | 1676 | { |
4268f798 | 1677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1678 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); |
1679 | ||
4268f798 | 1680 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1681 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1682 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1683 | _resultobj = Py_None; |
1684 | return _resultobj; | |
1685 | } | |
1686 | ||
1687 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
efc5f224 | 1688 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1689 | PyObject * _resultobj; |
1690 | wxBitmapButton * _arg0; | |
1691 | wxBitmap * _arg1; | |
1d99702e RD |
1692 | PyObject * _argo0 = 0; |
1693 | PyObject * _argo1 = 0; | |
efc5f224 | 1694 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1695 | |
1696 | self = self; | |
efc5f224 | 1697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1698 | return NULL; |
1d99702e RD |
1699 | if (_argo0) { |
1700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); |
1703 | return NULL; | |
1704 | } | |
1705 | } | |
1d99702e RD |
1706 | if (_argo1) { |
1707 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1708 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); |
1710 | return NULL; | |
1711 | } | |
1712 | } | |
cf694132 | 1713 | { |
4268f798 | 1714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1715 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); |
1716 | ||
4268f798 | 1717 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1718 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1719 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1720 | _resultobj = Py_None; |
1721 | return _resultobj; | |
1722 | } | |
1723 | ||
1724 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
efc5f224 | 1725 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1726 | PyObject * _resultobj; |
1727 | wxBitmapButton * _arg0; | |
1728 | wxBitmap * _arg1; | |
1d99702e RD |
1729 | PyObject * _argo0 = 0; |
1730 | PyObject * _argo1 = 0; | |
efc5f224 | 1731 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1732 | |
1733 | self = self; | |
efc5f224 | 1734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1735 | return NULL; |
1d99702e RD |
1736 | if (_argo0) { |
1737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); |
1740 | return NULL; | |
1741 | } | |
1742 | } | |
1d99702e RD |
1743 | if (_argo1) { |
1744 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1745 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); |
1747 | return NULL; | |
1748 | } | |
1749 | } | |
cf694132 | 1750 | { |
4268f798 | 1751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1752 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); |
1753 | ||
4268f798 | 1754 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1755 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1756 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1757 | _resultobj = Py_None; |
1758 | return _resultobj; | |
1759 | } | |
1760 | ||
1761 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) | |
efc5f224 | 1762 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1763 | PyObject * _resultobj; |
1764 | wxBitmapButton * _arg0; | |
1765 | wxBitmap * _arg1; | |
1d99702e RD |
1766 | PyObject * _argo0 = 0; |
1767 | PyObject * _argo1 = 0; | |
efc5f224 | 1768 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1769 | |
1770 | self = self; | |
efc5f224 | 1771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1772 | return NULL; |
1d99702e RD |
1773 | if (_argo0) { |
1774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); |
1777 | return NULL; | |
1778 | } | |
1779 | } | |
1d99702e RD |
1780 | if (_argo1) { |
1781 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1782 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); |
1784 | return NULL; | |
1785 | } | |
1786 | } | |
cf694132 | 1787 | { |
4268f798 | 1788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1789 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); |
1790 | ||
4268f798 | 1791 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1792 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1793 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1794 | _resultobj = Py_None; |
1795 | return _resultobj; | |
1796 | } | |
1797 | ||
f6bcfd97 BP |
1798 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
1799 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1800 | PyObject * _resultobj; | |
1801 | wxBitmapButton * _arg0; | |
1802 | int _arg1; | |
1803 | int _arg2; | |
1804 | PyObject * _argo0 = 0; | |
1805 | char *_kwnames[] = { "self","x","y", NULL }; | |
1806 | ||
1807 | self = self; | |
1808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1809 | return NULL; | |
1810 | if (_argo0) { | |
1811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1814 | return NULL; | |
1815 | } | |
1816 | } | |
1817 | { | |
4268f798 | 1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1819 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); |
1820 | ||
4268f798 | 1821 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1822 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1823 | } Py_INCREF(Py_None); |
1824 | _resultobj = Py_None; | |
1825 | return _resultobj; | |
1826 | } | |
1827 | ||
1828 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1829 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1830 | PyObject * _resultobj; | |
1831 | int _result; | |
1832 | wxBitmapButton * _arg0; | |
1833 | PyObject * _argo0 = 0; | |
1834 | char *_kwnames[] = { "self", NULL }; | |
1835 | ||
1836 | self = self; | |
1837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1838 | return NULL; | |
1839 | if (_argo0) { | |
1840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1843 | return NULL; | |
1844 | } | |
1845 | } | |
1846 | { | |
4268f798 | 1847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1848 | _result = (int )wxBitmapButton_GetMarginX(_arg0); |
1849 | ||
4268f798 | 1850 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1851 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1852 | } _resultobj = Py_BuildValue("i",_result); |
1853 | return _resultobj; | |
1854 | } | |
1855 | ||
1856 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1857 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1858 | PyObject * _resultobj; | |
1859 | int _result; | |
1860 | wxBitmapButton * _arg0; | |
1861 | PyObject * _argo0 = 0; | |
1862 | char *_kwnames[] = { "self", NULL }; | |
1863 | ||
1864 | self = self; | |
1865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1866 | return NULL; | |
1867 | if (_argo0) { | |
1868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1871 | return NULL; | |
1872 | } | |
1873 | } | |
1874 | { | |
4268f798 | 1875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1876 | _result = (int )wxBitmapButton_GetMarginY(_arg0); |
1877 | ||
4268f798 | 1878 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1879 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1880 | } _resultobj = Py_BuildValue("i",_result); |
1881 | return _resultobj; | |
1882 | } | |
1883 | ||
8ab979d7 RD |
1884 | static void *SwigwxCheckBoxTowxControl(void *ptr) { |
1885 | wxCheckBox *src; | |
1886 | wxControl *dest; | |
1887 | src = (wxCheckBox *) ptr; | |
1888 | dest = (wxControl *) src; | |
1889 | return (void *) dest; | |
1890 | } | |
1891 | ||
1892 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1893 | wxCheckBox *src; | |
1894 | wxWindow *dest; | |
1895 | src = (wxCheckBox *) ptr; | |
1896 | dest = (wxWindow *) src; | |
1897 | return (void *) dest; | |
1898 | } | |
1899 | ||
1900 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1901 | wxCheckBox *src; | |
1902 | wxEvtHandler *dest; | |
1903 | src = (wxCheckBox *) ptr; | |
1904 | dest = (wxEvtHandler *) src; | |
1905 | return (void *) dest; | |
1906 | } | |
1907 | ||
9416aa89 RD |
1908 | static void *SwigwxCheckBoxTowxObject(void *ptr) { |
1909 | wxCheckBox *src; | |
1910 | wxObject *dest; | |
1911 | src = (wxCheckBox *) ptr; | |
1912 | dest = (wxObject *) src; | |
1913 | return (void *) dest; | |
1914 | } | |
1915 | ||
8ab979d7 | 1916 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 1917 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1918 | PyObject * _resultobj; |
1919 | wxCheckBox * _result; | |
1920 | wxWindow * _arg0; | |
1921 | wxWindowID _arg1; | |
1922 | wxString * _arg2; | |
e508a2b6 RD |
1923 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1924 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 1925 | long _arg5 = (long ) 0; |
e508a2b6 | 1926 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
1927 | char * _arg7 = (char *) "checkBox"; |
1928 | PyObject * _argo0 = 0; | |
8ab979d7 | 1929 | PyObject * _obj2 = 0; |
2f90df85 RD |
1930 | wxPoint temp; |
1931 | PyObject * _obj3 = 0; | |
1932 | wxSize temp0; | |
1933 | PyObject * _obj4 = 0; | |
1d99702e | 1934 | PyObject * _argo6 = 0; |
efc5f224 | 1935 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; |
8ab979d7 RD |
1936 | char _ptemp[128]; |
1937 | ||
1938 | self = self; | |
2f90df85 | 1939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 1940 | return NULL; |
1d99702e RD |
1941 | if (_argo0) { |
1942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); |
1945 | return NULL; | |
1946 | } | |
1947 | } | |
1948 | { | |
185d7c3e RD |
1949 | #if PYTHON_API_VERSION >= 1009 |
1950 | char* tmpPtr; int tmpSize; | |
1951 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 1952 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1953 | return NULL; |
1954 | } | |
1955 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1956 | return NULL; | |
1957 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1958 | #else | |
8ab979d7 RD |
1959 | if (!PyString_Check(_obj2)) { |
1960 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1961 | return NULL; | |
1962 | } | |
185d7c3e RD |
1963 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1964 | #endif | |
8ab979d7 | 1965 | } |
2f90df85 RD |
1966 | if (_obj3) |
1967 | { | |
1968 | _arg3 = &temp; | |
1969 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 1970 | return NULL; |
2f90df85 RD |
1971 | } |
1972 | if (_obj4) | |
1973 | { | |
1974 | _arg4 = &temp0; | |
1975 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 1976 | return NULL; |
2f90df85 | 1977 | } |
1d99702e RD |
1978 | if (_argo6) { |
1979 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1980 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
1981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); |
1982 | return NULL; | |
1983 | } | |
1984 | } | |
cf694132 | 1985 | { |
4268f798 | 1986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1987 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
1988 | ||
4268f798 | 1989 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1990 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1991 | } if (_result) { |
1992 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1993 | _resultobj = Py_BuildValue("s",_ptemp); | |
1994 | } else { | |
1995 | Py_INCREF(Py_None); | |
1996 | _resultobj = Py_None; | |
1997 | } | |
8ab979d7 RD |
1998 | { |
1999 | if (_obj2) | |
2000 | delete _arg2; | |
2001 | } | |
2002 | return _resultobj; | |
2003 | } | |
2004 | ||
09f3d4e6 RD |
2005 | #define new_wxPreCheckBox() (new wxCheckBox()) |
2006 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2007 | PyObject * _resultobj; | |
2008 | wxCheckBox * _result; | |
2009 | char *_kwnames[] = { NULL }; | |
2010 | char _ptemp[128]; | |
2011 | ||
2012 | self = self; | |
2013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
2014 | return NULL; | |
2015 | { | |
4268f798 | 2016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
2017 | _result = (wxCheckBox *)new_wxPreCheckBox(); |
2018 | ||
4268f798 | 2019 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2020 | if (PyErr_Occurred()) return NULL; |
2021 | } if (_result) { | |
2022 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
2023 | _resultobj = Py_BuildValue("s",_ptemp); | |
2024 | } else { | |
2025 | Py_INCREF(Py_None); | |
2026 | _resultobj = Py_None; | |
2027 | } | |
2028 | return _resultobj; | |
2029 | } | |
2030 | ||
2031 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
2032 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2033 | PyObject * _resultobj; | |
2034 | bool _result; | |
2035 | wxCheckBox * _arg0; | |
2036 | wxWindow * _arg1; | |
2037 | wxWindowID _arg2; | |
2038 | wxString * _arg3; | |
2039 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2040 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2041 | long _arg6 = (long ) 0; | |
2042 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2043 | char * _arg8 = (char *) "checkBox"; | |
2044 | PyObject * _argo0 = 0; | |
2045 | PyObject * _argo1 = 0; | |
2046 | PyObject * _obj3 = 0; | |
2047 | wxPoint temp; | |
2048 | PyObject * _obj4 = 0; | |
2049 | wxSize temp0; | |
2050 | PyObject * _obj5 = 0; | |
2051 | PyObject * _argo7 = 0; | |
2052 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; | |
2053 | ||
2054 | self = self; | |
2055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
2056 | return NULL; | |
2057 | if (_argo0) { | |
2058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
2061 | return NULL; | |
2062 | } | |
2063 | } | |
2064 | if (_argo1) { | |
2065 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2066 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2068 | return NULL; | |
2069 | } | |
2070 | } | |
2071 | { | |
2072 | #if PYTHON_API_VERSION >= 1009 | |
2073 | char* tmpPtr; int tmpSize; | |
2074 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
2075 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2076 | return NULL; | |
2077 | } | |
2078 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2079 | return NULL; | |
2080 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2081 | #else | |
2082 | if (!PyString_Check(_obj3)) { | |
2083 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2084 | return NULL; | |
2085 | } | |
2086 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
2087 | #endif | |
2088 | } | |
2089 | if (_obj4) | |
2090 | { | |
2091 | _arg4 = &temp; | |
2092 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2093 | return NULL; | |
2094 | } | |
2095 | if (_obj5) | |
2096 | { | |
2097 | _arg5 = &temp0; | |
2098 | if (! wxSize_helper(_obj5, &_arg5)) | |
2099 | return NULL; | |
2100 | } | |
2101 | if (_argo7) { | |
2102 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2103 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
2105 | return NULL; | |
2106 | } | |
2107 | } | |
2108 | { | |
4268f798 | 2109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
2110 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
2111 | ||
4268f798 | 2112 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2113 | if (PyErr_Occurred()) return NULL; |
2114 | } _resultobj = Py_BuildValue("i",_result); | |
2115 | { | |
2116 | if (_obj3) | |
2117 | delete _arg3; | |
2118 | } | |
2119 | return _resultobj; | |
2120 | } | |
2121 | ||
8ab979d7 | 2122 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) |
efc5f224 | 2123 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2124 | PyObject * _resultobj; |
2125 | bool _result; | |
2126 | wxCheckBox * _arg0; | |
1d99702e | 2127 | PyObject * _argo0 = 0; |
efc5f224 | 2128 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2129 | |
2130 | self = self; | |
efc5f224 | 2131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 2132 | return NULL; |
1d99702e RD |
2133 | if (_argo0) { |
2134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
8ab979d7 RD |
2136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); |
2137 | return NULL; | |
2138 | } | |
2139 | } | |
cf694132 | 2140 | { |
4268f798 | 2141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2142 | _result = (bool )wxCheckBox_GetValue(_arg0); |
2143 | ||
4268f798 | 2144 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2145 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2146 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2147 | return _resultobj; |
2148 | } | |
2149 | ||
2150 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 2151 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2152 | PyObject * _resultobj; |
2153 | wxCheckBox * _arg0; | |
2154 | bool _arg1; | |
1d99702e | 2155 | PyObject * _argo0 = 0; |
8ab979d7 | 2156 | int tempbool1; |
efc5f224 | 2157 | char *_kwnames[] = { "self","state", NULL }; |
8ab979d7 RD |
2158 | |
2159 | self = self; | |
efc5f224 | 2160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2161 | return NULL; |
1d99702e RD |
2162 | if (_argo0) { |
2163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
8ab979d7 RD |
2165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); |
2166 | return NULL; | |
2167 | } | |
2168 | } | |
2169 | _arg1 = (bool ) tempbool1; | |
cf694132 | 2170 | { |
4268f798 | 2171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2172 | wxCheckBox_SetValue(_arg0,_arg1); |
2173 | ||
4268f798 | 2174 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2175 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2176 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2177 | _resultobj = Py_None; |
2178 | return _resultobj; | |
2179 | } | |
2180 | ||
900d9886 RD |
2181 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { |
2182 | wxChoice *src; | |
2183 | wxControlWithItems *dest; | |
2184 | src = (wxChoice *) ptr; | |
2185 | dest = (wxControlWithItems *) src; | |
2186 | return (void *) dest; | |
2187 | } | |
2188 | ||
8ab979d7 RD |
2189 | static void *SwigwxChoiceTowxControl(void *ptr) { |
2190 | wxChoice *src; | |
2191 | wxControl *dest; | |
2192 | src = (wxChoice *) ptr; | |
2193 | dest = (wxControl *) src; | |
2194 | return (void *) dest; | |
2195 | } | |
2196 | ||
2197 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2198 | wxChoice *src; | |
2199 | wxWindow *dest; | |
2200 | src = (wxChoice *) ptr; | |
2201 | dest = (wxWindow *) src; | |
2202 | return (void *) dest; | |
2203 | } | |
2204 | ||
2205 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2206 | wxChoice *src; | |
2207 | wxEvtHandler *dest; | |
2208 | src = (wxChoice *) ptr; | |
2209 | dest = (wxEvtHandler *) src; | |
2210 | return (void *) dest; | |
2211 | } | |
2212 | ||
9416aa89 RD |
2213 | static void *SwigwxChoiceTowxObject(void *ptr) { |
2214 | wxChoice *src; | |
2215 | wxObject *dest; | |
2216 | src = (wxChoice *) ptr; | |
2217 | dest = (wxObject *) src; | |
2218 | return (void *) dest; | |
2219 | } | |
2220 | ||
8ab979d7 | 2221 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
efc5f224 | 2222 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2223 | PyObject * _resultobj; |
2224 | wxChoice * _result; | |
2225 | wxWindow * _arg0; | |
2226 | wxWindowID _arg1; | |
e508a2b6 RD |
2227 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2228 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
2229 | int _arg4 = (int ) 0; |
2230 | wxString * _arg5 = (wxString *) NULL; | |
2231 | long _arg6 = (long ) 0; | |
e508a2b6 | 2232 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2233 | char * _arg8 = (char *) "choice"; |
2234 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2235 | wxPoint temp; |
2236 | PyObject * _obj2 = 0; | |
2237 | wxSize temp0; | |
2238 | PyObject * _obj3 = 0; | |
8ab979d7 | 2239 | PyObject * _obj5 = 0; |
1d99702e | 2240 | PyObject * _argo7 = 0; |
eec92d76 | 2241 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
2242 | char _ptemp[128]; |
2243 | ||
2244 | self = self; | |
2f90df85 | 2245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
8ab979d7 | 2246 | return NULL; |
1d99702e RD |
2247 | if (_argo0) { |
2248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); |
2251 | return NULL; | |
2252 | } | |
2253 | } | |
2f90df85 RD |
2254 | if (_obj2) |
2255 | { | |
2256 | _arg2 = &temp; | |
2257 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2258 | return NULL; |
2f90df85 RD |
2259 | } |
2260 | if (_obj3) | |
2261 | { | |
2262 | _arg3 = &temp0; | |
2263 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2264 | return NULL; |
2f90df85 | 2265 | } |
8ab979d7 RD |
2266 | if (_obj5) |
2267 | { | |
2268 | _arg5 = wxString_LIST_helper(_obj5); | |
2269 | if (_arg5 == NULL) { | |
2270 | return NULL; | |
2271 | } | |
2272 | } | |
1d99702e RD |
2273 | if (_argo7) { |
2274 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2275 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
8ab979d7 RD |
2276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); |
2277 | return NULL; | |
2278 | } | |
2279 | } | |
2280 | { | |
cf694132 RD |
2281 | if (_obj5) { |
2282 | _arg4 = PyList_Size(_obj5); | |
2283 | } | |
2284 | else { | |
2285 | _arg4 = 0; | |
2286 | } | |
8ab979d7 | 2287 | } |
cf694132 | 2288 | { |
4268f798 | 2289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2290 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
2291 | ||
4268f798 | 2292 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2293 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2294 | } if (_result) { |
2295 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2296 | _resultobj = Py_BuildValue("s",_ptemp); | |
2297 | } else { | |
2298 | Py_INCREF(Py_None); | |
2299 | _resultobj = Py_None; | |
2300 | } | |
8ab979d7 RD |
2301 | { |
2302 | delete [] _arg5; | |
2303 | } | |
2304 | return _resultobj; | |
2305 | } | |
2306 | ||
09f3d4e6 RD |
2307 | #define new_wxPreChoice() (new wxChoice()) |
2308 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2309 | PyObject * _resultobj; |
09f3d4e6 RD |
2310 | wxChoice * _result; |
2311 | char *_kwnames[] = { NULL }; | |
2312 | char _ptemp[128]; | |
8ab979d7 RD |
2313 | |
2314 | self = self; | |
09f3d4e6 RD |
2315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) |
2316 | return NULL; | |
2317 | { | |
4268f798 | 2318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
2319 | _result = (wxChoice *)new_wxPreChoice(); |
2320 | ||
4268f798 | 2321 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2322 | if (PyErr_Occurred()) return NULL; |
2323 | } if (_result) { | |
2324 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2325 | _resultobj = Py_BuildValue("s",_ptemp); | |
2326 | } else { | |
2327 | Py_INCREF(Py_None); | |
2328 | _resultobj = Py_None; | |
2329 | } | |
2330 | return _resultobj; | |
2331 | } | |
2332 | ||
2333 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2334 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2335 | PyObject * _resultobj; | |
2336 | bool _result; | |
2337 | wxChoice * _arg0; | |
2338 | wxWindow * _arg1; | |
2339 | wxWindowID _arg2; | |
2340 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2341 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2342 | int _arg5 = (int ) 0; | |
2343 | wxString * _arg6 = (wxString *) NULL; | |
2344 | long _arg7 = (long ) 0; | |
2345 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2346 | char * _arg9 = (char *) "choice"; | |
2347 | PyObject * _argo0 = 0; | |
2348 | PyObject * _argo1 = 0; | |
2349 | wxPoint temp; | |
2350 | PyObject * _obj3 = 0; | |
2351 | wxSize temp0; | |
2352 | PyObject * _obj4 = 0; | |
2353 | PyObject * _obj6 = 0; | |
2354 | PyObject * _argo8 = 0; | |
2355 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
2356 | ||
2357 | self = self; | |
2358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
2359 | return NULL; | |
2360 | if (_argo0) { | |
2361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2364 | return NULL; | |
2365 | } | |
2366 | } | |
2367 | if (_argo1) { | |
2368 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2369 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2371 | return NULL; | |
2372 | } | |
2373 | } | |
2374 | if (_obj3) | |
2375 | { | |
2376 | _arg3 = &temp; | |
2377 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2378 | return NULL; | |
2379 | } | |
2380 | if (_obj4) | |
2381 | { | |
2382 | _arg4 = &temp0; | |
2383 | if (! wxSize_helper(_obj4, &_arg4)) | |
2384 | return NULL; | |
2385 | } | |
2386 | if (_obj6) | |
2387 | { | |
2388 | _arg6 = wxString_LIST_helper(_obj6); | |
2389 | if (_arg6 == NULL) { | |
2390 | return NULL; | |
2391 | } | |
2392 | } | |
2393 | if (_argo8) { | |
2394 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2395 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2397 | return NULL; | |
2398 | } | |
2399 | } | |
900d9886 RD |
2400 | { |
2401 | if (_obj6) { | |
2402 | _arg5 = PyList_Size(_obj6); | |
2403 | } | |
2404 | else { | |
2405 | _arg5 = 0; | |
8ab979d7 | 2406 | } |
900d9886 | 2407 | } |
8ab979d7 | 2408 | { |
4268f798 | 2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 | 2410 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
cf694132 | 2411 | |
4268f798 | 2412 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2413 | if (PyErr_Occurred()) return NULL; |
900d9886 | 2414 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 2415 | { |
900d9886 | 2416 | delete [] _arg6; |
8ab979d7 RD |
2417 | } |
2418 | return _resultobj; | |
2419 | } | |
2420 | ||
900d9886 RD |
2421 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) |
2422 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2423 | PyObject * _resultobj; |
8ab979d7 | 2424 | wxChoice * _arg0; |
1d99702e | 2425 | PyObject * _argo0 = 0; |
efc5f224 | 2426 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2427 | |
2428 | self = self; | |
900d9886 | 2429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) |
8ab979d7 | 2430 | return NULL; |
1d99702e RD |
2431 | if (_argo0) { |
2432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
900d9886 | 2434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); |
8ab979d7 RD |
2435 | return NULL; |
2436 | } | |
2437 | } | |
8ab979d7 | 2438 | { |
4268f798 | 2439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 | 2440 | wxChoice_Clear(_arg0); |
cf694132 | 2441 | |
4268f798 | 2442 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2443 | if (PyErr_Occurred()) return NULL; |
900d9886 RD |
2444 | } Py_INCREF(Py_None); |
2445 | _resultobj = Py_None; | |
8ab979d7 RD |
2446 | return _resultobj; |
2447 | } | |
2448 | ||
900d9886 RD |
2449 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) |
2450 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2451 | PyObject * _resultobj; |
2452 | int _result; | |
2453 | wxChoice * _arg0; | |
1d99702e | 2454 | PyObject * _argo0 = 0; |
efc5f224 | 2455 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2456 | |
2457 | self = self; | |
900d9886 | 2458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) |
8ab979d7 | 2459 | return NULL; |
1d99702e RD |
2460 | if (_argo0) { |
2461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
900d9886 | 2463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); |
8ab979d7 RD |
2464 | return NULL; |
2465 | } | |
2466 | } | |
cf694132 | 2467 | { |
4268f798 | 2468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 | 2469 | _result = (int )wxChoice_GetColumns(_arg0); |
cf694132 | 2470 | |
4268f798 | 2471 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2472 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2473 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2474 | return _resultobj; |
2475 | } | |
2476 | ||
2477 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
efc5f224 | 2478 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2479 | PyObject * _resultobj; |
2480 | wxChoice * _arg0; | |
1d99702e RD |
2481 | int _arg1 = (int ) 1; |
2482 | PyObject * _argo0 = 0; | |
efc5f224 | 2483 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
2484 | |
2485 | self = self; | |
efc5f224 | 2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2487 | return NULL; |
1d99702e RD |
2488 | if (_argo0) { |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); |
2492 | return NULL; | |
2493 | } | |
2494 | } | |
cf694132 | 2495 | { |
4268f798 | 2496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2497 | wxChoice_SetColumns(_arg0,_arg1); |
2498 | ||
4268f798 | 2499 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2500 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2501 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2502 | _resultobj = Py_None; |
2503 | return _resultobj; | |
2504 | } | |
2505 | ||
2506 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 2507 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2508 | PyObject * _resultobj; |
2509 | wxChoice * _arg0; | |
2510 | int _arg1; | |
1d99702e | 2511 | PyObject * _argo0 = 0; |
efc5f224 | 2512 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
2513 | |
2514 | self = self; | |
efc5f224 | 2515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2516 | return NULL; |
1d99702e RD |
2517 | if (_argo0) { |
2518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
2520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); |
2521 | return NULL; | |
2522 | } | |
2523 | } | |
cf694132 | 2524 | { |
4268f798 | 2525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2526 | wxChoice_SetSelection(_arg0,_arg1); |
2527 | ||
4268f798 | 2528 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2529 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2530 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2531 | _resultobj = Py_None; |
2532 | return _resultobj; | |
2533 | } | |
2534 | ||
2535 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
efc5f224 | 2536 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2537 | PyObject * _resultobj; |
2538 | wxChoice * _arg0; | |
2539 | wxString * _arg1; | |
1d99702e | 2540 | PyObject * _argo0 = 0; |
8ab979d7 | 2541 | PyObject * _obj1 = 0; |
efc5f224 | 2542 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2543 | |
2544 | self = self; | |
efc5f224 | 2545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2546 | return NULL; |
1d99702e RD |
2547 | if (_argo0) { |
2548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
2550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); |
2551 | return NULL; | |
2552 | } | |
2553 | } | |
2554 | { | |
185d7c3e RD |
2555 | #if PYTHON_API_VERSION >= 1009 |
2556 | char* tmpPtr; int tmpSize; | |
2557 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2558 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2559 | return NULL; |
2560 | } | |
2561 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2562 | return NULL; | |
2563 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2564 | #else | |
8ab979d7 RD |
2565 | if (!PyString_Check(_obj1)) { |
2566 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2567 | return NULL; | |
2568 | } | |
185d7c3e RD |
2569 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2570 | #endif | |
8ab979d7 | 2571 | } |
cf694132 | 2572 | { |
4268f798 | 2573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2574 | wxChoice_SetStringSelection(_arg0,*_arg1); |
2575 | ||
4268f798 | 2576 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2577 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2578 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2579 | _resultobj = Py_None; |
2580 | { | |
2581 | if (_obj1) | |
2582 | delete _arg1; | |
2583 | } | |
2584 | return _resultobj; | |
2585 | } | |
2586 | ||
0adbc166 RD |
2587 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
2588 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2589 | PyObject * _resultobj; | |
2590 | wxChoice * _arg0; | |
2591 | int _arg1; | |
2592 | wxString * _arg2; | |
2593 | PyObject * _argo0 = 0; | |
2594 | PyObject * _obj2 = 0; | |
2595 | char *_kwnames[] = { "self","n","s", NULL }; | |
2596 | ||
2597 | self = self; | |
2598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2599 | return NULL; | |
2600 | if (_argo0) { | |
2601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2604 | return NULL; | |
2605 | } | |
2606 | } | |
2607 | { | |
2608 | #if PYTHON_API_VERSION >= 1009 | |
2609 | char* tmpPtr; int tmpSize; | |
2610 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2611 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2612 | return NULL; | |
2613 | } | |
2614 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2615 | return NULL; | |
2616 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2617 | #else | |
2618 | if (!PyString_Check(_obj2)) { | |
2619 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2620 | return NULL; | |
2621 | } | |
2622 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
2623 | #endif | |
2624 | } | |
2625 | { | |
4268f798 | 2626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0adbc166 RD |
2627 | wxChoice_SetString(_arg0,_arg1,*_arg2); |
2628 | ||
4268f798 | 2629 | wxPyEndAllowThreads(__tstate); |
0adbc166 RD |
2630 | if (PyErr_Occurred()) return NULL; |
2631 | } Py_INCREF(Py_None); | |
2632 | _resultobj = Py_None; | |
2633 | { | |
2634 | if (_obj2) | |
2635 | delete _arg2; | |
2636 | } | |
2637 | return _resultobj; | |
2638 | } | |
2639 | ||
bb0054cd RD |
2640 | static void *SwigwxComboBoxTowxChoice(void *ptr) { |
2641 | wxComboBox *src; | |
2642 | wxChoice *dest; | |
2643 | src = (wxComboBox *) ptr; | |
2644 | dest = (wxChoice *) src; | |
2645 | return (void *) dest; | |
2646 | } | |
2647 | ||
900d9886 RD |
2648 | static void *SwigwxComboBoxTowxControlWithItems(void *ptr) { |
2649 | wxComboBox *src; | |
2650 | wxControlWithItems *dest; | |
2651 | src = (wxComboBox *) ptr; | |
2652 | dest = (wxControlWithItems *) src; | |
2653 | return (void *) dest; | |
2654 | } | |
2655 | ||
8ab979d7 RD |
2656 | static void *SwigwxComboBoxTowxControl(void *ptr) { |
2657 | wxComboBox *src; | |
2658 | wxControl *dest; | |
2659 | src = (wxComboBox *) ptr; | |
2660 | dest = (wxControl *) src; | |
2661 | return (void *) dest; | |
2662 | } | |
2663 | ||
2664 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2665 | wxComboBox *src; | |
2666 | wxWindow *dest; | |
2667 | src = (wxComboBox *) ptr; | |
2668 | dest = (wxWindow *) src; | |
2669 | return (void *) dest; | |
2670 | } | |
2671 | ||
2672 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2673 | wxComboBox *src; | |
2674 | wxEvtHandler *dest; | |
2675 | src = (wxComboBox *) ptr; | |
2676 | dest = (wxEvtHandler *) src; | |
2677 | return (void *) dest; | |
2678 | } | |
2679 | ||
9416aa89 RD |
2680 | static void *SwigwxComboBoxTowxObject(void *ptr) { |
2681 | wxComboBox *src; | |
2682 | wxObject *dest; | |
2683 | src = (wxComboBox *) ptr; | |
2684 | dest = (wxObject *) src; | |
2685 | return (void *) dest; | |
2686 | } | |
2687 | ||
8ab979d7 | 2688 | #define new_wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) |
efc5f224 | 2689 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2690 | PyObject * _resultobj; |
2691 | wxComboBox * _result; | |
2692 | wxWindow * _arg0; | |
2693 | wxWindowID _arg1; | |
1d99702e | 2694 | char * _arg2 = (char *) ""; |
e508a2b6 RD |
2695 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2696 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
2697 | int _arg5 = (int ) 0; |
2698 | wxString * _arg6 = (wxString *) NULL; | |
2699 | long _arg7 = (long ) 0; | |
e508a2b6 | 2700 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2701 | char * _arg9 = (char *) "comboBox"; |
2702 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2703 | wxPoint temp; |
2704 | PyObject * _obj3 = 0; | |
2705 | wxSize temp0; | |
2706 | PyObject * _obj4 = 0; | |
8ab979d7 | 2707 | PyObject * _obj6 = 0; |
1d99702e | 2708 | PyObject * _argo8 = 0; |
eec92d76 | 2709 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
2710 | char _ptemp[128]; |
2711 | ||
2712 | self = self; | |
2f90df85 | 2713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
8ab979d7 | 2714 | return NULL; |
1d99702e RD |
2715 | if (_argo0) { |
2716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); |
2719 | return NULL; | |
2720 | } | |
2721 | } | |
2f90df85 RD |
2722 | if (_obj3) |
2723 | { | |
2724 | _arg3 = &temp; | |
2725 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 2726 | return NULL; |
2f90df85 RD |
2727 | } |
2728 | if (_obj4) | |
2729 | { | |
2730 | _arg4 = &temp0; | |
2731 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 2732 | return NULL; |
2f90df85 | 2733 | } |
8ab979d7 RD |
2734 | if (_obj6) |
2735 | { | |
2736 | _arg6 = wxString_LIST_helper(_obj6); | |
2737 | if (_arg6 == NULL) { | |
2738 | return NULL; | |
2739 | } | |
2740 | } | |
1d99702e RD |
2741 | if (_argo8) { |
2742 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2743 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
8ab979d7 RD |
2744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); |
2745 | return NULL; | |
2746 | } | |
2747 | } | |
2748 | { | |
cf694132 RD |
2749 | if (_obj6) { |
2750 | _arg5 = PyList_Size(_obj6); | |
2751 | } | |
2752 | else { | |
2753 | _arg5 = 0; | |
2754 | } | |
8ab979d7 | 2755 | } |
cf694132 | 2756 | { |
4268f798 | 2757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2758 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
2759 | ||
4268f798 | 2760 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2761 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2762 | } if (_result) { |
2763 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2764 | _resultobj = Py_BuildValue("s",_ptemp); | |
2765 | } else { | |
2766 | Py_INCREF(Py_None); | |
2767 | _resultobj = Py_None; | |
2768 | } | |
8ab979d7 RD |
2769 | { |
2770 | delete [] _arg6; | |
2771 | } | |
2772 | return _resultobj; | |
2773 | } | |
2774 | ||
09f3d4e6 RD |
2775 | #define new_wxPreComboBox() (new wxComboBox()) |
2776 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2777 | PyObject * _resultobj; | |
2778 | wxComboBox * _result; | |
2779 | char *_kwnames[] = { NULL }; | |
2780 | char _ptemp[128]; | |
2781 | ||
2782 | self = self; | |
2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2784 | return NULL; | |
2785 | { | |
4268f798 | 2786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
2787 | _result = (wxComboBox *)new_wxPreComboBox(); |
2788 | ||
4268f798 | 2789 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2790 | if (PyErr_Occurred()) return NULL; |
2791 | } if (_result) { | |
2792 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2793 | _resultobj = Py_BuildValue("s",_ptemp); | |
2794 | } else { | |
2795 | Py_INCREF(Py_None); | |
2796 | _resultobj = Py_None; | |
2797 | } | |
2798 | return _resultobj; | |
2799 | } | |
2800 | ||
2801 | #define wxComboBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
2802 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2803 | PyObject * _resultobj; | |
2804 | bool _result; | |
2805 | wxComboBox * _arg0; | |
2806 | wxWindow * _arg1; | |
2807 | wxWindowID _arg2; | |
2808 | char * _arg3 = (char *) ""; | |
2809 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2810 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2811 | int _arg6 = (int ) 0; | |
2812 | wxString * _arg7 = (wxString *) NULL; | |
2813 | long _arg8 = (long ) 0; | |
2814 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
2815 | char * _arg10 = (char *) "comboBox"; | |
2816 | PyObject * _argo0 = 0; | |
2817 | PyObject * _argo1 = 0; | |
2818 | wxPoint temp; | |
2819 | PyObject * _obj4 = 0; | |
2820 | wxSize temp0; | |
2821 | PyObject * _obj5 = 0; | |
2822 | PyObject * _obj7 = 0; | |
2823 | PyObject * _argo9 = 0; | |
2824 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2825 | ||
2826 | self = self; | |
2827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOOlOs:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_arg10)) | |
2828 | return NULL; | |
2829 | if (_argo0) { | |
2830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2833 | return NULL; | |
2834 | } | |
2835 | } | |
2836 | if (_argo1) { | |
2837 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2838 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2840 | return NULL; | |
2841 | } | |
2842 | } | |
2843 | if (_obj4) | |
2844 | { | |
2845 | _arg4 = &temp; | |
2846 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2847 | return NULL; | |
2848 | } | |
2849 | if (_obj5) | |
2850 | { | |
2851 | _arg5 = &temp0; | |
2852 | if (! wxSize_helper(_obj5, &_arg5)) | |
2853 | return NULL; | |
2854 | } | |
2855 | if (_obj7) | |
2856 | { | |
2857 | _arg7 = wxString_LIST_helper(_obj7); | |
2858 | if (_arg7 == NULL) { | |
2859 | return NULL; | |
2860 | } | |
2861 | } | |
2862 | if (_argo9) { | |
2863 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
2864 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2866 | return NULL; | |
2867 | } | |
2868 | } | |
2869 | { | |
2870 | if (_obj7) { | |
2871 | _arg6 = PyList_Size(_obj7); | |
2872 | } | |
2873 | else { | |
2874 | _arg6 = 0; | |
2875 | } | |
2876 | } | |
2877 | { | |
4268f798 | 2878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
2879 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); |
2880 | ||
4268f798 | 2881 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2882 | if (PyErr_Occurred()) return NULL; |
2883 | } _resultobj = Py_BuildValue("i",_result); | |
2884 | { | |
2885 | delete [] _arg7; | |
2886 | } | |
2887 | return _resultobj; | |
2888 | } | |
2889 | ||
8ab979d7 | 2890 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) |
efc5f224 | 2891 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2892 | PyObject * _resultobj; |
2893 | wxComboBox * _arg0; | |
1d99702e | 2894 | PyObject * _argo0 = 0; |
efc5f224 | 2895 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2896 | |
2897 | self = self; | |
efc5f224 | 2898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) |
8ab979d7 | 2899 | return NULL; |
1d99702e RD |
2900 | if (_argo0) { |
2901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); |
2904 | return NULL; | |
2905 | } | |
2906 | } | |
cf694132 | 2907 | { |
4268f798 | 2908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2909 | wxComboBox_Copy(_arg0); |
2910 | ||
4268f798 | 2911 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2912 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2913 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2914 | _resultobj = Py_None; |
2915 | return _resultobj; | |
2916 | } | |
2917 | ||
2918 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
efc5f224 | 2919 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2920 | PyObject * _resultobj; |
2921 | wxComboBox * _arg0; | |
1d99702e | 2922 | PyObject * _argo0 = 0; |
efc5f224 | 2923 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2924 | |
2925 | self = self; | |
efc5f224 | 2926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) |
8ab979d7 | 2927 | return NULL; |
1d99702e RD |
2928 | if (_argo0) { |
2929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); |
2932 | return NULL; | |
2933 | } | |
2934 | } | |
cf694132 | 2935 | { |
4268f798 | 2936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2937 | wxComboBox_Cut(_arg0); |
2938 | ||
4268f798 | 2939 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2940 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2941 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2942 | _resultobj = Py_None; |
2943 | return _resultobj; | |
2944 | } | |
2945 | ||
8ab979d7 | 2946 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
efc5f224 | 2947 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2948 | PyObject * _resultobj; |
2949 | long _result; | |
2950 | wxComboBox * _arg0; | |
1d99702e | 2951 | PyObject * _argo0 = 0; |
900d9886 | 2952 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2953 | |
2954 | self = self; | |
900d9886 | 2955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) |
8ab979d7 | 2956 | return NULL; |
1d99702e RD |
2957 | if (_argo0) { |
2958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
900d9886 | 2960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); |
8ab979d7 RD |
2961 | return NULL; |
2962 | } | |
2963 | } | |
8ab979d7 | 2964 | { |
4268f798 | 2965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 | 2966 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); |
cf694132 | 2967 | |
4268f798 | 2968 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2969 | if (PyErr_Occurred()) return NULL; |
900d9886 | 2970 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2971 | return _resultobj; |
2972 | } | |
2973 | ||
900d9886 RD |
2974 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
2975 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2976 | PyObject * _resultobj; |
900d9886 | 2977 | long _result; |
8ab979d7 | 2978 | wxComboBox * _arg0; |
1d99702e | 2979 | PyObject * _argo0 = 0; |
efc5f224 | 2980 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2981 | |
2982 | self = self; | |
900d9886 | 2983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) |
8ab979d7 | 2984 | return NULL; |
1d99702e RD |
2985 | if (_argo0) { |
2986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
900d9886 | 2988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); |
8ab979d7 RD |
2989 | return NULL; |
2990 | } | |
2991 | } | |
8ab979d7 | 2992 | { |
4268f798 | 2993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 | 2994 | _result = (long )wxComboBox_GetLastPosition(_arg0); |
cf694132 | 2995 | |
4268f798 | 2996 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2997 | if (PyErr_Occurred()) return NULL; |
900d9886 | 2998 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2999 | return _resultobj; |
3000 | } | |
3001 | ||
3002 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 3003 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3004 | PyObject * _resultobj; |
3005 | wxString * _result; | |
3006 | wxComboBox * _arg0; | |
1d99702e | 3007 | PyObject * _argo0 = 0; |
efc5f224 | 3008 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3009 | |
3010 | self = self; | |
efc5f224 | 3011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 3012 | return NULL; |
1d99702e RD |
3013 | if (_argo0) { |
3014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); |
3017 | return NULL; | |
3018 | } | |
3019 | } | |
8ab979d7 | 3020 | { |
4268f798 | 3021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3022 | _result = new wxString (wxComboBox_GetValue(_arg0)); |
3023 | ||
4268f798 | 3024 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3025 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3026 | }{ |
eec92d76 | 3027 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3028 | } |
3029 | { | |
3030 | delete _result; | |
3031 | } | |
3032 | return _resultobj; | |
3033 | } | |
3034 | ||
8ab979d7 | 3035 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) |
efc5f224 | 3036 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3037 | PyObject * _resultobj; |
3038 | wxComboBox * _arg0; | |
1d99702e | 3039 | PyObject * _argo0 = 0; |
efc5f224 | 3040 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3041 | |
3042 | self = self; | |
efc5f224 | 3043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) |
8ab979d7 | 3044 | return NULL; |
1d99702e RD |
3045 | if (_argo0) { |
3046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); |
3049 | return NULL; | |
3050 | } | |
3051 | } | |
cf694132 | 3052 | { |
4268f798 | 3053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3054 | wxComboBox_Paste(_arg0); |
3055 | ||
4268f798 | 3056 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3057 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3058 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3059 | _resultobj = Py_None; |
3060 | return _resultobj; | |
3061 | } | |
3062 | ||
3063 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3064 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3065 | PyObject * _resultobj; |
3066 | wxComboBox * _arg0; | |
3067 | long _arg1; | |
3068 | long _arg2; | |
3069 | wxString * _arg3; | |
1d99702e | 3070 | PyObject * _argo0 = 0; |
8ab979d7 | 3071 | PyObject * _obj3 = 0; |
efc5f224 | 3072 | char *_kwnames[] = { "self","from","to","text", NULL }; |
8ab979d7 RD |
3073 | |
3074 | self = self; | |
efc5f224 | 3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3076 | return NULL; |
1d99702e RD |
3077 | if (_argo0) { |
3078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); |
3081 | return NULL; | |
3082 | } | |
3083 | } | |
3084 | { | |
185d7c3e RD |
3085 | #if PYTHON_API_VERSION >= 1009 |
3086 | char* tmpPtr; int tmpSize; | |
3087 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 3088 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3089 | return NULL; |
3090 | } | |
3091 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3092 | return NULL; | |
3093 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3094 | #else | |
8ab979d7 RD |
3095 | if (!PyString_Check(_obj3)) { |
3096 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3097 | return NULL; | |
3098 | } | |
185d7c3e RD |
3099 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
3100 | #endif | |
8ab979d7 | 3101 | } |
cf694132 | 3102 | { |
4268f798 | 3103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3104 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); |
3105 | ||
4268f798 | 3106 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3107 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3108 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3109 | _resultobj = Py_None; |
3110 | { | |
3111 | if (_obj3) | |
3112 | delete _arg3; | |
3113 | } | |
3114 | return _resultobj; | |
3115 | } | |
3116 | ||
3117 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
efc5f224 | 3118 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3119 | PyObject * _resultobj; |
3120 | wxComboBox * _arg0; | |
3121 | long _arg1; | |
3122 | long _arg2; | |
1d99702e | 3123 | PyObject * _argo0 = 0; |
efc5f224 | 3124 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
3125 | |
3126 | self = self; | |
efc5f224 | 3127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3128 | return NULL; |
1d99702e RD |
3129 | if (_argo0) { |
3130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); |
3133 | return NULL; | |
3134 | } | |
3135 | } | |
cf694132 | 3136 | { |
4268f798 | 3137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3138 | wxComboBox_Remove(_arg0,_arg1,_arg2); |
3139 | ||
4268f798 | 3140 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3142 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3143 | _resultobj = Py_None; |
3144 | return _resultobj; | |
3145 | } | |
3146 | ||
3147 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
efc5f224 | 3148 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3149 | PyObject * _resultobj; |
3150 | wxComboBox * _arg0; | |
3151 | long _arg1; | |
1d99702e | 3152 | PyObject * _argo0 = 0; |
efc5f224 | 3153 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
3154 | |
3155 | self = self; | |
efc5f224 | 3156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3157 | return NULL; |
1d99702e RD |
3158 | if (_argo0) { |
3159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); |
3162 | return NULL; | |
3163 | } | |
3164 | } | |
cf694132 | 3165 | { |
4268f798 | 3166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3167 | wxComboBox_SetInsertionPoint(_arg0,_arg1); |
3168 | ||
4268f798 | 3169 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3170 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3171 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3172 | _resultobj = Py_None; |
3173 | return _resultobj; | |
3174 | } | |
3175 | ||
3176 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
efc5f224 | 3177 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3178 | PyObject * _resultobj; |
3179 | wxComboBox * _arg0; | |
1d99702e | 3180 | PyObject * _argo0 = 0; |
efc5f224 | 3181 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3182 | |
3183 | self = self; | |
efc5f224 | 3184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) |
8ab979d7 | 3185 | return NULL; |
1d99702e RD |
3186 | if (_argo0) { |
3187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); |
3190 | return NULL; | |
3191 | } | |
3192 | } | |
cf694132 | 3193 | { |
4268f798 | 3194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3195 | wxComboBox_SetInsertionPointEnd(_arg0); |
3196 | ||
4268f798 | 3197 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3198 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3199 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3200 | _resultobj = Py_None; |
3201 | return _resultobj; | |
3202 | } | |
3203 | ||
1d99702e | 3204 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
efc5f224 | 3205 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
1d99702e RD |
3206 | PyObject * _resultobj; |
3207 | wxComboBox * _arg0; | |
3208 | int _arg1; | |
3209 | PyObject * _argo0 = 0; | |
efc5f224 | 3210 | char *_kwnames[] = { "self","n", NULL }; |
1d99702e RD |
3211 | |
3212 | self = self; | |
efc5f224 | 3213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
1d99702e RD |
3214 | return NULL; |
3215 | if (_argo0) { | |
3216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3219 | return NULL; | |
3220 | } | |
3221 | } | |
3222 | { | |
4268f798 | 3223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1d99702e RD |
3224 | wxComboBox_SetSelection(_arg0,_arg1); |
3225 | ||
4268f798 | 3226 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3227 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3228 | } Py_INCREF(Py_None); |
3229 | _resultobj = Py_None; | |
3230 | return _resultobj; | |
3231 | } | |
3232 | ||
8ab979d7 | 3233 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) |
efc5f224 | 3234 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3235 | PyObject * _resultobj; |
3236 | wxComboBox * _arg0; | |
3237 | long _arg1; | |
3238 | long _arg2; | |
1d99702e | 3239 | PyObject * _argo0 = 0; |
efc5f224 | 3240 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
3241 | |
3242 | self = self; | |
efc5f224 | 3243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3244 | return NULL; |
1d99702e RD |
3245 | if (_argo0) { |
3246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); |
3249 | return NULL; | |
3250 | } | |
3251 | } | |
cf694132 | 3252 | { |
4268f798 | 3253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3254 | wxComboBox_SetMark(_arg0,_arg1,_arg2); |
3255 | ||
4268f798 | 3256 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3257 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3258 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3259 | _resultobj = Py_None; |
3260 | return _resultobj; | |
3261 | } | |
3262 | ||
3263 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 3264 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3265 | PyObject * _resultobj; |
3266 | wxComboBox * _arg0; | |
3267 | wxString * _arg1; | |
1d99702e | 3268 | PyObject * _argo0 = 0; |
8ab979d7 | 3269 | PyObject * _obj1 = 0; |
efc5f224 | 3270 | char *_kwnames[] = { "self","text", NULL }; |
8ab979d7 RD |
3271 | |
3272 | self = self; | |
efc5f224 | 3273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3274 | return NULL; |
1d99702e RD |
3275 | if (_argo0) { |
3276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); |
3279 | return NULL; | |
3280 | } | |
3281 | } | |
3282 | { | |
185d7c3e RD |
3283 | #if PYTHON_API_VERSION >= 1009 |
3284 | char* tmpPtr; int tmpSize; | |
3285 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 3286 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3287 | return NULL; |
3288 | } | |
3289 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3290 | return NULL; | |
3291 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3292 | #else | |
8ab979d7 RD |
3293 | if (!PyString_Check(_obj1)) { |
3294 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3295 | return NULL; | |
3296 | } | |
185d7c3e RD |
3297 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3298 | #endif | |
8ab979d7 | 3299 | } |
cf694132 | 3300 | { |
4268f798 | 3301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3302 | wxComboBox_SetValue(_arg0,*_arg1); |
3303 | ||
4268f798 | 3304 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3305 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3306 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3307 | _resultobj = Py_None; |
3308 | { | |
3309 | if (_obj1) | |
3310 | delete _arg1; | |
3311 | } | |
3312 | return _resultobj; | |
3313 | } | |
3314 | ||
0adbc166 RD |
3315 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
3316 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject * _resultobj; | |
3318 | wxComboBox * _arg0; | |
3319 | bool _arg1; | |
3320 | PyObject * _argo0 = 0; | |
3321 | int tempbool1; | |
3322 | char *_kwnames[] = { "self","editable", NULL }; | |
3323 | ||
3324 | self = self; | |
3325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3326 | return NULL; | |
3327 | if (_argo0) { | |
3328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3331 | return NULL; | |
3332 | } | |
3333 | } | |
3334 | _arg1 = (bool ) tempbool1; | |
3335 | { | |
4268f798 | 3336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0adbc166 RD |
3337 | wxComboBox_SetEditable(_arg0,_arg1); |
3338 | ||
4268f798 | 3339 | wxPyEndAllowThreads(__tstate); |
0adbc166 RD |
3340 | if (PyErr_Occurred()) return NULL; |
3341 | } Py_INCREF(Py_None); | |
3342 | _resultobj = Py_None; | |
3343 | return _resultobj; | |
3344 | } | |
3345 | ||
8ab979d7 RD |
3346 | static void *SwigwxGaugeTowxControl(void *ptr) { |
3347 | wxGauge *src; | |
3348 | wxControl *dest; | |
3349 | src = (wxGauge *) ptr; | |
3350 | dest = (wxControl *) src; | |
3351 | return (void *) dest; | |
3352 | } | |
3353 | ||
3354 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3355 | wxGauge *src; | |
3356 | wxWindow *dest; | |
3357 | src = (wxGauge *) ptr; | |
3358 | dest = (wxWindow *) src; | |
3359 | return (void *) dest; | |
3360 | } | |
3361 | ||
3362 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3363 | wxGauge *src; | |
3364 | wxEvtHandler *dest; | |
3365 | src = (wxGauge *) ptr; | |
3366 | dest = (wxEvtHandler *) src; | |
3367 | return (void *) dest; | |
3368 | } | |
3369 | ||
9416aa89 RD |
3370 | static void *SwigwxGaugeTowxObject(void *ptr) { |
3371 | wxGauge *src; | |
3372 | wxObject *dest; | |
3373 | src = (wxGauge *) ptr; | |
3374 | dest = (wxObject *) src; | |
3375 | return (void *) dest; | |
3376 | } | |
3377 | ||
8ab979d7 | 3378 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 3379 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3380 | PyObject * _resultobj; |
3381 | wxGauge * _result; | |
3382 | wxWindow * _arg0; | |
3383 | wxWindowID _arg1; | |
3384 | int _arg2; | |
e508a2b6 RD |
3385 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3386 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 3387 | long _arg5 = (long ) wxGA_HORIZONTAL; |
e508a2b6 | 3388 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
3389 | char * _arg7 = (char *) "gauge"; |
3390 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3391 | wxPoint temp; |
3392 | PyObject * _obj3 = 0; | |
3393 | wxSize temp0; | |
3394 | PyObject * _obj4 = 0; | |
1d99702e | 3395 | PyObject * _argo6 = 0; |
efc5f224 | 3396 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
3397 | char _ptemp[128]; |
3398 | ||
3399 | self = self; | |
2f90df85 | 3400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 3401 | return NULL; |
1d99702e RD |
3402 | if (_argo0) { |
3403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); |
3406 | return NULL; | |
3407 | } | |
3408 | } | |
2f90df85 RD |
3409 | if (_obj3) |
3410 | { | |
3411 | _arg3 = &temp; | |
3412 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 3413 | return NULL; |
2f90df85 RD |
3414 | } |
3415 | if (_obj4) | |
3416 | { | |
3417 | _arg4 = &temp0; | |
3418 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 3419 | return NULL; |
2f90df85 | 3420 | } |
1d99702e RD |
3421 | if (_argo6) { |
3422 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3423 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
3424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); |
3425 | return NULL; | |
3426 | } | |
3427 | } | |
cf694132 | 3428 | { |
4268f798 | 3429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3430 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
3431 | ||
4268f798 | 3432 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3433 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3434 | } if (_result) { |
3435 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3436 | _resultobj = Py_BuildValue("s",_ptemp); | |
3437 | } else { | |
3438 | Py_INCREF(Py_None); | |
3439 | _resultobj = Py_None; | |
3440 | } | |
8ab979d7 RD |
3441 | return _resultobj; |
3442 | } | |
3443 | ||
09f3d4e6 RD |
3444 | #define new_wxPreGauge() (new wxGauge()) |
3445 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3446 | PyObject * _resultobj; | |
3447 | wxGauge * _result; | |
3448 | char *_kwnames[] = { NULL }; | |
3449 | char _ptemp[128]; | |
3450 | ||
3451 | self = self; | |
3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3453 | return NULL; | |
3454 | { | |
4268f798 | 3455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
3456 | _result = (wxGauge *)new_wxPreGauge(); |
3457 | ||
4268f798 | 3458 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3459 | if (PyErr_Occurred()) return NULL; |
3460 | } if (_result) { | |
3461 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3462 | _resultobj = Py_BuildValue("s",_ptemp); | |
3463 | } else { | |
3464 | Py_INCREF(Py_None); | |
3465 | _resultobj = Py_None; | |
3466 | } | |
3467 | return _resultobj; | |
3468 | } | |
3469 | ||
3470 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3471 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3472 | PyObject * _resultobj; | |
3473 | bool _result; | |
3474 | wxGauge * _arg0; | |
3475 | wxWindow * _arg1; | |
3476 | wxWindowID _arg2; | |
3477 | int _arg3; | |
3478 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3479 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3480 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3481 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
3482 | char * _arg8 = (char *) "gauge"; | |
3483 | PyObject * _argo0 = 0; | |
3484 | PyObject * _argo1 = 0; | |
3485 | wxPoint temp; | |
3486 | PyObject * _obj4 = 0; | |
3487 | wxSize temp0; | |
3488 | PyObject * _obj5 = 0; | |
3489 | PyObject * _argo7 = 0; | |
3490 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; | |
3491 | ||
3492 | self = self; | |
3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOs:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
3494 | return NULL; | |
3495 | if (_argo0) { | |
3496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3499 | return NULL; | |
3500 | } | |
3501 | } | |
3502 | if (_argo1) { | |
3503 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3504 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3506 | return NULL; | |
3507 | } | |
3508 | } | |
3509 | if (_obj4) | |
3510 | { | |
3511 | _arg4 = &temp; | |
3512 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3513 | return NULL; | |
3514 | } | |
3515 | if (_obj5) | |
3516 | { | |
3517 | _arg5 = &temp0; | |
3518 | if (! wxSize_helper(_obj5, &_arg5)) | |
3519 | return NULL; | |
3520 | } | |
3521 | if (_argo7) { | |
3522 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3523 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3525 | return NULL; | |
3526 | } | |
3527 | } | |
3528 | { | |
4268f798 | 3529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
3530 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
3531 | ||
4268f798 | 3532 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3533 | if (PyErr_Occurred()) return NULL; |
3534 | } _resultobj = Py_BuildValue("i",_result); | |
3535 | return _resultobj; | |
3536 | } | |
3537 | ||
8ab979d7 | 3538 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) |
efc5f224 | 3539 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3540 | PyObject * _resultobj; |
3541 | int _result; | |
3542 | wxGauge * _arg0; | |
1d99702e | 3543 | PyObject * _argo0 = 0; |
efc5f224 | 3544 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3545 | |
3546 | self = self; | |
efc5f224 | 3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) |
8ab979d7 | 3548 | return NULL; |
1d99702e RD |
3549 | if (_argo0) { |
3550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); |
3553 | return NULL; | |
3554 | } | |
3555 | } | |
cf694132 | 3556 | { |
4268f798 | 3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3558 | _result = (int )wxGauge_GetBezelFace(_arg0); |
3559 | ||
4268f798 | 3560 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3561 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3562 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3563 | return _resultobj; |
3564 | } | |
3565 | ||
3566 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
efc5f224 | 3567 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3568 | PyObject * _resultobj; |
3569 | int _result; | |
3570 | wxGauge * _arg0; | |
1d99702e | 3571 | PyObject * _argo0 = 0; |
efc5f224 | 3572 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3573 | |
3574 | self = self; | |
efc5f224 | 3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) |
8ab979d7 | 3576 | return NULL; |
1d99702e RD |
3577 | if (_argo0) { |
3578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); |
3581 | return NULL; | |
3582 | } | |
3583 | } | |
cf694132 | 3584 | { |
4268f798 | 3585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3586 | _result = (int )wxGauge_GetRange(_arg0); |
3587 | ||
4268f798 | 3588 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3589 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3590 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3591 | return _resultobj; |
3592 | } | |
3593 | ||
3594 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
efc5f224 | 3595 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3596 | PyObject * _resultobj; |
3597 | int _result; | |
3598 | wxGauge * _arg0; | |
1d99702e | 3599 | PyObject * _argo0 = 0; |
efc5f224 | 3600 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3601 | |
3602 | self = self; | |
efc5f224 | 3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) |
8ab979d7 | 3604 | return NULL; |
1d99702e RD |
3605 | if (_argo0) { |
3606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); |
3609 | return NULL; | |
3610 | } | |
3611 | } | |
cf694132 | 3612 | { |
4268f798 | 3613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3614 | _result = (int )wxGauge_GetShadowWidth(_arg0); |
3615 | ||
4268f798 | 3616 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3617 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3618 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3619 | return _resultobj; |
3620 | } | |
3621 | ||
3622 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 3623 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3624 | PyObject * _resultobj; |
3625 | int _result; | |
3626 | wxGauge * _arg0; | |
1d99702e | 3627 | PyObject * _argo0 = 0; |
efc5f224 | 3628 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3629 | |
3630 | self = self; | |
efc5f224 | 3631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 3632 | return NULL; |
1d99702e RD |
3633 | if (_argo0) { |
3634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); |
3637 | return NULL; | |
3638 | } | |
3639 | } | |
cf694132 | 3640 | { |
4268f798 | 3641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3642 | _result = (int )wxGauge_GetValue(_arg0); |
3643 | ||
4268f798 | 3644 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3645 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3646 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3647 | return _resultobj; |
3648 | } | |
3649 | ||
3650 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
efc5f224 | 3651 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3652 | PyObject * _resultobj; |
3653 | wxGauge * _arg0; | |
3654 | int _arg1; | |
1d99702e | 3655 | PyObject * _argo0 = 0; |
efc5f224 | 3656 | char *_kwnames[] = { "self","width", NULL }; |
8ab979d7 RD |
3657 | |
3658 | self = self; | |
efc5f224 | 3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3660 | return NULL; |
1d99702e RD |
3661 | if (_argo0) { |
3662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); |
3665 | return NULL; | |
3666 | } | |
3667 | } | |
cf694132 | 3668 | { |
4268f798 | 3669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3670 | wxGauge_SetBezelFace(_arg0,_arg1); |
3671 | ||
4268f798 | 3672 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3673 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3674 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3675 | _resultobj = Py_None; |
3676 | return _resultobj; | |
3677 | } | |
3678 | ||
3679 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
efc5f224 | 3680 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3681 | PyObject * _resultobj; |
3682 | wxGauge * _arg0; | |
3683 | int _arg1; | |
1d99702e | 3684 | PyObject * _argo0 = 0; |
efc5f224 | 3685 | char *_kwnames[] = { "self","range", NULL }; |
8ab979d7 RD |
3686 | |
3687 | self = self; | |
efc5f224 | 3688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3689 | return NULL; |
1d99702e RD |
3690 | if (_argo0) { |
3691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); |
3694 | return NULL; | |
3695 | } | |
3696 | } | |
cf694132 | 3697 | { |
4268f798 | 3698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3699 | wxGauge_SetRange(_arg0,_arg1); |
3700 | ||
4268f798 | 3701 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3702 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3703 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3704 | _resultobj = Py_None; |
3705 | return _resultobj; | |
3706 | } | |
3707 | ||
3708 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
efc5f224 | 3709 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3710 | PyObject * _resultobj; |
3711 | wxGauge * _arg0; | |
3712 | int _arg1; | |
1d99702e | 3713 | PyObject * _argo0 = 0; |
efc5f224 | 3714 | char *_kwnames[] = { "self","width", NULL }; |
8ab979d7 RD |
3715 | |
3716 | self = self; | |
efc5f224 | 3717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3718 | return NULL; |
1d99702e RD |
3719 | if (_argo0) { |
3720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); |
3723 | return NULL; | |
3724 | } | |
3725 | } | |
cf694132 | 3726 | { |
4268f798 | 3727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3728 | wxGauge_SetShadowWidth(_arg0,_arg1); |
3729 | ||
4268f798 | 3730 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3731 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3732 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3733 | _resultobj = Py_None; |
3734 | return _resultobj; | |
3735 | } | |
3736 | ||
3737 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 3738 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3739 | PyObject * _resultobj; |
3740 | wxGauge * _arg0; | |
3741 | int _arg1; | |
1d99702e | 3742 | PyObject * _argo0 = 0; |
efc5f224 | 3743 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
3744 | |
3745 | self = self; | |
efc5f224 | 3746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3747 | return NULL; |
1d99702e RD |
3748 | if (_argo0) { |
3749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); |
3752 | return NULL; | |
3753 | } | |
3754 | } | |
cf694132 | 3755 | { |
4268f798 | 3756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3757 | wxGauge_SetValue(_arg0,_arg1); |
3758 | ||
4268f798 | 3759 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3760 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3761 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3762 | _resultobj = Py_None; |
3763 | return _resultobj; | |
3764 | } | |
3765 | ||
3766 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
3767 | wxStaticBox *src; | |
3768 | wxControl *dest; | |
3769 | src = (wxStaticBox *) ptr; | |
3770 | dest = (wxControl *) src; | |
3771 | return (void *) dest; | |
3772 | } | |
3773 | ||
3774 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
3775 | wxStaticBox *src; | |
3776 | wxWindow *dest; | |
3777 | src = (wxStaticBox *) ptr; | |
3778 | dest = (wxWindow *) src; | |
3779 | return (void *) dest; | |
3780 | } | |
3781 | ||
3782 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
3783 | wxStaticBox *src; | |
3784 | wxEvtHandler *dest; | |
3785 | src = (wxStaticBox *) ptr; | |
3786 | dest = (wxEvtHandler *) src; | |
3787 | return (void *) dest; | |
3788 | } | |
3789 | ||
9416aa89 RD |
3790 | static void *SwigwxStaticBoxTowxObject(void *ptr) { |
3791 | wxStaticBox *src; | |
3792 | wxObject *dest; | |
3793 | src = (wxStaticBox *) ptr; | |
3794 | dest = (wxObject *) src; | |
3795 | return (void *) dest; | |
3796 | } | |
3797 | ||
8ab979d7 | 3798 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 3799 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3800 | PyObject * _resultobj; |
3801 | wxStaticBox * _result; | |
3802 | wxWindow * _arg0; | |
3803 | wxWindowID _arg1; | |
3804 | wxString * _arg2; | |
e508a2b6 RD |
3805 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3806 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
3807 | long _arg5 = (long ) 0; |
3808 | char * _arg6 = (char *) "staticBox"; | |
3809 | PyObject * _argo0 = 0; | |
8ab979d7 | 3810 | PyObject * _obj2 = 0; |
2f90df85 RD |
3811 | wxPoint temp; |
3812 | PyObject * _obj3 = 0; | |
3813 | wxSize temp0; | |
3814 | PyObject * _obj4 = 0; | |
efc5f224 | 3815 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
8ab979d7 RD |
3816 | char _ptemp[128]; |
3817 | ||
3818 | self = self; | |
2f90df85 | 3819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 3820 | return NULL; |
1d99702e RD |
3821 | if (_argo0) { |
3822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); |
3825 | return NULL; | |
3826 | } | |
3827 | } | |
3828 | { | |
185d7c3e RD |
3829 | #if PYTHON_API_VERSION >= 1009 |
3830 | char* tmpPtr; int tmpSize; | |
3831 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3832 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3833 | return NULL; |
3834 | } | |
3835 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3836 | return NULL; | |
3837 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3838 | #else | |
8ab979d7 RD |
3839 | if (!PyString_Check(_obj2)) { |
3840 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3841 | return NULL; | |
3842 | } | |
185d7c3e RD |
3843 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3844 | #endif | |
8ab979d7 | 3845 | } |
2f90df85 RD |
3846 | if (_obj3) |
3847 | { | |
3848 | _arg3 = &temp; | |
3849 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 3850 | return NULL; |
2f90df85 RD |
3851 | } |
3852 | if (_obj4) | |
3853 | { | |
3854 | _arg4 = &temp0; | |
3855 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 3856 | return NULL; |
2f90df85 | 3857 | } |
cf694132 | 3858 | { |
4268f798 | 3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3860 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
3861 | ||
4268f798 | 3862 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3863 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3864 | } if (_result) { |
3865 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3866 | _resultobj = Py_BuildValue("s",_ptemp); | |
3867 | } else { | |
3868 | Py_INCREF(Py_None); | |
3869 | _resultobj = Py_None; | |
3870 | } | |
8ab979d7 RD |
3871 | { |
3872 | if (_obj2) | |
3873 | delete _arg2; | |
3874 | } | |
3875 | return _resultobj; | |
3876 | } | |
3877 | ||
09f3d4e6 RD |
3878 | #define new_wxPreStaticBox() (new wxStaticBox()) |
3879 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3880 | PyObject * _resultobj; | |
3881 | wxStaticBox * _result; | |
3882 | char *_kwnames[] = { NULL }; | |
3883 | char _ptemp[128]; | |
3884 | ||
3885 | self = self; | |
3886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
3887 | return NULL; | |
3888 | { | |
4268f798 | 3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
3890 | _result = (wxStaticBox *)new_wxPreStaticBox(); |
3891 | ||
4268f798 | 3892 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3893 | if (PyErr_Occurred()) return NULL; |
3894 | } if (_result) { | |
3895 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3896 | _resultobj = Py_BuildValue("s",_ptemp); | |
3897 | } else { | |
3898 | Py_INCREF(Py_None); | |
3899 | _resultobj = Py_None; | |
3900 | } | |
3901 | return _resultobj; | |
3902 | } | |
3903 | ||
3904 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3905 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3906 | PyObject * _resultobj; | |
3907 | bool _result; | |
3908 | wxStaticBox * _arg0; | |
3909 | wxWindow * _arg1; | |
3910 | wxWindowID _arg2; | |
3911 | wxString * _arg3; | |
3912 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3913 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3914 | long _arg6 = (long ) 0; | |
3915 | char * _arg7 = (char *) "staticBox"; | |
3916 | PyObject * _argo0 = 0; | |
3917 | PyObject * _argo1 = 0; | |
3918 | PyObject * _obj3 = 0; | |
3919 | wxPoint temp; | |
3920 | PyObject * _obj4 = 0; | |
3921 | wxSize temp0; | |
3922 | PyObject * _obj5 = 0; | |
3923 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
3924 | ||
3925 | self = self; | |
3926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
3927 | return NULL; | |
3928 | if (_argo0) { | |
3929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
3931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
3932 | return NULL; | |
3933 | } | |
3934 | } | |
3935 | if (_argo1) { | |
3936 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3937 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
3939 | return NULL; | |
3940 | } | |
3941 | } | |
3942 | { | |
3943 | #if PYTHON_API_VERSION >= 1009 | |
3944 | char* tmpPtr; int tmpSize; | |
3945 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
3946 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3947 | return NULL; | |
3948 | } | |
3949 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3950 | return NULL; | |
3951 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3952 | #else | |
3953 | if (!PyString_Check(_obj3)) { | |
3954 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3955 | return NULL; | |
3956 | } | |
3957 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
3958 | #endif | |
3959 | } | |
3960 | if (_obj4) | |
3961 | { | |
3962 | _arg4 = &temp; | |
3963 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3964 | return NULL; | |
3965 | } | |
3966 | if (_obj5) | |
3967 | { | |
3968 | _arg5 = &temp0; | |
3969 | if (! wxSize_helper(_obj5, &_arg5)) | |
3970 | return NULL; | |
3971 | } | |
3972 | { | |
4268f798 | 3973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
3974 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
3975 | ||
4268f798 | 3976 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3977 | if (PyErr_Occurred()) return NULL; |
3978 | } _resultobj = Py_BuildValue("i",_result); | |
3979 | { | |
3980 | if (_obj3) | |
3981 | delete _arg3; | |
3982 | } | |
3983 | return _resultobj; | |
3984 | } | |
3985 | ||
8bf5d46e RD |
3986 | static void *SwigwxStaticLineTowxControl(void *ptr) { |
3987 | wxStaticLine *src; | |
3988 | wxControl *dest; | |
3989 | src = (wxStaticLine *) ptr; | |
3990 | dest = (wxControl *) src; | |
3991 | return (void *) dest; | |
3992 | } | |
3993 | ||
3994 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
3995 | wxStaticLine *src; | |
3996 | wxWindow *dest; | |
3997 | src = (wxStaticLine *) ptr; | |
3998 | dest = (wxWindow *) src; | |
3999 | return (void *) dest; | |
4000 | } | |
4001 | ||
4002 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
4003 | wxStaticLine *src; | |
4004 | wxEvtHandler *dest; | |
4005 | src = (wxStaticLine *) ptr; | |
4006 | dest = (wxEvtHandler *) src; | |
4007 | return (void *) dest; | |
4008 | } | |
4009 | ||
9416aa89 RD |
4010 | static void *SwigwxStaticLineTowxObject(void *ptr) { |
4011 | wxStaticLine *src; | |
4012 | wxObject *dest; | |
4013 | src = (wxStaticLine *) ptr; | |
4014 | dest = (wxObject *) src; | |
4015 | return (void *) dest; | |
4016 | } | |
4017 | ||
8bf5d46e | 4018 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4019 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
4020 | PyObject * _resultobj; |
4021 | wxStaticLine * _result; | |
4022 | wxWindow * _arg0; | |
4023 | wxWindowID _arg1; | |
e508a2b6 RD |
4024 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
4025 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
4026 | long _arg4 = (long ) wxLI_HORIZONTAL; |
4027 | char * _arg5 = (char *) "staticLine"; | |
4028 | PyObject * _argo0 = 0; | |
2f90df85 RD |
4029 | wxPoint temp; |
4030 | PyObject * _obj2 = 0; | |
4031 | wxSize temp0; | |
4032 | PyObject * _obj3 = 0; | |
efc5f224 | 4033 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8bf5d46e RD |
4034 | char _ptemp[128]; |
4035 | ||
4036 | self = self; | |
2f90df85 | 4037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8bf5d46e | 4038 | return NULL; |
1d99702e RD |
4039 | if (_argo0) { |
4040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
4042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); |
4043 | return NULL; | |
4044 | } | |
4045 | } | |
2f90df85 RD |
4046 | if (_obj2) |
4047 | { | |
4048 | _arg2 = &temp; | |
4049 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 4050 | return NULL; |
2f90df85 RD |
4051 | } |
4052 | if (_obj3) | |
4053 | { | |
4054 | _arg3 = &temp0; | |
4055 | if (! wxSize_helper(_obj3, &_arg3)) | |
8bf5d46e | 4056 | return NULL; |
2f90df85 | 4057 | } |
8bf5d46e | 4058 | { |
4268f798 | 4059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e RD |
4060 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
4061 | ||
4268f798 | 4062 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4063 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4064 | } if (_result) { |
4065 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4066 | _resultobj = Py_BuildValue("s",_ptemp); | |
4067 | } else { | |
4068 | Py_INCREF(Py_None); | |
4069 | _resultobj = Py_None; | |
4070 | } | |
8bf5d46e RD |
4071 | return _resultobj; |
4072 | } | |
4073 | ||
09f3d4e6 RD |
4074 | #define new_wxPreStaticLine() (new wxStaticLine()) |
4075 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4076 | PyObject * _resultobj; | |
4077 | wxStaticLine * _result; | |
4078 | char *_kwnames[] = { NULL }; | |
4079 | char _ptemp[128]; | |
4080 | ||
4081 | self = self; | |
4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
4083 | return NULL; | |
4084 | { | |
4268f798 | 4085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
4086 | _result = (wxStaticLine *)new_wxPreStaticLine(); |
4087 | ||
4268f798 | 4088 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4089 | if (PyErr_Occurred()) return NULL; |
4090 | } if (_result) { | |
4091 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4092 | _resultobj = Py_BuildValue("s",_ptemp); | |
4093 | } else { | |
4094 | Py_INCREF(Py_None); | |
4095 | _resultobj = Py_None; | |
4096 | } | |
4097 | return _resultobj; | |
4098 | } | |
4099 | ||
4100 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4101 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4102 | PyObject * _resultobj; | |
4103 | bool _result; | |
4104 | wxStaticLine * _arg0; | |
4105 | wxWindow * _arg1; | |
4106 | wxWindowID _arg2; | |
4107 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4108 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4109 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
4110 | char * _arg6 = (char *) "staticLine"; | |
4111 | PyObject * _argo0 = 0; | |
4112 | PyObject * _argo1 = 0; | |
4113 | wxPoint temp; | |
4114 | PyObject * _obj3 = 0; | |
4115 | wxSize temp0; | |
4116 | PyObject * _obj4 = 0; | |
4117 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
4118 | ||
4119 | self = self; | |
4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4121 | return NULL; | |
4122 | if (_argo0) { | |
4123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4126 | return NULL; | |
4127 | } | |
4128 | } | |
4129 | if (_argo1) { | |
4130 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4131 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4133 | return NULL; | |
4134 | } | |
4135 | } | |
4136 | if (_obj3) | |
4137 | { | |
4138 | _arg3 = &temp; | |
4139 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4140 | return NULL; | |
4141 | } | |
4142 | if (_obj4) | |
4143 | { | |
4144 | _arg4 = &temp0; | |
4145 | if (! wxSize_helper(_obj4, &_arg4)) | |
4146 | return NULL; | |
4147 | } | |
4148 | { | |
4268f798 | 4149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
4150 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
4151 | ||
4268f798 | 4152 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4153 | if (PyErr_Occurred()) return NULL; |
4154 | } _resultobj = Py_BuildValue("i",_result); | |
4155 | return _resultobj; | |
4156 | } | |
4157 | ||
8ab979d7 RD |
4158 | static void *SwigwxStaticTextTowxControl(void *ptr) { |
4159 | wxStaticText *src; | |
4160 | wxControl *dest; | |
4161 | src = (wxStaticText *) ptr; | |
4162 | dest = (wxControl *) src; | |
4163 | return (void *) dest; | |
4164 | } | |
4165 | ||
4166 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4167 | wxStaticText *src; | |
4168 | wxWindow *dest; | |
4169 | src = (wxStaticText *) ptr; | |
4170 | dest = (wxWindow *) src; | |
4171 | return (void *) dest; | |
4172 | } | |
4173 | ||
4174 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4175 | wxStaticText *src; | |
4176 | wxEvtHandler *dest; | |
4177 | src = (wxStaticText *) ptr; | |
4178 | dest = (wxEvtHandler *) src; | |
4179 | return (void *) dest; | |
4180 | } | |
4181 | ||
9416aa89 RD |
4182 | static void *SwigwxStaticTextTowxObject(void *ptr) { |
4183 | wxStaticText *src; | |
4184 | wxObject *dest; | |
4185 | src = (wxStaticText *) ptr; | |
4186 | dest = (wxObject *) src; | |
4187 | return (void *) dest; | |
4188 | } | |
4189 | ||
8ab979d7 | 4190 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 4191 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4192 | PyObject * _resultobj; |
4193 | wxStaticText * _result; | |
4194 | wxWindow * _arg0; | |
4195 | wxWindowID _arg1; | |
4196 | wxString * _arg2; | |
e508a2b6 RD |
4197 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4198 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
4199 | long _arg5 = (long ) 0; |
4200 | char * _arg6 = (char *) "staticText"; | |
4201 | PyObject * _argo0 = 0; | |
8ab979d7 | 4202 | PyObject * _obj2 = 0; |
2f90df85 RD |
4203 | wxPoint temp; |
4204 | PyObject * _obj3 = 0; | |
4205 | wxSize temp0; | |
4206 | PyObject * _obj4 = 0; | |
efc5f224 | 4207 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
8ab979d7 RD |
4208 | char _ptemp[128]; |
4209 | ||
4210 | self = self; | |
2f90df85 | 4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 4212 | return NULL; |
1d99702e RD |
4213 | if (_argo0) { |
4214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); |
4217 | return NULL; | |
4218 | } | |
4219 | } | |
4220 | { | |
185d7c3e RD |
4221 | #if PYTHON_API_VERSION >= 1009 |
4222 | char* tmpPtr; int tmpSize; | |
4223 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 4224 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4225 | return NULL; |
4226 | } | |
4227 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4228 | return NULL; | |
4229 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4230 | #else | |
8ab979d7 RD |
4231 | if (!PyString_Check(_obj2)) { |
4232 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4233 | return NULL; | |
4234 | } | |
185d7c3e RD |
4235 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4236 | #endif | |
8ab979d7 | 4237 | } |
2f90df85 RD |
4238 | if (_obj3) |
4239 | { | |
4240 | _arg3 = &temp; | |
4241 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 4242 | return NULL; |
2f90df85 RD |
4243 | } |
4244 | if (_obj4) | |
4245 | { | |
4246 | _arg4 = &temp0; | |
4247 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 4248 | return NULL; |
2f90df85 | 4249 | } |
cf694132 | 4250 | { |
4268f798 | 4251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4252 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
4253 | ||
4268f798 | 4254 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4255 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4256 | } if (_result) { |
4257 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4258 | _resultobj = Py_BuildValue("s",_ptemp); | |
4259 | } else { | |
4260 | Py_INCREF(Py_None); | |
4261 | _resultobj = Py_None; | |
4262 | } | |
8ab979d7 RD |
4263 | { |
4264 | if (_obj2) | |
4265 | delete _arg2; | |
4266 | } | |
4267 | return _resultobj; | |
4268 | } | |
4269 | ||
09f3d4e6 RD |
4270 | #define new_wxPreStaticText() (new wxStaticText()) |
4271 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4272 | PyObject * _resultobj; | |
4273 | wxStaticText * _result; | |
4274 | char *_kwnames[] = { NULL }; | |
4275 | char _ptemp[128]; | |
4276 | ||
4277 | self = self; | |
4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4279 | return NULL; | |
4280 | { | |
4268f798 | 4281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
4282 | _result = (wxStaticText *)new_wxPreStaticText(); |
4283 | ||
4268f798 | 4284 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4285 | if (PyErr_Occurred()) return NULL; |
4286 | } if (_result) { | |
4287 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4288 | _resultobj = Py_BuildValue("s",_ptemp); | |
4289 | } else { | |
4290 | Py_INCREF(Py_None); | |
4291 | _resultobj = Py_None; | |
4292 | } | |
4293 | return _resultobj; | |
4294 | } | |
4295 | ||
4296 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4297 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4298 | PyObject * _resultobj; | |
4299 | bool _result; | |
4300 | wxStaticText * _arg0; | |
4301 | wxWindow * _arg1; | |
4302 | wxWindowID _arg2; | |
4303 | wxString * _arg3; | |
4304 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4305 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4306 | long _arg6 = (long ) 0; | |
4307 | char * _arg7 = (char *) "staticText"; | |
4308 | PyObject * _argo0 = 0; | |
4309 | PyObject * _argo1 = 0; | |
4310 | PyObject * _obj3 = 0; | |
4311 | wxPoint temp; | |
4312 | PyObject * _obj4 = 0; | |
4313 | wxSize temp0; | |
4314 | PyObject * _obj5 = 0; | |
4315 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4316 | ||
4317 | self = self; | |
4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
4319 | return NULL; | |
4320 | if (_argo0) { | |
4321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4324 | return NULL; | |
4325 | } | |
4326 | } | |
4327 | if (_argo1) { | |
4328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4331 | return NULL; | |
4332 | } | |
4333 | } | |
4334 | { | |
4335 | #if PYTHON_API_VERSION >= 1009 | |
4336 | char* tmpPtr; int tmpSize; | |
4337 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
4338 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4339 | return NULL; | |
4340 | } | |
4341 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
4342 | return NULL; | |
4343 | _arg3 = new wxString(tmpPtr, tmpSize); | |
4344 | #else | |
4345 | if (!PyString_Check(_obj3)) { | |
4346 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4347 | return NULL; | |
4348 | } | |
4349 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
4350 | #endif | |
4351 | } | |
4352 | if (_obj4) | |
4353 | { | |
4354 | _arg4 = &temp; | |
4355 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4356 | return NULL; | |
4357 | } | |
4358 | if (_obj5) | |
4359 | { | |
4360 | _arg5 = &temp0; | |
4361 | if (! wxSize_helper(_obj5, &_arg5)) | |
4362 | return NULL; | |
4363 | } | |
4364 | { | |
4268f798 | 4365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
4366 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
4367 | ||
4268f798 | 4368 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4369 | if (PyErr_Occurred()) return NULL; |
4370 | } _resultobj = Py_BuildValue("i",_result); | |
4371 | { | |
4372 | if (_obj3) | |
4373 | delete _arg3; | |
4374 | } | |
4375 | return _resultobj; | |
4376 | } | |
4377 | ||
8ab979d7 | 4378 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 4379 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4380 | PyObject * _resultobj; |
4381 | wxString * _result; | |
4382 | wxStaticText * _arg0; | |
1d99702e | 4383 | PyObject * _argo0 = 0; |
efc5f224 | 4384 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4385 | |
4386 | self = self; | |
efc5f224 | 4387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 4388 | return NULL; |
1d99702e RD |
4389 | if (_argo0) { |
4390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
8ab979d7 RD |
4392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); |
4393 | return NULL; | |
4394 | } | |
4395 | } | |
8ab979d7 | 4396 | { |
4268f798 | 4397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4398 | _result = new wxString (wxStaticText_GetLabel(_arg0)); |
4399 | ||
4268f798 | 4400 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4401 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4402 | }{ |
eec92d76 | 4403 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
4404 | } |
4405 | { | |
4406 | delete _result; | |
4407 | } | |
4408 | return _resultobj; | |
4409 | } | |
4410 | ||
4411 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
efc5f224 | 4412 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4413 | PyObject * _resultobj; |
4414 | wxStaticText * _arg0; | |
4415 | wxString * _arg1; | |
1d99702e | 4416 | PyObject * _argo0 = 0; |
8ab979d7 | 4417 | PyObject * _obj1 = 0; |
efc5f224 | 4418 | char *_kwnames[] = { "self","label", NULL }; |
8ab979d7 RD |
4419 | |
4420 | self = self; | |
efc5f224 | 4421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4422 | return NULL; |
1d99702e RD |
4423 | if (_argo0) { |
4424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
8ab979d7 RD |
4426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); |
4427 | return NULL; | |
4428 | } | |
4429 | } | |
4430 | { | |
185d7c3e RD |
4431 | #if PYTHON_API_VERSION >= 1009 |
4432 | char* tmpPtr; int tmpSize; | |
4433 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4434 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4435 | return NULL; |
4436 | } | |
4437 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4438 | return NULL; | |
4439 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4440 | #else | |
8ab979d7 RD |
4441 | if (!PyString_Check(_obj1)) { |
4442 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4443 | return NULL; | |
4444 | } | |
185d7c3e RD |
4445 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4446 | #endif | |
8ab979d7 | 4447 | } |
cf694132 | 4448 | { |
4268f798 | 4449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4450 | wxStaticText_SetLabel(_arg0,*_arg1); |
4451 | ||
4268f798 | 4452 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4453 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4454 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4455 | _resultobj = Py_None; |
4456 | { | |
4457 | if (_obj1) | |
4458 | delete _arg1; | |
4459 | } | |
4460 | return _resultobj; | |
4461 | } | |
4462 | ||
900d9886 RD |
4463 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { |
4464 | wxListBox *src; | |
4465 | wxControlWithItems *dest; | |
4466 | src = (wxListBox *) ptr; | |
4467 | dest = (wxControlWithItems *) src; | |
4468 | return (void *) dest; | |
4469 | } | |
4470 | ||
8ab979d7 RD |
4471 | static void *SwigwxListBoxTowxControl(void *ptr) { |
4472 | wxListBox *src; | |
4473 | wxControl *dest; | |
4474 | src = (wxListBox *) ptr; | |
4475 | dest = (wxControl *) src; | |
4476 | return (void *) dest; | |
4477 | } | |
4478 | ||
4479 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4480 | wxListBox *src; | |
4481 | wxWindow *dest; | |
4482 | src = (wxListBox *) ptr; | |
4483 | dest = (wxWindow *) src; | |
4484 | return (void *) dest; | |
4485 | } | |
4486 | ||
4487 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4488 | wxListBox *src; | |
4489 | wxEvtHandler *dest; | |
4490 | src = (wxListBox *) ptr; | |
4491 | dest = (wxEvtHandler *) src; | |
4492 | return (void *) dest; | |
4493 | } | |
4494 | ||
9416aa89 RD |
4495 | static void *SwigwxListBoxTowxObject(void *ptr) { |
4496 | wxListBox *src; | |
4497 | wxObject *dest; | |
4498 | src = (wxListBox *) ptr; | |
4499 | dest = (wxObject *) src; | |
4500 | return (void *) dest; | |
4501 | } | |
4502 | ||
09f3d4e6 RD |
4503 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
4504 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4505 | PyObject * _resultobj; | |
4506 | wxListBox * _result; | |
4507 | wxWindow * _arg0; | |
4508 | wxWindowID _arg1; | |
4509 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4510 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4511 | int _arg4; | |
4512 | wxString * _arg5 = (wxString *) NULL; | |
4513 | long _arg6 = (long ) 0; | |
4514 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
4515 | char * _arg8 = (char *) "listBox"; | |
4516 | PyObject * _argo0 = 0; | |
4517 | wxPoint temp; | |
4518 | PyObject * _obj2 = 0; | |
4519 | wxSize temp0; | |
4520 | PyObject * _obj3 = 0; | |
4521 | PyObject * _obj5 = 0; | |
4522 | PyObject * _argo7 = 0; | |
4523 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
4524 | char _ptemp[128]; | |
4525 | ||
4526 | self = self; | |
4527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
4528 | return NULL; | |
4529 | if (_argo0) { | |
4530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4533 | return NULL; | |
4534 | } | |
4535 | } | |
4536 | if (_obj2) | |
4537 | { | |
4538 | _arg2 = &temp; | |
4539 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4540 | return NULL; | |
4541 | } | |
4542 | if (_obj3) | |
4543 | { | |
4544 | _arg3 = &temp0; | |
4545 | if (! wxSize_helper(_obj3, &_arg3)) | |
4546 | return NULL; | |
4547 | } | |
4548 | if (_obj5) | |
4549 | { | |
4550 | _arg5 = wxString_LIST_helper(_obj5); | |
4551 | if (_arg5 == NULL) { | |
4552 | return NULL; | |
4553 | } | |
4554 | } | |
4555 | if (_argo7) { | |
4556 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4557 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4559 | return NULL; | |
4560 | } | |
4561 | } | |
4562 | { | |
4563 | if (_obj5) { | |
4564 | _arg4 = PyList_Size(_obj5); | |
4565 | } | |
4566 | else { | |
4567 | _arg4 = 0; | |
4568 | } | |
4569 | } | |
4570 | { | |
4268f798 | 4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
4572 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
4573 | ||
4268f798 | 4574 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4575 | if (PyErr_Occurred()) return NULL; |
4576 | } if (_result) { | |
4577 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4578 | _resultobj = Py_BuildValue("s",_ptemp); | |
4579 | } else { | |
4580 | Py_INCREF(Py_None); | |
4581 | _resultobj = Py_None; | |
4582 | } | |
4583 | { | |
4584 | delete [] _arg5; | |
4585 | } | |
4586 | return _resultobj; | |
4587 | } | |
4588 | ||
4589 | #define new_wxPreListBox() (new wxListBox()) | |
4590 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4591 | PyObject * _resultobj; | |
4592 | wxListBox * _result; | |
4593 | char *_kwnames[] = { NULL }; | |
4594 | char _ptemp[128]; | |
4595 | ||
4596 | self = self; | |
4597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4598 | return NULL; | |
4599 | { | |
4268f798 | 4600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
4601 | _result = (wxListBox *)new_wxPreListBox(); |
4602 | ||
4268f798 | 4603 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4604 | if (PyErr_Occurred()) return NULL; |
4605 | } if (_result) { | |
4606 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4607 | _resultobj = Py_BuildValue("s",_ptemp); | |
4608 | } else { | |
4609 | Py_INCREF(Py_None); | |
4610 | _resultobj = Py_None; | |
4611 | } | |
4612 | return _resultobj; | |
4613 | } | |
4614 | ||
4615 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4616 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4617 | PyObject * _resultobj; |
09f3d4e6 RD |
4618 | bool _result; |
4619 | wxListBox * _arg0; | |
4620 | wxWindow * _arg1; | |
4621 | wxWindowID _arg2; | |
4622 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4623 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4624 | int _arg5; | |
4625 | wxString * _arg6 = (wxString *) NULL; | |
4626 | long _arg7 = (long ) 0; | |
4627 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
4628 | char * _arg9 = (char *) "listBox"; | |
1d99702e | 4629 | PyObject * _argo0 = 0; |
09f3d4e6 | 4630 | PyObject * _argo1 = 0; |
2f90df85 | 4631 | wxPoint temp; |
2f90df85 | 4632 | PyObject * _obj3 = 0; |
09f3d4e6 RD |
4633 | wxSize temp0; |
4634 | PyObject * _obj4 = 0; | |
4635 | PyObject * _obj6 = 0; | |
4636 | PyObject * _argo8 = 0; | |
4637 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
8ab979d7 RD |
4638 | |
4639 | self = self; | |
09f3d4e6 | 4640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
8ab979d7 | 4641 | return NULL; |
1d99702e RD |
4642 | if (_argo0) { |
4643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
09f3d4e6 RD |
4644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { |
4645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
8ab979d7 RD |
4646 | return NULL; |
4647 | } | |
4648 | } | |
09f3d4e6 RD |
4649 | if (_argo1) { |
4650 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4651 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
4653 | return NULL; | |
4654 | } | |
4655 | } | |
4656 | if (_obj3) | |
2f90df85 | 4657 | { |
09f3d4e6 RD |
4658 | _arg3 = &temp; |
4659 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 4660 | return NULL; |
2f90df85 | 4661 | } |
09f3d4e6 | 4662 | if (_obj4) |
2f90df85 | 4663 | { |
09f3d4e6 RD |
4664 | _arg4 = &temp0; |
4665 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 4666 | return NULL; |
2f90df85 | 4667 | } |
09f3d4e6 | 4668 | if (_obj6) |
8ab979d7 | 4669 | { |
09f3d4e6 RD |
4670 | _arg6 = wxString_LIST_helper(_obj6); |
4671 | if (_arg6 == NULL) { | |
8ab979d7 RD |
4672 | return NULL; |
4673 | } | |
4674 | } | |
09f3d4e6 RD |
4675 | if (_argo8) { |
4676 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
4677 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
4678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
8ab979d7 RD |
4679 | return NULL; |
4680 | } | |
4681 | } | |
4682 | { | |
09f3d4e6 RD |
4683 | if (_obj6) { |
4684 | _arg5 = PyList_Size(_obj6); | |
cf694132 RD |
4685 | } |
4686 | else { | |
09f3d4e6 | 4687 | _arg5 = 0; |
cf694132 | 4688 | } |
8ab979d7 | 4689 | } |
cf694132 | 4690 | { |
4268f798 | 4691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 | 4692 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
cf694132 | 4693 | |
4268f798 | 4694 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4695 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 4696 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 4697 | { |
09f3d4e6 | 4698 | delete [] _arg6; |
8ab979d7 RD |
4699 | } |
4700 | return _resultobj; | |
4701 | } | |
4702 | ||
8ab979d7 | 4703 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) |
efc5f224 | 4704 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4705 | PyObject * _resultobj; |
4706 | wxListBox * _arg0; | |
1d99702e | 4707 | PyObject * _argo0 = 0; |
efc5f224 | 4708 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4709 | |
4710 | self = self; | |
efc5f224 | 4711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) |
8ab979d7 | 4712 | return NULL; |
1d99702e RD |
4713 | if (_argo0) { |
4714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); |
4717 | return NULL; | |
4718 | } | |
4719 | } | |
cf694132 | 4720 | { |
4268f798 | 4721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4722 | wxListBox_Clear(_arg0); |
4723 | ||
4268f798 | 4724 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4725 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4726 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4727 | _resultobj = Py_None; |
4728 | return _resultobj; | |
4729 | } | |
4730 | ||
8ab979d7 | 4731 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) |
efc5f224 | 4732 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4733 | PyObject * _resultobj; |
4734 | wxListBox * _arg0; | |
4735 | int _arg1; | |
1d99702e | 4736 | PyObject * _argo0 = 0; |
efc5f224 | 4737 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
4738 | |
4739 | self = self; | |
efc5f224 | 4740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4741 | return NULL; |
1d99702e RD |
4742 | if (_argo0) { |
4743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); |
4746 | return NULL; | |
4747 | } | |
4748 | } | |
cf694132 | 4749 | { |
4268f798 | 4750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4751 | wxListBox_Deselect(_arg0,_arg1); |
4752 | ||
4268f798 | 4753 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4754 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4755 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4756 | _resultobj = Py_None; |
4757 | return _resultobj; | |
4758 | } | |
4759 | ||
cf694132 RD |
4760 | static PyObject * wxListBox_GetSelections(wxListBox *self) { |
4761 | wxArrayInt lst; | |
4762 | self->GetSelections(lst); | |
4763 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
f6bcfd97 | 4764 | for(size_t i=0; i<lst.GetCount(); i++) { |
cf694132 RD |
4765 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
4766 | } | |
4767 | return tup; | |
4768 | } | |
efc5f224 | 4769 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4770 | PyObject * _resultobj; |
4771 | PyObject * _result; | |
4772 | wxListBox * _arg0; | |
1d99702e | 4773 | PyObject * _argo0 = 0; |
efc5f224 | 4774 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
4775 | |
4776 | self = self; | |
efc5f224 | 4777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) |
cf694132 | 4778 | return NULL; |
1d99702e RD |
4779 | if (_argo0) { |
4780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
cf694132 RD |
4782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); |
4783 | return NULL; | |
4784 | } | |
4785 | } | |
4786 | { | |
4268f798 | 4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4788 | _result = (PyObject *)wxListBox_GetSelections(_arg0); |
4789 | ||
4268f798 | 4790 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4791 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
4792 | }{ |
4793 | _resultobj = _result; | |
4794 | } | |
8ab979d7 RD |
4795 | return _resultobj; |
4796 | } | |
4797 | ||
2f90df85 RD |
4798 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
4799 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4800 | PyObject * _resultobj; | |
4801 | wxListBox * _arg0; | |
4802 | int _arg1; | |
4803 | wxString * _arg2; | |
4804 | int _arg3; | |
4805 | PyObject * _argo0 = 0; | |
4806 | PyObject * _obj2 = 0; | |
eec92d76 | 4807 | char *_kwnames[] = { "self","choices","pos", NULL }; |
2f90df85 RD |
4808 | |
4809 | self = self; | |
4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4811 | return NULL; | |
4812 | if (_argo0) { | |
4813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
4816 | return NULL; | |
4817 | } | |
4818 | } | |
4819 | { | |
4820 | _arg2 = wxString_LIST_helper(_obj2); | |
4821 | if (_arg2 == NULL) { | |
4822 | return NULL; | |
4823 | } | |
4824 | } | |
4825 | { | |
4826 | if (_obj2) { | |
4827 | _arg1 = PyList_Size(_obj2); | |
4828 | } | |
4829 | else { | |
4830 | _arg1 = 0; | |
4831 | } | |
4832 | } | |
4833 | { | |
4268f798 | 4834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
4835 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
4836 | ||
4268f798 | 4837 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4838 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4839 | } Py_INCREF(Py_None); |
4840 | _resultobj = Py_None; | |
4841 | { | |
4842 | delete [] _arg2; | |
4843 | } | |
4844 | return _resultobj; | |
4845 | } | |
4846 | ||
0adbc166 RD |
4847 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
4848 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4849 | PyObject * _resultobj; | |
4850 | bool _result; | |
4851 | wxListBox * _arg0; | |
4852 | int _arg1; | |
4853 | PyObject * _argo0 = 0; | |
4854 | char *_kwnames[] = { "self","n", NULL }; | |
4855 | ||
4856 | self = self; | |
4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
4858 | return NULL; | |
4859 | if (_argo0) { | |
4860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); | |
4863 | return NULL; | |
4864 | } | |
4865 | } | |
4866 | { | |
4268f798 | 4867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0adbc166 | 4868 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); |
cf694132 | 4869 | |
4268f798 | 4870 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4871 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4872 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4873 | return _resultobj; |
4874 | } | |
4875 | ||
4876 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
efc5f224 | 4877 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4878 | PyObject * _resultobj; |
4879 | bool _result; | |
4880 | wxListBox * _arg0; | |
4881 | int _arg1; | |
1d99702e | 4882 | PyObject * _argo0 = 0; |
efc5f224 | 4883 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
4884 | |
4885 | self = self; | |
efc5f224 | 4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4887 | return NULL; |
1d99702e RD |
4888 | if (_argo0) { |
4889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); |
4892 | return NULL; | |
4893 | } | |
4894 | } | |
cf694132 | 4895 | { |
4268f798 | 4896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4897 | _result = (bool )wxListBox_Selected(_arg0,_arg1); |
4898 | ||
4268f798 | 4899 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4900 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4901 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4902 | return _resultobj; |
4903 | } | |
4904 | ||
4905 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
efc5f224 | 4906 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4907 | PyObject * _resultobj; |
4908 | wxListBox * _arg0; | |
4909 | int _arg1; | |
4910 | wxString * _arg2; | |
1d99702e | 4911 | PyObject * _argo0 = 0; |
8ab979d7 | 4912 | PyObject * _obj2 = 0; |
eec92d76 | 4913 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
4914 | |
4915 | self = self; | |
efc5f224 | 4916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 4917 | return NULL; |
1d99702e RD |
4918 | if (_argo0) { |
4919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); |
4922 | return NULL; | |
4923 | } | |
4924 | } | |
4925 | if (_obj2) | |
4926 | { | |
4927 | _arg2 = wxString_LIST_helper(_obj2); | |
4928 | if (_arg2 == NULL) { | |
4929 | return NULL; | |
4930 | } | |
4931 | } | |
4932 | { | |
cf694132 RD |
4933 | if (_obj2) { |
4934 | _arg1 = PyList_Size(_obj2); | |
4935 | } | |
4936 | else { | |
4937 | _arg1 = 0; | |
4938 | } | |
8ab979d7 | 4939 | } |
cf694132 | 4940 | { |
4268f798 | 4941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4942 | wxListBox_Set(_arg0,_arg1,_arg2); |
4943 | ||
4268f798 | 4944 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4945 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4946 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4947 | _resultobj = Py_None; |
4948 | { | |
4949 | delete [] _arg2; | |
4950 | } | |
4951 | return _resultobj; | |
4952 | } | |
4953 | ||
4954 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
efc5f224 | 4955 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4956 | PyObject * _resultobj; |
4957 | wxListBox * _arg0; | |
4958 | int _arg1; | |
1d99702e | 4959 | PyObject * _argo0 = 0; |
efc5f224 | 4960 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
4961 | |
4962 | self = self; | |
efc5f224 | 4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4964 | return NULL; |
1d99702e RD |
4965 | if (_argo0) { |
4966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); |
4969 | return NULL; | |
4970 | } | |
4971 | } | |
cf694132 | 4972 | { |
4268f798 | 4973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4974 | wxListBox_SetFirstItem(_arg0,_arg1); |
4975 | ||
4268f798 | 4976 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4977 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4978 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4979 | _resultobj = Py_None; |
4980 | return _resultobj; | |
4981 | } | |
4982 | ||
4983 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
efc5f224 | 4984 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4985 | PyObject * _resultobj; |
4986 | wxListBox * _arg0; | |
4987 | wxString * _arg1; | |
1d99702e | 4988 | PyObject * _argo0 = 0; |
8ab979d7 | 4989 | PyObject * _obj1 = 0; |
efc5f224 | 4990 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
4991 | |
4992 | self = self; | |
efc5f224 | 4993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4994 | return NULL; |
1d99702e RD |
4995 | if (_argo0) { |
4996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); |
4999 | return NULL; | |
5000 | } | |
5001 | } | |
5002 | { | |
185d7c3e RD |
5003 | #if PYTHON_API_VERSION >= 1009 |
5004 | char* tmpPtr; int tmpSize; | |
5005 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5006 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5007 | return NULL; |
5008 | } | |
5009 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5010 | return NULL; | |
5011 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5012 | #else | |
8ab979d7 RD |
5013 | if (!PyString_Check(_obj1)) { |
5014 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5015 | return NULL; | |
5016 | } | |
185d7c3e RD |
5017 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5018 | #endif | |
8ab979d7 | 5019 | } |
cf694132 | 5020 | { |
4268f798 | 5021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5022 | wxListBox_SetFirstItemStr(_arg0,*_arg1); |
5023 | ||
4268f798 | 5024 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5025 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5026 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5027 | _resultobj = Py_None; |
5028 | { | |
5029 | if (_obj1) | |
5030 | delete _arg1; | |
5031 | } | |
5032 | return _resultobj; | |
5033 | } | |
5034 | ||
5035 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 5036 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5037 | PyObject * _resultobj; |
5038 | wxListBox * _arg0; | |
5039 | int _arg1; | |
1d99702e RD |
5040 | bool _arg2 = (bool ) TRUE; |
5041 | PyObject * _argo0 = 0; | |
5042 | int tempbool2 = (int) TRUE; | |
efc5f224 | 5043 | char *_kwnames[] = { "self","n","select", NULL }; |
8ab979d7 RD |
5044 | |
5045 | self = self; | |
efc5f224 | 5046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 5047 | return NULL; |
1d99702e RD |
5048 | if (_argo0) { |
5049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
5051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); |
5052 | return NULL; | |
5053 | } | |
5054 | } | |
5055 | _arg2 = (bool ) tempbool2; | |
cf694132 | 5056 | { |
4268f798 | 5057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5058 | wxListBox_SetSelection(_arg0,_arg1,_arg2); |
5059 | ||
4268f798 | 5060 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5061 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5062 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5063 | _resultobj = Py_None; |
5064 | return _resultobj; | |
5065 | } | |
5066 | ||
5067 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
efc5f224 | 5068 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5069 | PyObject * _resultobj; |
5070 | wxListBox * _arg0; | |
5071 | int _arg1; | |
5072 | wxString * _arg2; | |
1d99702e | 5073 | PyObject * _argo0 = 0; |
8ab979d7 | 5074 | PyObject * _obj2 = 0; |
efc5f224 | 5075 | char *_kwnames[] = { "self","n","string", NULL }; |
8ab979d7 RD |
5076 | |
5077 | self = self; | |
efc5f224 | 5078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 5079 | return NULL; |
1d99702e RD |
5080 | if (_argo0) { |
5081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
5083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); |
5084 | return NULL; | |
5085 | } | |
5086 | } | |
5087 | { | |
185d7c3e RD |
5088 | #if PYTHON_API_VERSION >= 1009 |
5089 | char* tmpPtr; int tmpSize; | |
5090 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 5091 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5092 | return NULL; |
5093 | } | |
5094 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5095 | return NULL; | |
5096 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5097 | #else | |
8ab979d7 RD |
5098 | if (!PyString_Check(_obj2)) { |
5099 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5100 | return NULL; | |
5101 | } | |
185d7c3e RD |
5102 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5103 | #endif | |
8ab979d7 | 5104 | } |
cf694132 | 5105 | { |
4268f798 | 5106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5107 | wxListBox_SetString(_arg0,_arg1,*_arg2); |
5108 | ||
4268f798 | 5109 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5110 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5111 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5112 | _resultobj = Py_None; |
5113 | { | |
5114 | if (_obj2) | |
5115 | delete _arg2; | |
5116 | } | |
5117 | return _resultobj; | |
5118 | } | |
5119 | ||
5120 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 5121 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5122 | PyObject * _resultobj; |
5123 | wxListBox * _arg0; | |
5124 | wxString * _arg1; | |
1d99702e RD |
5125 | bool _arg2 = (bool ) TRUE; |
5126 | PyObject * _argo0 = 0; | |
8ab979d7 | 5127 | PyObject * _obj1 = 0; |
1d99702e | 5128 | int tempbool2 = (int) TRUE; |
efc5f224 | 5129 | char *_kwnames[] = { "self","string","select", NULL }; |
8ab979d7 RD |
5130 | |
5131 | self = self; | |
efc5f224 | 5132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 5133 | return NULL; |
1d99702e RD |
5134 | if (_argo0) { |
5135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
5137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); |
5138 | return NULL; | |
5139 | } | |
5140 | } | |
5141 | { | |
185d7c3e RD |
5142 | #if PYTHON_API_VERSION >= 1009 |
5143 | char* tmpPtr; int tmpSize; | |
5144 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5145 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5146 | return NULL; |
5147 | } | |
5148 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5149 | return NULL; | |
5150 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5151 | #else | |
8ab979d7 RD |
5152 | if (!PyString_Check(_obj1)) { |
5153 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5154 | return NULL; | |
5155 | } | |
185d7c3e RD |
5156 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5157 | #endif | |
8ab979d7 RD |
5158 | } |
5159 | _arg2 = (bool ) tempbool2; | |
cf694132 | 5160 | { |
4268f798 | 5161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5162 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); |
5163 | ||
4268f798 | 5164 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5165 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5166 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5167 | _resultobj = Py_None; |
5168 | { | |
5169 | if (_obj1) | |
5170 | delete _arg1; | |
5171 | } | |
5172 | return _resultobj; | |
5173 | } | |
5174 | ||
9c039d08 RD |
5175 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { |
5176 | wxCheckListBox *src; | |
5177 | wxListBox *dest; | |
5178 | src = (wxCheckListBox *) ptr; | |
5179 | dest = (wxListBox *) src; | |
5180 | return (void *) dest; | |
5181 | } | |
5182 | ||
900d9886 RD |
5183 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { |
5184 | wxCheckListBox *src; | |
5185 | wxControlWithItems *dest; | |
5186 | src = (wxCheckListBox *) ptr; | |
5187 | dest = (wxControlWithItems *) src; | |
5188 | return (void *) dest; | |
5189 | } | |
5190 | ||
9c039d08 RD |
5191 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { |
5192 | wxCheckListBox *src; | |
5193 | wxControl *dest; | |
5194 | src = (wxCheckListBox *) ptr; | |
5195 | dest = (wxControl *) src; | |
5196 | return (void *) dest; | |
5197 | } | |
5198 | ||
5199 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5200 | wxCheckListBox *src; | |
5201 | wxWindow *dest; | |
5202 | src = (wxCheckListBox *) ptr; | |
5203 | dest = (wxWindow *) src; | |
5204 | return (void *) dest; | |
5205 | } | |
5206 | ||
5207 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5208 | wxCheckListBox *src; | |
5209 | wxEvtHandler *dest; | |
5210 | src = (wxCheckListBox *) ptr; | |
5211 | dest = (wxEvtHandler *) src; | |
5212 | return (void *) dest; | |
5213 | } | |
5214 | ||
9416aa89 RD |
5215 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { |
5216 | wxCheckListBox *src; | |
5217 | wxObject *dest; | |
5218 | src = (wxCheckListBox *) ptr; | |
5219 | dest = (wxObject *) src; | |
5220 | return (void *) dest; | |
5221 | } | |
5222 | ||
9c039d08 | 5223 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
efc5f224 | 5224 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5225 | PyObject * _resultobj; |
5226 | wxCheckListBox * _result; | |
5227 | wxWindow * _arg0; | |
5228 | wxWindowID _arg1; | |
e508a2b6 RD |
5229 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5230 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5231 | int _arg4 = (int ) 0; |
5232 | wxString * _arg5 = (wxString *) NULL; | |
5233 | long _arg6 = (long ) 0; | |
e508a2b6 | 5234 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
5235 | char * _arg8 = (char *) "listBox"; |
5236 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5237 | wxPoint temp; |
5238 | PyObject * _obj2 = 0; | |
5239 | wxSize temp0; | |
5240 | PyObject * _obj3 = 0; | |
9c039d08 | 5241 | PyObject * _obj5 = 0; |
1d99702e | 5242 | PyObject * _argo7 = 0; |
eec92d76 | 5243 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
9c039d08 RD |
5244 | char _ptemp[128]; |
5245 | ||
5246 | self = self; | |
2f90df85 | 5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
9c039d08 | 5248 | return NULL; |
1d99702e RD |
5249 | if (_argo0) { |
5250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9c039d08 RD |
5252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); |
5253 | return NULL; | |
5254 | } | |
5255 | } | |
2f90df85 RD |
5256 | if (_obj2) |
5257 | { | |
5258 | _arg2 = &temp; | |
5259 | if (! wxPoint_helper(_obj2, &_arg2)) | |
9c039d08 | 5260 | return NULL; |
2f90df85 RD |
5261 | } |
5262 | if (_obj3) | |
5263 | { | |
5264 | _arg3 = &temp0; | |
5265 | if (! wxSize_helper(_obj3, &_arg3)) | |
9c039d08 | 5266 | return NULL; |
2f90df85 | 5267 | } |
9c039d08 RD |
5268 | if (_obj5) |
5269 | { | |
5270 | _arg5 = wxString_LIST_helper(_obj5); | |
5271 | if (_arg5 == NULL) { | |
5272 | return NULL; | |
5273 | } | |
5274 | } | |
1d99702e RD |
5275 | if (_argo7) { |
5276 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5277 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9c039d08 RD |
5278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); |
5279 | return NULL; | |
5280 | } | |
5281 | } | |
5282 | { | |
cf694132 RD |
5283 | if (_obj5) { |
5284 | _arg4 = PyList_Size(_obj5); | |
5285 | } | |
5286 | else { | |
5287 | _arg4 = 0; | |
5288 | } | |
9c039d08 | 5289 | } |
cf694132 | 5290 | { |
4268f798 | 5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5292 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
5293 | ||
4268f798 | 5294 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5295 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5296 | } if (_result) { |
5297 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5298 | _resultobj = Py_BuildValue("s",_ptemp); | |
5299 | } else { | |
5300 | Py_INCREF(Py_None); | |
5301 | _resultobj = Py_None; | |
5302 | } | |
9c039d08 RD |
5303 | { |
5304 | delete [] _arg5; | |
5305 | } | |
5306 | return _resultobj; | |
5307 | } | |
5308 | ||
09f3d4e6 RD |
5309 | #define new_wxPreCheckListBox() (new wxCheckListBox()) |
5310 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5311 | PyObject * _resultobj; | |
5312 | wxCheckListBox * _result; | |
5313 | char *_kwnames[] = { NULL }; | |
5314 | char _ptemp[128]; | |
5315 | ||
5316 | self = self; | |
5317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5318 | return NULL; | |
5319 | { | |
4268f798 | 5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5321 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); |
5322 | ||
4268f798 | 5323 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5324 | if (PyErr_Occurred()) return NULL; |
5325 | } if (_result) { | |
5326 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5327 | _resultobj = Py_BuildValue("s",_ptemp); | |
5328 | } else { | |
5329 | Py_INCREF(Py_None); | |
5330 | _resultobj = Py_None; | |
5331 | } | |
5332 | return _resultobj; | |
5333 | } | |
5334 | ||
5335 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5336 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5337 | PyObject * _resultobj; | |
5338 | bool _result; | |
5339 | wxCheckListBox * _arg0; | |
5340 | wxWindow * _arg1; | |
5341 | wxWindowID _arg2; | |
5342 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5343 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5344 | int _arg5 = (int ) 0; | |
5345 | wxString * _arg6 = (wxString *) NULL; | |
5346 | long _arg7 = (long ) 0; | |
5347 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5348 | char * _arg9 = (char *) "listBox"; | |
5349 | PyObject * _argo0 = 0; | |
5350 | PyObject * _argo1 = 0; | |
5351 | wxPoint temp; | |
5352 | PyObject * _obj3 = 0; | |
5353 | wxSize temp0; | |
5354 | PyObject * _obj4 = 0; | |
5355 | PyObject * _obj6 = 0; | |
5356 | PyObject * _argo8 = 0; | |
5357 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5358 | ||
5359 | self = self; | |
5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
5361 | return NULL; | |
5362 | if (_argo0) { | |
5363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5366 | return NULL; | |
5367 | } | |
5368 | } | |
5369 | if (_argo1) { | |
5370 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5371 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5373 | return NULL; | |
5374 | } | |
5375 | } | |
5376 | if (_obj3) | |
5377 | { | |
5378 | _arg3 = &temp; | |
5379 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5380 | return NULL; | |
5381 | } | |
5382 | if (_obj4) | |
5383 | { | |
5384 | _arg4 = &temp0; | |
5385 | if (! wxSize_helper(_obj4, &_arg4)) | |
5386 | return NULL; | |
5387 | } | |
5388 | if (_obj6) | |
5389 | { | |
5390 | _arg6 = wxString_LIST_helper(_obj6); | |
5391 | if (_arg6 == NULL) { | |
5392 | return NULL; | |
5393 | } | |
5394 | } | |
5395 | if (_argo8) { | |
5396 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5397 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5399 | return NULL; | |
5400 | } | |
5401 | } | |
5402 | { | |
5403 | if (_obj6) { | |
5404 | _arg5 = PyList_Size(_obj6); | |
5405 | } | |
5406 | else { | |
5407 | _arg5 = 0; | |
5408 | } | |
5409 | } | |
5410 | { | |
4268f798 | 5411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5412 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
5413 | ||
4268f798 | 5414 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5415 | if (PyErr_Occurred()) return NULL; |
5416 | } _resultobj = Py_BuildValue("i",_result); | |
5417 | { | |
5418 | delete [] _arg6; | |
5419 | } | |
5420 | return _resultobj; | |
5421 | } | |
5422 | ||
9c039d08 | 5423 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
efc5f224 | 5424 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5425 | PyObject * _resultobj; |
5426 | bool _result; | |
5427 | wxCheckListBox * _arg0; | |
5428 | int _arg1; | |
1d99702e | 5429 | PyObject * _argo0 = 0; |
efc5f224 | 5430 | char *_kwnames[] = { "self","uiIndex", NULL }; |
9c039d08 RD |
5431 | |
5432 | self = self; | |
efc5f224 | 5433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 5434 | return NULL; |
1d99702e RD |
5435 | if (_argo0) { |
5436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
5438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); |
5439 | return NULL; | |
5440 | } | |
5441 | } | |
cf694132 | 5442 | { |
4268f798 | 5443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5444 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); |
5445 | ||
4268f798 | 5446 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5447 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5448 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
5449 | return _resultobj; |
5450 | } | |
5451 | ||
5452 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 5453 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5454 | PyObject * _resultobj; |
5455 | wxCheckListBox * _arg0; | |
5456 | int _arg1; | |
694759cf | 5457 | int _arg2 = (int ) TRUE; |
1d99702e | 5458 | PyObject * _argo0 = 0; |
efc5f224 | 5459 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; |
9c039d08 RD |
5460 | |
5461 | self = self; | |
694759cf | 5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) |
9c039d08 | 5463 | return NULL; |
1d99702e RD |
5464 | if (_argo0) { |
5465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
5467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); |
5468 | return NULL; | |
5469 | } | |
5470 | } | |
cf694132 | 5471 | { |
4268f798 | 5472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5473 | wxCheckListBox_Check(_arg0,_arg1,_arg2); |
5474 | ||
4268f798 | 5475 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5476 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5477 | } Py_INCREF(Py_None); |
9c039d08 RD |
5478 | _resultobj = Py_None; |
5479 | return _resultobj; | |
5480 | } | |
5481 | ||
694759cf RD |
5482 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
5483 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5484 | PyObject * _resultobj; | |
5485 | wxCheckListBox * _arg0; | |
5486 | int _arg1; | |
5487 | wxString * _arg2; | |
5488 | int _arg3; | |
5489 | PyObject * _argo0 = 0; | |
5490 | PyObject * _obj2 = 0; | |
eec92d76 | 5491 | char *_kwnames[] = { "self","choices","pos", NULL }; |
694759cf RD |
5492 | |
5493 | self = self; | |
5494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5495 | return NULL; | |
5496 | if (_argo0) { | |
5497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5500 | return NULL; | |
5501 | } | |
5502 | } | |
5503 | { | |
5504 | _arg2 = wxString_LIST_helper(_obj2); | |
5505 | if (_arg2 == NULL) { | |
5506 | return NULL; | |
5507 | } | |
5508 | } | |
5509 | { | |
5510 | if (_obj2) { | |
5511 | _arg1 = PyList_Size(_obj2); | |
5512 | } | |
5513 | else { | |
5514 | _arg1 = 0; | |
5515 | } | |
5516 | } | |
5517 | { | |
4268f798 | 5518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
694759cf RD |
5519 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
5520 | ||
4268f798 | 5521 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5522 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5523 | } Py_INCREF(Py_None); |
5524 | _resultobj = Py_None; | |
5525 | { | |
5526 | delete [] _arg2; | |
5527 | } | |
5528 | return _resultobj; | |
5529 | } | |
5530 | ||
9c039d08 | 5531 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) |
efc5f224 | 5532 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5533 | PyObject * _resultobj; |
5534 | int _result; | |
5535 | wxCheckListBox * _arg0; | |
1d99702e | 5536 | PyObject * _argo0 = 0; |
efc5f224 | 5537 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
5538 | |
5539 | self = self; | |
efc5f224 | 5540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) |
9c039d08 | 5541 | return NULL; |
1d99702e RD |
5542 | if (_argo0) { |
5543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
5545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); |
5546 | return NULL; | |
5547 | } | |
5548 | } | |
cf694132 | 5549 | { |
4268f798 | 5550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5551 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); |
5552 | ||
4268f798 | 5553 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5554 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5555 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
5556 | return _resultobj; |
5557 | } | |
5558 | ||
d56cebe7 RD |
5559 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) |
5560 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5561 | PyObject * _resultobj; | |
5562 | wxTextAttr * _result; | |
5563 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5564 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5565 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5566 | wxColour temp; | |
5567 | PyObject * _obj0 = 0; | |
5568 | wxColour temp0; | |
5569 | PyObject * _obj1 = 0; | |
5570 | PyObject * _argo2 = 0; | |
5571 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5572 | char _ptemp[128]; | |
5573 | ||
5574 | self = self; | |
5575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5576 | return NULL; | |
5577 | if (_obj0) | |
5578 | { | |
5579 | _arg0 = &temp; | |
5580 | if (! wxColour_helper(_obj0, &_arg0)) | |
5581 | return NULL; | |
5582 | } | |
5583 | if (_obj1) | |
5584 | { | |
5585 | _arg1 = &temp0; | |
5586 | if (! wxColour_helper(_obj1, &_arg1)) | |
5587 | return NULL; | |
5588 | } | |
5589 | if (_argo2) { | |
5590 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5591 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
5593 | return NULL; | |
5594 | } | |
5595 | } | |
5596 | { | |
4268f798 | 5597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 RD |
5598 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); |
5599 | ||
4268f798 | 5600 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5601 | if (PyErr_Occurred()) return NULL; |
5602 | } if (_result) { | |
5603 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
5604 | _resultobj = Py_BuildValue("s",_ptemp); | |
5605 | } else { | |
5606 | Py_INCREF(Py_None); | |
5607 | _resultobj = Py_None; | |
5608 | } | |
5609 | return _resultobj; | |
5610 | } | |
5611 | ||
5612 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
5613 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5614 | PyObject * _resultobj; | |
5615 | wxTextAttr * _arg0; | |
5616 | PyObject * _argo0 = 0; | |
5617 | char *_kwnames[] = { "self", NULL }; | |
5618 | ||
5619 | self = self; | |
5620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
5621 | return NULL; | |
5622 | if (_argo0) { | |
5623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
5626 | return NULL; | |
5627 | } | |
5628 | } | |
5629 | { | |
4268f798 | 5630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 RD |
5631 | delete_wxTextAttr(_arg0); |
5632 | ||
4268f798 | 5633 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5634 | if (PyErr_Occurred()) return NULL; |
5635 | } Py_INCREF(Py_None); | |
5636 | _resultobj = Py_None; | |
5637 | return _resultobj; | |
5638 | } | |
5639 | ||
5640 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5641 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5642 | PyObject * _resultobj; | |
5643 | wxTextAttr * _arg0; | |
5644 | wxColour * _arg1; | |
5645 | PyObject * _argo0 = 0; | |
5646 | wxColour temp; | |
5647 | PyObject * _obj1 = 0; | |
5648 | char *_kwnames[] = { "self","colText", NULL }; | |
5649 | ||
5650 | self = self; | |
5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5652 | return NULL; | |
5653 | if (_argo0) { | |
5654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
5657 | return NULL; | |
5658 | } | |
5659 | } | |
5660 | { | |
5661 | _arg1 = &temp; | |
5662 | if (! wxColour_helper(_obj1, &_arg1)) | |
5663 | return NULL; | |
5664 | } | |
5665 | { | |
4268f798 | 5666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 RD |
5667 | wxTextAttr_SetTextColour(_arg0,*_arg1); |
5668 | ||
4268f798 | 5669 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5670 | if (PyErr_Occurred()) return NULL; |
5671 | } Py_INCREF(Py_None); | |
5672 | _resultobj = Py_None; | |
5673 | return _resultobj; | |
5674 | } | |
5675 | ||
5676 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5677 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5678 | PyObject * _resultobj; | |
5679 | wxTextAttr * _arg0; | |
5680 | wxColour * _arg1; | |
5681 | PyObject * _argo0 = 0; | |
5682 | wxColour temp; | |
5683 | PyObject * _obj1 = 0; | |
5684 | char *_kwnames[] = { "self","colBack", NULL }; | |
5685 | ||
5686 | self = self; | |
5687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5688 | return NULL; | |
5689 | if (_argo0) { | |
5690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
5693 | return NULL; | |
5694 | } | |
5695 | } | |
5696 | { | |
5697 | _arg1 = &temp; | |
5698 | if (! wxColour_helper(_obj1, &_arg1)) | |
5699 | return NULL; | |
5700 | } | |
5701 | { | |
4268f798 | 5702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 RD |
5703 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); |
5704 | ||
4268f798 | 5705 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5706 | if (PyErr_Occurred()) return NULL; |
5707 | } Py_INCREF(Py_None); | |
5708 | _resultobj = Py_None; | |
5709 | return _resultobj; | |
5710 | } | |
5711 | ||
5712 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5713 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5714 | PyObject * _resultobj; | |
5715 | wxTextAttr * _arg0; | |
5716 | wxFont * _arg1; | |
5717 | PyObject * _argo0 = 0; | |
5718 | PyObject * _argo1 = 0; | |
5719 | char *_kwnames[] = { "self","font", NULL }; | |
5720 | ||
5721 | self = self; | |
5722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5723 | return NULL; | |
5724 | if (_argo0) { | |
5725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
5728 | return NULL; | |
5729 | } | |
5730 | } | |
5731 | if (_argo1) { | |
5732 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5733 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
5735 | return NULL; | |
5736 | } | |
5737 | } | |
5738 | { | |
4268f798 | 5739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 RD |
5740 | wxTextAttr_SetFont(_arg0,*_arg1); |
5741 | ||
4268f798 | 5742 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5743 | if (PyErr_Occurred()) return NULL; |
5744 | } Py_INCREF(Py_None); | |
5745 | _resultobj = Py_None; | |
5746 | return _resultobj; | |
5747 | } | |
5748 | ||
5749 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5750 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5751 | PyObject * _resultobj; | |
5752 | bool _result; | |
5753 | wxTextAttr * _arg0; | |
5754 | PyObject * _argo0 = 0; | |
5755 | char *_kwnames[] = { "self", NULL }; | |
5756 | ||
5757 | self = self; | |
5758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
5759 | return NULL; | |
5760 | if (_argo0) { | |
5761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
5764 | return NULL; | |
5765 | } | |
5766 | } | |
5767 | { | |
4268f798 | 5768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 RD |
5769 | _result = (bool )wxTextAttr_HasTextColour(_arg0); |
5770 | ||
4268f798 | 5771 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5772 | if (PyErr_Occurred()) return NULL; |
5773 | } _resultobj = Py_BuildValue("i",_result); | |
5774 | return _resultobj; | |
5775 | } | |
5776 | ||
5777 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5778 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5779 | PyObject * _resultobj; | |
5780 | bool _result; | |
5781 | wxTextAttr * _arg0; | |
5782 | PyObject * _argo0 = 0; | |
5783 | char *_kwnames[] = { "self", NULL }; | |
5784 | ||
5785 | self = self; | |
5786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5787 | return NULL; | |
5788 | if (_argo0) { | |
5789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
5792 | return NULL; | |
5793 | } | |
5794 | } | |
5795 | { | |
4268f798 | 5796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 RD |
5797 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); |
5798 | ||
4268f798 | 5799 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5800 | if (PyErr_Occurred()) return NULL; |
5801 | } _resultobj = Py_BuildValue("i",_result); | |
5802 | return _resultobj; | |
5803 | } | |
5804 | ||
5805 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5806 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5807 | PyObject * _resultobj; | |
5808 | bool _result; | |
5809 | wxTextAttr * _arg0; | |
5810 | PyObject * _argo0 = 0; | |
5811 | char *_kwnames[] = { "self", NULL }; | |
5812 | ||
5813 | self = self; | |
5814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
5815 | return NULL; | |
5816 | if (_argo0) { | |
5817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
5820 | return NULL; | |
5821 | } | |
5822 | } | |
5823 | { | |
4268f798 | 5824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 RD |
5825 | _result = (bool )wxTextAttr_HasFont(_arg0); |
5826 | ||
4268f798 | 5827 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5828 | if (PyErr_Occurred()) return NULL; |
5829 | } _resultobj = Py_BuildValue("i",_result); | |
5830 | return _resultobj; | |
5831 | } | |
5832 | ||
5833 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5834 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5835 | PyObject * _resultobj; | |
5836 | wxColour * _result; | |
5837 | wxTextAttr * _arg0; | |
5838 | PyObject * _argo0 = 0; | |
5839 | char *_kwnames[] = { "self", NULL }; | |
5840 | char _ptemp[128]; | |
5841 | ||
5842 | self = self; | |
5843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
5844 | return NULL; | |
5845 | if (_argo0) { | |
5846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
5849 | return NULL; | |
5850 | } | |
5851 | } | |
5852 | { | |
4268f798 | 5853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 5854 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); |
d56cebe7 | 5855 | |
4268f798 | 5856 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 5857 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5858 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5859 | _resultobj = Py_BuildValue("s",_ptemp); | |
d56cebe7 RD |
5860 | return _resultobj; |
5861 | } | |
5862 | ||
5863 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5864 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5865 | PyObject * _resultobj; | |
5866 | wxColour * _result; | |
5867 | wxTextAttr * _arg0; | |
5868 | PyObject * _argo0 = 0; | |
5869 | char *_kwnames[] = { "self", NULL }; | |
5870 | char _ptemp[128]; | |
5871 | ||
5872 | self = self; | |
5873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5874 | return NULL; | |
5875 | if (_argo0) { | |
5876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
5879 | return NULL; | |
5880 | } | |
5881 | } | |
5882 | { | |
4268f798 | 5883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 5884 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); |
d56cebe7 | 5885 | |
4268f798 | 5886 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 5887 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5888 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5889 | _resultobj = Py_BuildValue("s",_ptemp); | |
d56cebe7 RD |
5890 | return _resultobj; |
5891 | } | |
5892 | ||
5893 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5894 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5895 | PyObject * _resultobj; | |
5896 | wxFont * _result; | |
5897 | wxTextAttr * _arg0; | |
5898 | PyObject * _argo0 = 0; | |
5899 | char *_kwnames[] = { "self", NULL }; | |
5900 | char _ptemp[128]; | |
5901 | ||
5902 | self = self; | |
5903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
5904 | return NULL; | |
5905 | if (_argo0) { | |
5906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
5909 | return NULL; | |
5910 | } | |
5911 | } | |
5912 | { | |
4268f798 | 5913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 5914 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); |
d56cebe7 | 5915 | |
4268f798 | 5916 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 5917 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5918 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5919 | _resultobj = Py_BuildValue("s",_ptemp); | |
d56cebe7 RD |
5920 | return _resultobj; |
5921 | } | |
5922 | ||
98624b49 RD |
5923 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) |
5924 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5925 | PyObject * _resultobj; | |
5926 | bool _result; | |
5927 | wxTextAttr * _arg0; | |
5928 | PyObject * _argo0 = 0; | |
5929 | char *_kwnames[] = { "self", NULL }; | |
5930 | ||
5931 | self = self; | |
5932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
5933 | return NULL; | |
5934 | if (_argo0) { | |
5935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
5938 | return NULL; | |
5939 | } | |
5940 | } | |
5941 | { | |
4268f798 | 5942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 RD |
5943 | _result = (bool )wxTextAttr_IsDefault(_arg0); |
5944 | ||
4268f798 | 5945 | wxPyEndAllowThreads(__tstate); |
98624b49 RD |
5946 | if (PyErr_Occurred()) return NULL; |
5947 | } _resultobj = Py_BuildValue("i",_result); | |
5948 | return _resultobj; | |
5949 | } | |
5950 | ||
2f4e9287 RD |
5951 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { |
5952 | PyObject * _resultobj; | |
5953 | wxTextAttr * _result; | |
5954 | wxTextAttr * _arg0; | |
5955 | wxTextAttr * _arg1; | |
5956 | wxTextCtrl * _arg2; | |
5957 | PyObject * _argo0 = 0; | |
5958 | PyObject * _argo1 = 0; | |
5959 | PyObject * _argo2 = 0; | |
5960 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
5961 | char _ptemp[128]; | |
5962 | ||
5963 | self = self; | |
5964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5965 | return NULL; | |
5966 | if (_argo0) { | |
5967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
5970 | return NULL; | |
5971 | } | |
5972 | } | |
5973 | if (_argo1) { | |
5974 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5975 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
5976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
5977 | return NULL; | |
5978 | } | |
5979 | } | |
5980 | if (_argo2) { | |
5981 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5982 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
5983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
5984 | return NULL; | |
5985 | } | |
5986 | } | |
5987 | { | |
4268f798 | 5988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f4e9287 RD |
5989 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); |
5990 | ||
4268f798 | 5991 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
5992 | if (PyErr_Occurred()) return NULL; |
5993 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
5994 | _resultobj = Py_BuildValue("s",_ptemp); | |
5995 | return _resultobj; | |
5996 | } | |
5997 | ||
8ab979d7 RD |
5998 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
5999 | wxTextCtrl *src; | |
6000 | wxControl *dest; | |
6001 | src = (wxTextCtrl *) ptr; | |
6002 | dest = (wxControl *) src; | |
6003 | return (void *) dest; | |
6004 | } | |
6005 | ||
6006 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
6007 | wxTextCtrl *src; | |
6008 | wxWindow *dest; | |
6009 | src = (wxTextCtrl *) ptr; | |
6010 | dest = (wxWindow *) src; | |
6011 | return (void *) dest; | |
6012 | } | |
6013 | ||
6014 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
6015 | wxTextCtrl *src; | |
6016 | wxEvtHandler *dest; | |
6017 | src = (wxTextCtrl *) ptr; | |
6018 | dest = (wxEvtHandler *) src; | |
6019 | return (void *) dest; | |
6020 | } | |
6021 | ||
9416aa89 RD |
6022 | static void *SwigwxTextCtrlTowxObject(void *ptr) { |
6023 | wxTextCtrl *src; | |
6024 | wxObject *dest; | |
6025 | src = (wxTextCtrl *) ptr; | |
6026 | dest = (wxObject *) src; | |
6027 | return (void *) dest; | |
6028 | } | |
6029 | ||
8ab979d7 | 6030 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 6031 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6032 | PyObject * _resultobj; |
6033 | wxTextCtrl * _result; | |
6034 | wxWindow * _arg0; | |
6035 | wxWindowID _arg1; | |
1d99702e | 6036 | char * _arg2 = (char *) ""; |
e508a2b6 RD |
6037 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6038 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6039 | long _arg5 = (long ) 0; |
e508a2b6 | 6040 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6041 | char * _arg7 = (char *) "text"; |
6042 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6043 | wxPoint temp; |
6044 | PyObject * _obj3 = 0; | |
6045 | wxSize temp0; | |
6046 | PyObject * _obj4 = 0; | |
1d99702e | 6047 | PyObject * _argo6 = 0; |
efc5f224 | 6048 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6049 | char _ptemp[128]; |
6050 | ||
6051 | self = self; | |
09f3d4e6 RD |
6052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
6053 | return NULL; | |
6054 | if (_argo0) { | |
6055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); | |
6058 | return NULL; | |
6059 | } | |
6060 | } | |
6061 | if (_obj3) | |
6062 | { | |
6063 | _arg3 = &temp; | |
6064 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6065 | return NULL; | |
6066 | } | |
6067 | if (_obj4) | |
6068 | { | |
6069 | _arg4 = &temp0; | |
6070 | if (! wxSize_helper(_obj4, &_arg4)) | |
6071 | return NULL; | |
6072 | } | |
6073 | if (_argo6) { | |
6074 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6075 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); | |
6077 | return NULL; | |
6078 | } | |
6079 | } | |
6080 | { | |
4268f798 | 6081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6082 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
6083 | ||
4268f798 | 6084 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6085 | if (PyErr_Occurred()) return NULL; |
6086 | } if (_result) { | |
6087 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6088 | _resultobj = Py_BuildValue("s",_ptemp); | |
6089 | } else { | |
6090 | Py_INCREF(Py_None); | |
6091 | _resultobj = Py_None; | |
6092 | } | |
6093 | return _resultobj; | |
6094 | } | |
6095 | ||
6096 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
6097 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6098 | PyObject * _resultobj; | |
6099 | wxTextCtrl * _result; | |
6100 | char *_kwnames[] = { NULL }; | |
6101 | char _ptemp[128]; | |
6102 | ||
6103 | self = self; | |
6104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
6105 | return NULL; | |
6106 | { | |
4268f798 | 6107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6108 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); |
6109 | ||
4268f798 | 6110 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6111 | if (PyErr_Occurred()) return NULL; |
6112 | } if (_result) { | |
6113 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6114 | _resultobj = Py_BuildValue("s",_ptemp); | |
6115 | } else { | |
6116 | Py_INCREF(Py_None); | |
6117 | _resultobj = Py_None; | |
6118 | } | |
6119 | return _resultobj; | |
6120 | } | |
6121 | ||
6122 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6123 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6124 | PyObject * _resultobj; | |
6125 | bool _result; | |
6126 | wxTextCtrl * _arg0; | |
6127 | wxWindow * _arg1; | |
6128 | wxWindowID _arg2; | |
6129 | char * _arg3 = (char *) ""; | |
6130 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
6131 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
6132 | long _arg6 = (long ) 0; | |
6133 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
6134 | char * _arg8 = (char *) "text"; | |
6135 | PyObject * _argo0 = 0; | |
6136 | PyObject * _argo1 = 0; | |
6137 | wxPoint temp; | |
6138 | PyObject * _obj4 = 0; | |
6139 | wxSize temp0; | |
6140 | PyObject * _obj5 = 0; | |
6141 | PyObject * _argo7 = 0; | |
6142 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; | |
6143 | ||
6144 | self = self; | |
6145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOlOs:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
8ab979d7 | 6146 | return NULL; |
1d99702e RD |
6147 | if (_argo0) { |
6148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
09f3d4e6 RD |
6149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
6150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
8ab979d7 RD |
6151 | return NULL; |
6152 | } | |
6153 | } | |
09f3d4e6 RD |
6154 | if (_argo1) { |
6155 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6156 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
6158 | return NULL; | |
6159 | } | |
6160 | } | |
6161 | if (_obj4) | |
2f90df85 | 6162 | { |
09f3d4e6 RD |
6163 | _arg4 = &temp; |
6164 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 6165 | return NULL; |
2f90df85 | 6166 | } |
09f3d4e6 | 6167 | if (_obj5) |
2f90df85 | 6168 | { |
09f3d4e6 RD |
6169 | _arg5 = &temp0; |
6170 | if (! wxSize_helper(_obj5, &_arg5)) | |
8ab979d7 | 6171 | return NULL; |
2f90df85 | 6172 | } |
09f3d4e6 RD |
6173 | if (_argo7) { |
6174 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
6175 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
6176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
8ab979d7 RD |
6177 | return NULL; |
6178 | } | |
6179 | } | |
cf694132 | 6180 | { |
4268f798 | 6181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 | 6182 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
cf694132 | 6183 | |
4268f798 | 6184 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6185 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 6186 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6187 | return _resultobj; |
6188 | } | |
6189 | ||
98624b49 RD |
6190 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) |
6191 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6192 | PyObject * _resultobj; |
98624b49 | 6193 | wxString * _result; |
8ab979d7 | 6194 | wxTextCtrl * _arg0; |
1d99702e | 6195 | PyObject * _argo0 = 0; |
efc5f224 | 6196 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6197 | |
6198 | self = self; | |
98624b49 | 6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 6200 | return NULL; |
1d99702e RD |
6201 | if (_argo0) { |
6202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6205 | return NULL; |
6206 | } | |
6207 | } | |
cf694132 | 6208 | { |
4268f798 | 6209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6210 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); |
cf694132 | 6211 | |
4268f798 | 6212 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6213 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6214 | }{ |
6215 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6216 | } | |
6217 | { | |
6218 | delete _result; | |
6219 | } | |
8ab979d7 RD |
6220 | return _resultobj; |
6221 | } | |
6222 | ||
98624b49 RD |
6223 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
6224 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6225 | PyObject * _resultobj; |
6226 | wxTextCtrl * _arg0; | |
98624b49 | 6227 | wxString * _arg1; |
1d99702e | 6228 | PyObject * _argo0 = 0; |
98624b49 RD |
6229 | PyObject * _obj1 = 0; |
6230 | char *_kwnames[] = { "self","value", NULL }; | |
8ab979d7 RD |
6231 | |
6232 | self = self; | |
98624b49 | 6233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6234 | return NULL; |
1d99702e RD |
6235 | if (_argo0) { |
6236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6239 | return NULL; |
6240 | } | |
6241 | } | |
98624b49 RD |
6242 | { |
6243 | #if PYTHON_API_VERSION >= 1009 | |
6244 | char* tmpPtr; int tmpSize; | |
6245 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6246 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6247 | return NULL; | |
6248 | } | |
6249 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6250 | return NULL; | |
6251 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6252 | #else | |
6253 | if (!PyString_Check(_obj1)) { | |
6254 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6255 | return NULL; | |
6256 | } | |
6257 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6258 | #endif | |
6259 | } | |
cf694132 | 6260 | { |
4268f798 | 6261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6262 | wxTextCtrl_SetValue(_arg0,*_arg1); |
cf694132 | 6263 | |
4268f798 | 6264 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6265 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6266 | } Py_INCREF(Py_None); |
8ab979d7 | 6267 | _resultobj = Py_None; |
98624b49 RD |
6268 | { |
6269 | if (_obj1) | |
6270 | delete _arg1; | |
6271 | } | |
8ab979d7 RD |
6272 | return _resultobj; |
6273 | } | |
6274 | ||
68320e40 RD |
6275 | #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1)) |
6276 | static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6277 | PyObject * _resultobj; | |
6278 | wxString * _result; | |
6279 | wxTextCtrl * _arg0; | |
6280 | long _arg1; | |
6281 | long _arg2; | |
6282 | PyObject * _argo0 = 0; | |
6283 | char *_kwnames[] = { "self","from","to", NULL }; | |
6284 | ||
6285 | self = self; | |
6286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6287 | return NULL; | |
6288 | if (_argo0) { | |
6289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p."); | |
6292 | return NULL; | |
6293 | } | |
6294 | } | |
6295 | { | |
6296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6297 | _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2)); | |
6298 | ||
6299 | wxPyEndAllowThreads(__tstate); | |
6300 | if (PyErr_Occurred()) return NULL; | |
6301 | }{ | |
6302 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6303 | } | |
6304 | { | |
6305 | delete _result; | |
6306 | } | |
6307 | return _resultobj; | |
6308 | } | |
6309 | ||
98624b49 RD |
6310 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) |
6311 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6312 | PyObject * _resultobj; |
98624b49 | 6313 | int _result; |
8ab979d7 | 6314 | wxTextCtrl * _arg0; |
98624b49 | 6315 | long _arg1; |
1d99702e | 6316 | PyObject * _argo0 = 0; |
98624b49 | 6317 | char *_kwnames[] = { "self","lineNo", NULL }; |
8ab979d7 RD |
6318 | |
6319 | self = self; | |
98624b49 | 6320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6321 | return NULL; |
1d99702e RD |
6322 | if (_argo0) { |
6323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6326 | return NULL; |
6327 | } | |
6328 | } | |
cf694132 | 6329 | { |
4268f798 | 6330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6331 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); |
cf694132 | 6332 | |
4268f798 | 6333 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6334 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6335 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6336 | return _resultobj; |
6337 | } | |
6338 | ||
98624b49 RD |
6339 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) |
6340 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6341 | PyObject * _resultobj; |
98624b49 | 6342 | wxString * _result; |
8ab979d7 | 6343 | wxTextCtrl * _arg0; |
98624b49 | 6344 | long _arg1; |
1d99702e | 6345 | PyObject * _argo0 = 0; |
98624b49 | 6346 | char *_kwnames[] = { "self","lineNo", NULL }; |
8ab979d7 RD |
6347 | |
6348 | self = self; | |
98624b49 | 6349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6350 | return NULL; |
1d99702e RD |
6351 | if (_argo0) { |
6352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6355 | return NULL; |
6356 | } | |
6357 | } | |
cf694132 | 6358 | { |
4268f798 | 6359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6360 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); |
cf694132 | 6361 | |
4268f798 | 6362 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6363 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6364 | }{ |
6365 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6366 | } | |
6367 | { | |
6368 | delete _result; | |
6369 | } | |
8ab979d7 RD |
6370 | return _resultobj; |
6371 | } | |
6372 | ||
98624b49 RD |
6373 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) |
6374 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6375 | PyObject * _resultobj; |
98624b49 | 6376 | int _result; |
8ab979d7 | 6377 | wxTextCtrl * _arg0; |
1d99702e | 6378 | PyObject * _argo0 = 0; |
efc5f224 | 6379 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6380 | |
6381 | self = self; | |
98624b49 | 6382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
8ab979d7 | 6383 | return NULL; |
1d99702e RD |
6384 | if (_argo0) { |
6385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6388 | return NULL; |
6389 | } | |
6390 | } | |
cf694132 | 6391 | { |
4268f798 | 6392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6393 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); |
cf694132 | 6394 | |
4268f798 | 6395 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6396 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6397 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6398 | return _resultobj; |
6399 | } | |
6400 | ||
98624b49 RD |
6401 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) |
6402 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6403 | PyObject * _resultobj; |
98624b49 | 6404 | bool _result; |
8ab979d7 | 6405 | wxTextCtrl * _arg0; |
1d99702e | 6406 | PyObject * _argo0 = 0; |
efc5f224 | 6407 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6408 | |
6409 | self = self; | |
98624b49 | 6410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
8ab979d7 | 6411 | return NULL; |
1d99702e RD |
6412 | if (_argo0) { |
6413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6416 | return NULL; |
6417 | } | |
6418 | } | |
cf694132 | 6419 | { |
4268f798 | 6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6421 | _result = (bool )wxTextCtrl_IsModified(_arg0); |
cf694132 | 6422 | |
4268f798 | 6423 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6424 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6425 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6426 | return _resultobj; |
6427 | } | |
6428 | ||
98624b49 RD |
6429 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) |
6430 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6431 | PyObject * _resultobj; |
98624b49 | 6432 | bool _result; |
8ab979d7 | 6433 | wxTextCtrl * _arg0; |
1d99702e | 6434 | PyObject * _argo0 = 0; |
98624b49 | 6435 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6436 | |
6437 | self = self; | |
98624b49 | 6438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
8ab979d7 | 6439 | return NULL; |
1d99702e RD |
6440 | if (_argo0) { |
6441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6444 | return NULL; |
6445 | } | |
6446 | } | |
cf694132 | 6447 | { |
4268f798 | 6448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6449 | _result = (bool )wxTextCtrl_IsEditable(_arg0); |
cf694132 | 6450 | |
4268f798 | 6451 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6452 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6453 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6454 | return _resultobj; |
6455 | } | |
6456 | ||
98624b49 RD |
6457 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) |
6458 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6459 | PyObject * _resultobj; |
8ab979d7 | 6460 | wxTextCtrl * _arg0; |
98624b49 RD |
6461 | long * _arg1; |
6462 | long temp; | |
6463 | long * _arg2; | |
6464 | long temp0; | |
1d99702e | 6465 | PyObject * _argo0 = 0; |
98624b49 | 6466 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6467 | |
6468 | self = self; | |
98624b49 RD |
6469 | { |
6470 | _arg1 = &temp; | |
6471 | } | |
6472 | { | |
6473 | _arg2 = &temp0; | |
6474 | } | |
6475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) | |
8ab979d7 | 6476 | return NULL; |
1d99702e RD |
6477 | if (_argo0) { |
6478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6481 | return NULL; |
6482 | } | |
6483 | } | |
8ab979d7 | 6484 | { |
4268f798 | 6485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6486 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); |
cf694132 | 6487 | |
4268f798 | 6488 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6489 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6490 | } Py_INCREF(Py_None); |
6491 | _resultobj = Py_None; | |
6492 | { | |
6493 | PyObject *o; | |
6494 | o = PyInt_FromLong((long) (*_arg1)); | |
6495 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6496 | } |
6497 | { | |
98624b49 RD |
6498 | PyObject *o; |
6499 | o = PyInt_FromLong((long) (*_arg2)); | |
6500 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6501 | } |
6502 | return _resultobj; | |
6503 | } | |
6504 | ||
b78b83ec RD |
6505 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
6506 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6507 | PyObject * _resultobj; | |
6508 | wxString * _result; | |
6509 | wxTextCtrl * _arg0; | |
6510 | PyObject * _argo0 = 0; | |
6511 | char *_kwnames[] = { "self", NULL }; | |
6512 | ||
6513 | self = self; | |
6514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) | |
6515 | return NULL; | |
6516 | if (_argo0) { | |
6517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); | |
6520 | return NULL; | |
6521 | } | |
6522 | } | |
6523 | { | |
4268f798 | 6524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b78b83ec RD |
6525 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); |
6526 | ||
4268f798 | 6527 | wxPyEndAllowThreads(__tstate); |
b78b83ec RD |
6528 | if (PyErr_Occurred()) return NULL; |
6529 | }{ | |
6530 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6531 | } | |
6532 | { | |
6533 | delete _result; | |
6534 | } | |
6535 | return _resultobj; | |
6536 | } | |
6537 | ||
98624b49 RD |
6538 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) |
6539 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6540 | PyObject * _resultobj; |
8ab979d7 | 6541 | wxTextCtrl * _arg0; |
1d99702e | 6542 | PyObject * _argo0 = 0; |
efc5f224 | 6543 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6544 | |
6545 | self = self; | |
98624b49 | 6546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
8ab979d7 | 6547 | return NULL; |
1d99702e RD |
6548 | if (_argo0) { |
6549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6552 | return NULL; |
6553 | } | |
6554 | } | |
cf694132 | 6555 | { |
4268f798 | 6556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6557 | wxTextCtrl_Clear(_arg0); |
cf694132 | 6558 | |
4268f798 | 6559 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6560 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6561 | } Py_INCREF(Py_None); |
6562 | _resultobj = Py_None; | |
8ab979d7 RD |
6563 | return _resultobj; |
6564 | } | |
6565 | ||
98624b49 RD |
6566 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
6567 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6568 | PyObject * _resultobj; |
8ab979d7 | 6569 | wxTextCtrl * _arg0; |
98624b49 RD |
6570 | long _arg1; |
6571 | long _arg2; | |
6572 | wxString * _arg3; | |
1d99702e | 6573 | PyObject * _argo0 = 0; |
98624b49 RD |
6574 | PyObject * _obj3 = 0; |
6575 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
8ab979d7 RD |
6576 | |
6577 | self = self; | |
98624b49 | 6578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 6579 | return NULL; |
1d99702e RD |
6580 | if (_argo0) { |
6581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6584 | return NULL; |
6585 | } | |
6586 | } | |
98624b49 RD |
6587 | { |
6588 | #if PYTHON_API_VERSION >= 1009 | |
6589 | char* tmpPtr; int tmpSize; | |
6590 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6591 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6592 | return NULL; | |
6593 | } | |
6594 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6595 | return NULL; | |
6596 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6597 | #else | |
6598 | if (!PyString_Check(_obj3)) { | |
6599 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6600 | return NULL; | |
6601 | } | |
6602 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
6603 | #endif | |
6604 | } | |
8ab979d7 | 6605 | { |
4268f798 | 6606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6607 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 6608 | |
4268f798 | 6609 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6610 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6611 | } Py_INCREF(Py_None); |
6612 | _resultobj = Py_None; | |
8ab979d7 | 6613 | { |
98624b49 RD |
6614 | if (_obj3) |
6615 | delete _arg3; | |
8ab979d7 RD |
6616 | } |
6617 | return _resultobj; | |
6618 | } | |
6619 | ||
98624b49 RD |
6620 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) |
6621 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6622 | PyObject * _resultobj; | |
8ab979d7 | 6623 | wxTextCtrl * _arg0; |
98624b49 RD |
6624 | long _arg1; |
6625 | long _arg2; | |
1d99702e | 6626 | PyObject * _argo0 = 0; |
98624b49 | 6627 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
6628 | |
6629 | self = self; | |
98624b49 | 6630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6631 | return NULL; |
1d99702e RD |
6632 | if (_argo0) { |
6633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6636 | return NULL; |
6637 | } | |
6638 | } | |
cf694132 | 6639 | { |
4268f798 | 6640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6641 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); |
cf694132 | 6642 | |
4268f798 | 6643 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6644 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6645 | } Py_INCREF(Py_None); |
6646 | _resultobj = Py_None; | |
8ab979d7 RD |
6647 | return _resultobj; |
6648 | } | |
6649 | ||
6650 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
efc5f224 | 6651 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6652 | PyObject * _resultobj; |
6653 | bool _result; | |
6654 | wxTextCtrl * _arg0; | |
6655 | wxString * _arg1; | |
1d99702e | 6656 | PyObject * _argo0 = 0; |
8ab979d7 | 6657 | PyObject * _obj1 = 0; |
98624b49 | 6658 | char *_kwnames[] = { "self","file", NULL }; |
8ab979d7 RD |
6659 | |
6660 | self = self; | |
efc5f224 | 6661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6662 | return NULL; |
1d99702e RD |
6663 | if (_argo0) { |
6664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
6666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); |
6667 | return NULL; | |
6668 | } | |
6669 | } | |
6670 | { | |
185d7c3e RD |
6671 | #if PYTHON_API_VERSION >= 1009 |
6672 | char* tmpPtr; int tmpSize; | |
6673 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 6674 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6675 | return NULL; |
6676 | } | |
6677 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6678 | return NULL; | |
6679 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6680 | #else | |
8ab979d7 RD |
6681 | if (!PyString_Check(_obj1)) { |
6682 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6683 | return NULL; | |
6684 | } | |
185d7c3e RD |
6685 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6686 | #endif | |
8ab979d7 | 6687 | } |
cf694132 | 6688 | { |
4268f798 | 6689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6690 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); |
6691 | ||
4268f798 | 6692 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6693 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6694 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6695 | { |
6696 | if (_obj1) | |
6697 | delete _arg1; | |
6698 | } | |
6699 | return _resultobj; | |
6700 | } | |
6701 | ||
98624b49 RD |
6702 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) |
6703 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6704 | PyObject * _resultobj; |
98624b49 | 6705 | bool _result; |
8ab979d7 | 6706 | wxTextCtrl * _arg0; |
98624b49 | 6707 | wxString * _arg1 = (wxString *) &wxEmptyString; |
1d99702e | 6708 | PyObject * _argo0 = 0; |
98624b49 RD |
6709 | PyObject * _obj1 = 0; |
6710 | char *_kwnames[] = { "self","file", NULL }; | |
8ab979d7 RD |
6711 | |
6712 | self = self; | |
98624b49 | 6713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6714 | return NULL; |
1d99702e RD |
6715 | if (_argo0) { |
6716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6719 | return NULL; |
6720 | } | |
6721 | } | |
98624b49 RD |
6722 | if (_obj1) |
6723 | { | |
6724 | #if PYTHON_API_VERSION >= 1009 | |
6725 | char* tmpPtr; int tmpSize; | |
6726 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6727 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6728 | return NULL; | |
6729 | } | |
6730 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6731 | return NULL; | |
6732 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6733 | #else | |
6734 | if (!PyString_Check(_obj1)) { | |
6735 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6736 | return NULL; | |
6737 | } | |
6738 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6739 | #endif | |
6740 | } | |
cf694132 | 6741 | { |
4268f798 | 6742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6743 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); |
cf694132 | 6744 | |
4268f798 | 6745 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6746 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6747 | } _resultobj = Py_BuildValue("i",_result); |
6748 | { | |
6749 | if (_obj1) | |
6750 | delete _arg1; | |
6751 | } | |
8ab979d7 RD |
6752 | return _resultobj; |
6753 | } | |
6754 | ||
98624b49 RD |
6755 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) |
6756 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6757 | PyObject * _resultobj; |
6758 | wxTextCtrl * _arg0; | |
1d99702e | 6759 | PyObject * _argo0 = 0; |
98624b49 | 6760 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6761 | |
6762 | self = self; | |
98624b49 | 6763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
8ab979d7 | 6764 | return NULL; |
1d99702e RD |
6765 | if (_argo0) { |
6766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6769 | return NULL; |
6770 | } | |
6771 | } | |
cf694132 | 6772 | { |
4268f798 | 6773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6774 | wxTextCtrl_DiscardEdits(_arg0); |
cf694132 | 6775 | |
4268f798 | 6776 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6777 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6778 | } Py_INCREF(Py_None); |
8ab979d7 | 6779 | _resultobj = Py_None; |
8ab979d7 RD |
6780 | return _resultobj; |
6781 | } | |
6782 | ||
98624b49 RD |
6783 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) |
6784 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6785 | PyObject * _resultobj; |
6786 | wxTextCtrl * _arg0; | |
98624b49 | 6787 | unsigned long _arg1; |
1d99702e | 6788 | PyObject * _argo0 = 0; |
98624b49 | 6789 | char *_kwnames[] = { "self","len", NULL }; |
8ab979d7 RD |
6790 | |
6791 | self = self; | |
98624b49 | 6792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6793 | return NULL; |
1d99702e RD |
6794 | if (_argo0) { |
6795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6798 | return NULL; |
6799 | } | |
6800 | } | |
cf694132 | 6801 | { |
4268f798 | 6802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6803 | wxTextCtrl_SetMaxLength(_arg0,_arg1); |
cf694132 | 6804 | |
4268f798 | 6805 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6806 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6807 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6808 | _resultobj = Py_None; |
6809 | return _resultobj; | |
6810 | } | |
6811 | ||
98624b49 RD |
6812 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) |
6813 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6814 | PyObject * _resultobj; |
6815 | wxTextCtrl * _arg0; | |
98624b49 | 6816 | wxString * _arg1; |
1d99702e | 6817 | PyObject * _argo0 = 0; |
98624b49 RD |
6818 | PyObject * _obj1 = 0; |
6819 | char *_kwnames[] = { "self","text", NULL }; | |
8ab979d7 RD |
6820 | |
6821 | self = self; | |
98624b49 | 6822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6823 | return NULL; |
1d99702e RD |
6824 | if (_argo0) { |
6825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6828 | return NULL; |
6829 | } | |
6830 | } | |
6831 | { | |
185d7c3e RD |
6832 | #if PYTHON_API_VERSION >= 1009 |
6833 | char* tmpPtr; int tmpSize; | |
98624b49 | 6834 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { |
794c5cb1 | 6835 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6836 | return NULL; |
6837 | } | |
98624b49 | 6838 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) |
185d7c3e | 6839 | return NULL; |
98624b49 | 6840 | _arg1 = new wxString(tmpPtr, tmpSize); |
185d7c3e | 6841 | #else |
98624b49 | 6842 | if (!PyString_Check(_obj1)) { |
8ab979d7 RD |
6843 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
6844 | return NULL; | |
6845 | } | |
98624b49 | 6846 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
185d7c3e | 6847 | #endif |
8ab979d7 | 6848 | } |
cf694132 | 6849 | { |
4268f798 | 6850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6851 | wxTextCtrl_WriteText(_arg0,*_arg1); |
cf694132 | 6852 | |
4268f798 | 6853 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6854 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6855 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6856 | _resultobj = Py_None; |
6857 | { | |
98624b49 RD |
6858 | if (_obj1) |
6859 | delete _arg1; | |
8ab979d7 RD |
6860 | } |
6861 | return _resultobj; | |
6862 | } | |
6863 | ||
98624b49 RD |
6864 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) |
6865 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6866 | PyObject * _resultobj; |
8ab979d7 RD |
6867 | wxTextCtrl * _arg0; |
6868 | wxString * _arg1; | |
1d99702e | 6869 | PyObject * _argo0 = 0; |
8ab979d7 | 6870 | PyObject * _obj1 = 0; |
98624b49 | 6871 | char *_kwnames[] = { "self","text", NULL }; |
8ab979d7 RD |
6872 | |
6873 | self = self; | |
98624b49 | 6874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6875 | return NULL; |
1d99702e RD |
6876 | if (_argo0) { |
6877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6880 | return NULL; |
6881 | } | |
6882 | } | |
6883 | { | |
185d7c3e RD |
6884 | #if PYTHON_API_VERSION >= 1009 |
6885 | char* tmpPtr; int tmpSize; | |
6886 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 6887 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6888 | return NULL; |
6889 | } | |
6890 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6891 | return NULL; | |
6892 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6893 | #else | |
8ab979d7 RD |
6894 | if (!PyString_Check(_obj1)) { |
6895 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6896 | return NULL; | |
6897 | } | |
185d7c3e RD |
6898 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6899 | #endif | |
8ab979d7 | 6900 | } |
cf694132 | 6901 | { |
4268f798 | 6902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6903 | wxTextCtrl_AppendText(_arg0,*_arg1); |
cf694132 | 6904 | |
4268f798 | 6905 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6906 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6907 | } Py_INCREF(Py_None); |
6908 | _resultobj = Py_None; | |
8ab979d7 RD |
6909 | { |
6910 | if (_obj1) | |
6911 | delete _arg1; | |
6912 | } | |
6913 | return _resultobj; | |
6914 | } | |
6915 | ||
98624b49 RD |
6916 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) |
6917 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6918 | PyObject * _resultobj; |
98624b49 | 6919 | bool _result; |
8ab979d7 | 6920 | wxTextCtrl * _arg0; |
98624b49 RD |
6921 | long _arg1; |
6922 | long _arg2; | |
6923 | wxTextAttr * _arg3; | |
1d99702e | 6924 | PyObject * _argo0 = 0; |
98624b49 RD |
6925 | PyObject * _argo3 = 0; |
6926 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
8ab979d7 RD |
6927 | |
6928 | self = self; | |
98624b49 | 6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) |
8ab979d7 | 6930 | return NULL; |
1d99702e RD |
6931 | if (_argo0) { |
6932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 RD |
6934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); |
6935 | return NULL; | |
6936 | } | |
6937 | } | |
6938 | if (_argo3) { | |
6939 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6940 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
6941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
8ab979d7 RD |
6942 | return NULL; |
6943 | } | |
6944 | } | |
cf694132 | 6945 | { |
4268f798 | 6946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6947 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 6948 | |
4268f798 | 6949 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6950 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6951 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6952 | return _resultobj; |
6953 | } | |
6954 | ||
98624b49 RD |
6955 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) |
6956 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6957 | PyObject * _resultobj; |
98624b49 | 6958 | bool _result; |
8ab979d7 | 6959 | wxTextCtrl * _arg0; |
98624b49 | 6960 | wxTextAttr * _arg1; |
1d99702e | 6961 | PyObject * _argo0 = 0; |
98624b49 RD |
6962 | PyObject * _argo1 = 0; |
6963 | char *_kwnames[] = { "self","style", NULL }; | |
8ab979d7 RD |
6964 | |
6965 | self = self; | |
98624b49 | 6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6967 | return NULL; |
1d99702e RD |
6968 | if (_argo0) { |
6969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 RD |
6971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); |
6972 | return NULL; | |
6973 | } | |
6974 | } | |
6975 | if (_argo1) { | |
6976 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6977 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
8ab979d7 RD |
6979 | return NULL; |
6980 | } | |
6981 | } | |
cf694132 | 6982 | { |
4268f798 | 6983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 6984 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); |
cf694132 | 6985 | |
4268f798 | 6986 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6987 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6988 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6989 | return _resultobj; |
6990 | } | |
6991 | ||
98624b49 RD |
6992 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) |
6993 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6994 | PyObject * _resultobj; |
98624b49 | 6995 | wxTextAttr * _result; |
8ab979d7 | 6996 | wxTextCtrl * _arg0; |
1d99702e | 6997 | PyObject * _argo0 = 0; |
efc5f224 | 6998 | char *_kwnames[] = { "self", NULL }; |
98624b49 | 6999 | char _ptemp[128]; |
8ab979d7 RD |
7000 | |
7001 | self = self; | |
98624b49 | 7002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) |
8ab979d7 | 7003 | return NULL; |
1d99702e RD |
7004 | if (_argo0) { |
7005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7008 | return NULL; |
7009 | } | |
7010 | } | |
cf694132 | 7011 | { |
4268f798 | 7012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 RD |
7013 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); |
7014 | _result = (wxTextAttr *) &_result_ref; | |
cf694132 | 7015 | |
4268f798 | 7016 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7017 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7018 | } if (_result) { |
7019 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
7020 | _resultobj = Py_BuildValue("s",_ptemp); | |
7021 | } else { | |
7022 | Py_INCREF(Py_None); | |
7023 | _resultobj = Py_None; | |
7024 | } | |
8ab979d7 RD |
7025 | return _resultobj; |
7026 | } | |
7027 | ||
98624b49 RD |
7028 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) |
7029 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7030 | PyObject * _resultobj; |
98624b49 | 7031 | long _result; |
8ab979d7 RD |
7032 | wxTextCtrl * _arg0; |
7033 | long _arg1; | |
7034 | long _arg2; | |
1d99702e | 7035 | PyObject * _argo0 = 0; |
98624b49 | 7036 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7037 | |
7038 | self = self; | |
98624b49 | 7039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7040 | return NULL; |
1d99702e RD |
7041 | if (_argo0) { |
7042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7045 | return NULL; |
7046 | } | |
7047 | } | |
cf694132 | 7048 | { |
4268f798 | 7049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7050 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); |
cf694132 | 7051 | |
4268f798 | 7052 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7053 | if (PyErr_Occurred()) return NULL; |
98624b49 | 7054 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7055 | return _resultobj; |
7056 | } | |
7057 | ||
98624b49 RD |
7058 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) |
7059 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7060 | PyObject * _resultobj; |
7061 | wxTextCtrl * _arg0; | |
98624b49 RD |
7062 | long _arg1; |
7063 | long * _arg2; | |
7064 | long temp; | |
7065 | long * _arg3; | |
7066 | long temp0; | |
1d99702e | 7067 | PyObject * _argo0 = 0; |
98624b49 | 7068 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
7069 | |
7070 | self = self; | |
98624b49 RD |
7071 | { |
7072 | _arg2 = &temp; | |
7073 | } | |
7074 | { | |
7075 | _arg3 = &temp0; | |
7076 | } | |
7077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 7078 | return NULL; |
1d99702e RD |
7079 | if (_argo0) { |
7080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7083 | return NULL; |
7084 | } | |
7085 | } | |
cf694132 | 7086 | { |
4268f798 | 7087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
68320e40 | 7088 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 7089 | |
4268f798 | 7090 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7091 | if (PyErr_Occurred()) return NULL; |
68320e40 RD |
7092 | } Py_INCREF(Py_None); |
7093 | _resultobj = Py_None; | |
8ab979d7 | 7094 | { |
98624b49 RD |
7095 | PyObject *o; |
7096 | o = PyInt_FromLong((long) (*_arg2)); | |
7097 | _resultobj = t_output_helper(_resultobj, o); | |
7098 | } | |
7099 | { | |
7100 | PyObject *o; | |
7101 | o = PyInt_FromLong((long) (*_arg3)); | |
7102 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7103 | } |
7104 | return _resultobj; | |
7105 | } | |
7106 | ||
7107 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
efc5f224 | 7108 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7109 | PyObject * _resultobj; |
7110 | wxTextCtrl * _arg0; | |
7111 | long _arg1; | |
1d99702e | 7112 | PyObject * _argo0 = 0; |
efc5f224 | 7113 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
7114 | |
7115 | self = self; | |
efc5f224 | 7116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7117 | return NULL; |
1d99702e RD |
7118 | if (_argo0) { |
7119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
7121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); |
7122 | return NULL; | |
7123 | } | |
7124 | } | |
cf694132 | 7125 | { |
4268f798 | 7126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7127 | wxTextCtrl_ShowPosition(_arg0,_arg1); |
7128 | ||
4268f798 | 7129 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7130 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7131 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7132 | _resultobj = Py_None; |
7133 | return _resultobj; | |
7134 | } | |
7135 | ||
98624b49 RD |
7136 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) |
7137 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7138 | PyObject * _resultobj; |
7139 | wxTextCtrl * _arg0; | |
1d99702e | 7140 | PyObject * _argo0 = 0; |
98624b49 | 7141 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7142 | |
7143 | self = self; | |
98624b49 | 7144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
8ab979d7 | 7145 | return NULL; |
1d99702e RD |
7146 | if (_argo0) { |
7147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7150 | return NULL; |
7151 | } | |
7152 | } | |
cf694132 | 7153 | { |
4268f798 | 7154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7155 | wxTextCtrl_Copy(_arg0); |
cf694132 | 7156 | |
4268f798 | 7157 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7158 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7159 | } Py_INCREF(Py_None); |
7160 | _resultobj = Py_None; | |
cf694132 RD |
7161 | return _resultobj; |
7162 | } | |
7163 | ||
98624b49 RD |
7164 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) |
7165 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
7166 | PyObject * _resultobj; |
7167 | wxTextCtrl * _arg0; | |
1d99702e | 7168 | PyObject * _argo0 = 0; |
98624b49 | 7169 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
7170 | |
7171 | self = self; | |
98624b49 | 7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
cf694132 | 7173 | return NULL; |
1d99702e RD |
7174 | if (_argo0) { |
7175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
cf694132 RD |
7178 | return NULL; |
7179 | } | |
7180 | } | |
cf694132 | 7181 | { |
4268f798 | 7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7183 | wxTextCtrl_Cut(_arg0); |
cf694132 | 7184 | |
4268f798 | 7185 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7186 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7187 | } Py_INCREF(Py_None); |
8ab979d7 | 7188 | _resultobj = Py_None; |
8ab979d7 RD |
7189 | return _resultobj; |
7190 | } | |
7191 | ||
98624b49 RD |
7192 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) |
7193 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7194 | PyObject * _resultobj; |
8ab979d7 | 7195 | wxTextCtrl * _arg0; |
1d99702e | 7196 | PyObject * _argo0 = 0; |
98624b49 | 7197 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7198 | |
7199 | self = self; | |
98624b49 | 7200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
8ab979d7 | 7201 | return NULL; |
1d99702e RD |
7202 | if (_argo0) { |
7203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7206 | return NULL; |
7207 | } | |
7208 | } | |
cf694132 | 7209 | { |
4268f798 | 7210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7211 | wxTextCtrl_Paste(_arg0); |
cf694132 | 7212 | |
4268f798 | 7213 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7214 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7215 | } Py_INCREF(Py_None); |
7216 | _resultobj = Py_None; | |
8ab979d7 RD |
7217 | return _resultobj; |
7218 | } | |
7219 | ||
c127177f | 7220 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) |
efc5f224 | 7221 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
7222 | PyObject * _resultobj; |
7223 | bool _result; | |
7224 | wxTextCtrl * _arg0; | |
1d99702e | 7225 | PyObject * _argo0 = 0; |
efc5f224 | 7226 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7227 | |
7228 | self = self; | |
efc5f224 | 7229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) |
c127177f | 7230 | return NULL; |
1d99702e RD |
7231 | if (_argo0) { |
7232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
7234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); |
7235 | return NULL; | |
7236 | } | |
7237 | } | |
7238 | { | |
4268f798 | 7239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c127177f RD |
7240 | _result = (bool )wxTextCtrl_CanCopy(_arg0); |
7241 | ||
4268f798 | 7242 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7243 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7244 | } _resultobj = Py_BuildValue("i",_result); |
7245 | return _resultobj; | |
7246 | } | |
7247 | ||
7248 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
efc5f224 | 7249 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
7250 | PyObject * _resultobj; |
7251 | bool _result; | |
7252 | wxTextCtrl * _arg0; | |
1d99702e | 7253 | PyObject * _argo0 = 0; |
efc5f224 | 7254 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7255 | |
7256 | self = self; | |
efc5f224 | 7257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) |
c127177f | 7258 | return NULL; |
1d99702e RD |
7259 | if (_argo0) { |
7260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
7262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); |
7263 | return NULL; | |
7264 | } | |
7265 | } | |
7266 | { | |
4268f798 | 7267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c127177f RD |
7268 | _result = (bool )wxTextCtrl_CanCut(_arg0); |
7269 | ||
4268f798 | 7270 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7271 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7272 | } _resultobj = Py_BuildValue("i",_result); |
7273 | return _resultobj; | |
7274 | } | |
7275 | ||
7276 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
efc5f224 | 7277 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
7278 | PyObject * _resultobj; |
7279 | bool _result; | |
7280 | wxTextCtrl * _arg0; | |
1d99702e | 7281 | PyObject * _argo0 = 0; |
efc5f224 | 7282 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7283 | |
7284 | self = self; | |
efc5f224 | 7285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) |
c127177f | 7286 | return NULL; |
1d99702e RD |
7287 | if (_argo0) { |
7288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
7290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); |
7291 | return NULL; | |
7292 | } | |
7293 | } | |
7294 | { | |
4268f798 | 7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c127177f RD |
7296 | _result = (bool )wxTextCtrl_CanPaste(_arg0); |
7297 | ||
4268f798 | 7298 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7299 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7300 | } _resultobj = Py_BuildValue("i",_result); |
7301 | return _resultobj; | |
7302 | } | |
7303 | ||
98624b49 RD |
7304 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
7305 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f | 7306 | PyObject * _resultobj; |
c127177f | 7307 | wxTextCtrl * _arg0; |
1d99702e | 7308 | PyObject * _argo0 = 0; |
efc5f224 | 7309 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7310 | |
7311 | self = self; | |
98624b49 | 7312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) |
c127177f | 7313 | return NULL; |
1d99702e RD |
7314 | if (_argo0) { |
7315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); |
c127177f RD |
7318 | return NULL; |
7319 | } | |
7320 | } | |
7321 | { | |
4268f798 | 7322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7323 | wxTextCtrl_Undo(_arg0); |
c127177f | 7324 | |
4268f798 | 7325 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7326 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7327 | } Py_INCREF(Py_None); |
7328 | _resultobj = Py_None; | |
c127177f RD |
7329 | return _resultobj; |
7330 | } | |
7331 | ||
98624b49 RD |
7332 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) |
7333 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f | 7334 | PyObject * _resultobj; |
c127177f | 7335 | wxTextCtrl * _arg0; |
1d99702e | 7336 | PyObject * _argo0 = 0; |
efc5f224 | 7337 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7338 | |
7339 | self = self; | |
98624b49 | 7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) |
c127177f | 7341 | return NULL; |
1d99702e RD |
7342 | if (_argo0) { |
7343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); |
c127177f RD |
7346 | return NULL; |
7347 | } | |
7348 | } | |
7349 | { | |
4268f798 | 7350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7351 | wxTextCtrl_Redo(_arg0); |
c127177f | 7352 | |
4268f798 | 7353 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7354 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7355 | } Py_INCREF(Py_None); |
7356 | _resultobj = Py_None; | |
c127177f RD |
7357 | return _resultobj; |
7358 | } | |
7359 | ||
98624b49 RD |
7360 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) |
7361 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f | 7362 | PyObject * _resultobj; |
98624b49 | 7363 | bool _result; |
c127177f | 7364 | wxTextCtrl * _arg0; |
1d99702e | 7365 | PyObject * _argo0 = 0; |
efc5f224 | 7366 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7367 | |
7368 | self = self; | |
98624b49 | 7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
c127177f | 7370 | return NULL; |
1d99702e RD |
7371 | if (_argo0) { |
7372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
c127177f RD |
7375 | return NULL; |
7376 | } | |
7377 | } | |
7378 | { | |
4268f798 | 7379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7380 | _result = (bool )wxTextCtrl_CanUndo(_arg0); |
c127177f | 7381 | |
4268f798 | 7382 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7383 | if (PyErr_Occurred()) return NULL; |
98624b49 | 7384 | } _resultobj = Py_BuildValue("i",_result); |
c127177f RD |
7385 | return _resultobj; |
7386 | } | |
7387 | ||
98624b49 RD |
7388 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) |
7389 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f RD |
7390 | PyObject * _resultobj; |
7391 | bool _result; | |
7392 | wxTextCtrl * _arg0; | |
1d99702e | 7393 | PyObject * _argo0 = 0; |
efc5f224 | 7394 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7395 | |
7396 | self = self; | |
98624b49 | 7397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
c127177f | 7398 | return NULL; |
1d99702e RD |
7399 | if (_argo0) { |
7400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
c127177f RD |
7403 | return NULL; |
7404 | } | |
7405 | } | |
7406 | { | |
4268f798 | 7407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7408 | _result = (bool )wxTextCtrl_CanRedo(_arg0); |
c127177f | 7409 | |
4268f798 | 7410 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7411 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7412 | } _resultobj = Py_BuildValue("i",_result); |
7413 | return _resultobj; | |
7414 | } | |
7415 | ||
98624b49 RD |
7416 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) |
7417 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa RD |
7418 | PyObject * _resultobj; |
7419 | wxTextCtrl * _arg0; | |
98624b49 | 7420 | long _arg1; |
b1462dfa | 7421 | PyObject * _argo0 = 0; |
98624b49 | 7422 | char *_kwnames[] = { "self","pos", NULL }; |
b1462dfa RD |
7423 | |
7424 | self = self; | |
98624b49 | 7425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
b1462dfa RD |
7426 | return NULL; |
7427 | if (_argo0) { | |
7428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
b1462dfa RD |
7431 | return NULL; |
7432 | } | |
7433 | } | |
7434 | { | |
4268f798 | 7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7436 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); |
b1462dfa | 7437 | |
4268f798 | 7438 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7439 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7440 | } Py_INCREF(Py_None); |
7441 | _resultobj = Py_None; | |
7442 | return _resultobj; | |
7443 | } | |
7444 | ||
98624b49 RD |
7445 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) |
7446 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa RD |
7447 | PyObject * _resultobj; |
7448 | wxTextCtrl * _arg0; | |
7449 | PyObject * _argo0 = 0; | |
7450 | char *_kwnames[] = { "self", NULL }; | |
7451 | ||
7452 | self = self; | |
98624b49 | 7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
b1462dfa RD |
7454 | return NULL; |
7455 | if (_argo0) { | |
7456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
b1462dfa RD |
7459 | return NULL; |
7460 | } | |
7461 | } | |
7462 | { | |
4268f798 | 7463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7464 | wxTextCtrl_SetInsertionPointEnd(_arg0); |
b1462dfa | 7465 | |
4268f798 | 7466 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7467 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7468 | } Py_INCREF(Py_None); |
7469 | _resultobj = Py_None; | |
7470 | return _resultobj; | |
7471 | } | |
7472 | ||
98624b49 RD |
7473 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
7474 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d56cebe7 | 7475 | PyObject * _resultobj; |
98624b49 | 7476 | long _result; |
d56cebe7 | 7477 | wxTextCtrl * _arg0; |
d56cebe7 | 7478 | PyObject * _argo0 = 0; |
98624b49 | 7479 | char *_kwnames[] = { "self", NULL }; |
d56cebe7 RD |
7480 | |
7481 | self = self; | |
98624b49 | 7482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
d56cebe7 RD |
7483 | return NULL; |
7484 | if (_argo0) { | |
7485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
d56cebe7 RD |
7488 | return NULL; |
7489 | } | |
7490 | } | |
7491 | { | |
4268f798 | 7492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7493 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); |
d56cebe7 | 7494 | |
4268f798 | 7495 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 7496 | if (PyErr_Occurred()) return NULL; |
98624b49 | 7497 | } _resultobj = Py_BuildValue("l",_result); |
d56cebe7 RD |
7498 | return _resultobj; |
7499 | } | |
7500 | ||
98624b49 RD |
7501 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
7502 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d56cebe7 | 7503 | PyObject * _resultobj; |
98624b49 | 7504 | long _result; |
d56cebe7 | 7505 | wxTextCtrl * _arg0; |
d56cebe7 | 7506 | PyObject * _argo0 = 0; |
98624b49 | 7507 | char *_kwnames[] = { "self", NULL }; |
d56cebe7 RD |
7508 | |
7509 | self = self; | |
98624b49 | 7510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
d56cebe7 RD |
7511 | return NULL; |
7512 | if (_argo0) { | |
7513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
d56cebe7 RD |
7516 | return NULL; |
7517 | } | |
7518 | } | |
98624b49 | 7519 | { |
4268f798 | 7520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 RD |
7521 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); |
7522 | ||
4268f798 | 7523 | wxPyEndAllowThreads(__tstate); |
98624b49 RD |
7524 | if (PyErr_Occurred()) return NULL; |
7525 | } _resultobj = Py_BuildValue("l",_result); | |
7526 | return _resultobj; | |
7527 | } | |
7528 | ||
7529 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
7530 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7531 | PyObject * _resultobj; | |
7532 | wxTextCtrl * _arg0; | |
7533 | long _arg1; | |
7534 | long _arg2; | |
7535 | PyObject * _argo0 = 0; | |
7536 | char *_kwnames[] = { "self","from","to", NULL }; | |
7537 | ||
7538 | self = self; | |
7539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7540 | return NULL; | |
7541 | if (_argo0) { | |
7542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
d56cebe7 RD |
7545 | return NULL; |
7546 | } | |
7547 | } | |
7548 | { | |
4268f798 | 7549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7550 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); |
d56cebe7 | 7551 | |
4268f798 | 7552 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 7553 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7554 | } Py_INCREF(Py_None); |
7555 | _resultobj = Py_None; | |
d56cebe7 RD |
7556 | return _resultobj; |
7557 | } | |
7558 | ||
98624b49 RD |
7559 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) |
7560 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d56cebe7 | 7561 | PyObject * _resultobj; |
d56cebe7 RD |
7562 | wxTextCtrl * _arg0; |
7563 | PyObject * _argo0 = 0; | |
7564 | char *_kwnames[] = { "self", NULL }; | |
d56cebe7 RD |
7565 | |
7566 | self = self; | |
98624b49 | 7567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) |
d56cebe7 RD |
7568 | return NULL; |
7569 | if (_argo0) { | |
7570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); |
d56cebe7 RD |
7573 | return NULL; |
7574 | } | |
7575 | } | |
7576 | { | |
4268f798 | 7577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7578 | wxTextCtrl_SelectAll(_arg0); |
d56cebe7 | 7579 | |
4268f798 | 7580 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 7581 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7582 | } Py_INCREF(Py_None); |
7583 | _resultobj = Py_None; | |
d56cebe7 RD |
7584 | return _resultobj; |
7585 | } | |
7586 | ||
98624b49 RD |
7587 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
7588 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
00b6c4e3 RD |
7589 | PyObject * _resultobj; |
7590 | wxTextCtrl * _arg0; | |
98624b49 | 7591 | bool _arg1; |
00b6c4e3 | 7592 | PyObject * _argo0 = 0; |
98624b49 RD |
7593 | int tempbool1; |
7594 | char *_kwnames[] = { "self","editable", NULL }; | |
00b6c4e3 RD |
7595 | |
7596 | self = self; | |
98624b49 | 7597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
00b6c4e3 RD |
7598 | return NULL; |
7599 | if (_argo0) { | |
7600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
00b6c4e3 RD |
7603 | return NULL; |
7604 | } | |
7605 | } | |
98624b49 | 7606 | _arg1 = (bool ) tempbool1; |
00b6c4e3 | 7607 | { |
4268f798 | 7608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
98624b49 | 7609 | wxTextCtrl_SetEditable(_arg0,_arg1); |
00b6c4e3 | 7610 | |
4268f798 | 7611 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
7612 | if (PyErr_Occurred()) return NULL; |
7613 | } Py_INCREF(Py_None); | |
7614 | _resultobj = Py_None; | |
7615 | return _resultobj; | |
7616 | } | |
7617 | ||
b1462dfa | 7618 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { |
d56cebe7 | 7619 | self->AppendText(text); |
b1462dfa RD |
7620 | } |
7621 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7622 | PyObject * _resultobj; | |
7623 | wxTextCtrl * _arg0; | |
7624 | wxString * _arg1; | |
7625 | PyObject * _argo0 = 0; | |
7626 | PyObject * _obj1 = 0; | |
7627 | char *_kwnames[] = { "self","text", NULL }; | |
7628 | ||
7629 | self = self; | |
7630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
7631 | return NULL; | |
7632 | if (_argo0) { | |
7633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
7636 | return NULL; | |
7637 | } | |
7638 | } | |
7639 | { | |
185d7c3e RD |
7640 | #if PYTHON_API_VERSION >= 1009 |
7641 | char* tmpPtr; int tmpSize; | |
7642 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7643 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7644 | return NULL; |
7645 | } | |
7646 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7647 | return NULL; | |
7648 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7649 | #else | |
b1462dfa RD |
7650 | if (!PyString_Check(_obj1)) { |
7651 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7652 | return NULL; | |
7653 | } | |
185d7c3e RD |
7654 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7655 | #endif | |
b1462dfa RD |
7656 | } |
7657 | { | |
4268f798 | 7658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
7659 | wxTextCtrl_write(_arg0,*_arg1); |
7660 | ||
4268f798 | 7661 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7662 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7663 | } Py_INCREF(Py_None); |
7664 | _resultobj = Py_None; | |
7665 | { | |
7666 | if (_obj1) | |
7667 | delete _arg1; | |
7668 | } | |
7669 | return _resultobj; | |
7670 | } | |
7671 | ||
2f4e9287 RD |
7672 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { |
7673 | return self->GetValue().Mid(from, to-from); | |
7674 | } | |
7675 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7676 | PyObject * _resultobj; | |
7677 | wxString * _result; | |
7678 | wxTextCtrl * _arg0; | |
7679 | long _arg1; | |
7680 | long _arg2; | |
7681 | PyObject * _argo0 = 0; | |
7682 | char *_kwnames[] = { "self","from","to", NULL }; | |
7683 | ||
7684 | self = self; | |
7685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7686 | return NULL; | |
7687 | if (_argo0) { | |
7688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
7691 | return NULL; | |
7692 | } | |
7693 | } | |
7694 | { | |
4268f798 | 7695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f4e9287 RD |
7696 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); |
7697 | ||
4268f798 | 7698 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
7699 | if (PyErr_Occurred()) return NULL; |
7700 | }{ | |
7701 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7702 | } | |
7703 | { | |
7704 | delete _result; | |
7705 | } | |
7706 | return _resultobj; | |
7707 | } | |
7708 | ||
8ab979d7 RD |
7709 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
7710 | wxScrollBar *src; | |
7711 | wxControl *dest; | |
7712 | src = (wxScrollBar *) ptr; | |
7713 | dest = (wxControl *) src; | |
7714 | return (void *) dest; | |
7715 | } | |
7716 | ||
7717 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
7718 | wxScrollBar *src; | |
7719 | wxWindow *dest; | |
7720 | src = (wxScrollBar *) ptr; | |
7721 | dest = (wxWindow *) src; | |
7722 | return (void *) dest; | |
7723 | } | |
7724 | ||
7725 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
7726 | wxScrollBar *src; | |
7727 | wxEvtHandler *dest; | |
7728 | src = (wxScrollBar *) ptr; | |
7729 | dest = (wxEvtHandler *) src; | |
7730 | return (void *) dest; | |
7731 | } | |
7732 | ||
9416aa89 RD |
7733 | static void *SwigwxScrollBarTowxObject(void *ptr) { |
7734 | wxScrollBar *src; | |
7735 | wxObject *dest; | |
7736 | src = (wxScrollBar *) ptr; | |
7737 | dest = (wxObject *) src; | |
7738 | return (void *) dest; | |
7739 | } | |
7740 | ||
8ab979d7 | 7741 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 7742 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7743 | PyObject * _resultobj; |
7744 | wxScrollBar * _result; | |
7745 | wxWindow * _arg0; | |
1d99702e | 7746 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
7747 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
7748 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 7749 | long _arg4 = (long ) wxSB_HORIZONTAL; |
e508a2b6 | 7750 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
7751 | char * _arg6 = (char *) "scrollBar"; |
7752 | PyObject * _argo0 = 0; | |
2f90df85 RD |
7753 | wxPoint temp; |
7754 | PyObject * _obj2 = 0; | |
7755 | wxSize temp0; | |
7756 | PyObject * _obj3 = 0; | |
1d99702e | 7757 | PyObject * _argo5 = 0; |
efc5f224 | 7758 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
7759 | char _ptemp[128]; |
7760 | ||
7761 | self = self; | |
2f90df85 | 7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 7763 | return NULL; |
1d99702e RD |
7764 | if (_argo0) { |
7765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
7767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); |
7768 | return NULL; | |
7769 | } | |
7770 | } | |
2f90df85 RD |
7771 | if (_obj2) |
7772 | { | |
7773 | _arg2 = &temp; | |
7774 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 7775 | return NULL; |
2f90df85 RD |
7776 | } |
7777 | if (_obj3) | |
7778 | { | |
7779 | _arg3 = &temp0; | |
7780 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 7781 | return NULL; |
2f90df85 | 7782 | } |
1d99702e RD |
7783 | if (_argo5) { |
7784 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7785 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
7786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); |
7787 | return NULL; | |
7788 | } | |
7789 | } | |
cf694132 | 7790 | { |
4268f798 | 7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7792 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
7793 | ||
4268f798 | 7794 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7795 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7796 | } if (_result) { |
7797 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7798 | _resultobj = Py_BuildValue("s",_ptemp); | |
7799 | } else { | |
7800 | Py_INCREF(Py_None); | |
7801 | _resultobj = Py_None; | |
7802 | } | |
8ab979d7 RD |
7803 | return _resultobj; |
7804 | } | |
7805 | ||
09f3d4e6 RD |
7806 | #define new_wxPreScrollBar() (new wxScrollBar()) |
7807 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7808 | PyObject * _resultobj; | |
7809 | wxScrollBar * _result; | |
7810 | char *_kwnames[] = { NULL }; | |
7811 | char _ptemp[128]; | |
7812 | ||
7813 | self = self; | |
7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
7815 | return NULL; | |
7816 | { | |
4268f798 | 7817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
7818 | _result = (wxScrollBar *)new_wxPreScrollBar(); |
7819 | ||
4268f798 | 7820 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
7821 | if (PyErr_Occurred()) return NULL; |
7822 | } if (_result) { | |
7823 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7824 | _resultobj = Py_BuildValue("s",_ptemp); | |
7825 | } else { | |
7826 | Py_INCREF(Py_None); | |
7827 | _resultobj = Py_None; | |
7828 | } | |
7829 | return _resultobj; | |
7830 | } | |
7831 | ||
7832 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
7833 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7834 | PyObject * _resultobj; | |
7835 | bool _result; | |
7836 | wxScrollBar * _arg0; | |
7837 | wxWindow * _arg1; | |
7838 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7839 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7840 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7841 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
7842 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
7843 | char * _arg7 = (char *) "scrollBar"; | |
7844 | PyObject * _argo0 = 0; | |
7845 | PyObject * _argo1 = 0; | |
7846 | wxPoint temp; | |
7847 | PyObject * _obj3 = 0; | |
7848 | wxSize temp0; | |
7849 | PyObject * _obj4 = 0; | |
7850 | PyObject * _argo6 = 0; | |
7851 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
7852 | ||
7853 | self = self; | |
7854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
7855 | return NULL; | |
7856 | if (_argo0) { | |
7857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
7860 | return NULL; | |
7861 | } | |
7862 | } | |
7863 | if (_argo1) { | |
7864 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7865 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
7867 | return NULL; | |
7868 | } | |
7869 | } | |
7870 | if (_obj3) | |
7871 | { | |
7872 | _arg3 = &temp; | |
7873 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7874 | return NULL; | |
7875 | } | |
7876 | if (_obj4) | |
7877 | { | |
7878 | _arg4 = &temp0; | |
7879 | if (! wxSize_helper(_obj4, &_arg4)) | |
7880 | return NULL; | |
7881 | } | |
7882 | if (_argo6) { | |
7883 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7884 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
7885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
7886 | return NULL; | |
7887 | } | |
7888 | } | |
7889 | { | |
4268f798 | 7890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
7891 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
7892 | ||
4268f798 | 7893 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
7894 | if (PyErr_Occurred()) return NULL; |
7895 | } _resultobj = Py_BuildValue("i",_result); | |
7896 | return _resultobj; | |
7897 | } | |
7898 | ||
8ab979d7 | 7899 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) |
efc5f224 | 7900 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7901 | PyObject * _resultobj; |
7902 | int _result; | |
7903 | wxScrollBar * _arg0; | |
1d99702e | 7904 | PyObject * _argo0 = 0; |
efc5f224 | 7905 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7906 | |
7907 | self = self; | |
efc5f224 | 7908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) |
8ab979d7 | 7909 | return NULL; |
1d99702e RD |
7910 | if (_argo0) { |
7911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
7913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); |
7914 | return NULL; | |
7915 | } | |
7916 | } | |
cf694132 | 7917 | { |
4268f798 | 7918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7919 | _result = (int )wxScrollBar_GetRange(_arg0); |
7920 | ||
4268f798 | 7921 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7922 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7923 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7924 | return _resultobj; |
7925 | } | |
7926 | ||
7927 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
efc5f224 | 7928 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7929 | PyObject * _resultobj; |
7930 | int _result; | |
7931 | wxScrollBar * _arg0; | |
1d99702e | 7932 | PyObject * _argo0 = 0; |
efc5f224 | 7933 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7934 | |
7935 | self = self; | |
efc5f224 | 7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) |
8ab979d7 | 7937 | return NULL; |
1d99702e RD |
7938 | if (_argo0) { |
7939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); |
7942 | return NULL; | |
7943 | } | |
7944 | } | |
cf694132 | 7945 | { |
4268f798 | 7946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7947 | _result = (int )wxScrollBar_GetPageSize(_arg0); |
7948 | ||
4268f798 | 7949 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7950 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7951 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7952 | return _resultobj; |
7953 | } | |
7954 | ||
b8b8dda7 | 7955 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) |
efc5f224 | 7956 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7957 | PyObject * _resultobj; |
7958 | int _result; | |
7959 | wxScrollBar * _arg0; | |
1d99702e | 7960 | PyObject * _argo0 = 0; |
efc5f224 | 7961 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7962 | |
7963 | self = self; | |
efc5f224 | 7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) |
8ab979d7 | 7965 | return NULL; |
1d99702e RD |
7966 | if (_argo0) { |
7967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
b8b8dda7 | 7969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); |
8ab979d7 RD |
7970 | return NULL; |
7971 | } | |
7972 | } | |
cf694132 | 7973 | { |
4268f798 | 7974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7975 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); |
7976 | ||
4268f798 | 7977 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7978 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7979 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7980 | return _resultobj; |
7981 | } | |
7982 | ||
7983 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
efc5f224 | 7984 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7985 | PyObject * _resultobj; |
7986 | int _result; | |
7987 | wxScrollBar * _arg0; | |
1d99702e | 7988 | PyObject * _argo0 = 0; |
efc5f224 | 7989 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7990 | |
7991 | self = self; | |
efc5f224 | 7992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) |
8ab979d7 | 7993 | return NULL; |
1d99702e RD |
7994 | if (_argo0) { |
7995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
7997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); |
7998 | return NULL; | |
7999 | } | |
8000 | } | |
cf694132 | 8001 | { |
4268f798 | 8002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8003 | _result = (int )wxScrollBar_GetThumbSize(_arg0); |
8004 | ||
4268f798 | 8005 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8006 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8007 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8008 | return _resultobj; |
8009 | } | |
8010 | ||
ebf4302c RD |
8011 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) |
8012 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8013 | PyObject * _resultobj; | |
8014 | bool _result; | |
8015 | wxScrollBar * _arg0; | |
8016 | PyObject * _argo0 = 0; | |
8017 | char *_kwnames[] = { "self", NULL }; | |
8018 | ||
8019 | self = self; | |
8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0)) | |
8021 | return NULL; | |
8022 | if (_argo0) { | |
8023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p."); | |
8026 | return NULL; | |
8027 | } | |
8028 | } | |
8029 | { | |
4268f798 | 8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ebf4302c RD |
8031 | _result = (bool )wxScrollBar_IsVertical(_arg0); |
8032 | ||
4268f798 | 8033 | wxPyEndAllowThreads(__tstate); |
ebf4302c RD |
8034 | if (PyErr_Occurred()) return NULL; |
8035 | } _resultobj = Py_BuildValue("i",_result); | |
8036 | return _resultobj; | |
8037 | } | |
8038 | ||
b8b8dda7 | 8039 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
efc5f224 | 8040 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8041 | PyObject * _resultobj; |
8042 | wxScrollBar * _arg0; | |
8043 | int _arg1; | |
1d99702e | 8044 | PyObject * _argo0 = 0; |
efc5f224 | 8045 | char *_kwnames[] = { "self","viewStart", NULL }; |
8ab979d7 RD |
8046 | |
8047 | self = self; | |
efc5f224 | 8048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8049 | return NULL; |
1d99702e RD |
8050 | if (_argo0) { |
8051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
b8b8dda7 | 8053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); |
8ab979d7 RD |
8054 | return NULL; |
8055 | } | |
8056 | } | |
cf694132 | 8057 | { |
4268f798 | 8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8059 | wxScrollBar_SetThumbPosition(_arg0,_arg1); |
8060 | ||
4268f798 | 8061 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8062 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8063 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8064 | _resultobj = Py_None; |
8065 | return _resultobj; | |
8066 | } | |
8067 | ||
8068 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 8069 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8070 | PyObject * _resultobj; |
8071 | wxScrollBar * _arg0; | |
8072 | int _arg1; | |
8073 | int _arg2; | |
8074 | int _arg3; | |
8075 | int _arg4; | |
1d99702e RD |
8076 | bool _arg5 = (bool ) TRUE; |
8077 | PyObject * _argo0 = 0; | |
8078 | int tempbool5 = (int) TRUE; | |
efc5f224 | 8079 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; |
8ab979d7 RD |
8080 | |
8081 | self = self; | |
efc5f224 | 8082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
8ab979d7 | 8083 | return NULL; |
1d99702e RD |
8084 | if (_argo0) { |
8085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
8087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); |
8088 | return NULL; | |
8089 | } | |
8090 | } | |
8091 | _arg5 = (bool ) tempbool5; | |
cf694132 | 8092 | { |
4268f798 | 8093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8094 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
8095 | ||
4268f798 | 8096 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8097 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8098 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8099 | _resultobj = Py_None; |
8100 | return _resultobj; | |
8101 | } | |
8102 | ||
8103 | static void *SwigwxSpinButtonTowxControl(void *ptr) { | |
8104 | wxSpinButton *src; | |
8105 | wxControl *dest; | |
8106 | src = (wxSpinButton *) ptr; | |
8107 | dest = (wxControl *) src; | |
8108 | return (void *) dest; | |
8109 | } | |
8110 | ||
8111 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
8112 | wxSpinButton *src; | |
8113 | wxWindow *dest; | |
8114 | src = (wxSpinButton *) ptr; | |
8115 | dest = (wxWindow *) src; | |
8116 | return (void *) dest; | |
8117 | } | |
8118 | ||
8119 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
8120 | wxSpinButton *src; | |
8121 | wxEvtHandler *dest; | |
8122 | src = (wxSpinButton *) ptr; | |
8123 | dest = (wxEvtHandler *) src; | |
8124 | return (void *) dest; | |
8125 | } | |
8126 | ||
9416aa89 RD |
8127 | static void *SwigwxSpinButtonTowxObject(void *ptr) { |
8128 | wxSpinButton *src; | |
8129 | wxObject *dest; | |
8130 | src = (wxSpinButton *) ptr; | |
8131 | dest = (wxObject *) src; | |
8132 | return (void *) dest; | |
8133 | } | |
8134 | ||
8ab979d7 | 8135 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8136 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8137 | PyObject * _resultobj; |
8138 | wxSpinButton * _result; | |
8139 | wxWindow * _arg0; | |
1d99702e | 8140 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
8141 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
8142 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
8143 | long _arg4 = (long ) wxSP_HORIZONTAL; |
8144 | char * _arg5 = (char *) "spinButton"; | |
8145 | PyObject * _argo0 = 0; | |
2f90df85 RD |
8146 | wxPoint temp; |
8147 | PyObject * _obj2 = 0; | |
8148 | wxSize temp0; | |
8149 | PyObject * _obj3 = 0; | |
efc5f224 | 8150 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
8151 | char _ptemp[128]; |
8152 | ||
8153 | self = self; | |
2f90df85 | 8154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 8155 | return NULL; |
1d99702e RD |
8156 | if (_argo0) { |
8157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
8159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); |
8160 | return NULL; | |
8161 | } | |
8162 | } | |
2f90df85 RD |
8163 | if (_obj2) |
8164 | { | |
8165 | _arg2 = &temp; | |
8166 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 8167 | return NULL; |
2f90df85 RD |
8168 | } |
8169 | if (_obj3) | |
8170 | { | |
8171 | _arg3 = &temp0; | |
8172 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 8173 | return NULL; |
2f90df85 | 8174 | } |
cf694132 | 8175 | { |
4268f798 | 8176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8177 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
8178 | ||
4268f798 | 8179 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8180 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8181 | } if (_result) { |
8182 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8183 | _resultobj = Py_BuildValue("s",_ptemp); | |
8184 | } else { | |
8185 | Py_INCREF(Py_None); | |
8186 | _resultobj = Py_None; | |
8187 | } | |
8ab979d7 RD |
8188 | return _resultobj; |
8189 | } | |
8190 | ||
09f3d4e6 RD |
8191 | #define new_wxPreSpinButton() (new wxSpinButton()) |
8192 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8193 | PyObject * _resultobj; | |
8194 | wxSpinButton * _result; | |
8195 | char *_kwnames[] = { NULL }; | |
8196 | char _ptemp[128]; | |
8197 | ||
8198 | self = self; | |
8199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
8200 | return NULL; | |
8201 | { | |
4268f798 | 8202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
8203 | _result = (wxSpinButton *)new_wxPreSpinButton(); |
8204 | ||
4268f798 | 8205 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8206 | if (PyErr_Occurred()) return NULL; |
8207 | } if (_result) { | |
8208 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8209 | _resultobj = Py_BuildValue("s",_ptemp); | |
8210 | } else { | |
8211 | Py_INCREF(Py_None); | |
8212 | _resultobj = Py_None; | |
8213 | } | |
8214 | return _resultobj; | |
8215 | } | |
8216 | ||
8217 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8218 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8219 | PyObject * _resultobj; | |
8220 | bool _result; | |
8221 | wxSpinButton * _arg0; | |
8222 | wxWindow * _arg1; | |
8223 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8224 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8225 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8226 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
8227 | char * _arg6 = (char *) "spinButton"; | |
8228 | PyObject * _argo0 = 0; | |
8229 | PyObject * _argo1 = 0; | |
8230 | wxPoint temp; | |
8231 | PyObject * _obj3 = 0; | |
8232 | wxSize temp0; | |
8233 | PyObject * _obj4 = 0; | |
8234 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
8235 | ||
8236 | self = self; | |
8237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8238 | return NULL; | |
8239 | if (_argo0) { | |
8240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
8243 | return NULL; | |
8244 | } | |
8245 | } | |
8246 | if (_argo1) { | |
8247 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8248 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
8250 | return NULL; | |
8251 | } | |
8252 | } | |
8253 | if (_obj3) | |
8254 | { | |
8255 | _arg3 = &temp; | |
8256 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8257 | return NULL; | |
8258 | } | |
8259 | if (_obj4) | |
8260 | { | |
8261 | _arg4 = &temp0; | |
8262 | if (! wxSize_helper(_obj4, &_arg4)) | |
8263 | return NULL; | |
8264 | } | |
8265 | { | |
4268f798 | 8266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
8267 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
8268 | ||
4268f798 | 8269 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8270 | if (PyErr_Occurred()) return NULL; |
8271 | } _resultobj = Py_BuildValue("i",_result); | |
8272 | return _resultobj; | |
8273 | } | |
8274 | ||
8ab979d7 | 8275 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) |
efc5f224 | 8276 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8277 | PyObject * _resultobj; |
8278 | int _result; | |
8279 | wxSpinButton * _arg0; | |
1d99702e | 8280 | PyObject * _argo0 = 0; |
efc5f224 | 8281 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8282 | |
8283 | self = self; | |
efc5f224 | 8284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) |
8ab979d7 | 8285 | return NULL; |
1d99702e RD |
8286 | if (_argo0) { |
8287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); |
8290 | return NULL; | |
8291 | } | |
8292 | } | |
cf694132 | 8293 | { |
4268f798 | 8294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8295 | _result = (int )wxSpinButton_GetMax(_arg0); |
8296 | ||
4268f798 | 8297 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8298 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8299 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8300 | return _resultobj; |
8301 | } | |
8302 | ||
8303 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
efc5f224 | 8304 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8305 | PyObject * _resultobj; |
8306 | int _result; | |
8307 | wxSpinButton * _arg0; | |
1d99702e | 8308 | PyObject * _argo0 = 0; |
efc5f224 | 8309 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8310 | |
8311 | self = self; | |
efc5f224 | 8312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) |
8ab979d7 | 8313 | return NULL; |
1d99702e RD |
8314 | if (_argo0) { |
8315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); |
8318 | return NULL; | |
8319 | } | |
8320 | } | |
cf694132 | 8321 | { |
4268f798 | 8322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8323 | _result = (int )wxSpinButton_GetMin(_arg0); |
8324 | ||
4268f798 | 8325 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8326 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8327 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8328 | return _resultobj; |
8329 | } | |
8330 | ||
8331 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 8332 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8333 | PyObject * _resultobj; |
8334 | int _result; | |
8335 | wxSpinButton * _arg0; | |
1d99702e | 8336 | PyObject * _argo0 = 0; |
efc5f224 | 8337 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8338 | |
8339 | self = self; | |
efc5f224 | 8340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 8341 | return NULL; |
1d99702e RD |
8342 | if (_argo0) { |
8343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); |
8346 | return NULL; | |
8347 | } | |
8348 | } | |
cf694132 | 8349 | { |
4268f798 | 8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8351 | _result = (int )wxSpinButton_GetValue(_arg0); |
8352 | ||
4268f798 | 8353 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8354 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8355 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8356 | return _resultobj; |
8357 | } | |
8358 | ||
8359 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 8360 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8361 | PyObject * _resultobj; |
8362 | wxSpinButton * _arg0; | |
8363 | int _arg1; | |
8364 | int _arg2; | |
1d99702e | 8365 | PyObject * _argo0 = 0; |
efc5f224 | 8366 | char *_kwnames[] = { "self","min","max", NULL }; |
8ab979d7 RD |
8367 | |
8368 | self = self; | |
efc5f224 | 8369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8370 | return NULL; |
1d99702e RD |
8371 | if (_argo0) { |
8372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); |
8375 | return NULL; | |
8376 | } | |
8377 | } | |
cf694132 | 8378 | { |
4268f798 | 8379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8380 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); |
8381 | ||
4268f798 | 8382 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8383 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8384 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8385 | _resultobj = Py_None; |
8386 | return _resultobj; | |
8387 | } | |
8388 | ||
8389 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 8390 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8391 | PyObject * _resultobj; |
8392 | wxSpinButton * _arg0; | |
8393 | int _arg1; | |
1d99702e | 8394 | PyObject * _argo0 = 0; |
efc5f224 | 8395 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
8396 | |
8397 | self = self; | |
efc5f224 | 8398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8399 | return NULL; |
1d99702e RD |
8400 | if (_argo0) { |
8401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); |
8404 | return NULL; | |
8405 | } | |
8406 | } | |
cf694132 | 8407 | { |
4268f798 | 8408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8409 | wxSpinButton_SetValue(_arg0,_arg1); |
8410 | ||
4268f798 | 8411 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8412 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8413 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8414 | _resultobj = Py_None; |
8415 | return _resultobj; | |
8416 | } | |
8417 | ||
8418 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { | |
8419 | wxStaticBitmap *src; | |
8420 | wxControl *dest; | |
8421 | src = (wxStaticBitmap *) ptr; | |
8422 | dest = (wxControl *) src; | |
8423 | return (void *) dest; | |
8424 | } | |
8425 | ||
8426 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8427 | wxStaticBitmap *src; | |
8428 | wxWindow *dest; | |
8429 | src = (wxStaticBitmap *) ptr; | |
8430 | dest = (wxWindow *) src; | |
8431 | return (void *) dest; | |
8432 | } | |
8433 | ||
8434 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
8435 | wxStaticBitmap *src; | |
8436 | wxEvtHandler *dest; | |
8437 | src = (wxStaticBitmap *) ptr; | |
8438 | dest = (wxEvtHandler *) src; | |
8439 | return (void *) dest; | |
8440 | } | |
8441 | ||
9416aa89 RD |
8442 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { |
8443 | wxStaticBitmap *src; | |
8444 | wxObject *dest; | |
8445 | src = (wxStaticBitmap *) ptr; | |
8446 | dest = (wxObject *) src; | |
8447 | return (void *) dest; | |
8448 | } | |
8449 | ||
8ab979d7 | 8450 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 8451 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8452 | PyObject * _resultobj; |
8453 | wxStaticBitmap * _result; | |
8454 | wxWindow * _arg0; | |
8455 | wxWindowID _arg1; | |
8456 | wxBitmap * _arg2; | |
e508a2b6 RD |
8457 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8458 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
8459 | long _arg5 = (long ) 0; |
8460 | char * _arg6 = (char *) "staticBitmap"; | |
8461 | PyObject * _argo0 = 0; | |
09f3d4e6 RD |
8462 | PyObject * _argo2 = 0; |
8463 | wxPoint temp; | |
8464 | PyObject * _obj3 = 0; | |
8465 | wxSize temp0; | |
8466 | PyObject * _obj4 = 0; | |
8467 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; | |
8468 | char _ptemp[128]; | |
8469 | ||
8470 | self = self; | |
8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8472 | return NULL; | |
8473 | if (_argo0) { | |
8474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
8477 | return NULL; | |
8478 | } | |
8479 | } | |
8480 | if (_argo2) { | |
8481 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8482 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
8484 | return NULL; | |
8485 | } | |
8486 | } | |
8487 | if (_obj3) | |
8488 | { | |
8489 | _arg3 = &temp; | |
8490 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8491 | return NULL; | |
8492 | } | |
8493 | if (_obj4) | |
8494 | { | |
8495 | _arg4 = &temp0; | |
8496 | if (! wxSize_helper(_obj4, &_arg4)) | |
8497 | return NULL; | |
8498 | } | |
8499 | { | |
4268f798 | 8500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
8501 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
8502 | ||
4268f798 | 8503 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8504 | if (PyErr_Occurred()) return NULL; |
8505 | } if (_result) { | |
8506 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8507 | _resultobj = Py_BuildValue("s",_ptemp); | |
8508 | } else { | |
8509 | Py_INCREF(Py_None); | |
8510 | _resultobj = Py_None; | |
8511 | } | |
8512 | return _resultobj; | |
8513 | } | |
8514 | ||
8515 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
8516 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8517 | PyObject * _resultobj; | |
8518 | wxStaticBitmap * _result; | |
8519 | char *_kwnames[] = { NULL }; | |
8520 | char _ptemp[128]; | |
8521 | ||
8522 | self = self; | |
8523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
8524 | return NULL; | |
8525 | { | |
4268f798 | 8526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
8527 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); |
8528 | ||
4268f798 | 8529 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8530 | if (PyErr_Occurred()) return NULL; |
8531 | } if (_result) { | |
8532 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8533 | _resultobj = Py_BuildValue("s",_ptemp); | |
8534 | } else { | |
8535 | Py_INCREF(Py_None); | |
8536 | _resultobj = Py_None; | |
8537 | } | |
8538 | return _resultobj; | |
8539 | } | |
8540 | ||
8541 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8542 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8543 | PyObject * _resultobj; | |
8544 | bool _result; | |
8545 | wxStaticBitmap * _arg0; | |
8546 | wxWindow * _arg1; | |
8547 | wxWindowID _arg2; | |
8548 | wxBitmap * _arg3; | |
8549 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8550 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8551 | long _arg6 = (long ) 0; | |
8552 | char * _arg7 = (char *) "staticBitmap"; | |
8553 | PyObject * _argo0 = 0; | |
8554 | PyObject * _argo1 = 0; | |
8555 | PyObject * _argo3 = 0; | |
2f90df85 | 8556 | wxPoint temp; |
2f90df85 | 8557 | PyObject * _obj4 = 0; |
09f3d4e6 RD |
8558 | wxSize temp0; |
8559 | PyObject * _obj5 = 0; | |
8560 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; | |
8ab979d7 RD |
8561 | |
8562 | self = self; | |
09f3d4e6 | 8563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7)) |
8ab979d7 | 8564 | return NULL; |
1d99702e RD |
8565 | if (_argo0) { |
8566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
09f3d4e6 RD |
8567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { |
8568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
8ab979d7 RD |
8569 | return NULL; |
8570 | } | |
8571 | } | |
09f3d4e6 RD |
8572 | if (_argo1) { |
8573 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8574 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
8ab979d7 RD |
8576 | return NULL; |
8577 | } | |
8578 | } | |
09f3d4e6 RD |
8579 | if (_argo3) { |
8580 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8581 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
8582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
8583 | return NULL; | |
8584 | } | |
8585 | } | |
8586 | if (_obj4) | |
2f90df85 | 8587 | { |
09f3d4e6 RD |
8588 | _arg4 = &temp; |
8589 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 8590 | return NULL; |
2f90df85 | 8591 | } |
09f3d4e6 | 8592 | if (_obj5) |
2f90df85 | 8593 | { |
09f3d4e6 RD |
8594 | _arg5 = &temp0; |
8595 | if (! wxSize_helper(_obj5, &_arg5)) | |
8ab979d7 | 8596 | return NULL; |
2f90df85 | 8597 | } |
cf694132 | 8598 | { |
4268f798 | 8599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 | 8600 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
cf694132 | 8601 | |
4268f798 | 8602 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8603 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 8604 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8605 | return _resultobj; |
8606 | } | |
8607 | ||
8608 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
efc5f224 | 8609 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8610 | PyObject * _resultobj; |
8611 | wxBitmap * _result; | |
8612 | wxStaticBitmap * _arg0; | |
1d99702e | 8613 | PyObject * _argo0 = 0; |
efc5f224 | 8614 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8615 | char _ptemp[128]; |
8616 | ||
8617 | self = self; | |
efc5f224 | 8618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) |
8ab979d7 | 8619 | return NULL; |
1d99702e RD |
8620 | if (_argo0) { |
8621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8ab979d7 RD |
8623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); |
8624 | return NULL; | |
8625 | } | |
8626 | } | |
cf694132 | 8627 | { |
4268f798 | 8628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 8629 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); |
cf694132 | 8630 | |
4268f798 | 8631 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8632 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8633 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
8634 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8635 | return _resultobj; |
8636 | } | |
8637 | ||
8638 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
efc5f224 | 8639 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8640 | PyObject * _resultobj; |
8641 | wxStaticBitmap * _arg0; | |
8642 | wxBitmap * _arg1; | |
1d99702e RD |
8643 | PyObject * _argo0 = 0; |
8644 | PyObject * _argo1 = 0; | |
efc5f224 | 8645 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
8646 | |
8647 | self = self; | |
efc5f224 | 8648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8649 | return NULL; |
1d99702e RD |
8650 | if (_argo0) { |
8651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8ab979d7 RD |
8653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); |
8654 | return NULL; | |
8655 | } | |
8656 | } | |
1d99702e RD |
8657 | if (_argo1) { |
8658 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8659 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
8660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); |
8661 | return NULL; | |
8662 | } | |
8663 | } | |
cf694132 | 8664 | { |
4268f798 | 8665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8666 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); |
8667 | ||
4268f798 | 8668 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8669 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8670 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8671 | _resultobj = Py_None; |
8672 | return _resultobj; | |
8673 | } | |
8674 | ||
8bf5d46e | 8675 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
efc5f224 | 8676 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
8677 | PyObject * _resultobj; |
8678 | wxStaticBitmap * _arg0; | |
8679 | wxIcon * _arg1; | |
1d99702e RD |
8680 | PyObject * _argo0 = 0; |
8681 | PyObject * _argo1 = 0; | |
efc5f224 | 8682 | char *_kwnames[] = { "self","icon", NULL }; |
8bf5d46e RD |
8683 | |
8684 | self = self; | |
efc5f224 | 8685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) |
8bf5d46e | 8686 | return NULL; |
1d99702e RD |
8687 | if (_argo0) { |
8688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8bf5d46e RD |
8690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); |
8691 | return NULL; | |
8692 | } | |
8693 | } | |
1d99702e RD |
8694 | if (_argo1) { |
8695 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8696 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8bf5d46e RD |
8697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); |
8698 | return NULL; | |
8699 | } | |
8700 | } | |
8701 | { | |
4268f798 | 8702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e RD |
8703 | wxStaticBitmap_SetIcon(_arg0,*_arg1); |
8704 | ||
4268f798 | 8705 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8706 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8707 | } Py_INCREF(Py_None); |
8708 | _resultobj = Py_None; | |
8709 | return _resultobj; | |
8710 | } | |
8711 | ||
8ab979d7 RD |
8712 | static void *SwigwxRadioBoxTowxControl(void *ptr) { |
8713 | wxRadioBox *src; | |
8714 | wxControl *dest; | |
8715 | src = (wxRadioBox *) ptr; | |
8716 | dest = (wxControl *) src; | |
8717 | return (void *) dest; | |
8718 | } | |
8719 | ||
8720 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
8721 | wxRadioBox *src; | |
8722 | wxWindow *dest; | |
8723 | src = (wxRadioBox *) ptr; | |
8724 | dest = (wxWindow *) src; | |
8725 | return (void *) dest; | |
8726 | } | |
8727 | ||
8728 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
8729 | wxRadioBox *src; | |
8730 | wxEvtHandler *dest; | |
8731 | src = (wxRadioBox *) ptr; | |
8732 | dest = (wxEvtHandler *) src; | |
8733 | return (void *) dest; | |
8734 | } | |
8735 | ||
9416aa89 RD |
8736 | static void *SwigwxRadioBoxTowxObject(void *ptr) { |
8737 | wxRadioBox *src; | |
8738 | wxObject *dest; | |
8739 | src = (wxRadioBox *) ptr; | |
8740 | dest = (wxObject *) src; | |
8741 | return (void *) dest; | |
8742 | } | |
8743 | ||
8ab979d7 | 8744 | #define new_wxRadioBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10) (new wxRadioBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10)) |
efc5f224 | 8745 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8746 | PyObject * _resultobj; |
8747 | wxRadioBox * _result; | |
8748 | wxWindow * _arg0; | |
8749 | wxWindowID _arg1; | |
8750 | wxString * _arg2; | |
e508a2b6 RD |
8751 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8752 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
8753 | int _arg5 = (int ) 0; |
8754 | wxString * _arg6 = (wxString *) NULL; | |
8755 | int _arg7 = (int ) 0; | |
8756 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
e508a2b6 | 8757 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
8758 | char * _arg10 = (char *) "radioBox"; |
8759 | PyObject * _argo0 = 0; | |
8ab979d7 | 8760 | PyObject * _obj2 = 0; |
2f90df85 RD |
8761 | wxPoint temp; |
8762 | PyObject * _obj3 = 0; | |
8763 | wxSize temp0; | |
8764 | PyObject * _obj4 = 0; | |
8ab979d7 | 8765 | PyObject * _obj6 = 0; |
1d99702e | 8766 | PyObject * _argo9 = 0; |
eec92d76 | 8767 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
8ab979d7 RD |
8768 | char _ptemp[128]; |
8769 | ||
8770 | self = self; | |
2f90df85 | 8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10)) |
8ab979d7 | 8772 | return NULL; |
1d99702e RD |
8773 | if (_argo0) { |
8774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
8776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); |
8777 | return NULL; | |
8778 | } | |
8779 | } | |
8780 | { | |
185d7c3e RD |
8781 | #if PYTHON_API_VERSION >= 1009 |
8782 | char* tmpPtr; int tmpSize; | |
8783 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8784 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8785 | return NULL; |
8786 | } | |
8787 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8788 | return NULL; | |
8789 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8790 | #else | |
8ab979d7 RD |
8791 | if (!PyString_Check(_obj2)) { |
8792 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8793 | return NULL; | |
8794 | } | |
185d7c3e RD |
8795 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8796 | #endif | |
8ab979d7 | 8797 | } |
2f90df85 RD |
8798 | if (_obj3) |
8799 | { | |
8800 | _arg3 = &temp; | |
8801 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 8802 | return NULL; |
2f90df85 RD |
8803 | } |
8804 | if (_obj4) | |
8805 | { | |
8806 | _arg4 = &temp0; | |
8807 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 8808 | return NULL; |
2f90df85 | 8809 | } |
8ab979d7 RD |
8810 | if (_obj6) |
8811 | { | |
8812 | _arg6 = wxString_LIST_helper(_obj6); | |
8813 | if (_arg6 == NULL) { | |
8814 | return NULL; | |
8815 | } | |
8816 | } | |
1d99702e RD |
8817 | if (_argo9) { |
8818 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
8819 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
8ab979d7 RD |
8820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); |
8821 | return NULL; | |
8822 | } | |
8823 | } | |
8824 | { | |
cf694132 RD |
8825 | if (_obj6) { |
8826 | _arg5 = PyList_Size(_obj6); | |
8827 | } | |
8828 | else { | |
8829 | _arg5 = 0; | |
8830 | } | |
8ab979d7 | 8831 | } |
cf694132 | 8832 | { |
4268f798 | 8833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8834 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); |
8835 | ||
4268f798 | 8836 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8837 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8838 | } if (_result) { |
8839 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8840 | _resultobj = Py_BuildValue("s",_ptemp); | |
8841 | } else { | |
8842 | Py_INCREF(Py_None); | |
8843 | _resultobj = Py_None; | |
8844 | } | |
8ab979d7 RD |
8845 | { |
8846 | if (_obj2) | |
8847 | delete _arg2; | |
8848 | } | |
8849 | { | |
8850 | delete [] _arg6; | |
8851 | } | |
8852 | return _resultobj; | |
8853 | } | |
8854 | ||
09f3d4e6 RD |
8855 | #define new_wxPreRadioBox() (new wxRadioBox()) |
8856 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8857 | PyObject * _resultobj; | |
8858 | wxRadioBox * _result; | |
8859 | char *_kwnames[] = { NULL }; | |
8860 | char _ptemp[128]; | |
8861 | ||
8862 | self = self; | |
8863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
8864 | return NULL; | |
8865 | { | |
4268f798 | 8866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
8867 | _result = (wxRadioBox *)new_wxPreRadioBox(); |
8868 | ||
4268f798 | 8869 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8870 | if (PyErr_Occurred()) return NULL; |
8871 | } if (_result) { | |
8872 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8873 | _resultobj = Py_BuildValue("s",_ptemp); | |
8874 | } else { | |
8875 | Py_INCREF(Py_None); | |
8876 | _resultobj = Py_None; | |
8877 | } | |
8878 | return _resultobj; | |
8879 | } | |
8880 | ||
8881 | #define wxRadioBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10)) | |
8882 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8883 | PyObject * _resultobj; | |
8884 | bool _result; | |
8885 | wxRadioBox * _arg0; | |
8886 | wxWindow * _arg1; | |
8887 | wxWindowID _arg2; | |
8888 | wxString * _arg3; | |
8889 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8890 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8891 | int _arg6 = (int ) 0; | |
8892 | wxString * _arg7 = (wxString *) NULL; | |
8893 | int _arg8 = (int ) 0; | |
8894 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
8895 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
8896 | char * _arg11 = (char *) "radioBox"; | |
8897 | PyObject * _argo0 = 0; | |
8898 | PyObject * _argo1 = 0; | |
8899 | PyObject * _obj3 = 0; | |
8900 | wxPoint temp; | |
8901 | PyObject * _obj4 = 0; | |
8902 | wxSize temp0; | |
8903 | PyObject * _obj5 = 0; | |
8904 | PyObject * _obj7 = 0; | |
8905 | PyObject * _argo10 = 0; | |
8906 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
8907 | ||
8908 | self = self; | |
8909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOs:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_arg11)) | |
8910 | return NULL; | |
8911 | if (_argo0) { | |
8912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
8915 | return NULL; | |
8916 | } | |
8917 | } | |
8918 | if (_argo1) { | |
8919 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8920 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
8922 | return NULL; | |
8923 | } | |
8924 | } | |
8925 | { | |
8926 | #if PYTHON_API_VERSION >= 1009 | |
8927 | char* tmpPtr; int tmpSize; | |
8928 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8929 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8930 | return NULL; | |
8931 | } | |
8932 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8933 | return NULL; | |
8934 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8935 | #else | |
8936 | if (!PyString_Check(_obj3)) { | |
8937 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8938 | return NULL; | |
8939 | } | |
8940 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8941 | #endif | |
8942 | } | |
8943 | if (_obj4) | |
8944 | { | |
8945 | _arg4 = &temp; | |
8946 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8947 | return NULL; | |
8948 | } | |
8949 | if (_obj5) | |
8950 | { | |
8951 | _arg5 = &temp0; | |
8952 | if (! wxSize_helper(_obj5, &_arg5)) | |
8953 | return NULL; | |
8954 | } | |
8955 | if (_obj7) | |
8956 | { | |
8957 | _arg7 = wxString_LIST_helper(_obj7); | |
8958 | if (_arg7 == NULL) { | |
8959 | return NULL; | |
8960 | } | |
8961 | } | |
8962 | if (_argo10) { | |
8963 | if (_argo10 == Py_None) { _arg10 = NULL; } | |
8964 | else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
8965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
8966 | return NULL; | |
8967 | } | |
8968 | } | |
8969 | { | |
8970 | if (_obj7) { | |
8971 | _arg6 = PyList_Size(_obj7); | |
8972 | } | |
8973 | else { | |
8974 | _arg6 = 0; | |
8975 | } | |
8976 | } | |
8977 | { | |
4268f798 | 8978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
8979 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,_arg11); |
8980 | ||
4268f798 | 8981 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8982 | if (PyErr_Occurred()) return NULL; |
8983 | } _resultobj = Py_BuildValue("i",_result); | |
8984 | { | |
8985 | if (_obj3) | |
8986 | delete _arg3; | |
8987 | } | |
8988 | { | |
8989 | delete [] _arg7; | |
8990 | } | |
8991 | return _resultobj; | |
8992 | } | |
8993 | ||
0699c864 | 8994 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 8995 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8996 | PyObject * _resultobj; |
8997 | wxRadioBox * _arg0; | |
8998 | bool _arg1; | |
1d99702e | 8999 | PyObject * _argo0 = 0; |
8ab979d7 | 9000 | int tempbool1; |
efc5f224 | 9001 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
9002 | |
9003 | self = self; | |
efc5f224 | 9004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9005 | return NULL; |
1d99702e RD |
9006 | if (_argo0) { |
9007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 9009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9010 | return NULL; |
9011 | } | |
9012 | } | |
9013 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9014 | { |
4268f798 | 9015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9016 | wxRadioBox_Enable(_arg0,_arg1); |
9017 | ||
4268f798 | 9018 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9019 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9020 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9021 | _resultobj = Py_None; |
9022 | return _resultobj; | |
9023 | } | |
9024 | ||
0699c864 | 9025 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 9026 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9027 | PyObject * _resultobj; |
9028 | wxRadioBox * _arg0; | |
9029 | int _arg1; | |
9030 | bool _arg2; | |
1d99702e | 9031 | PyObject * _argo0 = 0; |
8ab979d7 | 9032 | int tempbool2; |
efc5f224 | 9033 | char *_kwnames[] = { "self","n","enable", NULL }; |
8ab979d7 RD |
9034 | |
9035 | self = self; | |
efc5f224 | 9036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 9037 | return NULL; |
1d99702e RD |
9038 | if (_argo0) { |
9039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 9041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9042 | return NULL; |
9043 | } | |
9044 | } | |
9045 | _arg2 = (bool ) tempbool2; | |
cf694132 | 9046 | { |
4268f798 | 9047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9048 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); |
9049 | ||
4268f798 | 9050 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9051 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9052 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9053 | _resultobj = Py_None; |
9054 | return _resultobj; | |
9055 | } | |
9056 | ||
9057 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 9058 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9059 | PyObject * _resultobj; |
9060 | int _result; | |
9061 | wxRadioBox * _arg0; | |
9062 | wxString * _arg1; | |
1d99702e | 9063 | PyObject * _argo0 = 0; |
8ab979d7 | 9064 | PyObject * _obj1 = 0; |
efc5f224 | 9065 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
9066 | |
9067 | self = self; | |
efc5f224 | 9068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9069 | return NULL; |
1d99702e RD |
9070 | if (_argo0) { |
9071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); |
9074 | return NULL; | |
9075 | } | |
9076 | } | |
9077 | { | |
185d7c3e RD |
9078 | #if PYTHON_API_VERSION >= 1009 |
9079 | char* tmpPtr; int tmpSize; | |
9080 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9081 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9082 | return NULL; |
9083 | } | |
9084 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9085 | return NULL; | |
9086 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9087 | #else | |
8ab979d7 RD |
9088 | if (!PyString_Check(_obj1)) { |
9089 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9090 | return NULL; | |
9091 | } | |
185d7c3e RD |
9092 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9093 | #endif | |
8ab979d7 | 9094 | } |
cf694132 | 9095 | { |
4268f798 | 9096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9097 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); |
9098 | ||
4268f798 | 9099 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9100 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9101 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9102 | { |
9103 | if (_obj1) | |
9104 | delete _arg1; | |
9105 | } | |
9106 | return _resultobj; | |
9107 | } | |
9108 | ||
0adbc166 RD |
9109 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) |
9110 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9111 | PyObject * _resultobj; |
9112 | wxString * _result; | |
9113 | wxRadioBox * _arg0; | |
9114 | int _arg1; | |
1d99702e | 9115 | PyObject * _argo0 = 0; |
efc5f224 | 9116 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
9117 | |
9118 | self = self; | |
0adbc166 | 9119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9120 | return NULL; |
1d99702e RD |
9121 | if (_argo0) { |
9122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0adbc166 | 9124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9125 | return NULL; |
9126 | } | |
9127 | } | |
8ab979d7 | 9128 | { |
4268f798 | 9129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0adbc166 | 9130 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); |
cf694132 | 9131 | |
4268f798 | 9132 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9133 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9134 | }{ |
eec92d76 | 9135 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
9136 | } |
9137 | { | |
9138 | delete _result; | |
9139 | } | |
9140 | return _resultobj; | |
9141 | } | |
9142 | ||
0adbc166 RD |
9143 | #define wxRadioBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
9144 | static PyObject *_wrap_wxRadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9145 | PyObject * _resultobj; |
8ab979d7 | 9146 | wxRadioBox * _arg0; |
0adbc166 RD |
9147 | int _arg1; |
9148 | wxString * _arg2; | |
1d99702e | 9149 | PyObject * _argo0 = 0; |
0adbc166 RD |
9150 | PyObject * _obj2 = 0; |
9151 | char *_kwnames[] = { "self","n","label", NULL }; | |
8ab979d7 RD |
9152 | |
9153 | self = self; | |
0adbc166 | 9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9155 | return NULL; |
1d99702e RD |
9156 | if (_argo0) { |
9157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0adbc166 | 9159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetString. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9160 | return NULL; |
9161 | } | |
9162 | } | |
0adbc166 RD |
9163 | { |
9164 | #if PYTHON_API_VERSION >= 1009 | |
9165 | char* tmpPtr; int tmpSize; | |
9166 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
9167 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9168 | return NULL; | |
9169 | } | |
9170 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9171 | return NULL; | |
9172 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9173 | #else | |
9174 | if (!PyString_Check(_obj2)) { | |
9175 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9176 | return NULL; | |
9177 | } | |
9178 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
9179 | #endif | |
9180 | } | |
cf694132 | 9181 | { |
4268f798 | 9182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0adbc166 | 9183 | wxRadioBox_SetString(_arg0,_arg1,*_arg2); |
cf694132 | 9184 | |
4268f798 | 9185 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9186 | if (PyErr_Occurred()) return NULL; |
0adbc166 RD |
9187 | } Py_INCREF(Py_None); |
9188 | _resultobj = Py_None; | |
9189 | { | |
9190 | if (_obj2) | |
9191 | delete _arg2; | |
9192 | } | |
8ab979d7 RD |
9193 | return _resultobj; |
9194 | } | |
9195 | ||
3a0958b1 RD |
9196 | #define wxRadioBox_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
9197 | static PyObject *_wrap_wxRadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9198 | PyObject * _resultobj; |
0adbc166 | 9199 | int _result; |
8ab979d7 | 9200 | wxRadioBox * _arg0; |
1d99702e | 9201 | PyObject * _argo0 = 0; |
0adbc166 | 9202 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9203 | |
9204 | self = self; | |
3a0958b1 | 9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetColumnCount",_kwnames,&_argo0)) |
8ab979d7 | 9206 | return NULL; |
1d99702e RD |
9207 | if (_argo0) { |
9208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetColumnCount. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9211 | return NULL; |
9212 | } | |
9213 | } | |
8ab979d7 | 9214 | { |
4268f798 | 9215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 | 9216 | _result = (int )wxRadioBox_GetColumnCount(_arg0); |
cf694132 | 9217 | |
4268f798 | 9218 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9219 | if (PyErr_Occurred()) return NULL; |
0adbc166 | 9220 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9221 | return _resultobj; |
9222 | } | |
9223 | ||
3a0958b1 RD |
9224 | #define wxRadioBox_GetRowCount(_swigobj) (_swigobj->GetRowCount()) |
9225 | static PyObject *_wrap_wxRadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9226 | PyObject * _resultobj; |
3a0958b1 | 9227 | int _result; |
8ab979d7 | 9228 | wxRadioBox * _arg0; |
1d99702e | 9229 | PyObject * _argo0 = 0; |
efc5f224 | 9230 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9231 | |
9232 | self = self; | |
3a0958b1 | 9233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetRowCount",_kwnames,&_argo0)) |
8ab979d7 | 9234 | return NULL; |
1d99702e RD |
9235 | if (_argo0) { |
9236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetRowCount. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9239 | return NULL; |
9240 | } | |
9241 | } | |
8ab979d7 | 9242 | { |
4268f798 | 9243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 | 9244 | _result = (int )wxRadioBox_GetRowCount(_arg0); |
cf694132 | 9245 | |
4268f798 | 9246 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9247 | if (PyErr_Occurred()) return NULL; |
3a0958b1 | 9248 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9249 | return _resultobj; |
9250 | } | |
9251 | ||
3a0958b1 RD |
9252 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) |
9253 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9254 | PyObject * _resultobj; |
9255 | int _result; | |
9256 | wxRadioBox * _arg0; | |
1d99702e | 9257 | PyObject * _argo0 = 0; |
efc5f224 | 9258 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9259 | |
9260 | self = self; | |
3a0958b1 | 9261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 9262 | return NULL; |
1d99702e RD |
9263 | if (_argo0) { |
9264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9267 | return NULL; |
9268 | } | |
9269 | } | |
cf694132 | 9270 | { |
4268f798 | 9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 | 9272 | _result = (int )wxRadioBox_GetSelection(_arg0); |
cf694132 | 9273 | |
4268f798 | 9274 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9275 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9276 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9277 | return _resultobj; |
9278 | } | |
9279 | ||
3a0958b1 RD |
9280 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
9281 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9282 | PyObject * _resultobj; |
3a0958b1 | 9283 | wxString * _result; |
8ab979d7 | 9284 | wxRadioBox * _arg0; |
1d99702e | 9285 | PyObject * _argo0 = 0; |
0adbc166 | 9286 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9287 | |
9288 | self = self; | |
3a0958b1 | 9289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 9290 | return NULL; |
1d99702e RD |
9291 | if (_argo0) { |
9292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9295 | return NULL; |
9296 | } | |
9297 | } | |
9298 | { | |
4268f798 | 9299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 | 9300 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); |
0adbc166 | 9301 | |
4268f798 | 9302 | wxPyEndAllowThreads(__tstate); |
0adbc166 | 9303 | if (PyErr_Occurred()) return NULL; |
3a0958b1 RD |
9304 | }{ |
9305 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9306 | } | |
9307 | { | |
9308 | delete _result; | |
9309 | } | |
0adbc166 RD |
9310 | return _resultobj; |
9311 | } | |
9312 | ||
3a0958b1 RD |
9313 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) |
9314 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0adbc166 RD |
9315 | PyObject * _resultobj; |
9316 | int _result; | |
9317 | wxRadioBox * _arg0; | |
9318 | PyObject * _argo0 = 0; | |
9319 | char *_kwnames[] = { "self", NULL }; | |
9320 | ||
9321 | self = self; | |
3a0958b1 | 9322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) |
185d7c3e | 9323 | return NULL; |
0adbc166 RD |
9324 | if (_argo0) { |
9325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); |
8ab979d7 | 9328 | return NULL; |
0adbc166 | 9329 | } |
8ab979d7 | 9330 | } |
cf694132 | 9331 | { |
4268f798 | 9332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 | 9333 | _result = (int )wxRadioBox_GetCount(_arg0); |
cf694132 | 9334 | |
4268f798 | 9335 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9336 | if (PyErr_Occurred()) return NULL; |
0adbc166 | 9337 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9338 | return _resultobj; |
9339 | } | |
9340 | ||
9341 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 9342 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9343 | PyObject * _resultobj; |
9344 | wxRadioBox * _arg0; | |
9345 | int _arg1; | |
1d99702e | 9346 | PyObject * _argo0 = 0; |
efc5f224 | 9347 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
9348 | |
9349 | self = self; | |
efc5f224 | 9350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9351 | return NULL; |
1d99702e RD |
9352 | if (_argo0) { |
9353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); |
9356 | return NULL; | |
9357 | } | |
9358 | } | |
cf694132 | 9359 | { |
4268f798 | 9360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9361 | wxRadioBox_SetSelection(_arg0,_arg1); |
9362 | ||
4268f798 | 9363 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9364 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9365 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9366 | _resultobj = Py_None; |
9367 | return _resultobj; | |
9368 | } | |
9369 | ||
9370 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
efc5f224 | 9371 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9372 | PyObject * _resultobj; |
9373 | wxRadioBox * _arg0; | |
9374 | wxString * _arg1; | |
1d99702e | 9375 | PyObject * _argo0 = 0; |
8ab979d7 | 9376 | PyObject * _obj1 = 0; |
efc5f224 | 9377 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
9378 | |
9379 | self = self; | |
efc5f224 | 9380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9381 | return NULL; |
1d99702e RD |
9382 | if (_argo0) { |
9383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); |
9386 | return NULL; | |
9387 | } | |
9388 | } | |
9389 | { | |
185d7c3e RD |
9390 | #if PYTHON_API_VERSION >= 1009 |
9391 | char* tmpPtr; int tmpSize; | |
9392 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9393 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9394 | return NULL; |
9395 | } | |
9396 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9397 | return NULL; | |
9398 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9399 | #else | |
8ab979d7 RD |
9400 | if (!PyString_Check(_obj1)) { |
9401 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9402 | return NULL; | |
9403 | } | |
185d7c3e RD |
9404 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9405 | #endif | |
8ab979d7 | 9406 | } |
cf694132 | 9407 | { |
4268f798 | 9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9409 | wxRadioBox_SetStringSelection(_arg0,*_arg1); |
9410 | ||
4268f798 | 9411 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9412 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9413 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9414 | _resultobj = Py_None; |
9415 | { | |
9416 | if (_obj1) | |
9417 | delete _arg1; | |
9418 | } | |
9419 | return _resultobj; | |
9420 | } | |
9421 | ||
9422 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 9423 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9424 | PyObject * _resultobj; |
9425 | wxRadioBox * _arg0; | |
9426 | bool _arg1; | |
1d99702e | 9427 | PyObject * _argo0 = 0; |
8ab979d7 | 9428 | int tempbool1; |
efc5f224 | 9429 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
9430 | |
9431 | self = self; | |
efc5f224 | 9432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9433 | return NULL; |
1d99702e RD |
9434 | if (_argo0) { |
9435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); |
9438 | return NULL; | |
9439 | } | |
9440 | } | |
9441 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9442 | { |
4268f798 | 9443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9444 | wxRadioBox_Show(_arg0,_arg1); |
9445 | ||
4268f798 | 9446 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9447 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9448 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9449 | _resultobj = Py_None; |
9450 | return _resultobj; | |
9451 | } | |
9452 | ||
9453 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
efc5f224 | 9454 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9455 | PyObject * _resultobj; |
9456 | wxRadioBox * _arg0; | |
9457 | int _arg1; | |
9458 | bool _arg2; | |
1d99702e | 9459 | PyObject * _argo0 = 0; |
8ab979d7 | 9460 | int tempbool2; |
efc5f224 | 9461 | char *_kwnames[] = { "self","item","show", NULL }; |
8ab979d7 RD |
9462 | |
9463 | self = self; | |
efc5f224 | 9464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 9465 | return NULL; |
1d99702e RD |
9466 | if (_argo0) { |
9467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); |
9470 | return NULL; | |
9471 | } | |
9472 | } | |
9473 | _arg2 = (bool ) tempbool2; | |
cf694132 | 9474 | { |
4268f798 | 9475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9476 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); |
9477 | ||
4268f798 | 9478 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9479 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9480 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9481 | _resultobj = Py_None; |
9482 | return _resultobj; | |
9483 | } | |
9484 | ||
9485 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
9486 | wxRadioButton *src; | |
9487 | wxControl *dest; | |
9488 | src = (wxRadioButton *) ptr; | |
9489 | dest = (wxControl *) src; | |
9490 | return (void *) dest; | |
9491 | } | |
9492 | ||
9493 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
9494 | wxRadioButton *src; | |
9495 | wxWindow *dest; | |
9496 | src = (wxRadioButton *) ptr; | |
9497 | dest = (wxWindow *) src; | |
9498 | return (void *) dest; | |
9499 | } | |
9500 | ||
9501 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
9502 | wxRadioButton *src; | |
9503 | wxEvtHandler *dest; | |
9504 | src = (wxRadioButton *) ptr; | |
9505 | dest = (wxEvtHandler *) src; | |
9506 | return (void *) dest; | |
9507 | } | |
9508 | ||
9416aa89 RD |
9509 | static void *SwigwxRadioButtonTowxObject(void *ptr) { |
9510 | wxRadioButton *src; | |
9511 | wxObject *dest; | |
9512 | src = (wxRadioButton *) ptr; | |
9513 | dest = (wxObject *) src; | |
9514 | return (void *) dest; | |
9515 | } | |
9516 | ||
8ab979d7 | 9517 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 9518 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9519 | PyObject * _resultobj; |
9520 | wxRadioButton * _result; | |
9521 | wxWindow * _arg0; | |
9522 | wxWindowID _arg1; | |
9523 | wxString * _arg2; | |
e508a2b6 RD |
9524 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9525 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 9526 | long _arg5 = (long ) 0; |
e508a2b6 | 9527 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
9528 | char * _arg7 = (char *) "radioButton"; |
9529 | PyObject * _argo0 = 0; | |
8ab979d7 | 9530 | PyObject * _obj2 = 0; |
2f90df85 RD |
9531 | wxPoint temp; |
9532 | PyObject * _obj3 = 0; | |
9533 | wxSize temp0; | |
9534 | PyObject * _obj4 = 0; | |
1d99702e | 9535 | PyObject * _argo6 = 0; |
efc5f224 | 9536 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
9537 | char _ptemp[128]; |
9538 | ||
9539 | self = self; | |
2f90df85 | 9540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 9541 | return NULL; |
1d99702e RD |
9542 | if (_argo0) { |
9543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); |
9546 | return NULL; | |
9547 | } | |
9548 | } | |
9549 | { | |
185d7c3e RD |
9550 | #if PYTHON_API_VERSION >= 1009 |
9551 | char* tmpPtr; int tmpSize; | |
9552 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9553 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9554 | return NULL; |
9555 | } | |
9556 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9557 | return NULL; | |
9558 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9559 | #else | |
8ab979d7 RD |
9560 | if (!PyString_Check(_obj2)) { |
9561 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9562 | return NULL; | |
9563 | } | |
185d7c3e RD |
9564 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9565 | #endif | |
8ab979d7 | 9566 | } |
2f90df85 RD |
9567 | if (_obj3) |
9568 | { | |
09f3d4e6 RD |
9569 | _arg3 = &temp; |
9570 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9571 | return NULL; | |
9572 | } | |
9573 | if (_obj4) | |
9574 | { | |
9575 | _arg4 = &temp0; | |
9576 | if (! wxSize_helper(_obj4, &_arg4)) | |
9577 | return NULL; | |
9578 | } | |
9579 | if (_argo6) { | |
9580 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
9581 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
9582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
9583 | return NULL; | |
9584 | } | |
9585 | } | |
9586 | { | |
4268f798 | 9587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
9588 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
9589 | ||
4268f798 | 9590 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9591 | if (PyErr_Occurred()) return NULL; |
9592 | } if (_result) { | |
9593 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9594 | _resultobj = Py_BuildValue("s",_ptemp); | |
9595 | } else { | |
9596 | Py_INCREF(Py_None); | |
9597 | _resultobj = Py_None; | |
9598 | } | |
9599 | { | |
9600 | if (_obj2) | |
9601 | delete _arg2; | |
9602 | } | |
9603 | return _resultobj; | |
9604 | } | |
9605 | ||
9606 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
9607 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9608 | PyObject * _resultobj; | |
9609 | wxRadioButton * _result; | |
9610 | char *_kwnames[] = { NULL }; | |
9611 | char _ptemp[128]; | |
9612 | ||
9613 | self = self; | |
9614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
9615 | return NULL; | |
9616 | { | |
4268f798 | 9617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
9618 | _result = (wxRadioButton *)new_wxPreRadioButton(); |
9619 | ||
4268f798 | 9620 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9621 | if (PyErr_Occurred()) return NULL; |
9622 | } if (_result) { | |
9623 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9624 | _resultobj = Py_BuildValue("s",_ptemp); | |
9625 | } else { | |
9626 | Py_INCREF(Py_None); | |
9627 | _resultobj = Py_None; | |
9628 | } | |
9629 | return _resultobj; | |
9630 | } | |
9631 | ||
9632 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9633 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9634 | PyObject * _resultobj; | |
9635 | bool _result; | |
9636 | wxRadioButton * _arg0; | |
9637 | wxWindow * _arg1; | |
9638 | wxWindowID _arg2; | |
9639 | wxString * _arg3; | |
9640 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9641 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9642 | long _arg6 = (long ) 0; | |
9643 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9644 | char * _arg8 = (char *) "radioButton"; | |
9645 | PyObject * _argo0 = 0; | |
9646 | PyObject * _argo1 = 0; | |
9647 | PyObject * _obj3 = 0; | |
9648 | wxPoint temp; | |
9649 | PyObject * _obj4 = 0; | |
9650 | wxSize temp0; | |
9651 | PyObject * _obj5 = 0; | |
9652 | PyObject * _argo7 = 0; | |
9653 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
9654 | ||
9655 | self = self; | |
9656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
9657 | return NULL; | |
9658 | if (_argo0) { | |
9659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
9662 | return NULL; | |
9663 | } | |
9664 | } | |
9665 | if (_argo1) { | |
9666 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9667 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
9669 | return NULL; | |
9670 | } | |
9671 | } | |
9672 | { | |
9673 | #if PYTHON_API_VERSION >= 1009 | |
9674 | char* tmpPtr; int tmpSize; | |
9675 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
9676 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9677 | return NULL; | |
9678 | } | |
9679 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9680 | return NULL; | |
9681 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9682 | #else | |
9683 | if (!PyString_Check(_obj3)) { | |
9684 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9685 | return NULL; | |
9686 | } | |
9687 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
9688 | #endif | |
9689 | } | |
9690 | if (_obj4) | |
9691 | { | |
9692 | _arg4 = &temp; | |
9693 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 9694 | return NULL; |
2f90df85 | 9695 | } |
09f3d4e6 | 9696 | if (_obj5) |
2f90df85 | 9697 | { |
09f3d4e6 RD |
9698 | _arg5 = &temp0; |
9699 | if (! wxSize_helper(_obj5, &_arg5)) | |
8ab979d7 | 9700 | return NULL; |
2f90df85 | 9701 | } |
09f3d4e6 RD |
9702 | if (_argo7) { |
9703 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
9704 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
8ab979d7 RD |
9706 | return NULL; |
9707 | } | |
9708 | } | |
cf694132 | 9709 | { |
4268f798 | 9710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 | 9711 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
cf694132 | 9712 | |
4268f798 | 9713 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9714 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 9715 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 9716 | { |
09f3d4e6 RD |
9717 | if (_obj3) |
9718 | delete _arg3; | |
8ab979d7 RD |
9719 | } |
9720 | return _resultobj; | |
9721 | } | |
9722 | ||
9723 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 9724 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9725 | PyObject * _resultobj; |
9726 | bool _result; | |
9727 | wxRadioButton * _arg0; | |
1d99702e | 9728 | PyObject * _argo0 = 0; |
efc5f224 | 9729 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9730 | |
9731 | self = self; | |
efc5f224 | 9732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 9733 | return NULL; |
1d99702e RD |
9734 | if (_argo0) { |
9735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
8ab979d7 RD |
9737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); |
9738 | return NULL; | |
9739 | } | |
9740 | } | |
cf694132 | 9741 | { |
4268f798 | 9742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9743 | _result = (bool )wxRadioButton_GetValue(_arg0); |
9744 | ||
4268f798 | 9745 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9746 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9747 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9748 | return _resultobj; |
9749 | } | |
9750 | ||
9751 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 9752 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9753 | PyObject * _resultobj; |
9754 | wxRadioButton * _arg0; | |
9755 | bool _arg1; | |
1d99702e | 9756 | PyObject * _argo0 = 0; |
8ab979d7 | 9757 | int tempbool1; |
efc5f224 | 9758 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
9759 | |
9760 | self = self; | |
efc5f224 | 9761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9762 | return NULL; |
1d99702e RD |
9763 | if (_argo0) { |
9764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
8ab979d7 RD |
9766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); |
9767 | return NULL; | |
9768 | } | |
9769 | } | |
9770 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9771 | { |
4268f798 | 9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9773 | wxRadioButton_SetValue(_arg0,_arg1); |
9774 | ||
4268f798 | 9775 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9776 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9777 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9778 | _resultobj = Py_None; |
9779 | return _resultobj; | |
9780 | } | |
9781 | ||
9782 | static void *SwigwxSliderTowxControl(void *ptr) { | |
9783 | wxSlider *src; | |
9784 | wxControl *dest; | |
9785 | src = (wxSlider *) ptr; | |
9786 | dest = (wxControl *) src; | |
9787 | return (void *) dest; | |
9788 | } | |
9789 | ||
9790 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
9791 | wxSlider *src; | |
9792 | wxWindow *dest; | |
9793 | src = (wxSlider *) ptr; | |
9794 | dest = (wxWindow *) src; | |
9795 | return (void *) dest; | |
9796 | } | |
9797 | ||
9798 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
9799 | wxSlider *src; | |
9800 | wxEvtHandler *dest; | |
9801 | src = (wxSlider *) ptr; | |
9802 | dest = (wxEvtHandler *) src; | |
9803 | return (void *) dest; | |
9804 | } | |
9805 | ||
9416aa89 RD |
9806 | static void *SwigwxSliderTowxObject(void *ptr) { |
9807 | wxSlider *src; | |
9808 | wxObject *dest; | |
9809 | src = (wxSlider *) ptr; | |
9810 | dest = (wxObject *) src; | |
9811 | return (void *) dest; | |
9812 | } | |
9813 | ||
8ab979d7 | 9814 | #define new_wxSlider(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxSlider(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) |
efc5f224 | 9815 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9816 | PyObject * _resultobj; |
9817 | wxSlider * _result; | |
9818 | wxWindow * _arg0; | |
9819 | wxWindowID _arg1; | |
9820 | int _arg2; | |
9821 | int _arg3; | |
9822 | int _arg4; | |
e508a2b6 RD |
9823 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
9824 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
1d99702e | 9825 | long _arg7 = (long ) wxSL_HORIZONTAL; |
e508a2b6 | 9826 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
9827 | char * _arg9 = (char *) "slider"; |
9828 | PyObject * _argo0 = 0; | |
2f90df85 RD |
9829 | wxPoint temp; |
9830 | PyObject * _obj5 = 0; | |
9831 | wxSize temp0; | |
9832 | PyObject * _obj6 = 0; | |
1d99702e | 9833 | PyObject * _argo8 = 0; |
efc5f224 | 9834 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
8ab979d7 RD |
9835 | char _ptemp[128]; |
9836 | ||
9837 | self = self; | |
2f90df85 | 9838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9)) |
8ab979d7 | 9839 | return NULL; |
1d99702e RD |
9840 | if (_argo0) { |
9841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); |
9844 | return NULL; | |
9845 | } | |
9846 | } | |
2f90df85 RD |
9847 | if (_obj5) |
9848 | { | |
9849 | _arg5 = &temp; | |
9850 | if (! wxPoint_helper(_obj5, &_arg5)) | |
8ab979d7 | 9851 | return NULL; |
2f90df85 RD |
9852 | } |
9853 | if (_obj6) | |
9854 | { | |
9855 | _arg6 = &temp0; | |
9856 | if (! wxSize_helper(_obj6, &_arg6)) | |
8ab979d7 | 9857 | return NULL; |
2f90df85 | 9858 | } |
1d99702e RD |
9859 | if (_argo8) { |
9860 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
9861 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
8ab979d7 RD |
9862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); |
9863 | return NULL; | |
9864 | } | |
9865 | } | |
cf694132 | 9866 | { |
4268f798 | 9867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9868 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); |
9869 | ||
4268f798 | 9870 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9871 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9872 | } if (_result) { |
9873 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9874 | _resultobj = Py_BuildValue("s",_ptemp); | |
9875 | } else { | |
9876 | Py_INCREF(Py_None); | |
9877 | _resultobj = Py_None; | |
9878 | } | |
8ab979d7 RD |
9879 | return _resultobj; |
9880 | } | |
9881 | ||
09f3d4e6 RD |
9882 | #define new_wxPreSlider() (new wxSlider()) |
9883 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9884 | PyObject * _resultobj; | |
9885 | wxSlider * _result; | |
9886 | char *_kwnames[] = { NULL }; | |
9887 | char _ptemp[128]; | |
9888 | ||
9889 | self = self; | |
9890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
9891 | return NULL; | |
9892 | { | |
4268f798 | 9893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
9894 | _result = (wxSlider *)new_wxPreSlider(); |
9895 | ||
4268f798 | 9896 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9897 | if (PyErr_Occurred()) return NULL; |
9898 | } if (_result) { | |
9899 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9900 | _resultobj = Py_BuildValue("s",_ptemp); | |
9901 | } else { | |
9902 | Py_INCREF(Py_None); | |
9903 | _resultobj = Py_None; | |
9904 | } | |
9905 | return _resultobj; | |
9906 | } | |
9907 | ||
9908 | #define wxSlider_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
9909 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9910 | PyObject * _resultobj; | |
9911 | bool _result; | |
9912 | wxSlider * _arg0; | |
9913 | wxWindow * _arg1; | |
9914 | wxWindowID _arg2; | |
9915 | int _arg3; | |
9916 | int _arg4; | |
9917 | int _arg5; | |
9918 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
9919 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
9920 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
9921 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9922 | char * _arg10 = (char *) "slider"; | |
9923 | PyObject * _argo0 = 0; | |
9924 | PyObject * _argo1 = 0; | |
9925 | wxPoint temp; | |
9926 | PyObject * _obj6 = 0; | |
9927 | wxSize temp0; | |
9928 | PyObject * _obj7 = 0; | |
9929 | PyObject * _argo9 = 0; | |
9930 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
9931 | ||
9932 | self = self; | |
9933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOs:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_arg10)) | |
9934 | return NULL; | |
9935 | if (_argo0) { | |
9936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
9939 | return NULL; | |
9940 | } | |
9941 | } | |
9942 | if (_argo1) { | |
9943 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9944 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
9946 | return NULL; | |
9947 | } | |
9948 | } | |
9949 | if (_obj6) | |
9950 | { | |
9951 | _arg6 = &temp; | |
9952 | if (! wxPoint_helper(_obj6, &_arg6)) | |
9953 | return NULL; | |
9954 | } | |
9955 | if (_obj7) | |
9956 | { | |
9957 | _arg7 = &temp0; | |
9958 | if (! wxSize_helper(_obj7, &_arg7)) | |
9959 | return NULL; | |
9960 | } | |
9961 | if (_argo9) { | |
9962 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
9963 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
9964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
9965 | return NULL; | |
9966 | } | |
9967 | } | |
9968 | { | |
4268f798 | 9969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
9970 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,_arg10); |
9971 | ||
4268f798 | 9972 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9973 | if (PyErr_Occurred()) return NULL; |
9974 | } _resultobj = Py_BuildValue("i",_result); | |
9975 | return _resultobj; | |
9976 | } | |
9977 | ||
8ab979d7 | 9978 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) |
efc5f224 | 9979 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9980 | PyObject * _resultobj; |
9981 | wxSlider * _arg0; | |
1d99702e | 9982 | PyObject * _argo0 = 0; |
efc5f224 | 9983 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9984 | |
9985 | self = self; | |
efc5f224 | 9986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) |
8ab979d7 | 9987 | return NULL; |
1d99702e RD |
9988 | if (_argo0) { |
9989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); |
9992 | return NULL; | |
9993 | } | |
9994 | } | |
cf694132 | 9995 | { |
4268f798 | 9996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9997 | wxSlider_ClearSel(_arg0); |
9998 | ||
4268f798 | 9999 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10000 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10001 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10002 | _resultobj = Py_None; |
10003 | return _resultobj; | |
10004 | } | |
10005 | ||
10006 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
efc5f224 | 10007 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10008 | PyObject * _resultobj; |
10009 | wxSlider * _arg0; | |
1d99702e | 10010 | PyObject * _argo0 = 0; |
efc5f224 | 10011 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10012 | |
10013 | self = self; | |
efc5f224 | 10014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) |
8ab979d7 | 10015 | return NULL; |
1d99702e RD |
10016 | if (_argo0) { |
10017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); |
10020 | return NULL; | |
10021 | } | |
10022 | } | |
cf694132 | 10023 | { |
4268f798 | 10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10025 | wxSlider_ClearTicks(_arg0); |
10026 | ||
4268f798 | 10027 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10028 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10029 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10030 | _resultobj = Py_None; |
10031 | return _resultobj; | |
10032 | } | |
10033 | ||
10034 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
efc5f224 | 10035 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10036 | PyObject * _resultobj; |
10037 | int _result; | |
10038 | wxSlider * _arg0; | |
1d99702e | 10039 | PyObject * _argo0 = 0; |
efc5f224 | 10040 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10041 | |
10042 | self = self; | |
efc5f224 | 10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) |
8ab979d7 | 10044 | return NULL; |
1d99702e RD |
10045 | if (_argo0) { |
10046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); |
10049 | return NULL; | |
10050 | } | |
10051 | } | |
cf694132 | 10052 | { |
4268f798 | 10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10054 | _result = (int )wxSlider_GetLineSize(_arg0); |
10055 | ||
4268f798 | 10056 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10057 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10058 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10059 | return _resultobj; |
10060 | } | |
10061 | ||
10062 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
efc5f224 | 10063 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10064 | PyObject * _resultobj; |
10065 | int _result; | |
10066 | wxSlider * _arg0; | |
1d99702e | 10067 | PyObject * _argo0 = 0; |
efc5f224 | 10068 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10069 | |
10070 | self = self; | |
efc5f224 | 10071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) |
8ab979d7 | 10072 | return NULL; |
1d99702e RD |
10073 | if (_argo0) { |
10074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); |
10077 | return NULL; | |
10078 | } | |
10079 | } | |
cf694132 | 10080 | { |
4268f798 | 10081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10082 | _result = (int )wxSlider_GetMax(_arg0); |
10083 | ||
4268f798 | 10084 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10085 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10086 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10087 | return _resultobj; |
10088 | } | |
10089 | ||
10090 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
efc5f224 | 10091 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10092 | PyObject * _resultobj; |
10093 | int _result; | |
10094 | wxSlider * _arg0; | |
1d99702e | 10095 | PyObject * _argo0 = 0; |
efc5f224 | 10096 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10097 | |
10098 | self = self; | |
efc5f224 | 10099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) |
8ab979d7 | 10100 | return NULL; |
1d99702e RD |
10101 | if (_argo0) { |
10102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); |
10105 | return NULL; | |
10106 | } | |
10107 | } | |
cf694132 | 10108 | { |
4268f798 | 10109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10110 | _result = (int )wxSlider_GetMin(_arg0); |
10111 | ||
4268f798 | 10112 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10113 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10114 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10115 | return _resultobj; |
10116 | } | |
10117 | ||
10118 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
efc5f224 | 10119 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10120 | PyObject * _resultobj; |
10121 | int _result; | |
10122 | wxSlider * _arg0; | |
1d99702e | 10123 | PyObject * _argo0 = 0; |
efc5f224 | 10124 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10125 | |
10126 | self = self; | |
efc5f224 | 10127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) |
8ab979d7 | 10128 | return NULL; |
1d99702e RD |
10129 | if (_argo0) { |
10130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); |
10133 | return NULL; | |
10134 | } | |
10135 | } | |
cf694132 | 10136 | { |
4268f798 | 10137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10138 | _result = (int )wxSlider_GetPageSize(_arg0); |
10139 | ||
4268f798 | 10140 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10142 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10143 | return _resultobj; |
10144 | } | |
10145 | ||
10146 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
efc5f224 | 10147 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10148 | PyObject * _resultobj; |
10149 | int _result; | |
10150 | wxSlider * _arg0; | |
1d99702e | 10151 | PyObject * _argo0 = 0; |
efc5f224 | 10152 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10153 | |
10154 | self = self; | |
efc5f224 | 10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) |
8ab979d7 | 10156 | return NULL; |
1d99702e RD |
10157 | if (_argo0) { |
10158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); |
10161 | return NULL; | |
10162 | } | |
10163 | } | |
cf694132 | 10164 | { |
4268f798 | 10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10166 | _result = (int )wxSlider_GetSelEnd(_arg0); |
10167 | ||
4268f798 | 10168 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10169 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10170 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10171 | return _resultobj; |
10172 | } | |
10173 | ||
10174 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
efc5f224 | 10175 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10176 | PyObject * _resultobj; |
10177 | int _result; | |
10178 | wxSlider * _arg0; | |
1d99702e | 10179 | PyObject * _argo0 = 0; |
efc5f224 | 10180 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10181 | |
10182 | self = self; | |
efc5f224 | 10183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) |
8ab979d7 | 10184 | return NULL; |
1d99702e RD |
10185 | if (_argo0) { |
10186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); |
10189 | return NULL; | |
10190 | } | |
10191 | } | |
cf694132 | 10192 | { |
4268f798 | 10193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10194 | _result = (int )wxSlider_GetSelStart(_arg0); |
10195 | ||
4268f798 | 10196 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10197 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10198 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10199 | return _resultobj; |
10200 | } | |
10201 | ||
10202 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
efc5f224 | 10203 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10204 | PyObject * _resultobj; |
10205 | int _result; | |
10206 | wxSlider * _arg0; | |
1d99702e | 10207 | PyObject * _argo0 = 0; |
efc5f224 | 10208 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10209 | |
10210 | self = self; | |
efc5f224 | 10211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) |
8ab979d7 | 10212 | return NULL; |
1d99702e RD |
10213 | if (_argo0) { |
10214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); |
10217 | return NULL; | |
10218 | } | |
10219 | } | |
cf694132 | 10220 | { |
4268f798 | 10221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10222 | _result = (int )wxSlider_GetThumbLength(_arg0); |
10223 | ||
4268f798 | 10224 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10225 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10226 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10227 | return _resultobj; |
10228 | } | |
10229 | ||
10230 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
efc5f224 | 10231 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10232 | PyObject * _resultobj; |
10233 | int _result; | |
10234 | wxSlider * _arg0; | |
1d99702e | 10235 | PyObject * _argo0 = 0; |
efc5f224 | 10236 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10237 | |
10238 | self = self; | |
efc5f224 | 10239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) |
8ab979d7 | 10240 | return NULL; |
1d99702e RD |
10241 | if (_argo0) { |
10242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); |
10245 | return NULL; | |
10246 | } | |
10247 | } | |
cf694132 | 10248 | { |
4268f798 | 10249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10250 | _result = (int )wxSlider_GetTickFreq(_arg0); |
10251 | ||
4268f798 | 10252 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10253 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10254 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10255 | return _resultobj; |
10256 | } | |
10257 | ||
10258 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 10259 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10260 | PyObject * _resultobj; |
10261 | int _result; | |
10262 | wxSlider * _arg0; | |
1d99702e | 10263 | PyObject * _argo0 = 0; |
efc5f224 | 10264 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10265 | |
10266 | self = self; | |
efc5f224 | 10267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 10268 | return NULL; |
1d99702e RD |
10269 | if (_argo0) { |
10270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); |
10273 | return NULL; | |
10274 | } | |
10275 | } | |
cf694132 | 10276 | { |
4268f798 | 10277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10278 | _result = (int )wxSlider_GetValue(_arg0); |
10279 | ||
4268f798 | 10280 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10281 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10282 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10283 | return _resultobj; |
10284 | } | |
10285 | ||
10286 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 10287 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10288 | PyObject * _resultobj; |
10289 | wxSlider * _arg0; | |
10290 | int _arg1; | |
10291 | int _arg2; | |
1d99702e | 10292 | PyObject * _argo0 = 0; |
efc5f224 | 10293 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; |
8ab979d7 RD |
10294 | |
10295 | self = self; | |
efc5f224 | 10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 10297 | return NULL; |
1d99702e RD |
10298 | if (_argo0) { |
10299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); |
10302 | return NULL; | |
10303 | } | |
10304 | } | |
cf694132 | 10305 | { |
4268f798 | 10306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10307 | wxSlider_SetRange(_arg0,_arg1,_arg2); |
10308 | ||
4268f798 | 10309 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10310 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10311 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10312 | _resultobj = Py_None; |
10313 | return _resultobj; | |
10314 | } | |
10315 | ||
10316 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
efc5f224 | 10317 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10318 | PyObject * _resultobj; |
10319 | wxSlider * _arg0; | |
10320 | int _arg1; | |
10321 | int _arg2; | |
1d99702e | 10322 | PyObject * _argo0 = 0; |
efc5f224 | 10323 | char *_kwnames[] = { "self","n","pos", NULL }; |
8ab979d7 RD |
10324 | |
10325 | self = self; | |
efc5f224 | 10326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 10327 | return NULL; |
1d99702e RD |
10328 | if (_argo0) { |
10329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); |
10332 | return NULL; | |
10333 | } | |
10334 | } | |
cf694132 | 10335 | { |
4268f798 | 10336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10337 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); |
10338 | ||
4268f798 | 10339 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10340 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10341 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10342 | _resultobj = Py_None; |
10343 | return _resultobj; | |
10344 | } | |
10345 | ||
10346 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
efc5f224 | 10347 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10348 | PyObject * _resultobj; |
10349 | wxSlider * _arg0; | |
10350 | int _arg1; | |
1d99702e | 10351 | PyObject * _argo0 = 0; |
efc5f224 | 10352 | char *_kwnames[] = { "self","lineSize", NULL }; |
8ab979d7 RD |
10353 | |
10354 | self = self; | |
efc5f224 | 10355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10356 | return NULL; |
1d99702e RD |
10357 | if (_argo0) { |
10358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); |
10361 | return NULL; | |
10362 | } | |
10363 | } | |
cf694132 | 10364 | { |
4268f798 | 10365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10366 | wxSlider_SetLineSize(_arg0,_arg1); |
10367 | ||
4268f798 | 10368 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10369 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10370 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10371 | _resultobj = Py_None; |
10372 | return _resultobj; | |
10373 | } | |
10374 | ||
10375 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
efc5f224 | 10376 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10377 | PyObject * _resultobj; |
10378 | wxSlider * _arg0; | |
10379 | int _arg1; | |
1d99702e | 10380 | PyObject * _argo0 = 0; |
efc5f224 | 10381 | char *_kwnames[] = { "self","pageSize", NULL }; |
8ab979d7 RD |
10382 | |
10383 | self = self; | |
efc5f224 | 10384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10385 | return NULL; |
1d99702e RD |
10386 | if (_argo0) { |
10387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); |
10390 | return NULL; | |
10391 | } | |
10392 | } | |
cf694132 | 10393 | { |
4268f798 | 10394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10395 | wxSlider_SetPageSize(_arg0,_arg1); |
10396 | ||
4268f798 | 10397 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10398 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10399 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10400 | _resultobj = Py_None; |
10401 | return _resultobj; | |
10402 | } | |
10403 | ||
10404 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 10405 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10406 | PyObject * _resultobj; |
10407 | wxSlider * _arg0; | |
10408 | int _arg1; | |
10409 | int _arg2; | |
1d99702e | 10410 | PyObject * _argo0 = 0; |
efc5f224 | 10411 | char *_kwnames[] = { "self","startPos","endPos", NULL }; |
8ab979d7 RD |
10412 | |
10413 | self = self; | |
efc5f224 | 10414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 10415 | return NULL; |
1d99702e RD |
10416 | if (_argo0) { |
10417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); |
10420 | return NULL; | |
10421 | } | |
10422 | } | |
cf694132 | 10423 | { |
4268f798 | 10424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10425 | wxSlider_SetSelection(_arg0,_arg1,_arg2); |
10426 | ||
4268f798 | 10427 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10428 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10429 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10430 | _resultobj = Py_None; |
10431 | return _resultobj; | |
10432 | } | |
10433 | ||
10434 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
efc5f224 | 10435 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10436 | PyObject * _resultobj; |
10437 | wxSlider * _arg0; | |
10438 | int _arg1; | |
1d99702e | 10439 | PyObject * _argo0 = 0; |
efc5f224 | 10440 | char *_kwnames[] = { "self","len", NULL }; |
8ab979d7 RD |
10441 | |
10442 | self = self; | |
efc5f224 | 10443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10444 | return NULL; |
1d99702e RD |
10445 | if (_argo0) { |
10446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); |
10449 | return NULL; | |
10450 | } | |
10451 | } | |
cf694132 | 10452 | { |
4268f798 | 10453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10454 | wxSlider_SetThumbLength(_arg0,_arg1); |
10455 | ||
4268f798 | 10456 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10457 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10458 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10459 | _resultobj = Py_None; |
10460 | return _resultobj; | |
10461 | } | |
10462 | ||
10463 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
efc5f224 | 10464 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10465 | PyObject * _resultobj; |
10466 | wxSlider * _arg0; | |
10467 | int _arg1; | |
1d99702e | 10468 | PyObject * _argo0 = 0; |
efc5f224 | 10469 | char *_kwnames[] = { "self","tickPos", NULL }; |
8ab979d7 RD |
10470 | |
10471 | self = self; | |
efc5f224 | 10472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10473 | return NULL; |
1d99702e RD |
10474 | if (_argo0) { |
10475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); |
10478 | return NULL; | |
10479 | } | |
10480 | } | |
cf694132 | 10481 | { |
4268f798 | 10482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10483 | wxSlider_SetTick(_arg0,_arg1); |
10484 | ||
4268f798 | 10485 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10486 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10487 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10488 | _resultobj = Py_None; |
10489 | return _resultobj; | |
10490 | } | |
10491 | ||
10492 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 10493 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10494 | PyObject * _resultobj; |
10495 | wxSlider * _arg0; | |
10496 | int _arg1; | |
1d99702e | 10497 | PyObject * _argo0 = 0; |
efc5f224 | 10498 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
10499 | |
10500 | self = self; | |
efc5f224 | 10501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10502 | return NULL; |
1d99702e RD |
10503 | if (_argo0) { |
10504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); |
10507 | return NULL; | |
10508 | } | |
10509 | } | |
cf694132 | 10510 | { |
4268f798 | 10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10512 | wxSlider_SetValue(_arg0,_arg1); |
10513 | ||
4268f798 | 10514 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10515 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10516 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10517 | _resultobj = Py_None; |
10518 | return _resultobj; | |
10519 | } | |
10520 | ||
f6bcfd97 BP |
10521 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { |
10522 | wxSpinCtrl *src; | |
10523 | wxSpinButton *dest; | |
10524 | src = (wxSpinCtrl *) ptr; | |
10525 | dest = (wxSpinButton *) src; | |
10526 | return (void *) dest; | |
10527 | } | |
10528 | ||
10529 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
10530 | wxSpinCtrl *src; | |
10531 | wxControl *dest; | |
10532 | src = (wxSpinCtrl *) ptr; | |
10533 | dest = (wxControl *) src; | |
10534 | return (void *) dest; | |
10535 | } | |
10536 | ||
10537 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
10538 | wxSpinCtrl *src; | |
10539 | wxWindow *dest; | |
10540 | src = (wxSpinCtrl *) ptr; | |
10541 | dest = (wxWindow *) src; | |
10542 | return (void *) dest; | |
10543 | } | |
10544 | ||
10545 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
10546 | wxSpinCtrl *src; | |
10547 | wxEvtHandler *dest; | |
10548 | src = (wxSpinCtrl *) ptr; | |
10549 | dest = (wxEvtHandler *) src; | |
10550 | return (void *) dest; | |
10551 | } | |
10552 | ||
9416aa89 RD |
10553 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { |
10554 | wxSpinCtrl *src; | |
10555 | wxObject *dest; | |
10556 | src = (wxSpinCtrl *) ptr; | |
10557 | dest = (wxObject *) src; | |
10558 | return (void *) dest; | |
10559 | } | |
10560 | ||
f6bcfd97 BP |
10561 | #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)) |
10562 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10563 | PyObject * _resultobj; | |
10564 | wxSpinCtrl * _result; | |
10565 | wxWindow * _arg0; | |
10566 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10567 | char * _arg2 = (char *) ""; | |
e508a2b6 RD |
10568 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
10569 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
f6bcfd97 BP |
10570 | long _arg5 = (long ) wxSP_ARROW_KEYS; |
10571 | int _arg6 = (int ) 0; | |
10572 | int _arg7 = (int ) 100; | |
10573 | int _arg8 = (int ) 0; | |
10574 | char * _arg9 = (char *) "wxSpinCtrl"; | |
10575 | PyObject * _argo0 = 0; | |
10576 | wxPoint temp; | |
10577 | PyObject * _obj3 = 0; | |
10578 | wxSize temp0; | |
10579 | PyObject * _obj4 = 0; | |
10580 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10581 | char _ptemp[128]; | |
10582 | ||
10583 | self = self; | |
10584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
10585 | return NULL; | |
10586 | if (_argo0) { | |
10587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
10590 | return NULL; | |
10591 | } | |
10592 | } | |
10593 | if (_obj3) | |
10594 | { | |
10595 | _arg3 = &temp; | |
10596 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10597 | return NULL; | |
10598 | } | |
10599 | if (_obj4) | |
10600 | { | |
10601 | _arg4 = &temp0; | |
10602 | if (! wxSize_helper(_obj4, &_arg4)) | |
10603 | return NULL; | |
10604 | } | |
10605 | { | |
4268f798 | 10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
10607 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
10608 | ||
4268f798 | 10609 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10610 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10611 | } if (_result) { |
10612 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10613 | _resultobj = Py_BuildValue("s",_ptemp); | |
10614 | } else { | |
10615 | Py_INCREF(Py_None); | |
10616 | _resultobj = Py_None; | |
10617 | } | |
10618 | return _resultobj; | |
10619 | } | |
10620 | ||
09f3d4e6 RD |
10621 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) |
10622 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10623 | PyObject * _resultobj; | |
10624 | wxSpinCtrl * _result; | |
10625 | char *_kwnames[] = { NULL }; | |
10626 | char _ptemp[128]; | |
10627 | ||
10628 | self = self; | |
10629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
10630 | return NULL; | |
10631 | { | |
4268f798 | 10632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
10633 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); |
10634 | ||
4268f798 | 10635 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
10636 | if (PyErr_Occurred()) return NULL; |
10637 | } if (_result) { | |
10638 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10639 | _resultobj = Py_BuildValue("s",_ptemp); | |
10640 | } else { | |
10641 | Py_INCREF(Py_None); | |
10642 | _resultobj = Py_None; | |
10643 | } | |
10644 | return _resultobj; | |
10645 | } | |
10646 | ||
10647 | #define wxSpinCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
10648 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10649 | PyObject * _resultobj; | |
10650 | bool _result; | |
10651 | wxSpinCtrl * _arg0; | |
10652 | wxWindow * _arg1; | |
10653 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10654 | char * _arg3 = (char *) ""; | |
10655 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10656 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10657 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
10658 | int _arg7 = (int ) 0; | |
10659 | int _arg8 = (int ) 100; | |
10660 | int _arg9 = (int ) 0; | |
10661 | char * _arg10 = (char *) "wxSpinCtrl"; | |
10662 | PyObject * _argo0 = 0; | |
10663 | PyObject * _argo1 = 0; | |
10664 | wxPoint temp; | |
10665 | PyObject * _obj4 = 0; | |
10666 | wxSize temp0; | |
10667 | PyObject * _obj5 = 0; | |
10668 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10669 | ||
10670 | self = self; | |
10671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOliiis:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_arg10)) | |
10672 | return NULL; | |
10673 | if (_argo0) { | |
10674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
10677 | return NULL; | |
10678 | } | |
10679 | } | |
10680 | if (_argo1) { | |
10681 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10682 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
10684 | return NULL; | |
10685 | } | |
10686 | } | |
10687 | if (_obj4) | |
10688 | { | |
10689 | _arg4 = &temp; | |
10690 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10691 | return NULL; | |
10692 | } | |
10693 | if (_obj5) | |
10694 | { | |
10695 | _arg5 = &temp0; | |
10696 | if (! wxSize_helper(_obj5, &_arg5)) | |
10697 | return NULL; | |
10698 | } | |
10699 | { | |
4268f798 | 10700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
10701 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,_arg10); |
10702 | ||
4268f798 | 10703 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
10704 | if (PyErr_Occurred()) return NULL; |
10705 | } _resultobj = Py_BuildValue("i",_result); | |
10706 | return _resultobj; | |
10707 | } | |
10708 | ||
c368d904 RD |
10709 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) |
10710 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10711 | PyObject * _resultobj; | |
10712 | int _result; | |
10713 | wxSpinCtrl * _arg0; | |
10714 | PyObject * _argo0 = 0; | |
10715 | char *_kwnames[] = { "self", NULL }; | |
10716 | ||
10717 | self = self; | |
10718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
10719 | return NULL; | |
10720 | if (_argo0) { | |
10721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
10724 | return NULL; | |
10725 | } | |
10726 | } | |
10727 | { | |
4268f798 | 10728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
10729 | _result = (int )wxSpinCtrl_GetMax(_arg0); |
10730 | ||
4268f798 | 10731 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10732 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10733 | } _resultobj = Py_BuildValue("i",_result); |
10734 | return _resultobj; | |
10735 | } | |
10736 | ||
10737 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
10738 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10739 | PyObject * _resultobj; | |
10740 | int _result; | |
10741 | wxSpinCtrl * _arg0; | |
10742 | PyObject * _argo0 = 0; | |
10743 | char *_kwnames[] = { "self", NULL }; | |
10744 | ||
10745 | self = self; | |
10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
10747 | return NULL; | |
10748 | if (_argo0) { | |
10749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
10752 | return NULL; | |
10753 | } | |
10754 | } | |
10755 | { | |
4268f798 | 10756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
10757 | _result = (int )wxSpinCtrl_GetMin(_arg0); |
10758 | ||
4268f798 | 10759 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10760 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10761 | } _resultobj = Py_BuildValue("i",_result); |
10762 | return _resultobj; | |
10763 | } | |
10764 | ||
10765 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
10766 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10767 | PyObject * _resultobj; | |
10768 | int _result; | |
10769 | wxSpinCtrl * _arg0; | |
10770 | PyObject * _argo0 = 0; | |
10771 | char *_kwnames[] = { "self", NULL }; | |
10772 | ||
10773 | self = self; | |
10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
10775 | return NULL; | |
10776 | if (_argo0) { | |
10777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
10780 | return NULL; | |
10781 | } | |
10782 | } | |
10783 | { | |
4268f798 | 10784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
10785 | _result = (int )wxSpinCtrl_GetValue(_arg0); |
10786 | ||
4268f798 | 10787 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10788 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10789 | } _resultobj = Py_BuildValue("i",_result); |
10790 | return _resultobj; | |
10791 | } | |
10792 | ||
10793 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10794 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10795 | PyObject * _resultobj; | |
10796 | wxSpinCtrl * _arg0; | |
10797 | int _arg1; | |
10798 | int _arg2; | |
10799 | PyObject * _argo0 = 0; | |
10800 | char *_kwnames[] = { "self","min","max", NULL }; | |
10801 | ||
10802 | self = self; | |
10803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10804 | return NULL; | |
10805 | if (_argo0) { | |
10806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
10809 | return NULL; | |
10810 | } | |
10811 | } | |
10812 | { | |
4268f798 | 10813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
10814 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); |
10815 | ||
4268f798 | 10816 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10817 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10818 | } Py_INCREF(Py_None); |
10819 | _resultobj = Py_None; | |
10820 | return _resultobj; | |
10821 | } | |
10822 | ||
10823 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10824 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10825 | PyObject * _resultobj; | |
10826 | wxSpinCtrl * _arg0; | |
10827 | int _arg1; | |
10828 | PyObject * _argo0 = 0; | |
10829 | char *_kwnames[] = { "self","value", NULL }; | |
10830 | ||
10831 | self = self; | |
10832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
10833 | return NULL; | |
10834 | if (_argo0) { | |
10835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
10838 | return NULL; | |
10839 | } | |
10840 | } | |
10841 | { | |
4268f798 | 10842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
10843 | wxSpinCtrl_SetValue(_arg0,_arg1); |
10844 | ||
4268f798 | 10845 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10846 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10847 | } Py_INCREF(Py_None); |
10848 | _resultobj = Py_None; | |
10849 | return _resultobj; | |
10850 | } | |
10851 | ||
d1679124 RD |
10852 | static void *SwigwxToggleButtonTowxControl(void *ptr) { |
10853 | wxToggleButton *src; | |
10854 | wxControl *dest; | |
10855 | src = (wxToggleButton *) ptr; | |
10856 | dest = (wxControl *) src; | |
10857 | return (void *) dest; | |
10858 | } | |
10859 | ||
10860 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
10861 | wxToggleButton *src; | |
10862 | wxWindow *dest; | |
10863 | src = (wxToggleButton *) ptr; | |
10864 | dest = (wxWindow *) src; | |
10865 | return (void *) dest; | |
10866 | } | |
10867 | ||
10868 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
10869 | wxToggleButton *src; | |
10870 | wxEvtHandler *dest; | |
10871 | src = (wxToggleButton *) ptr; | |
10872 | dest = (wxEvtHandler *) src; | |
10873 | return (void *) dest; | |
10874 | } | |
10875 | ||
9416aa89 RD |
10876 | static void *SwigwxToggleButtonTowxObject(void *ptr) { |
10877 | wxToggleButton *src; | |
10878 | wxObject *dest; | |
10879 | src = (wxToggleButton *) ptr; | |
10880 | dest = (wxObject *) src; | |
10881 | return (void *) dest; | |
10882 | } | |
10883 | ||
d1679124 RD |
10884 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
10885 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10886 | PyObject * _resultobj; | |
10887 | wxToggleButton * _result; | |
10888 | wxWindow * _arg0; | |
10889 | wxWindowID _arg1; | |
10890 | wxString * _arg2; | |
10891 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10892 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10893 | long _arg5 = (long ) 0; | |
10894 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
10895 | char * _arg7 = (char *) "toggle"; | |
10896 | PyObject * _argo0 = 0; | |
10897 | PyObject * _obj2 = 0; | |
10898 | wxPoint temp; | |
10899 | PyObject * _obj3 = 0; | |
10900 | wxSize temp0; | |
10901 | PyObject * _obj4 = 0; | |
10902 | PyObject * _argo6 = 0; | |
10903 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
10904 | char _ptemp[128]; | |
10905 | ||
10906 | self = self; | |
10907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
10908 | return NULL; | |
10909 | if (_argo0) { | |
10910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
10913 | return NULL; | |
10914 | } | |
10915 | } | |
10916 | { | |
10917 | #if PYTHON_API_VERSION >= 1009 | |
10918 | char* tmpPtr; int tmpSize; | |
10919 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 10920 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
d1679124 RD |
10921 | return NULL; |
10922 | } | |
10923 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
10924 | return NULL; | |
10925 | _arg2 = new wxString(tmpPtr, tmpSize); | |
10926 | #else | |
10927 | if (!PyString_Check(_obj2)) { | |
10928 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10929 | return NULL; | |
10930 | } | |
10931 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
10932 | #endif | |
10933 | } | |
10934 | if (_obj3) | |
10935 | { | |
10936 | _arg3 = &temp; | |
10937 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10938 | return NULL; | |
10939 | } | |
10940 | if (_obj4) | |
10941 | { | |
10942 | _arg4 = &temp0; | |
10943 | if (! wxSize_helper(_obj4, &_arg4)) | |
10944 | return NULL; | |
10945 | } | |
10946 | if (_argo6) { | |
10947 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
10948 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
10949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
10950 | return NULL; | |
10951 | } | |
10952 | } | |
10953 | { | |
4268f798 | 10954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
10955 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
10956 | ||
4268f798 | 10957 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10958 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
10959 | } if (_result) { |
10960 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10961 | _resultobj = Py_BuildValue("s",_ptemp); | |
10962 | } else { | |
10963 | Py_INCREF(Py_None); | |
10964 | _resultobj = Py_None; | |
10965 | } | |
10966 | { | |
10967 | if (_obj2) | |
10968 | delete _arg2; | |
10969 | } | |
10970 | return _resultobj; | |
10971 | } | |
10972 | ||
09f3d4e6 RD |
10973 | #define new_wxPreToggleButton() (new wxToggleButton()) |
10974 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10975 | PyObject * _resultobj; | |
10976 | wxToggleButton * _result; | |
10977 | char *_kwnames[] = { NULL }; | |
10978 | char _ptemp[128]; | |
10979 | ||
10980 | self = self; | |
10981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
10982 | return NULL; | |
10983 | { | |
4268f798 | 10984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
10985 | _result = (wxToggleButton *)new_wxPreToggleButton(); |
10986 | ||
4268f798 | 10987 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
10988 | if (PyErr_Occurred()) return NULL; |
10989 | } if (_result) { | |
10990 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10991 | _resultobj = Py_BuildValue("s",_ptemp); | |
10992 | } else { | |
10993 | Py_INCREF(Py_None); | |
10994 | _resultobj = Py_None; | |
10995 | } | |
10996 | return _resultobj; | |
10997 | } | |
10998 | ||
10999 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
11000 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11001 | PyObject * _resultobj; | |
11002 | bool _result; | |
11003 | wxToggleButton * _arg0; | |
11004 | wxWindow * _arg1; | |
11005 | wxWindowID _arg2; | |
11006 | wxString * _arg3; | |
11007 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
11008 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
11009 | long _arg6 = (long ) 0; | |
11010 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
11011 | char * _arg8 = (char *) "toggle"; | |
11012 | PyObject * _argo0 = 0; | |
11013 | PyObject * _argo1 = 0; | |
11014 | PyObject * _obj3 = 0; | |
11015 | wxPoint temp; | |
11016 | PyObject * _obj4 = 0; | |
11017 | wxSize temp0; | |
11018 | PyObject * _obj5 = 0; | |
11019 | PyObject * _argo7 = 0; | |
11020 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
11021 | ||
11022 | self = self; | |
11023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
11024 | return NULL; | |
11025 | if (_argo0) { | |
11026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
11029 | return NULL; | |
11030 | } | |
11031 | } | |
11032 | if (_argo1) { | |
11033 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11034 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
11036 | return NULL; | |
11037 | } | |
11038 | } | |
11039 | { | |
11040 | #if PYTHON_API_VERSION >= 1009 | |
11041 | char* tmpPtr; int tmpSize; | |
11042 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
11043 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11044 | return NULL; | |
11045 | } | |
11046 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
11047 | return NULL; | |
11048 | _arg3 = new wxString(tmpPtr, tmpSize); | |
11049 | #else | |
11050 | if (!PyString_Check(_obj3)) { | |
11051 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11052 | return NULL; | |
11053 | } | |
11054 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
11055 | #endif | |
11056 | } | |
11057 | if (_obj4) | |
11058 | { | |
11059 | _arg4 = &temp; | |
11060 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11061 | return NULL; | |
11062 | } | |
11063 | if (_obj5) | |
11064 | { | |
11065 | _arg5 = &temp0; | |
11066 | if (! wxSize_helper(_obj5, &_arg5)) | |
11067 | return NULL; | |
11068 | } | |
11069 | if (_argo7) { | |
11070 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
11071 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
11072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); | |
11073 | return NULL; | |
11074 | } | |
11075 | } | |
11076 | { | |
4268f798 | 11077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
11078 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
11079 | ||
4268f798 | 11080 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
11081 | if (PyErr_Occurred()) return NULL; |
11082 | } _resultobj = Py_BuildValue("i",_result); | |
11083 | { | |
11084 | if (_obj3) | |
11085 | delete _arg3; | |
11086 | } | |
11087 | return _resultobj; | |
11088 | } | |
11089 | ||
d1679124 RD |
11090 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
11091 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11092 | PyObject * _resultobj; | |
11093 | wxToggleButton * _arg0; | |
11094 | bool _arg1; | |
11095 | PyObject * _argo0 = 0; | |
11096 | int tempbool1; | |
11097 | char *_kwnames[] = { "self","value", NULL }; | |
11098 | ||
11099 | self = self; | |
11100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
11101 | return NULL; | |
11102 | if (_argo0) { | |
11103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
11106 | return NULL; | |
11107 | } | |
11108 | } | |
11109 | _arg1 = (bool ) tempbool1; | |
11110 | { | |
4268f798 | 11111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
11112 | wxToggleButton_SetValue(_arg0,_arg1); |
11113 | ||
4268f798 | 11114 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11115 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
11116 | } Py_INCREF(Py_None); |
11117 | _resultobj = Py_None; | |
11118 | return _resultobj; | |
11119 | } | |
11120 | ||
11121 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
11122 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11123 | PyObject * _resultobj; | |
11124 | bool _result; | |
11125 | wxToggleButton * _arg0; | |
11126 | PyObject * _argo0 = 0; | |
11127 | char *_kwnames[] = { "self", NULL }; | |
11128 | ||
11129 | self = self; | |
11130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
11131 | return NULL; | |
11132 | if (_argo0) { | |
11133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
11136 | return NULL; | |
11137 | } | |
11138 | } | |
11139 | { | |
4268f798 | 11140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
11141 | _result = (bool )wxToggleButton_GetValue(_arg0); |
11142 | ||
4268f798 | 11143 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11144 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
11145 | } _resultobj = Py_BuildValue("i",_result); |
11146 | return _resultobj; | |
11147 | } | |
11148 | ||
11149 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
11150 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11151 | PyObject * _resultobj; | |
11152 | wxToggleButton * _arg0; | |
11153 | wxString * _arg1; | |
11154 | PyObject * _argo0 = 0; | |
11155 | PyObject * _obj1 = 0; | |
11156 | char *_kwnames[] = { "self","label", NULL }; | |
11157 | ||
11158 | self = self; | |
11159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
11160 | return NULL; | |
11161 | if (_argo0) { | |
11162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
11165 | return NULL; | |
11166 | } | |
11167 | } | |
11168 | { | |
11169 | #if PYTHON_API_VERSION >= 1009 | |
11170 | char* tmpPtr; int tmpSize; | |
11171 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 11172 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
d1679124 RD |
11173 | return NULL; |
11174 | } | |
11175 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
11176 | return NULL; | |
11177 | _arg1 = new wxString(tmpPtr, tmpSize); | |
11178 | #else | |
11179 | if (!PyString_Check(_obj1)) { | |
11180 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11181 | return NULL; | |
11182 | } | |
11183 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
11184 | #endif | |
11185 | } | |
11186 | { | |
4268f798 | 11187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
11188 | wxToggleButton_SetLabel(_arg0,*_arg1); |
11189 | ||
4268f798 | 11190 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11191 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
11192 | } Py_INCREF(Py_None); |
11193 | _resultobj = Py_None; | |
11194 | { | |
11195 | if (_obj1) | |
11196 | delete _arg1; | |
11197 | } | |
11198 | return _resultobj; | |
11199 | } | |
11200 | ||
8ab979d7 | 11201 | static PyMethodDef controlscMethods[] = { |
d1679124 RD |
11202 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11203 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11204 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11205 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11206 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 | 11207 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
11208 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11209 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11210 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11211 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11212 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11213 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11214 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11215 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11216 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11217 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
11218 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11219 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11220 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11221 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11222 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11223 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11224 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11225 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11226 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11227 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
11228 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
11229 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11230 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11231 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11232 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11233 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
11234 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11235 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, |
11236 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11237 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, |
11238 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11239 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11240 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11241 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11242 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, |
11243 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
11244 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
11245 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11246 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
0adbc166 | 11247 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11248 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11249 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
11250 | { "wxRadioBox_GetRowCount", (PyCFunction) _wrap_wxRadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, |
11251 | { "wxRadioBox_GetColumnCount", (PyCFunction) _wrap_wxRadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
0adbc166 RD |
11252 | { "wxRadioBox_SetString", (PyCFunction) _wrap_wxRadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, |
11253 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11254 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, |
11255 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
11256 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11257 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11258 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11259 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, |
11260 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11261 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11262 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11263 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, |
11264 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11265 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, |
11266 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11267 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11268 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11269 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11270 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11271 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11272 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11273 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, |
11274 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11275 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
ebf4302c | 11276 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 11277 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11278 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
11279 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11280 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11281 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11282 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, |
11283 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11284 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 11285 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11286 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
11287 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
11288 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
11289 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11290 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11291 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11292 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11293 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
11295 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11296 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
11297 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11298 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, |
11299 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
11300 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
98624b49 RD |
11301 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, |
11302 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11306 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
11307 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, |
11308 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11310 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, |
11311 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
98624b49 RD |
11312 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, |
11313 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11314 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11315 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
11316 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, |
11317 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11318 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
b78b83ec | 11319 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
11320 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
11321 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11322 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11323 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, |
11324 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
11325 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 11326 | { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
11327 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11328 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11329 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11330 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11331 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 11332 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, |
98624b49 | 11333 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, |
d56cebe7 RD |
11334 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11335 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11336 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11337 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11338 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11339 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11340 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11341 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11342 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11343 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11344 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11345 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 11346 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11347 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, |
11348 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11349 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11350 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11351 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, |
11352 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11353 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11354 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11355 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
11356 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
11357 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
11358 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
0adbc166 | 11359 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11360 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11361 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11362 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11363 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11364 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11365 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11366 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, |
11367 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11368 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11369 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, |
11370 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11371 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11372 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, |
11373 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11374 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11375 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11376 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11377 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, |
11378 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11379 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11380 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11381 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11382 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11383 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11384 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11385 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11386 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, |
11387 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11388 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, |
0adbc166 | 11389 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11390 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11391 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
11392 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11393 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11394 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11395 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11396 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11397 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11398 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11399 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, |
11400 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11401 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, |
11402 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11403 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11404 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11405 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, |
0adbc166 | 11406 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11407 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
11408 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11409 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11410 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11411 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11412 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, |
11413 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11414 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, |
11415 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11416 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11417 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11418 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11419 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11420 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, |
11421 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
11422 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11423 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, |
11424 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11425 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11426 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11427 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11428 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11429 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11430 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11431 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11432 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11433 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11434 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
11435 | { "wxButton_SetImageMargins", (PyCFunction) _wrap_wxButton_SetImageMargins, METH_VARARGS | METH_KEYWORDS }, | |
11436 | { "wxButton_SetImageLabel", (PyCFunction) _wrap_wxButton_SetImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
11437 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
11438 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11439 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11440 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11441 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11442 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, |
900d9886 RD |
11443 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, |
11444 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11445 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
11446 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11447 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11448 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
11449 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11450 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11451 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11452 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11453 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11454 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11455 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11456 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11457 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, |
11458 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 11459 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
11460 | { NULL, NULL } |
11461 | }; | |
1d99702e RD |
11462 | #ifdef __cplusplus |
11463 | } | |
11464 | #endif | |
11465 | /* | |
11466 | * This table is used by the pointer type-checker | |
11467 | */ | |
11468 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11469 | { "_signed_long","_long",0}, |
b1462dfa | 11470 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11471 | { "_wxPrintQuality","_int",0}, |
11472 | { "_wxPrintQuality","_signed_int",0}, | |
11473 | { "_wxPrintQuality","_unsigned_int",0}, | |
11474 | { "_wxPrintQuality","_wxWindowID",0}, | |
11475 | { "_wxPrintQuality","_uint",0}, | |
11476 | { "_wxPrintQuality","_EBool",0}, | |
11477 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11478 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11479 | { "_byte","_unsigned_char",0}, |
1d99702e | 11480 | { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, |
1d99702e RD |
11481 | { "_long","_unsigned_long",0}, |
11482 | { "_long","_signed_long",0}, | |
b1462dfa | 11483 | { "_size_t","_wxCoord",0}, |
1d99702e | 11484 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11485 | { "_size_t","_time_t",0}, |
1d99702e RD |
11486 | { "_size_t","_unsigned_int",0}, |
11487 | { "_size_t","_int",0}, | |
11488 | { "_size_t","_wxWindowID",0}, | |
11489 | { "_size_t","_uint",0}, | |
b1462dfa | 11490 | { "_uint","_wxCoord",0}, |
1d99702e | 11491 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11492 | { "_uint","_time_t",0}, |
1d99702e RD |
11493 | { "_uint","_size_t",0}, |
11494 | { "_uint","_unsigned_int",0}, | |
11495 | { "_uint","_int",0}, | |
11496 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11497 | { "_wxChar","_char",0}, |
f6bcfd97 | 11498 | { "_char","_wxChar",0}, |
f6bcfd97 | 11499 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
cdf14688 | 11500 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11501 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11502 | { "_EBool","_wxPrintQuality",0}, |
11503 | { "_EBool","_signed_int",0}, | |
11504 | { "_EBool","_int",0}, | |
11505 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11506 | { "_unsigned_long","_long",0}, |
cdf14688 | 11507 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11508 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11509 | { "_signed_int","_wxPrintQuality",0}, |
11510 | { "_signed_int","_EBool",0}, | |
11511 | { "_signed_int","_wxWindowID",0}, | |
11512 | { "_signed_int","_int",0}, | |
1d99702e | 11513 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
1d99702e RD |
11514 | { "_WXTYPE","_short",0}, |
11515 | { "_WXTYPE","_signed_short",0}, | |
11516 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11517 | { "_unsigned_short","_WXTYPE",0}, |
11518 | { "_unsigned_short","_short",0}, | |
9416aa89 | 11519 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, |
9416aa89 | 11520 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, |
9416aa89 | 11521 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, |
9416aa89 | 11522 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, |
9416aa89 | 11523 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, |
9416aa89 | 11524 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, |
9416aa89 | 11525 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, |
9416aa89 | 11526 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, |
9416aa89 | 11527 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, |
9416aa89 | 11528 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, |
9416aa89 | 11529 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, |
9416aa89 | 11530 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, |
9416aa89 | 11531 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, |
9416aa89 | 11532 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, |
9416aa89 | 11533 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, |
9416aa89 | 11534 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, |
9416aa89 | 11535 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, |
9416aa89 | 11536 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, |
9416aa89 | 11537 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, |
9416aa89 | 11538 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, |
900d9886 | 11539 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, |
9416aa89 | 11540 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, |
1d99702e RD |
11541 | { "_signed_short","_WXTYPE",0}, |
11542 | { "_signed_short","_short",0}, | |
1d99702e | 11543 | { "_unsigned_char","_byte",0}, |
d1679124 | 11544 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, |
f6bcfd97 | 11545 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
1d99702e | 11546 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, |
1d99702e | 11547 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, |
1d99702e | 11548 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, |
1d99702e | 11549 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, |
1d99702e | 11550 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, |
1d99702e | 11551 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, |
1d99702e | 11552 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, |
1d99702e | 11553 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, |
1d99702e | 11554 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, |
1d99702e | 11555 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, |
1d99702e | 11556 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, |
1d99702e | 11557 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, |
1d99702e | 11558 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, |
1d99702e | 11559 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, |
1d99702e | 11560 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, |
1d99702e | 11561 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, |
1d99702e | 11562 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, |
1d99702e | 11563 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, |
900d9886 | 11564 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, |
b1462dfa | 11565 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11566 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11567 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11568 | { "_unsigned_int","_size_t",0}, |
11569 | { "_unsigned_int","_uint",0}, | |
11570 | { "_unsigned_int","_wxWindowID",0}, | |
11571 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11572 | { "_short","_WXTYPE",0}, |
11573 | { "_short","_unsigned_short",0}, | |
11574 | { "_short","_signed_short",0}, | |
900d9886 RD |
11575 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, |
11576 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
11577 | { "_wxControlWithItems","_wxComboBox",SwigwxComboBoxTowxControlWithItems}, | |
11578 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
b1462dfa | 11579 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11580 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11581 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11582 | { "_wxWindowID","_size_t",0}, |
11583 | { "_wxWindowID","_EBool",0}, | |
11584 | { "_wxWindowID","_uint",0}, | |
11585 | { "_wxWindowID","_int",0}, | |
11586 | { "_wxWindowID","_signed_int",0}, | |
11587 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11588 | { "_int","_wxCoord",0}, |
1d99702e | 11589 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11590 | { "_int","_time_t",0}, |
1d99702e RD |
11591 | { "_int","_size_t",0}, |
11592 | { "_int","_EBool",0}, | |
11593 | { "_int","_uint",0}, | |
11594 | { "_int","_wxWindowID",0}, | |
11595 | { "_int","_unsigned_int",0}, | |
11596 | { "_int","_signed_int",0}, | |
c368d904 RD |
11597 | { "_time_t","_wxCoord",0}, |
11598 | { "_time_t","_wxPrintQuality",0}, | |
11599 | { "_time_t","_unsigned_int",0}, | |
11600 | { "_time_t","_int",0}, | |
11601 | { "_time_t","_wxWindowID",0}, | |
11602 | { "_time_t","_uint",0}, | |
11603 | { "_time_t","_size_t",0}, | |
1d99702e | 11604 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
b1462dfa RD |
11605 | { "_wxCoord","_int",0}, |
11606 | { "_wxCoord","_signed_int",0}, | |
11607 | { "_wxCoord","_unsigned_int",0}, | |
11608 | { "_wxCoord","_wxWindowID",0}, | |
11609 | { "_wxCoord","_uint",0}, | |
11610 | { "_wxCoord","_EBool",0}, | |
11611 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11612 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11613 | { "_wxCoord","_wxPrintQuality",0}, |
d1679124 | 11614 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
f6bcfd97 | 11615 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
1d99702e | 11616 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, |
1d99702e | 11617 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, |
1d99702e | 11618 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, |
1d99702e | 11619 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, |
1d99702e | 11620 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, |
1d99702e | 11621 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, |
1d99702e | 11622 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, |
1d99702e | 11623 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, |
1d99702e | 11624 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, |
1d99702e | 11625 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, |
1d99702e | 11626 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, |
1d99702e | 11627 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, |
1d99702e | 11628 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, |
1d99702e | 11629 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, |
1d99702e | 11630 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, |
1d99702e | 11631 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, |
1d99702e | 11632 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, |
1d99702e | 11633 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, |
900d9886 | 11634 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, |
1d99702e | 11635 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, |
d1679124 | 11636 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
f6bcfd97 | 11637 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
1d99702e | 11638 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, |
1d99702e | 11639 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, |
1d99702e | 11640 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, |
1d99702e | 11641 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, |
1d99702e | 11642 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, |
1d99702e | 11643 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, |
1d99702e | 11644 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, |
1d99702e | 11645 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, |
1d99702e | 11646 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, |
1d99702e | 11647 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, |
1d99702e | 11648 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, |
1d99702e | 11649 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, |
1d99702e | 11650 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, |
1d99702e | 11651 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, |
1d99702e | 11652 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, |
1d99702e | 11653 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, |
1d99702e | 11654 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, |
1d99702e | 11655 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, |
900d9886 | 11656 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, |
1d99702e | 11657 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, |
1d99702e RD |
11658 | {0,0,0}}; |
11659 | ||
8ab979d7 RD |
11660 | static PyObject *SWIG_globals; |
11661 | #ifdef __cplusplus | |
11662 | extern "C" | |
11663 | #endif | |
1d99702e | 11664 | SWIGEXPORT(void) initcontrolsc() { |
8ab979d7 RD |
11665 | PyObject *m, *d; |
11666 | SWIG_globals = SWIG_newvarlink(); | |
11667 | m = Py_InitModule("controlsc", controlscMethods); | |
11668 | d = PyModule_GetDict(m); | |
2f90df85 RD |
11669 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
11670 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
d1679124 | 11671 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
1d99702e RD |
11672 | { |
11673 | int i; | |
11674 | for (i = 0; _swig_mapping[i].n1; i++) | |
11675 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11676 | } | |
8ab979d7 | 11677 | } |